KubeJS Delight

KubeJS Delight

645k Downloads

Can't create new knife items

Datan opened this issue ยท 3 comments

commented

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

commented

It's farmersdelight, not farmers_delight

commented

Yeah that fixed it, thank you. Can't believe I missed that when I have other references to farmersdelight. Maybe update the mod description? That's what I based the knife script on.
Capture

commented

yeah maybe I'll delete the examples in the mod description and just leave the wiki