Well hello there i am WiebeHero and i am in need of help right now i have been trying stuff with nbt but it hasnt been working out so well im afraid...
1.The {_wantedItem} isnt really working out well because it doesnt apply the nbt to the item
2. The next issue is that i have been trying to add some kind of like armor xp to the armor but i cant really figure it out mind helping me? (The problem is it doesnt ad the {_o})
Thanks~
1.The {_wantedItem} isnt really working out well because it doesnt apply the nbt to the item
2. The next issue is that i have been trying to add some kind of like armor xp to the armor but i cant really figure it out mind helping me? (The problem is it doesnt ad the {_o})
Thanks~
Code:
on any movement:
set {_wantedItem} to unbreakable golden helmet with nbt "{AttributeModifiers:[{AttributeName:""generic.armor"",Name:""armor"",Amount:0.40,Operation:0,Slot:""head"",UUIDLeast:1,UUIDMost:1}]}" named "&7Divine Helmet [Lv 1]" with lore "&7---------------------||&7Armor Defense: 0.50||&7---------------------||&7Upgrade Progress: 0 / 500||&7Rarity: Common"
if {MSpeedL.%player%} is 1:
add "{AttributeModifiers:[{AttributeName:""generic.armor"",Name:""armor"",Amount:0.50,Operation:0,Slot:""head"",UUIDLeast:1,UUIDMost:1}]}" to nbt of {_wantedItem}
on damage:
victim is a player
victim's helmet is golden helmet
name of victim's helmet contains "&7Divine Helmet "
lore of victim's helmet contains "&7Rarity: Common"
lore of victim's helmet contains "&7Upgrade Progress: "
set {_I::*} to lore of victim's helmet split at "||"
loop {_I::*}:
if "%loop-value%" contains "&7Upgrade Progress: ":
set {_t} to loop-index parsed as integer
stop loop
set {_I} to "%uncolored {_I::%{_t}%}%"
replace every "Upgrade Progress: " with "" in {_I}
replace every " " with "" in {_I}
set {_A::*} to {_I} split at "/"
set {_O} to {_A::1} parsed as number
set {_P} to {_A::2} parsed as number
if damage is more than 0:
add 2 to {_o}
if damage is more than 2.5:
add 4 to {_o}
if damage is more than 5:
add 6 to {_o}
if damage is more than 7.5:
add 8 to {_o}
if damage is more than 10:
add 10 to {_o}
if damage is more than 12.5:
add 12 to {_o}
if damage is more than 15:
add 14 to {_o}
if damage is more than 17.5:
add 16 to {_o}
if damage is more than 20:
add 18 to {_o}
if damage is more than 22.5:
add 20 to {_o}
if damage is more than 25:
add 22 to {_o}
if damage is more than 27.5:
add 24 to {_o}
if damage is more than 30:
add 26 to {_o}
if damage is more than 32.5:
add 28 to {_o}
if damage is more than 35:
add 30 to {_o}
if damage is more than 37.5:
add 32 to {_o}
if damage is more than 40:
add 34 to {_o}
if damage is more than 42.5:
add 36 to {_o}
if damage is more than 45:
add 38 to {_o}
if damage is more than 47.5:
add 40 to {_o}
if damage is more than 50:
add 42 to {_o}
if damage is more than 52.5:
add 44 to {_o}
if damage is more than 55:
add 46 to {_o}
if damage is more than 57.5:
add 48 to {_o}
if damage is more than 60:
add 50 to {_o}
if damage is more than 62.5:
add 52 to {_o}
if damage is more than 65:
add 54 to {_o}
if damage is more than 67.5:
add 56 to {_o}
if damage is more than 70:
add 58 to {_o}
if {_o} is more than or equal to {_p}:
send "&aYoure armor just &eEvolved!"
if {_p} is 500:
set helmet of victim to air
set {_wanteditem} to unbreakable golden helmet with nbt "{AttributeModifiers:[{AttributeName:""generic.armor"",Name:""armor"",Amount:0.50,Operation:0,Slot:""head"",UUIDLeast:1,UUIDMost:1}]}" named "&7Divine Helmet [Lv 1]" with lore "&7---------------------||&7Armor Defense: 0.50||&7---------------------||&7Upgrade Progress: 0 / 1000||&7Rarity: Common"
enchant {_wanteditem} with protection 1
equip victim with {_wanteditem}