#itemStack data

1 messages · Page 1 of 1 (latest)

steady ermine
#

I can't put water bottle on the type id, but the minecraft:potion works but all potions got trigger

modest smelt
steady ermine
#

Where to put in?

#

@modest smelt

modest smelt
# steady ermine Where to put in?

just call the function.

world.afterEvents.playerInteractWithEntity.subscribe(({ target, player, beforeItemStack, itemStack }) => {
   if (target.typeId === 'minecraft:creeper' && isWaterBottle(player)) {}
});```