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

Taube

Member
Apr 19, 2021
1
0
1
23
Skript Version: V8
Minecraft Version: 1.16.5

Code:
on rightclick on any stairs:
    spawn armor stand at location below event-block
    set {_entity} to last spawned entity
    rotate {_entity} around z-axis by 180 degrees
    set visibility of {_entity} to false
    make player ride {_entity}
    while {_entity} exists:
        if player is sneaking:
            eject any passenger of {_entity}
            send "{_entity}  exists"
            wait 5 ticks
            delete {_entity}
        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)
 
Skript Version: V8
Minecraft Version: 1.16.5

Code:
on rightclick on any stairs:
    spawn armor stand at location below event-block
    set {_entity} to last spawned entity
    rotate {_entity} around z-axis by 180 degrees
    set visibility of {_entity} to false
    make player ride {_entity}
    while {_entity} exists:
        if player is sneaking:
            eject any passenger of {_entity}
            send "{_entity}  exists"
            wait 5 ticks
            delete {_entity}
        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)
You are deleting the variable not the entity so "kill {_entity}"
 
Status
Not open for further replies.