1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make entity fly

Discussion in 'Skript' started by SkyblueVN, Jul 30, 2022.

Thread Status:
Not open for further replies.
  1. SkyblueVN

    SkyblueVN Member

    Joined:
    Jan 20, 2022
    Messages:
    4
    Likes Received:
    0
    Code (Text):
    1. on break of bed:
    2.     spawn a pig at event-block
    3.     add last spawned pig to {_pig::%player%}
    4.     equip last spawned entity with saddle
    5.     add "{NoAI:1b}" to nbt of last spawned pig
    6.     add "{Silent:1}" to nbt of last spawned pig
    7.     push {_pig::%player%} upwards at speed 1
    8.     wait 20 ticks
    9.     kill {_pig::%player%}
    10.     wait 1 tick
    11.     kill last spawned entity
    12.     wait 1 tick
    13.     kill last spawned entity
    14.     wait 1 tick
    15.     kill last spawned entity
    16.     delete {_pig::%player%}
    I want to make the pig fly but it doesn't pls help me
     
  2. Sabified

    Sabified Member

    Joined:
    Jun 5, 2022
    Messages:
    30
    Likes Received:
    2
    Like this?
    Code (Text):
    1. on break of bed:
    2.     spawn a pig at event-block
    3.     add last spawned pig to {_pig::%player%}
    4.     equip last spawned entity with saddle
    5.     add "{NoAI:1b}" to nbt of last spawned pig
    6.     add "{Silent:1}" to nbt of last spawned pig
    7.     add "{NoGravity:1b}" to nbt of last spawned pig
     
Thread Status:
Not open for further replies.

Share This Page

Loading...