Date: 2019/02/10 00:36:14 UTC-08:00
Type: Denizen Script
on powershopbuyexplosiveonemore command:
- if <c.args.get[1]> != isgoodandcorrect queue clear
- determine passively cancelled
- narrate "<&0>[<&a><&l>GodShop<&0>]<&7><&l>:<&r> Attempts to buy explosive upgrade!"
- if <player.item_in_hand.contains[Explosive V]>:
- narrate "<&0>[<&a><&l>PowerShop<&0>]<&7><&l>:<&r> You already got this enchantment lv 5 (max) on this item!"
- if <player.item_in_hand.contains[Explosive V]>:
- queue clear
- if <player.xp.level> >= 30 {
- wait 1s
- narrate "<&0>[<&a><&l>GodShop<&0>]<&7><&l>:<&r> Xp confirmed..."
- experience take level 30
- wait 1s
- narrate "<&0>[<&a><&l>GodShop<&0>]<&7><&l>:<&r> Here you are!"
- execute as_op "ce enchant explosive 1" silent
} else {
- narrate "<&0>[<&a><&l>GodShop<&0>]<&7><&l>:<&r> You doesnt have 30 xp levels!"
- narrate "<&0>[<&a><&l>GodShop<&0>]<&7><&l>:<&r> You only got <&a>level <player.xp.level>!"
}