Intermediate · 1 block

Automatic safe-zone message

Bedrock-only use case: show an action-bar message to every player who enters a 6-block radius around a Repeat Command Block.

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

What you need

Before placing the blocks

  • 1 Command Block
  • Place the block at the center of the detection area
  • Keep the area loaded while the system is in use

Expected result

Test after setup

Players in the zone see “Safe zone” above the hotbar every 2 seconds; the message stops refreshing after they leave.

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

Zone detector — show the action bar

Set the Repeat Block to Always Active with Delay in Ticks set to 40 to avoid running the command too frequently.

Command Block
Zone detector — show the action bar
Repeat
Unconditional
Always Active
40
title @a[r=6] actionbar "Safe zone"
Previous Output
-
Block Type:
Repeat
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