Beginner · 1 block

Emergency healing button

Press a button to heal the player nearest the Command Block with Instant Health II, useful at rest stops or before a boss room.

Choose in-game screen
Java Edition Bedrock Edition
Java Edition 1.21.5 and up

What you need

Before placing the blocks

  • 1 Command Block
  • 1 button
  • Have the player stand close before pressing it

Expected result

Test after setup

The nearest player receives one instant burst of Instant Health II.

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

Player healing block

Attach a button to the Impulse Command Block and have the player stand nearby.

Set Console Command for Block
effect give @p minecraft:instant_health 1 1 true

@s = self · @p = nearest player · @a = all players · @e = all entities

Previous Output-
Impulse Unconditional Needs Redstone

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