Instant Damage Effect
Damage a mob instantly, or heal undead mobs
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Applies the Instant Damage effect, which damages living entities but heals undead (zombies, skeletons, wither). This is useful for PvP or testing mob behavior with a creative twist.
/effect give @s instant_damage 1 1 true39 characters
- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Paste the command (optionally target a different entity) and press Enter.
- Living entities take damage; undead mobs are healed instead.
Related commands
Give yourself extreme melee damage using amplifier 255
/effect give @p strength infinite 255 trueMassively increase your melee damage output
/effect give @p strength infinite 1 trueJump much higher than normal
/effect give @p jump_boost infinite 4 trueTurn completely invisible to mobs and players
/effect give @p invisibility infinite 0 true