Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. execute @a ~ ~ ~ scoreboard players operation @s Exp -= @s GetExp
  2. execute @a[score_GetExp_min=1] ~ ~ ~ tellraw @s ["",{"text":"あなたが","color":"yellow"},{"score":{"name":"@s","objective":"GetExp"},"color":"light_green"},{"text":"経験値を入手しました","color":"yellow"}]
  3. execute @a[score_GetExp_min=1] ~ ~ ~ scoreboard players reset @s GetExp
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement