Can be set in the game rules.
If set to true, the player will not take damage.This is useful when you do not want to take damage (for example, void damage).