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

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

[复制链接]

8

主题

120

帖子

36

积分

Lv.2 石器学徒

UID
1711190
小麦
-3
金锭
329
下界之星
0
发表于 2019-8-12 12:55:32 | 显示全部楼层 |阅读模式
本帖最后由 一心意 于 2019-8-17 15:41 编辑

emmmm,ooc里的title指令我不知道咋用所以就只能发教程了...
图片:
I9H3KSNYZW75LE6D5[TJI_8.png
就长这样....
1.首先手动创建计分板:
/scoreboard objectives add miao dummy
/scoreboard objectives add miao1 stat.playOneMinute
/scoreboard objectives add fen dummy
/scoreboard objectives add shi dummy
/scoreboard objectives add tian dummy
2.放置一个循环命令方块【保持开启】:
scoreboard players add @a[score_miao1_min=20,score_miao1=10000] miao 1
3.放置一个连锁命令方块【保持开启】:
scoreboard players set @a[score_miao1_min=20,score_miao1=10000] miao1 0
4.放置一个连锁命令方块【保持开启】:
scoreboard players add @a[score_miao_min=60,score_miao=62] fen 1
5.放置一个连锁命令方块【保持开启】:
scoreboard players set @a[score_miao_min=60,score_miao=62] miao 0
6.放置一个连锁命令方块【保持开启】:
scoreboard players add @a[score_fen_min=60,score_fen=60] shi 1
7.放置一个连锁命令方块【保持开启】:
scoreboard players set @a[score_fen_min=60,score_fen=60] fen 0
8.放置一个连锁命令方块【保持开启】:
scoreboard players add @a[score_shi_min=24,score_shi=24] tian 1
9.放置一个连锁命令方块【保持开启】:
scoreboard players set @a[score_shi_min=24,score_shi=24] shi 0
10.放置一个循环命令方块【保持开启】:
/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"}]
若一开始秒表没反应请输入:
/scoreboard players set @a miao1 0
版本:1.12
OOC:
游客,如果您要查看本帖隐藏内容请回复


若以上ooc不行,请下载以下附件
游客,如果您要查看本帖隐藏内容请回复

感谢@点点滴滴呵呵 谢谢他的回复
而且我一直以来用的他的ooc生成器
大家也可以去看看,可以去支持支持他





3

主题

16

帖子

6

积分

Lv.1 新手木匠

UID
6057790
小麦
-1
金锭
13
下界之星
0
发表于 2019-8-12 15:15:05 来自手机 | 显示全部楼层
厉害

9

主题

101

帖子

36

积分

Lv.2 石器学徒

UID
5627379
小麦
0
金锭
141
下界之星
0
发表于 2019-8-12 19:04:24 | 显示全部楼层
本帖最后由 恒小子666 于 2019-8-12 19:05 编辑

看回复
恒小子是我,星龙也是我,星无聊龙_恒小子也是我.

0

主题

3

帖子

0

积分

Lv.1 新手木匠

UID
6782033
小麦
-1
金锭
1
下界之星
0
发表于 2019-8-12 21:38:06 来自手机 | 显示全部楼层
支持一下

1

主题

120

帖子

28

积分

Lv.2 石器学徒

UID
5717362
小麦
-4
金锭
66
下界之星
0
发表于 2019-8-12 23:33:40 | 显示全部楼层
cwc可以

1

主题

10

帖子

4

积分

Lv.1 新手木匠

UID
6956879
小麦
0
金锭
12
下界之星
0
发表于 2019-8-13 16:25:07 来自手机 | 显示全部楼层
谢谢您的分享

8

主题

120

帖子

36

积分

Lv.2 石器学徒

UID
1711190
小麦
-3
金锭
329
下界之星
0
 楼主| 发表于 2019-8-13 18:06:41 | 显示全部楼层

谢谢支持
更新速度极慢
一般不在线
嗯哼?

2

主题

17

帖子

6

积分

Lv.1 新手木匠

UID
6025170
小麦
0
金锭
29
下界之星
0
发表于 2019-8-13 19:02:56 来自手机 | 显示全部楼层

107

主题

5070

帖子

1646

积分

Lv.7 下界居民

UID
788587
小麦
270
金锭
1692
下界之星
0
发表于 2019-8-13 19:17:23 来自手机 | 显示全部楼层
我真的只是想看一下cwc

6

主题

19

帖子

10

积分

Lv.1 新手木匠

UID
5701700
小麦
-1
金锭
16
下界之星
0
发表于 2019-8-13 19:53:33 来自手机 | 显示全部楼层
不错不错,我瞅瞅

点评

谢谢支持  发表于 2019-8-14 11:20

68

主题

3万

帖子

8749

积分

Lv.9 终界行者

Lv.9 高压水泵

UID
876177
小麦
158
金锭
6403
下界之星
0

二周年纪念勋章

发表于 2019-8-14 20:46:04 | 显示全部楼层
已经做出来好几十天了……

6

主题

19

帖子

10

积分

Lv.1 新手木匠

UID
5701700
小麦
-1
金锭
16
下界之星
0
发表于 2019-8-14 21:09:23 来自手机 | 显示全部楼层
6ffewefgyygg

10

主题

123

帖子

44

积分

Lv.2 石器学徒

UID
128723
小麦
1
金锭
248
下界之星
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 ~ ~ ~"}]}

10

主题

123

帖子

44

积分

Lv.2 石器学徒

UID
128723
小麦
1
金锭
248
下界之星
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)

2

主题

11

帖子

5

积分

Lv.1 新手木匠

UID
6094674
小麦
0
金锭
12
下界之星
0
发表于 2019-8-16 18:40:43 来自手机 | 显示全部楼层
记不下来........
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

返回顶部