Hi, I'm making custom food skript using heads (example: head looking like a Strawberry named "Strawberry"), and I need your help. I want to block placing of food heads, and I'm using this code:
There is no error. I think that error is in 2nd line, invalid item name. Can someone help me make this skript work? Again, I want to block placing of a item. Thank you all!
Code:
on place:
if event-block is head item:
set {_name} to name of player's tool
if "%{_name}%" is "&cStrawberry":
cancel event