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 dogs sitting/standing with a command?

Discussion in 'Skript' started by EricDasBrot, Jul 9, 2019.

Tags:
Thread Status:
Not open for further replies.
  1. EricDasBrot

    EricDasBrot Member

    Joined:
    Jun 1, 2017
    Messages:
    26
    Likes Received:
    0
    hello, i want to loop all dogs with a specific name and make them sitting/standing. i really don't know how to explain it

    Code (Text):
    1. command /dog:
    2.     loop entities:
    3.         if name of loop-entity is "&aDog":
    4.             if loop-entity is sitting:
    5.                 make loop-entity standing
    6.                
    7.             if loop-entity is standing:
    8.                 make loop-entity sitting
     
  2. inxane

    inxane Member

    Joined:
    Jul 23, 2019
    Messages:
    15
    Likes Received:
    0
    You can do that by editing the wolf's NBT data, specifically the Sitting tag. Set the Sitting tag to 1 if you want the dog to be sat, and 0 if you want the dog to be standing. To edit NBT data of entites, look into NBT editing in Skript. A quick google search will help you out!
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    You can try doing it with Skript-Mirror
    Code (Skript):
    1. command /dog:
    2.     loop entities:
    3.         if name of loop-entity is "&aDog":
    4.             if loop-entity.isSitting() = true:
    5.                 loop-entity.setSitting(false)
    6.             else:
    7.                 loop-entity.setSitting(true)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...