- mcmonkey studios -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2018/03/23 10:36:53 UTC-07:00
ByMwthorn
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
4700
ItemLevelUp_Events:
    type: world
    events:
        on player breaks block:
        - define item <player.item_in_hand>
        - if <def[item].material.name.contains[PICKAXE].not> {
            - queue clear
        }
        - define exp <def[item].nbt[Denizen.ItemXP].add_int[1]||1>
        - define total <s@ItemLevelUp_Data.yaml_key[config.total]>
        - if <def[EXP]> >= <def[total]> {
            - execute as_server "case givekey Dwax0 energy"
            - define exp 0
        }
        - nbt <def[item]> "Denizen.ItemXP:<def[exp]>" "save:edited"
        - define progress <s@ItemLevelUp_Data.yaml_key[config.progress.<def[exp].div[<def[total]>].mul[20].round>].parse_color>
        - define lore "<&b><&l>Energy Pickaxe|<def[progress]>|<&8>(<&f><def[exp]> <&8><&7><def[total]><&8>)"
        - adjust <entry[edited].new_item> "lore:<def[lore]>" save:item
        - inventory set "slot:<player.item_in_hand.slot>" "o:<entry[item].result>" 

ItemLevelUp_Data:
    type: yaml data
    config:
        total: 1000
        progress:
            "0""&c▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌"
            "1""&a▌&c▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌"
            "2""&a▌▌&c▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌"
            "3""&a▌▌▌&c▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌"
            "4""&a▌▌▌▌&c▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌"
            "5""&a▌▌▌▌▌&c▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌"
            "6""&a▌▌▌▌▌▌&c▌▌▌▌▌▌▌▌▌▌▌▌▌▌"
            "7""&a▌▌▌▌▌▌▌&c▌▌▌▌▌▌▌▌▌▌▌▌▌"
            "8""&a▌▌▌▌▌▌▌▌&c▌▌▌▌▌▌▌▌▌▌▌▌"
            "9""&a▌▌▌▌▌▌▌▌▌&c▌▌▌▌▌▌▌▌▌▌▌"
            "10""&a▌▌▌▌▌▌▌▌▌&c▌▌▌▌▌▌▌▌▌▌▌"
            "11""&a▌▌▌▌▌▌▌▌▌▌&c▌▌▌▌▌▌▌▌▌▌"
            "12""&a▌▌▌▌▌▌▌▌▌▌▌&c▌▌▌▌▌▌▌▌▌"
            "13""&a▌▌▌▌▌▌▌▌▌▌▌▌&c▌▌▌▌▌▌▌▌"
            "14""&a▌▌▌▌▌▌▌▌▌▌▌▌▌&c▌▌▌▌▌▌▌"
            "15""&a▌▌▌▌▌▌▌▌▌▌▌▌▌▌&c▌▌▌▌▌▌"
            "16""&a▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌&c▌▌▌▌▌"
            "17""&a▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌&c▌▌▌▌"
            "18""&a▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌&c▌▌"
            "19""&a▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌&c▌"
            "20""&a▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌"



RawRaw



Pastes made: 52680