请选择 进入手机版 | 继续访问电脑版
查看: 188|回复: 5

[命令方块] 教你做1.18原版血量显示(目前超过20血量的生物有bug)

[复制链接]

2

主题

9

帖子

4

积分

Lv.1 新手木匠

UID
6319373
小麦
0
金锭
41
下界之星
0
发表于 2019-9-21 20:10:03 来自手机 | 显示全部楼层 |阅读模式
在玩我的世界的时候,你是不是总是在存档里加血量显示模组?其实只需要指令,就能原版里也能玩血量显示。只需要在命令方块里输入一条指令(评论区发)

2

主题

9

帖子

4

积分

Lv.1 新手木匠

UID
6319373
小麦
0
金锭
41
下界之星
0
 楼主| 发表于 2019-9-21 20:10:49 来自手机 | 显示全部楼层
/summon FallingSand ~ ~1 ~ {Block:redstone_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:fill ~ ~ ~1 ~ ~-22 ~1 redstone_block},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:fill ~ ~2 ~ ~ ~-23 ~1 air},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:summon FallingSand ~3 ~7 ~ {Block:command_block,Time:1,TileEntityData:{Command:fill ~ ~ ~-1 ~6 ~ ~1 quartz_block}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard objectives add healthbar dummy healthbar},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:summon FallingSand ~4 ~-15 ~-1 {Block:quartz_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/entitydata @e[score_healthbar_min=14,score_healthbar=14] {CustomName:""}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 12 {Health:12s}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 0 {Health:0s}},Time:1,}}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:summon FallingSand ~5 ~-14 ~-1 {Block:quartz_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/entitydata @e[score_healthbar_min=10,score_healthbar=10] {CustomName:""}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 14 {Health:14s}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 2 {Health:2s}},Time:1,}}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:summon FallingSand ~6 ~-13 ~-1 {Block:quartz_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/entitydata @e[score_healthbar_min=6,score_healthbar=6] {CustomName:""}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 16 {Health:16s}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 4 {Health:4s}},Time:1,}}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:summon FallingSand ~7 ~-12 ~-1 {Block:quartz_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/entitydata @e[score_healthbar_min=2,score_healthbar=2] {CustomName:""}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 18 {Health:18s}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 6 {Health:6s}},Time:1,}}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:summon FallingSand ~8 ~-11 ~-1 {Block:quartz_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 20 {Health:20s}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 8 {Health:8s}},Time:1,}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:summon FallingSand ~9 ~-10 ~-1 {Block:quartz_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/entitydata @e[score_healthbar_min=18,score_healthbar=18] {CustomName:""}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 10 {Health:10s}},Time:1,}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:summon FallingSand ~4 ~-10 ~1 {Block:quartz_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/entitydata @e[score_healthbar_min=14,score_healthbar=14] {CustomName:""}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 12 {Health:13s}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 1 {Health:1s}},Time:1,}}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:summon FallingSand ~5 ~-9 ~1 {Block:quartz_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/entitydata @e[score_healthbar_min=8,score_healthbar=8] {CustomName:""}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 14 {Health:15s}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 2 {Health:3s}},Time:1,}}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:summon FallingSand ~6 ~-8 ~1 {Block:quartz_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/entitydata @e[score_healthbar_min=4,score_healthbar=4] {CustomName:""}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 16 {Health:17s}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 4 {Health:5s}},Time:1,}}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:summon FallingSand ~7 ~-7 ~1 {Block:quartz_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/entitydata @e[score_healthbar_min=0,score_healthbar=0] {CustomName:""}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 18 {Health:19s}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 6 {Health:7s}},Time:1,}}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:summon FallingSand ~8 ~-6 ~1 {Block:quartz_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/entitydata @e[score_healthbar_min=20,score_healthbar=20] {CustomName:""}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 8 {Health:9s}},Time:1,}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:summon FallingSand ~9 ~-5 ~1 {Block:quartz_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/entitydata @e[score_healthbar_min=16,score_healthbar=16] {CustomName:""}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:scoreboard players set @e healthbar 10 {Health:11s}},Time:1,}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:gamerule commandBlockOutput false},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:fill ~3 ~-4 ~ ~9 ~-2 ~ redstone_block},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:setblock ~3 ~-3 ~-1 command_block 0 replace {Command:fill ~ ~ ~1 ~6 ~2 ~1 stone 0 replace redstone_block}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:setblock ~3 ~-2 ~1 command_block 0 replace {Command:fill ~ ~ ~-1 ~6 ~2 ~-1 redstone_block 0 replace stone}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:fill ~2 ~-1 ~-2 ~10 ~1 ~2 stained_glass 0 replace quartz_block},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:fill ~3 ~ ~-1 ~9 ~5 ~1 air 0 replace quartz_block},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:fill ~2 ~ ~-2 ~10 ~4 ~2 quartz_block},Time:1,Riding:{id:FallingSand,Block:stone,Time:1}}}}}}}}}}}}}}}}}}}}}}}}}

61

主题

3万

帖子

8097

积分

Lv.9 终界行者

Lv.9 高压水泵

UID
876177
小麦
39
金锭
4939
下界之星
0

二周年纪念勋章

发表于 2019-9-21 20:55:00 | 显示全部楼层
1.18?
1.8吧?
B站 主页mc.netease.com/?876177

5

主题

51

帖子

52

积分

Lv.3 矿物能手

UID
6341066
小麦
34
金锭
149
下界之星
0
发表于 2019-9-22 02:04:14 来自手机 | 显示全部楼层
讲一下原理qwq

68

主题

3470

帖子

1490

积分

Lv.7 下界居民

UID
42484
小麦
546
金锭
2043
下界之星
0

二周年纪念勋章一周年纪念勋章内测精英勋章

发表于 2019-9-22 09:26:09 | 显示全部楼层
1.18

2

主题

9

帖子

4

积分

Lv.1 新手木匠

UID
6319373
小麦
0
金锭
41
下界之星
0
 楼主| 发表于 2019-9-22 10:32:49 来自手机 | 显示全部楼层

它主要是生成一堆主要操作的命令方块,命令方块会检测生物血量,并给它命名
(已知bug有一些,如末影人那些血量显示还是10颗心,凋零也一样)

2

主题

9

帖子

4

积分

Lv.1 新手木匠

UID
6319373
小麦
0
金锭
41
下界之星
0
 楼主| 发表于 2019-9-22 10:34:27 来自手机
我靠,打错字了
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

返回顶部