Heyo, somewhat new to KubeJS, and I made some custom flint tools for a modpack I'm tinkering with, but I want to switch the pathing function of the shovel into a tilling function on right click. Not entirely sure how to start going about this.
onEvent('item.registry.tool_tiers', event => {
event.add('flint', tier => { //custom tier for flint items
tier.uses = 32
tier.speed = 3
tier.attackDamageBonus = 2.0
tier.level = 0
tier.enchantmentValue = 14
tier.repairIngredient = 'minecraft:flint'
})
})
onEvent('item.registry', event => {
//flint trowel
event.create('flint_trowel', 'shovel')
.displayName('Flint Trowel').unstackable().tier('flint')
//TODO: add ability to become farmvile incarnate
})
Any pointers on where to start for this type of thing?