Hi all! I'm experiencing an error when loading in a custom sword. I'm basically copying and pasting the default code, yet updating some of the script to KubeJS 6.1. Can anybody offer some advice. It's telling me that "sword" is an unknown object type. Thanks!
[11:24:52] [ERROR] ! java.lang.IllegalArgumentException: Unknown type 'sword' for object 'kaylebsword'!
Here's my script
// Listen to item registry event
StartupEvents.registry('item.registry', event => {
// The texture for this item has to be placed in kubejs/assets/kubejs/textures/item/test_item.png
// If you want a custom item model, you can create one in Blockbench and put it in kubejs/assets/kubejs/models/item/test_item.json
event.create('kaylebsword', 'sword').tier('diamond').attackDamageBaseline(10.10)
.tooltip("§5Fear the Explosion!")
.tooltip("§5… Boom the fire!")
.displayName("Fire Sword of Kayleb")
})