No Damage Time (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.11

Syntax

[the] (invulnerability|invincibility|no damage) time[[ ]span] [of %livingentities%]

Description

The amount of time an entity is invulnerable to any damage.

Examples

on damage:
	set victim's invulnerability time to 20 ticks #Victim will not take damage for the next second
if the no damage timespan of {_entity} is 0 seconds:
	set the invincibility time span of {_entity} to 1 minute

View source