Does anyone knows if its possible to make custom taming items? like if i could tame a wolf with a diamond. I know a Custom Breeding Item code, but dunno if its possible with taming. I don't know much about coding, so it would be great if someone could help me.
btw heres the code for Custom Breeding Item:
ItemEvents.entityInteracted(event => { const { target, item, player, level, hand } = event; if (hand != 'MAIN_HAND') return; if (target.type === "minecraft:wolf" && item.id === 'minecraft:diamond') { if (!target.isBaby() && target.getLoveCause() == null) { if (!player.isCreative()) item.count--; target.setInLove(player); level.spawnParticles('heart', target.x, target.y + 1, target.z, 0.5, 0.5, 0.5, 5, 0.05); target.playSound('entity.cow.eat'); event.cancel(); } } });