View difference between Paste ID: 18Evc4Rw and AtznKq7H
SHOW: | | - or go back to the newest paste.
1
execute @a ~ ~ ~ scoreboard players operation @s Exp -= @s GetExp
2-
execute @a[score_Lv_min=0,score_Lv=0] ~ ~ ~ /scoreboard players add @s Lv 1
2+
3-
execute @a[score_Lv_min=1,score_Lv=1] ~ ~ ~ /scoreboard players add @s Exp 4
3+
4
execute @a[score_Exp=0] ~ ~ ~ scoreboard players tag @s add LvUp
5
execute @a[tag=LvUp] ~ ~ ~ scoreboard players add @s Lv 1
6
execute @a[tag=LvUp] ~ ~ ~ scoreboard players operation @s ExpB = @s Lv
7
execute @a[tag=LvUp] ~ ~ ~ scoreboard players operation @s value = @s ExpB
8
execute @a[tag=LvUp] ~ ~ ~ scoreboard players operation @s value /= value value
9
execute @a[tag=LvUp] ~ ~ ~ scoreboard players operation @s ExpB *= @s value
10
execute @a[tag=LvUp] ~ ~ ~ scoreboard players operation @s Exp += @s ExpB
11
execute @a[tag=LvUp,score_Lv_min=1,score_Lv=1] ~ ~ ~ scoreboard players add @s Exp 4
12
execute @a[tag=LvUp,score_Lv_min=2,score_Lv=2] ~ ~ ~ scoreboard players add @s Exp 6
13
execute @a[tag=LvUp] ~ ~ ~ tellraw @a ["",{"selector":"@s","color":"yellow"},{"text":"さんが","color":"dark_green"},{"score":{"name":"@s","objective":"Lv"},"color":"yellow"},{"text":"にレベルアップしました!","color":"dark_green"}]
14
execute @a[tag=LvUp] ~ ~ ~ scoreboard players reset ExpB
15
scoreboard players tag @a[tag=LvUp] remove LvUp