#item eaten 1.18.2?

3 messages · Page 1 of 1 (latest)

grave path
#
    event.player.health += 2
})```

I found the above code in a 1.19.2 pack, but cant seem to find any equivalent for 1.18.2
pine orchidBOT
#

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

vestal saddle
#
onEvent('item.food_eaten', event => {
  if event.item.id != 'minecraft:glistering_melon_slice' return;
  // the rest of the owl
})

filtered events that let you pass in a specific item to trigger on are a 1.19+ addition