Intermediate · 2 blocks

Set daytime and clear weather

Use two connected Command Blocks. One press changes the time to day and clears the weather.

Choose in-game screen
Java Edition Bedrock Edition
Bedrock Edition (stable)

What you need

Before placing the blocks

  • 2 Command Blocks
  • 1 button
  • Place the second block in the direction of the first block’s arrow

Expected result

Test after setup

The time changes to day, followed by clear weather.

Placement direction

Make every block arrow point in the same direction

1 Impulse 2 Chain

Configure one block at a time

Open the game and match these values

The copy button copies only Command Input. Choose every other value in the Command Block screen.

1

Block 1 — set the time to day

The first block is Impulse and receives the button signal.

Command Block
Block 1 — set the time to day
Impulse
Unconditional
Needs Redstone
0
time set day
Previous Output
-
Block Type:
Impulse
Condition:
Unconditional
Redstone:
Needs Redstone
2

Block 2 — clear the weather

Place a Chain Block where the first arrow points and set it to Always Active.

Command Block
Block 2 — clear the weather
Chain
Unconditional
Always Active
0
weather clear
Previous Output
-
Block Type:
Chain
Condition:
Unconditional
Redstone:
Always Active

If it does not work

Check these four things first

  1. Cheats are enabled and you have Operator permission
  2. Needs Redstone or Always Active matches the example
  3. Chain Block arrows face the same direction and follow the previous block
  4. Read Previous Output to find the command that failed
Read the Command Block basics