Can't create new knife items
Datan opened this issue ยท 3 comments
Using 1.19.2 Forge 43.3.5, kubejsdelight 1.1, kubejs 6.2 build 50.
Registering a new knife item causes a crash. Registering new pies works fine. The script I'm using:
// priority: 0
ItemEvents.toolTierRegistry(event => {
event.add('steel', tier => {
tier.level = 2
tier.uses = 1000
tier.speed = 7.0
tier.attackDamageBonus = 3.0
tier.enchantmentValue = 11
tier.repairIngredient = '#forge:ingots/steel'
})
})
StartupEvents.registry('item', event => {
event.create('lead_plate').displayName('Lead Plate')
event.create('steel_rod').displayName('Steel Rod')
event.create('steel_wire').displayName('Steel Wire')
event.create('steel_knife', 'farmers_delight:knife').displayName('Steel Knife').tier('steel')
})
The startup log:
startup.log