I'm trying to make something happen when a player eats a specifically named item.
In this case, the item is bread and it's name is &fToast
But, the following code doesn't do anything.
Code:
There are no reload errors.
Addons I'm using are:
skRayFall, Skellett, TuSKe and SkQuery
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
In this case, the item is bread and it's name is &fToast
But, the following code doesn't do anything.
Code:
Code:
on consume of bread:
if name of event-item is "&fToast":
cancel event
remove 1 bread from player's tool
send "That was some tasty toast!" to player
There are no reload errors.
Addons I'm using are:
skRayFall, Skellett, TuSKe and SkQuery
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes