请选择 进入手机版 | 继续访问电脑版
楼主: 一心意

[命令方块] 想要显示游戏在线时间吗?赶快来看看吧!{教程}{ooc}

[复制链接]

8

主题

104

帖子

36

积分

Lv.2 石器学徒

UID
128723
小麦
1
金锭
191
下界之星
0
发表于 2019-8-14 21:23:04 | 显示全部楼层
666

8

主题

104

帖子

36

积分

Lv.2 石器学徒

UID
128723
小麦
1
金锭
191
下界之星
0
发表于 2019-8-14 21:24:45 | 显示全部楼层
看你不会转义所以索性帮你制作了ooc233:/summon falling_block ~ ~1 ~ {Block:redstone_block,Time:1,Passengers:[{id:falling_block,Time:1,Block:activator_rail},{id:commandblock_minecart,Command:"gamerule commandBlockOutput false"},{id:commandblock_minecart,Command:"fill ~5 ~11 ~1 ~-1 ~5 ~-2 顶盖方块 0"},{id:commandblock_minecart,Command:"fill ~5 ~10 ~1 ~-1 ~6 ~-2 盒身方块 0"} ,{id:commandblock_minecart,Command:"setblock ~0 ~6 ~-1 minecraft:command_block 1 replace {auto:1,Command:\"scoreboard objectives add miao dummy\"}"} ,{id:commandblock_minecart,Command:"setblock ~0 ~7 ~-1 minecraft:command_block 1 replace {auto:1,Command:\"scoreboard objectives add miao1 stat.playOneMinute\"}"} ,{id:commandblock_minecart,Command:"setblock ~0 ~8 ~-1 minecraft:command_block 1 replace {auto:1,Command:\"scoreboard objectives add fen dummy\"}"} ,{id:commandblock_minecart,Command:"setblock ~0 ~9 ~-1 minecraft:command_block 1 replace {auto:1,Command:\"scoreboard objectives add shi dummy\"}"} ,{id:commandblock_minecart,Command:"setblock ~0 ~10 ~-1 minecraft:command_block 1 replace {auto:1,Command:\"scoreboard objectives add tian dummy\"}"} ,{id:commandblock_minecart,Command:"setblock ~0 ~6 ~0 repeating_command_block 1 replace {auto:1,Command:\"title @a actionbar [\\\"\\\",{\\\"text\\\":\\\"您的在线时间:\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"score\\\":{\\\"name\\\":\\\"*\\\",\\\"objective\\\":\\\"tian\\\"},\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\"天\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"score\\\":{\\\"name\\\":\\\"*\\\",\\\"objective\\\":\\\"shi\\\"},\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\"时\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"score\\\":{\\\"name\\\":\\\"*\\\",\\\"objective\\\":\\\"fen\\\"},\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\"分\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"score\\\":{\\\"name\\\":\\\"*\\\",\\\"objective\\\":\\\"miao\\\"},\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\"秒\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":\\\"true\\\"}]\"}"} ,{id:commandblock_minecart,Command:"setblock ~1 ~6 ~0 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a[score_miao1_min=20,score_miao1=10000] miao 1\"}"} ,{id:commandblock_minecart,Command:"setblock ~1 ~7 ~0 minecraft:chain_command_block 1 replace {auto:1,Command:\"scoreboard players set @a[score_miao1_min=20,score_miao1=10000] miao1 0\"}"} ,{id:commandblock_minecart,Command:"setblock ~2 ~6 ~0 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a[score_miao_min=60,score_miao=62] fen 1\"}"} ,{id:commandblock_minecart,Command:"setblock ~2 ~7 ~0 minecraft:chain_command_block 1 replace {auto:1,Command:\"scoreboard players set @a[score_miao_min=60,score_miao=62] miao 0\"}"} ,{id:commandblock_minecart,Command:"setblock ~3 ~6 ~0 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a[score_fen_min=60,score_fen=60] shi 1\"}"} ,{id:commandblock_minecart,Command:"setblock ~3 ~7 ~0 minecraft:chain_command_block 1 replace {auto:1,Command:\"scoreboard players set @a[score_fen_min=60,score_fen=60] fen 0\"}"} ,{id:commandblock_minecart,Command:"setblock ~4 ~6 ~0 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a[score_shi_min=24,score_shi=24] tian 1\"}"} ,{id:commandblock_minecart,Command:"setblock ~4 ~7 ~0 minecraft:chain_command_block 1 replace {auto:1,Command:\"scoreboard players set @a[score_shi_min=24,score_shi=24] shi 0\"}"},{id:commandblock_minecart,Command:"summon TNT ~ ~ ~"}]}

8

主题

104

帖子

36

积分

Lv.2 石器学徒

UID
128723
小麦
1
金锭
191
下界之星
0
发表于 2019-8-14 21:36:28 | 显示全部楼层
好吧上面那个有bug,我重发一个233:
/summon falling_block ~ ~1 ~ {Block:redstone_block,Time:1,Passengers:[{id:falling_block,Time:1,Block:activator_rail},{id:commandblock_minecart,Command:"gamerule commandBlockOutput false"},{id:commandblock_minecart,Command:"fill ~5 ~11 ~1 ~-1 ~5 ~-2 stone 6"},{id:commandblock_minecart,Command:"fill ~5 ~10 ~1 ~-1 ~6 ~-2 glass 0"} ,{id:commandblock_minecart,Command:"setblock ~0 ~6 ~-1 minecraft:command_block 1 replace {auto:1,Command:\"scoreboard objectives add miao dummy\"}"} ,{id:commandblock_minecart,Command:"setblock ~0 ~7 ~-1 minecraft:command_block 1 replace {auto:1,Command:\"scoreboard objectives add miao1 stat.playOneMinute\"}"} ,{id:commandblock_minecart,Command:"setblock ~0 ~8 ~-1 minecraft:command_block 1 replace {auto:1,Command:\"scoreboard objectives add fen dummy\"}"} ,{id:commandblock_minecart,Command:"setblock ~0 ~9 ~-1 minecraft:command_block 1 replace {auto:1,Command:\"scoreboard objectives add shi dummy\"}"} ,{id:commandblock_minecart,Command:"setblock ~0 ~10 ~-1 minecraft:command_block 1 replace {auto:1,Command:\"scoreboard objectives add tian dummy\"}"} ,{id:commandblock_minecart,Command:"setblock ~1 ~6 ~-1 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a miao 0\"}"} ,{id:commandblock_minecart,Command:"setblock ~1 ~7 ~-1 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a fen 0\"}"} ,{id:commandblock_minecart,Command:"setblock ~1 ~8 ~-1 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a shi 0\"}"} ,{id:commandblock_minecart,Command:"setblock ~1 ~9 ~-1 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a tian 0\"}"} ,{id:commandblock_minecart,Command:"setblock ~0 ~6 ~0 repeating_command_block 1 replace {auto:1,Command:\"title @a actionbar [\\\"\\\",{\\\"text\\\":\\\"您的在线时间:\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"score\\\":{\\\"name\\\":\\\"*\\\",\\\"objective\\\":\\\"tian\\\"},\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\"天\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"score\\\":{\\\"name\\\":\\\"*\\\",\\\"objective\\\":\\\"shi\\\"},\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\"时\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"score\\\":{\\\"name\\\":\\\"*\\\",\\\"objective\\\":\\\"fen\\\"},\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\"分\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"score\\\":{\\\"name\\\":\\\"*\\\",\\\"objective\\\":\\\"miao\\\"},\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\"秒\\\",\\\"color\\\":\\\"green\\\",\\\"bold\\\":\\\"true\\\"}]\"}"} ,{id:commandblock_minecart,Command:"setblock ~1 ~6 ~0 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a[score_miao1_min=20,score_miao1=10000] miao 1\"}"} ,{id:commandblock_minecart,Command:"setblock ~1 ~7 ~0 minecraft:chain_command_block 1 replace {auto:1,Command:\"scoreboard players set @a[score_miao1_min=20,score_miao1=10000] miao1 0\"}"} ,{id:commandblock_minecart,Command:"setblock ~2 ~6 ~0 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a[score_miao_min=60,score_miao=62] fen 1\"}"} ,{id:commandblock_minecart,Command:"setblock ~2 ~7 ~0 minecraft:chain_command_block 1 replace {auto:1,Command:\"scoreboard players set @a[score_miao_min=60,score_miao=62] miao 0\"}"} ,{id:commandblock_minecart,Command:"setblock ~3 ~6 ~0 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a[score_fen_min=60,score_fen=60] shi 1\"}"} ,{id:commandblock_minecart,Command:"setblock ~3 ~7 ~0 minecraft:chain_command_block 1 replace {auto:1,Command:\"scoreboard players set @a[score_fen_min=60,score_fen=60] fen 0\"}"} ,{id:commandblock_minecart,Command:"setblock ~4 ~6 ~0 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a[score_shi_min=24,score_shi=24] tian 1\"}"} ,{id:commandblock_minecart,Command:"setblock ~4 ~7 ~0 minecraft:chain_command_block 1 replace {auto:1,Command:\"scoreboard players set @a[score_shi_min=24,score_shi=24] shi 0\"}"},{id:commandblock_minecart,Command:"summon TNT ~ ~ ~"}]}
(我感觉我是来刷存在感的233)

