《我的世界》攻击击杀提示怎么开呢,玩家们是不是很想知道呢,下面小编为玩家们带来了我的世界攻击击杀提示开启方法,希望对玩家们有所帮助,一起来看看吧。
我的世界攻击击杀提示开启方法
建立计分板
/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