Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- execute @a ~ ~ ~ scoreboard players operation @s Exp -= @s GetExp
- execute @a[score_GetExp_min=1] ~ ~ ~ tellraw @s ["",{"text":"あなたが","color":"yellow"},{"score":{"name":"@s","objective":"GetExp"},"color":"light_green"},{"text":"経験値を入手しました","color":"yellow"}]
- execute @a[score_GetExp_min=1] ~ ~ ~ scoreboard players reset @s GetExp
- execute @a[score_Exp=0] ~ ~ ~ scoreboard players tag @s add LvUp
- execute @a[tag=LvUp] ~ ~ ~ scoreboard players add @s Lv 1
- execute @a[tag=LvUp] ~ ~ ~ scoreboard players operation @s ExpB = @s Lv
- execute @a[tag=LvUp] ~ ~ ~ scoreboard players operation @s value = @s ExpB
- execute @a[tag=LvUp] ~ ~ ~ scoreboard players operation @s value /= value value
- execute @a[tag=LvUp] ~ ~ ~ scoreboard players operation @s ExpB *= @s value
- execute @a[tag=LvUp] ~ ~ ~ scoreboard players operation @s Exp += @s ExpB
- execute @a[tag=LvUp,score_Lv_min=1,score_Lv=1] ~ ~ ~ scoreboard players add @s Exp 4
- execute @a[tag=LvUp,score_Lv_min=2,score_Lv=2] ~ ~ ~ scoreboard players add @s Exp 6
- 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"}]
- execute @a[tag=LvUp] ~ ~ ~ scoreboard players reset ExpB
- scoreboard players tag @a[tag=LvUp] remove LvUp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement