Wiki 9Minecraft Wiki 9Minecraft
Dawn Api Wiki › Guides › Adjusting Entity Health Using the /health Command

Adjusting Entity Health Using the /health Command

Dawn API introduces several utility commands designed to streamline mapmaking and testing. One of the most direct tools is the /health command, which bypasses the need for complex effect commands or NBT manipulation when adjusting an entity's health.

Targeting and Modifying Health

To manage health values directly in-game, ensure cheats or operator permissions are enabled on your world or server:

1. Open the in-game chat interface.

2. Type /health followed by your target selector (such as @s for yourself, @p for the nearest player, or an entity selector for a specific mob).

3. Enter the desired health amount and execute the command.

Unlike vanilla damage or instant health effects, this command directly sets or alters the entity's health value instantly.

Mapmaking and Testing Applications

Direct health manipulation is especially helpful for custom map scenarios where players need their health reset between challenge rooms or boss stages. You can place the /health command inside command blocks wired to redstone triggers, pressure plates, or tripwires.