Tested Minecraft Versions:
1.18
You can toggle invincibility.
Example: You don't want to get damage or want to be invincible, just do /god
1.18
You can toggle invincibility.
Example: You don't want to get damage or want to be invincible, just do /god