我的世界提示怎么弄 我的世界攻击击杀提示开启方法
建立计分板:
/scoreboard objectives add damageDealt stat.damageDealt
单次执行:
/scoreboard players set _DValue damage 10
基础部分
execute @a[score_damageDealt_min=1] ~ ~ ~ /scoreboard players operation @p[r=0] damage = @p[r=0] damageDealt
将玩家的damageDealt分数赋值给玩家的damage
execute @a[score_damageDealt_min=1] ~ ~ ~ /scoreboard players operation @p[r=0] damage /= _DValue damage
将玩家的damage分数除以10,我们设置过,_DValue的damage分数为10,让玩家的分数除_DValue的分数就是除以10
execute @a[score_KillPlayer_min=1] ~ ~ ~ /execute @a[score_death_min=1] ~ ~ ~ /title @a[score_KillPlayer_min=1] actionbar ["u00a7cu00a7l杀死了 ",{"selector":"@a[score_death_min=1]","color":"yellow","bold":"true"}]
如果能检测到KillPlayer大于等于1的玩家,并且能检测到有death大于等于1的玩家,就提示KillPlayer大于等于1的玩家杀死了death大于等于1的玩家。
execute @a[score_death_min=1] ~ ~ ~ execute @a[score_KillPlayer_min=1] ~ ~ ~ /playsound minecraft:entity.player.levelup player @a[score_KillPlayer_min=1] ~ ~ ~ 1 1.25 1