Of course! In Minecraft 1.20.1, the best way to achieve invincibility while staying in Survival mode is by using the /effect command to give yourself the Resistance effect at a very high level.
The Quick and Simple Command
For a single player who wants to become invincible, type this command into the chat:
effect give @s minecraft:resistance infinite 4 true
How to Use and Customize It
Here is a breakdown of what each part of that command does:
effect give: The base command to give a status effect.
@s: The target. @s means "yourself" (the person executing the command).
- You can change this to
@p (nearest player), @a (all players), or a specific PlayerName.
minecraft:resistance: This is the effect that reduces all incoming damage.
infinite: This makes the effect duration last forever until it's cleared or you die. (Alternatively, you can use a large number of seconds like 1000000).
4: This is the amplifier. Resistance V (level 5) is required for 100% damage reduction. Amplifiers are zero-indexed, meaning 0 is level I, 1 is level II, and so on. So, an amplifier of 4 gives you Resistance V.
true: This hides the swirling particle effects from your screen, which can be very distracting.
The "True Invincibility" Combo
The command above stops you from taking damage, but your hunger bar will still go down. If you want to be truly invincible (no damage and no hunger loss), you need a second command for Saturation.
Use these two commands:
- For Damage Immunity:
effect give @s minecraft:resistance infinite 4 true
- For No Hunger Loss:
effect give @s minecraft:saturation infinite 255 true
(Saturation keeps your hunger and saturation levels full, so you never need to eat).
How to Remove the Effect
If you want to turn off your invincibility, you can clear the effect with this command:
effect clear @s minecraft:resistance
And to remove the saturation:
effect clear @s minecraft:saturation
For a Multiplayer Server or Adventure Map (Using Command Blocks)
If you want this effect to be permanent for all players on a map, you can use a command block.
- Get a command block:
/give @p command_block
- Place the command block in the world.
- Right-click the command block to open its interface.
- Enter the command. It's best to use
@a to target all players.
effect give @a minecraft:resistance infinite 4 true
- Change the block type from
Impulse to Repeat.
- Change the condition from
Needs Redstone to Always Active.
- Close the interface. The command block will now constantly ensure all players have the invincibility effect. You can do the same with a second command block for the Saturation effect.
Important Limitations to Know:
- This will not protect you from the
/kill command.
- This will not protect you from falling into the Void.
- The simplest way to be invincible is still
/gamemode creative, but the effect method is perfect if you want to remain in Survival mode.