Paste #35725: Untitled Paste

Date: 2016/09/01 14:01:45 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


interact_chest:
    type: world
    events:
        on player closes chest:
        - flag server <context.inventory.location.x>,<context.inventory.location.y>,<context.inventory.location.z>,<context.inventory.location.world.name>:<context.inventory.list_contents>

paste:
    type: task
    script:
    - foreach <server.list_files[schematics/].parse[replace[.schematic]]> {
        - foreach <def[value].as_chunk.cuboid.blocks[chest]> {
            - narrate "<def[value].inventory>"
            - inventory set destination:<def[value].inventory.location.x>,<def[value].inventory.location.y>,<def[value].inventory.location.z>,<def[value].inventory.location.world.name> origin:<global.flag[<def[value].inventory.location.x>,<def[value].inventory.location.y>,<def[value].inventory.location.z>,<def[value].inventory.location.world.name>]>
        }        
    }