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")
})
}
})
})
#how come this doesn't tell the player anything with no errors?
5 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
if that doesnt work theres a server event for this js ItemEvents.foodEaten('createbb:sudafed',event => { const {player} = event player.tell("test") })
you are great at helping me I must say
thank you