btw {_a} is an entity and
Example:
on right click:
if name of player's tool = "&7[T1] Steak":
if gamemode of player is not survival:
cancel event
else:
spawn a armor stand 0.55 blocks below player with nbt "{NoGravity:1b}"
set {_a} to last spawned armor stand
set helmet of {_a} to cooked beef
set {_a}'s visibility to false
remove 1 of player's tool from player's tool
loop 28 times:
teleport {_a} 1.1 infront of {_a}
loop all players in radius 1.6 of {_a}:
if loop-player isn't player:
push loop-player away from {_a}
[doublepost=1662087313,1662087228][/doublepost]
[doublepost=1662091032][/doublepost]NeverMind I Figured It Out
Example:
on right click:
if name of player's tool = "&7[T1] Steak":
if gamemode of player is not survival:
cancel event
else:
spawn a armor stand 0.55 blocks below player with nbt "{NoGravity:1b}"
set {_a} to last spawned armor stand
set helmet of {_a} to cooked beef
set {_a}'s visibility to false
remove 1 of player's tool from player's tool
loop 28 times:
teleport {_a} 1.1 infront of {_a}
loop all players in radius 1.6 of {_a}:
if loop-player isn't player:
push loop-player away from {_a}
[doublepost=1662087313,1662087228][/doublepost]
[doublepost=1662091032][/doublepost]NeverMind I Figured It Out