Date: 2014/06/20 22:30:15 UTC-07:00
Type: Denizen Script
on player right clicks e@item_frame:
- foreach <global.flag[store].escape_contents> {
- if <def[value].unescaped.as_cuboid.is_within[<context.location>]> {
- if <player.is_sneaking> && <player.is_op>
queue clear
- if <player.item_in_hand.scriptname> == 'shopping bag' {
- if <in@<player.name>_shopping_bag.stacks> >= 18 {
- narrate "<red>Your shopping bag is full!"
} else {
- inventory add o:<c.entity.framed_item> d:in@<player.name>_shopping_bag
- if <c.entity.framed_item.display> != null
narrate "You add a <c.entity.framed_item.display> to your shopping bag."
else
narrate "You add a <c.entity.framed_item.material.formatted> to your shopping bag."
}
}
- determine cancelled
}
}