Is Invulnerable (Condition) — Skript

Addon: Skript · Category: Condition · Since: 2.5, 2.10 (gamemode)

Syntax

%entities/gamemodes% (is|are) (invulnerable|invincible)

Description

Checks whether an entity or a gamemode is invulnerable. For gamemodes, Paper and Minecraft 1.20.6 are required

Examples

target entity is invulnerable
loop all gamemodes:
	if loop-value is not invulnerable:
		broadcast "the gamemode %loop-value% is vulnerable!"

View source