#how come this doesn't tell the player anything with no errors?

5 messages · Page 1 of 1 (latest)

midnight glacier
#
ItemEvents.modification(event => {
    event.modify('createbb:sudafed', item => {
      item.foodProperties = food => {
        food
          .hunger(1)
          .saturation(1)
          .fastToEat(true)
          .alwaysEdible(true)
          .eaten((ctx) => {
            ctx.player.tell("test")
          })
        }
    })
})
steep edgeBOT
#

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

junior lagoon
#

if that doesnt work theres a server event for this js ItemEvents.foodEaten('createbb:sudafed',event => { const {player} = event player.tell("test") })

midnight glacier
#

thank you