As title, I'm trying to set up a set of machines that when right-clicked with Slime Crystals (from Tinkers), the Slime Crystal is consumed and another item is created (I don't really care whether it's a "destroy & create" or a "transform", both accomplish the same goal). At the moment I'm following this thread, but it's not working for my use case: #1054683926989377586 message
Could I get some help please?
let gels = ['kubejs:slime_gel_machine', 'kubejs:sky_gel_machine', 'kubejs:ender_gel_machine', 'kubejs:ichor_gel_machine']
let crystals = ['tinkersconstruct:earth_slime_crystal', 'tinkersconstruct:sky_slime_crystal', 'tinkersconstruct:ender_slime_crystal', 'tinkersconstruct:ichor_slime_crystal']
onEvent('block.right_click', event => {
gels.forEach(e => {
if (!block.id(e) && !item.id.endsWith('_slime_crystal'))
event.item.set('minecraft:bone_meal')
})
})



