Paste #33873: Untitled Paste

Date: 2016/05/30 04:01:04 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


KillCounterCommand:
  type: command
  debug: true
  name: killcounter
  aliases:
  - counter
  - killc
  script:
  - if <yaml[<player.uuid>].contains[Inventory_KillCounter].not||false> {
      - yaml id:<player.uuid> set INVENTORY_KillCounter:<in@KillCounter_inv>
      }
  - foreach <yaml[<player.uuid>].list_keys[kills.monsters]||false>:
    - ^inventory set d:<yaml[<player.uuid>].read[INVENTORY_Killcounter]> "o:i@skull_item[skull_skin=MHF_<def[value]>;display_name=<green><def[value].to_uppercase>;lore=<&7><&lb><&f><yaml[<player.uuid>].read[kills.monsters.zombie].as_int||0><&7>/<&f>10<&7><&rb>|<white>Kill 10 more to unlock a new reward!]" slot:<yaml[<player.uuid>].read[INVENTORY_KillCounter].as_inventory.first_empty.add[1]>
  - inventory open d:<yaml[<player.uuid>].read[INVENTORY_KillCounter]>

KillCounter_inv:
  type: inventory
  debug: false
  title: <&0><&lb><&3>NomBlox<&0><&rb> Kill Counter
  size: 54
  slots:
  - "[i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_EXIT]"
  - "[i@GUI_EMPTY] [] [] [] [] [] [] [] [i@GUI_EMPTY]"
  - "[i@GUI_EMPTY] [] [] [] [] [] [] [] [i@GUI_EMPTY]"
  - "[i@GUI_EMPTY] [] [] [] [] [] [] [] [i@GUI_EMPTY]"
  - "[i@GUI_EMPTY] [] [] [] [] [] [] [] [i@GUI_EMPTY]"
  - "[i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_EMPTY] [i@GUI_MENU]"