Detect when spawned mob touches the ground?

  • 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.

NewbyZ

Member
Jan 26, 2017
75
2
0
25
How can I detect when a mob spawned in the air touches the ground?

Idk, this doesn't work :emoji_sweat:

code_language.skript:
    spawn a spider at {_loc2}
    set {_b} to the last spawned spider
    apply resistance 10 to {_b} for 10 seconds
    push {_b} upwards at speed 3
    wait 1 tick
    push {_b} (direction from {_loc2} to {_loc}) at speed 7
    while block below {_b} is not air:
        broadcast "De puta madre"
        stop
 
Status
Not open for further replies.