Paste #30373: Elevators

Date: 2016/02/14 23:13:31 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


elevatorChipset:
    type: item
    material: gold_plate
    display name: "<gold>Elevator Chipset"
    recipe:
    - i@gold_ingot|i@glass|i@gold_ingot
    - i@gold_ingot|i@redstone|i@gold_ingot
    - i@gold_ingot|i@ender_pearl|i@gold_ingot

elevator:
    type: item
    material: step
    display name: "<gray>Elevator"
    lore:
    - "<gold>This will only work with 2 or more elevators
    - "<&c>Shift to go down to bottom elevator
    - "<&c>Jump to go up the upper elevator
    recipe:
    - i@iron_ingot|elevatorChipset|i@iron_ingot
    - i@iron_ingot|i@diamond|i@iron_ingot
    - i@iron_ingot|i@ender_pear|i@iron_ingot

elevatorMech:
    type: world
    events:
        on player jumps:
        - define location
        l@<context.location.x>,<context.location.y.sub_int[1]>.0,<context.location.z>,<context.location.world.substring[3]> 
        - if %location% == m@elevator {
            }