Releases: way-zer/SuperItem
Releases · way-zer/SuperItem
Update LibraryManager to 1.1
Other is same as 1.3.3
Some Updates
Tested on 1.12.2 (may work on 1.9-1.12)
Contents
- Use LibraryManager to reduce the size of jar (Download dependencies on runtime)
You may find it stick on load first time for long time,Please be patient
- Add ItemInfo.ItemStackHandler,handling itemStack when being crafted
- Add Script MythicMobs_Support.superitem.kts in src/main/resources (Need to be tested)
- Script: Add @file:DependsOn ,to add other classpath to compile(see MythicMobs_Support.superitem.kts for example)
- Update kotlin to 1.3.41
Todos
- Add DataStore(now only MetaStore)
- Add command "/si load" to reload Item (not finish)
Compatibility for 1.13+
For 1.14(including 1.13)
Not work on 1.12 or lower
Not Tested (Compile pass!)
Add ConfigManager and fix bugs(now it works)
Tested on 1.12.2 (may work on 1.9-1.12)
- Config files are in "plugins/SuperItem/configs' with the name "{ItemPackage} : {item}.json"
- Now Superitem Script(superitem.kts) works
//example as Flame_Axe.superitem.kts
import org.bukkit.Material
import org.bukkit.enchantments.Enchantment
import org.bukkit.entity.Player
import org.bukkit.event.EventHandler
import org.bukkit.event.EventPriority
import org.bukkit.event.entity.EntityDamageByEntityEvent
require(ItemInfo(Material.IRON_AXE, "§4FLAMES AXE", listOf("§3 Use wisely")) { im, _ ->
im.addEnchant(Enchantment.FIRE_ASPECT, 2, false)
im.addEnchant(Enchantment.DAMAGE_ALL, 4, false)
})
require(CoolDown(600))
require(Recipe("2@0;377;399;377;258;377;399;377;0"))
listen<EntityDamageByEntityEvent>(priority = EventPriority.HIGHEST){e->
if (e.damager is Player) {
val p = e.damager as Player
if (isItem(p.inventory.itemInMainHand)) {
if (get<Permission>().hasPermission(p) && get<CoolDown>().isCoolDownOK(p)) {
get<CoolDown>().add(p)
} else
e.damage = 1.0
}
}
}
1.3.0
Add new way to load(superitem.kts)
[deprecated] please use v1.3.0
Now the version is 1.3
- Add Item.Builder: you can create item with dsl
- Add SuperItemScript: now can load xxx.superitem.kts(usage see example)