Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Only do once
- /scoreboard objectives add Time dummy
- /scoreboard objectives setdisplay sidebar Time
- /scoreboard players set @a Time 1
- Always active
- time query daytime
- Put the following in the a command block directly below the first one
- /stats block ~ ~1 ~ set QueryResult @a Time
- /scoreboard players set @a[score_Time_min=24000] Time 0
- Or you can use the one command
- summon FallingSand ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:FallingSand,Block:redstone_block,Time:1,Passengers:[{id:FallingSand,Block:activator_rail,Time:1,Passengers:[{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false},{id:MinecartCommandBlock,Command:"fill ~-1 ~-3 ~-2 ~1 ~-1 ~-6 stained_hardened_clay 13 hollow"},{id:MinecartCommandBlock,Command:"fill ~-1 ~-2 ~-2 ~1 ~-2 ~-6 stained_glass 1 replace stained_hardened_clay"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add Time dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives setdisplay sidebar Time"},{id:MinecartCommandBlock,Command:"/scoreboard players set @a Time 1"},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~-1 wall_sign 3 replace {Text2:"{\\\"text\\\":\\\"Remove\\\",\\\"color\\\":\\\"black\\\"}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~-2 ~-1 ~-5 ~1 ~1 ~-1 air\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~-5 chain_command_block 2 replace {auto:1,Command:"/scoreboard players set @a[score_Time_min=24000] Time 0"}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~-4 chain_command_block 2 replace {auto:1,Command:"/stats block ~ ~ ~1 set QueryResult @a Time"}},{id:MinecartCommandBlock,Command:setblock ~ ~-2 ~-3 repeating_command_block 2 replace {auto:1,Command:"time query daytime"}},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}
Advertisement
Add Comment
Please, Sign In to add comment