KubeJS

KubeJS

107M Downloads

event.createCustom

xiaofanwei123 opened this issue ยท 4 comments

commented

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

https://mclo.gs/0fF8aCY

commented

This was actually fixed back in February, is there any time we should expect that to be released?

commented

I released a mod that temp fixes the issue while the version is not yet released (won't be applied when released).

https://www.curseforge.com/minecraft/mc-mods/kubejs-tweaks

commented

Duplicate of #972

commented

ๅ‰ฏๆœฌ #972

Why not fix this bug? Kubejs hasn't been updated for 8 months:(