Paste #35034: Untitled Paste

Date: 2016/07/26 21:17:11 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


display_MainMenu:
    - define GUI 'KillStats_MainMenu_<player.name>'
    - note 'in@generic[title=<&1><def[1].name.substring[1,13]> Kill Stats;size=54]' 'as:%GUI%'
    - foreach <script.list_keys[config]> {
      - define head '<script.yaml_key[config.%value%.head].as_item.simple>'
      - if %head% == i@human_skull {
        - define head 'i@human_skull[skull_skin=<script.yaml_key[config.%value%.skin.uuid]>|<script.yaml_key[config.%value%.skin.texture]>]'
        }
      - define pad '<el@val[20].sub[<def[value].length>].div[2].as_int>'
#      - define lore '<&f>|<&f.pad_right[3]>Kills<&co.pad_right[3]><&7><def[1].statistic[kill_entity].qualifier[e@%value%].as_int||0>|<&f>'
      - define lore '<&f>|<&f.pad_right[3]>Kills<&co.pad_right[3]><&7><def[1].flag[kills.%value%].as_int||0>|<&f>'
      - adjust %head% 'display_name:<&6.pad_right[%pad%].with[-]>-<&pipe>  <&f><def[value].replace[_].with[ ].to_titlecase>  <&6><&pipe.pad_right[%pad%].with[-]>' save:icon
      - adjust <entry[icon].result> 'lore:%lore%' save:item
      - inventory add 'd:in@%GUI%' 'o:<entry[item].result>' 'slot:%loop_index%'
      }
    - inventory open 'd:in@%GUI%'