Paste #33865: Untitled Paste

Date: 2016/05/30 03:03:30 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


KillCounterCommand:
  type: command
  debug: false
  name: killcounter
  aliases:
  - counter
  script:
  - if <yaml[<player.uuid>].contains[Inventory_KillCounter].not||false> {
      - yaml id:<player.uuid> set INVENTORY_KillCounter:<in@KillCounter_inv>
      }
  - foreach <yaml[<player.uuid>].read[kills.monsters].as_list||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:<MY_INVENTORY_.first_empty>
  - inventory open d:<yaml[<player.uuid>].read[INVENTORY_KillCounter]>