Skip to content

Releases: way-zer/SuperItem

Update LibraryManager to 1.1

15 Jul 13:21
Compare
Choose a tag to compare

Other is same as 1.3.3

Some Updates

14 Jul 13:53
Compare
Choose a tag to compare

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+

09 Jul 15:07
Compare
Choose a tag to compare
Pre-release

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)

07 Jul 05:43
cd1fd85
Compare
Choose a tag to compare

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

19 Jun 01:57
Compare
Choose a tag to compare
1.3.0 Pre-release
Pre-release
fix bug

Add new way to load(superitem.kts)

15 Jun 03:47
Compare
Choose a tag to compare
Pre-release

[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)