Paste #5523: Untitled Paste

Date: 2014/06/20 22:30:15 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
16
17
18
19


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
        }
      }