Is [entity] in game mode [gamemode]

Is [entity] in game mode [gamemode]. Procedure block in the player category. It gives back a true / false value.

Is entity in game mode gamemode ▾
Category
Player
Block type
Value block (plugs into another block)
Returns
True / false
Needs
Nothing extra
Works with
NeoForge 26.1.2NeoForge 1.21.1

Inputs

InputKindAccepts
entityPlug-in valueEntity
gamemodedata list dropdowngamemodes