服務(wù)器,抽獎(jiǎng)寶箱

execute @a[tag=戰(zhàn)斗開(kāi)始] ~ ~ ~ scoreboard players random @s 暴擊率 1 100
execute @a[tag=戰(zhàn)斗開(kāi)始] ~ ~ ~ scoreboard players operation @s 暴擊率 -= @s 暴擊
execute @a[tag=戰(zhàn)斗開(kāi)始] ~ ~ ~ scoreboard players operation @e[r=10,c=1,tag=怪物,tag=被打] 傷害 += @s 攻擊力
execute @a[tag=戰(zhàn)斗開(kāi)始,scores={暴擊率=..0}] ~ ~ ~ scoreboard players operation @s 暴傷2 = @s 暴傷
execute @a[tag=戰(zhàn)斗開(kāi)始,scores={暴擊率=..0}] ~ ~ ~ scoreboard players operation @s 暴傷2 /= 百 百
execute @a[tag=戰(zhàn)斗開(kāi)始,scores={暴擊率=..0}] ~ ~ ~ scoreboard players operation @e[r=10,c=1,tag=怪物,tag=被打] 傷害 *= @s 暴傷2
execute @e[scores={傷害=1..},c=1,tag=怪物,tag=被打] ~~~ scoreboard players operation @s 生命 -= @s 傷害
execute @e[tag=怪物,tag=被打,scores={生命=..0}] ~~~ scoreboard players set @s 生命 0
execute @e[tag=怪物,tag=被打,c=1] ~ ~ ~ titleraw @a[r=10] title {"rawtext":[{"text":"§r"}]}
execute @a[tag=戰(zhàn)斗開(kāi)始,scores={暴擊率=!..0}] ~~~ execute @e[tag=怪物,tag=被打,c=1] ~ ~ ~ titleraw @a[r=10] subtitle {"rawtext":[{"text":"§r"},{"selector":"@s"},{"text":"§r"},{"text":"\n§7??命中??"},{"text":"\n§c<血量>:§c"},{"score":{"name":"@s","objective":"生命"}},{"text":"§a/傷害-"},{"score":{"name":"@s","objective":"傷害"}}]}
execute @a[tag=戰(zhàn)斗開(kāi)始,scores={暴擊率=..0}] ~~~ execute @e[tag=怪物,tag=被打,c=1] ~ ~ ~ titleraw @a[r=10] subtitle {"rawtext":[{"text":"§r"},{"selector":"@s"},{"text":"§r"},{"text":"\n§6??暴擊??"},{"text":"\n§c<血量>:§c"},{"score":{"name":"@s","objective":"生命"}},{"text":"§a/傷害-"},{"score":{"name":"@s","objective":"傷害"}}]}
tag @a remove 戰(zhàn)斗開(kāi)始
tag @e remove 被打