一心意 发表于 2019-8-12 12:55:32

想要显示游戏在线时间吗?赶快来看看吧!{教程}{ooc}

本帖最后由 一心意 于 2019-8-17 15:41 编辑

emmmm,ooc里的title指令我不知道咋用所以就只能发教程了...
图片:

就长这样....
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 miao 1
3.放置一个连锁命令方块【保持开启】:
scoreboard players set @a miao1 0
4.放置一个连锁命令方块【保持开启】:
scoreboard players add @a fen 1
5.放置一个连锁命令方块【保持开启】:
scoreboard players set @a miao 0
6.放置一个连锁命令方块【保持开启】:
scoreboard players add @a shi 1
7.放置一个连锁命令方块【保持开启】:
scoreboard players set @a fen 0
8.放置一个连锁命令方块【保持开启】:
scoreboard players add @a tian 1
9.放置一个连锁命令方块【保持开启】:
scoreboard players set @a 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:
/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 miao 1\"}"} ,{id:commandblock_minecart,Command:"setblock ~1 ~7 ~0 minecraft:chain_command_block 1 replace {auto:1,Command:\"scoreboard players set @a miao1 0\"}"} ,{id:commandblock_minecart,Command:"setblock ~2 ~6 ~0 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a fen 1\"}"} ,{id:commandblock_minecart,Command:"setblock ~2 ~7 ~0 minecraft:chain_command_block 1 replace {auto:1,Command:\"scoreboard players set @a miao 0\"}"} ,{id:commandblock_minecart,Command:"setblock ~3 ~6 ~0 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a shi 1\"}"} ,{id:commandblock_minecart,Command:"setblock ~3 ~7 ~0 minecraft:chain_command_block 1 replace {auto:1,Command:\"scoreboard players set @a fen 0\"}"} ,{id:commandblock_minecart,Command:"setblock ~4 ~6 ~0 repeating_command_block 1 replace {auto:1,Command:\"scoreboard players add @a tian 1\"}"} ,{id:commandblock_minecart,Command:"setblock ~4 ~7 ~0 minecraft:chain_command_block 1 replace {auto:1,Command:\"scoreboard players set @a shi 0\"}"},{id:commandblock_minecart,Command:"summon TNT ~ ~ ~"}]}

若以上ooc不行,请下载以下附件

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





红石awa 发表于 2019-8-12 15:15:05

厉害

恒小子666 发表于 2019-8-12 19:04:24

本帖最后由 恒小子666 于 2019-8-12 19:05 编辑

看回复

skycyx 发表于 2019-8-12 21:38:06

支持一下

KMINKBO 发表于 2019-8-12 23:33:40

cwc可以

_久九 发表于 2019-8-13 16:25:07

谢谢您的分享

一心意 发表于 2019-8-13 18:06:41

_久九 发表于 2019-8-13 16:25
谢谢您的分享

谢谢支持

pipiliang 发表于 2019-8-13 19:02:56


神户大馒头 发表于 2019-8-13 19:17:23

我真的只是想看一下cwc

筱轩aaa 发表于 2019-8-13 19:53:33

不错不错,我瞅瞅

筱轩aaa 发表于 2019-8-14 18:55:05

牛逼牛逼

gdfgdgfdg 发表于 2019-8-14 19:05:27

NB

神奇的小天828 发表于 2019-8-14 19:20:52

1231

坑触可 发表于 2019-8-14 20:46:04

已经做出来好几十天了……

筱轩aaa 发表于 2019-8-14 21:09:23

6ffewefgyygg
页: [1] 2 3 4
查看完整版本: 想要显示游戏在线时间吗?赶快来看看吧!{教程}{ooc}