Elevator

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

KAVKAZIE

Active Member
Feb 27, 2017
146
0
16
Hello, How can i make elevator when im quiting minecart its teleports me to the top 2 air blocks 1 above 1, not the top blocks just the top 2 free blocks, sorry for the english -_-
 
Hello, How can i make elevator when im quiting minecart its teleports me to the top 2 air blocks 1 above 1, not the top blocks just the top 2 free blocks, sorry for the english -_-

code_language.skript:
on dismount:
    if vehicle of event-entity is a minecart:
        set {_loc} to location of vehicle of event-entity
        add 2 to the y-coordinate of {_loc}
        wait 1 tick
        teleport event-entity to {_loc}
 
code_language.skript:
on dismount:
    if vehicle of event-entity is a minecart:
        set {_loc} to location of vehicle of event-entity
        add 2 to the y-coordinate of {_loc}
        wait 1 tick
        teleport event-entity to {_loc}
Thanks what addon "dismount" needs?