Paste #65632: sit if 3.1

Date: 2020/02/26 15:02:54 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


chad:
    type: entity
    entity_type: armor_stand
    visible: false
    collidable: false
    gravity: false
    remove_when_far_away: true

dSit:
    type: world
    debug: true
    events:
        on player right clicks *stairs||*slab||scaff* with air using hand:
        - if <context.location.above.material.name> != air:
            - stop
        - if ( <context.location.material.slab_type||<context.location.material.half||none>> = bottom ):
            - mount <player>|chad <context.location.center.below[1.7]>
        - else:
            - mount <player>|chad <context.location.center.below[1.2]>

        on player steers chad:
        - if <context.dismount>:
            - remove <context.entity>