Date: 2016/09/01 14:01:45 UTC-07:00
Type: Denizen Script
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>]>
}
}