event.createCustom
xiaofanwei123 opened this issue ยท 4 comments
Minecraft Version
1.21.1
KubeJS Version
2101.7.1-build.181
Rhino Version
2101.2.7-build.74
Architectury Version
none
Forge/Fabric Version
neoforge21.1.179
Describe your issue
Normal registered items. Able to enter the game, but crashes and reports an error when accessing the map.
let $MagicScytheItem=Java.loadClass("com.sammy.malum.common.item.curiosities.weapons.scythe.MagicScytheItem")
let $LodestoneItemProperties = Java.loadClass("team.lodestar.lodestone.systems.item.LodestoneItemProperties");
let $Tiers=Java.loadClass("net.minecraft.world.item.Tiers")
StartupEvents.registry("item", event => {
// 7.5 0.8 *1.1
event.createCustom("baleful_harvester_scythe", ()=> new $MagicScytheItem(
$Tiers.NETHERITE,
4.5,
0.4,
3,
new $LodestoneItemProperties()
.durability(3000)
.rarity("epic")
))
})
Crash report/logs
This was actually fixed back in February, is there any time we should expect that to be released?
I released a mod that temp fixes the issue while the version is not yet released (won't be applied when released).
Duplicate of #972
ๅฏๆฌ #972
Why not fix this bug? Kubejs hasn't been updated for 8 months:(