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.

Delete Armorstand Bug

Discussion in 'Skript' started by Taube, Apr 19, 2021.

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

    Taube Member

    Joined:
    Apr 19, 2021
    Messages:
    1
    Likes Received:
    0
    Skript Version: V8
    Minecraft Version: 1.16.5

    Code (Text):
    1. on rightclick on any stairs:
    2.     spawn armor stand at location below event-block
    3.     set {_entity} to last spawned entity
    4.     rotate {_entity} around z-axis by 180 degrees
    5.     set visibility of {_entity} to false
    6.     make player ride {_entity}
    7.     while {_entity} exists:
    8.         if player is sneaking:
    9.             eject any passenger of {_entity}
    10.             send "{_entity}  exists"
    11.             wait 5 ticks
    12.             delete {_entity}
    13.         wait 5 tick
    There are no errors on load.

    Addons: skRayFall, SkelletLegacy, SkBee

    Troubleshooting:
    I wanted to make the player able to sit on stairs and that's working fine. But when sneaking, the entity won't be removed and before that, I added "make the player's main arm swing" or something like that and now every time I sneak, my main arm swing, even the line isn't there anymore and I reloaded several times.

    Have you tried searching the docs? of course
    Have you tried searching the Forums? yea
    What other methods have you tried to fix it? My brain (doesn't worked)
     
  2. DieHollander_

    DieHollander_ Active Member

    Joined:
    Mar 25, 2018
    Messages:
    188
    Likes Received:
    12
    Aren't you supposed to kill the armor stand since it's an entity?
     
  3. Shadow501pl

    Shadow501pl Active Member

    Joined:
    Dec 19, 2020
    Messages:
    62
    Likes Received:
    2
    You are deleting the variable not the entity so "kill {_entity}"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...