Paste #69856: WHY?!?!

Date: 2020/05/29 07:48:05 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


enchanting_table_lapis_persistance:
  type: world
  events:
    on player closes inventory:
      - narrate <context.inventory.list_contents>
      - if <context.inventory.inventory_type> == ENCHANTING:
        - flag server <player.flag[enchant_location]>.inventory:<context.inventory.list_contents>
        - flag player enchant_location:!

    on player right clicks enchanting_table bukkit_priority:HIGHEST:
      - flag player enchant_location:<context.location.simple>
      - if <server.has_flag[<context.location.simple>.inventory]>:
        - determine passively cancelled
        - wait 1t
        - inventory set o:<server.flag[<context.location.simple>.inventory].as_list.parse[as_item]> d:<player.open_inventory>