KubeJS

KubeJS

69M Downloads

Item types other than basic not working

Extremer908 opened this issue ยท 2 comments

commented

Minecraft Version

1.16.5

KubeJS Version

1605.3.19-build.299

Rhino Version

1605.1.5-build.75

Architectury Version

1.32.63

Forge/Fabric Version

36.2.35

Describe your issue

I am trying to create a sword for my modpack and every time I declare the item as a sword or other item types than basic it doesn't appear in the game, I've tried troubleshooting and looking up what I did wrong but it seems like I've done it right and there's just a bug.
My Code line:
onEvent('item.registry', event => {
event.create('exotic_flameblade', 'sword').tier('netherite').displayName('Exotic Flameblade').attackDamageBaseline(15.5).glow(true)
})

Crash report/logs

No response

commented

That is the item creation syntax for 1.18+. Use event.create('exotic_flameblade').type('sword')

commented

Got it, thanks