0

主题

6

帖子

2

积分

Lv.1 新手木匠

UID
6094674
小麦
0
金锭
8
下界之星
0
发表于 2019-8-16 18:40:43 来自手机 | 显示全部楼层
记不下来........

6

主题

110

帖子

31

积分

Lv.2 石器学徒

UID
1711190
小麦
-3
金锭
313
下界之星
0
 楼主| 发表于 2019-8-17 15:31:56 | 显示全部楼层
点点滴滴呵呵 发表于 2019-8-14 21:36
好吧上面那个有bug,我重发一个233:
/summon falling_block ~ ~1 ~ {Block:redstone_block,Time:1,Passen ...

感谢大佬

0

主题

18

帖子

5

积分

Lv.1 新手木匠

UID
303593
小麦
0
金锭
-1
下界之星
0
发表于 2019-8-18 09:11:05 | 显示全部楼层
owo

1

主题

17

帖子

5

积分

Lv.1 新手木匠

UID
6998171
小麦
0
金锭
10
下界之星
0
发表于 2019-8-20 13:25:43 来自手机 | 显示全部楼层
...

6

主题

78

帖子

25

积分

Lv.2 石器学徒

UID
6936424
小麦
-1
金锭
65
下界之星
0
发表于 2019-8-20 18:30:12 | 显示全部楼层
eee

59

主题

1050

帖子

618

积分

Lv.6 附魔大师

UID
55896
小麦
291
金锭
645
下界之星
0
发表于 2019-8-20 18:40:17 | 显示全部楼层
@点点滴滴呵呵 围观毕竟我也是其中一员作为程序员为什么要帮助人

0

主题

9

帖子

2

积分

Lv.1 新手木匠

UID
6806963
小麦
0
金锭
0
下界之星
0
发表于 2019-8-21 18:28:28 | 显示全部楼层
膜拜大佬,很实用

0

主题

5

帖子

1

积分

Lv.1 新手木匠

UID
5580174
小麦
0
金锭
22
下界之星
0
发表于 2019-8-21 18:51:23 来自手机 | 显示全部楼层
厉害

1

主题

17

帖子

5

积分

Lv.1 新手木匠

UID
6998171
小麦
0
金锭
10
下界之星
0
发表于 2019-8-22 09:12:15 来自手机 | 显示全部楼层
那个,为什么我这个秒不加到分里去...

1

主题

19

帖子

6

积分

Lv.1 新手木匠

UID
5359503
小麦
0
金锭
1
下界之星
0
发表于 2019-8-22 10:26:10 | 显示全部楼层
nba

6

主题

110

帖子

31

积分

Lv.2 石器学徒

UID
1711190
小麦
-3
金锭
313
下界之星
0
 楼主| 发表于 2019-8-22 17:45:37 | 显示全部楼层
MC玄神 发表于 2019-8-22 09:12
那个,为什么我这个秒不加到分里去...

emmm?

0

主题

2

帖子

1

积分

Lv.1 新手木匠

UID
7017523
小麦
0
金锭
1
下界之星
0
发表于 2019-8-22 19:06:51 | 显示全部楼层
厉害
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

返回顶部