BenTri

how to show the time in Minecraft

Jan 7th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. Only do once
  2. /scoreboard objectives add Time dummy
  3. /scoreboard objectives setdisplay sidebar Time
  4. /scoreboard players set @a Time 1
  5.  
  6. Always active
  7.  
  8. time query daytime
  9.  
  10. Put the following in the a command block directly below the first one
  11. /stats block ~ ~1 ~ set QueryResult @a Time
  12.  
  13. /scoreboard players set @a[score_Time_min=24000] Time 0
  14.  
  15.  
  16.  
  17. Or you can use the one command
  18.  
  19. 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