How to make entity fly

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

SkyblueVN

Member
Jan 20, 2022
4
0
1
23
Code:
on break of bed:
    spawn a pig at event-block
    add last spawned pig to {_pig::%player%}
    equip last spawned entity with saddle
    add "{NoAI:1b}" to nbt of last spawned pig
    add "{Silent:1}" to nbt of last spawned pig
    push {_pig::%player%} upwards at speed 1
    wait 20 ticks
    kill {_pig::%player%}
    wait 1 tick
    kill last spawned entity
    wait 1 tick
    kill last spawned entity
    wait 1 tick
    kill last spawned entity
    delete {_pig::%player%}

I want to make the pig fly but it doesn't pls help me
 
Like this?
Code:
on break of bed:
    spawn a pig at event-block
    add last spawned pig to {_pig::%player%}
    equip last spawned entity with saddle
    add "{NoAI:1b}" to nbt of last spawned pig
    add "{Silent:1}" to nbt of last spawned pig
    add "{NoGravity:1b}" to nbt of last spawned pig
 
Status
Not open for further replies.