Add entity invulnerable

When a player hits an entity, the entity receive invulnerable for 10 ticks.
When an entity is spawned, it receive invulnerable for 20 ticks.

While the entity is invulnerable, it can't be damaged from a player.