Push Players Away From Entity

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

CGZ_

Member
May 26, 2022
1
0
1
26
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]
upload_2022-9-2_14-55-13.png

[doublepost=1662091032][/doublepost]NeverMind I Figured It Out
 
Status
Not open for further replies.