#Custom Taming Items?

3 messages · Page 1 of 1 (latest)

heady sable
#

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(); } } });

dull tendonBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

formal frostBOT
#

You can write your code in a codeblock by typing it between the codeblock delimiters:
Note that these are backticks, not apostrophes

```js :arrow_left:

ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})

``` :arrow_left:

This example will look like this:

ServerEvents.recipes(event => {
  event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})