点击进入我的索引贴
Hi我是末影矿工,今天我将教你如何使用命令方块进行能量护盾
------------------------------------------------------<分界线>------------------------------------------------------
首先,我们创建了一个damageTaken ES和dummy tamer
- /scoreboard objectives add ES stat.damageTaken
- /scoreboard objectives add timer dummy
接下来我们用高频红石连接所有的命令方块
- scoreboard players set ES 0
- scoreboard players set@a[score_ES_min=1] tamer 200
------------------------------------------------------<分界线>------------------------------------------------------
- scoreboard players remove @a[score_tamer_min=1] tamer 1
------------------------------------------------------<分界线>------------------------------------------------------
- effect @a[score_tamer=20,score_tamer_min=16] 22 1 9999999
复制代码
- effect @a[score_tamer=16,score_tamer_min=12] 22 1 9999999
复制代码
- effect @a[score_tamer=12,score_tamer_min=8] 22 1 9999999
- effect @a[score_tamer=8,score_tamer_min=4] 22 1 9999999
20≥tamer≥16,你将获得2的护盾,
16≥tamer≥12,你将获得4的护盾,
12≥tamer≥8,你将获得6的护盾,
8≥tamer≥4,你将获得8的护盾。
------------------------------------------------------<分界线>------------------------------------------------------
- effect @a[score_tamer=0] 22 9999999
------------------------------------------------------<分界线>------------------------------------------------------
That is about it,Thanks for Watching.