Network Variable Is Set

Description

Checks if a network variable is set. When it is false is explained on Conditions.

This condition requires MythicMobs Premium!

Attributes

Attribute Aliases Description Default
var variable, name, n, key, k Name of the variable. See Variable Names
scope s Whose variable, see Using the Conditions global

Checking a variable and then setting it is not one step: two servers can both find it not set before either of them has set it.

Examples

The raid warning is sent at most once every five minutes. duration=6000 is 6000 ticks, and once they have passed, raid_warned counts as not set again.

RaidWarning:
  Conditions:
  - networkVariableIsSet{var=raid_warned} false
  Skills:
  - networkVariableSet{var=raid_warned;type=BOOLEAN;value=true;duration=6000}
  - message{m="&cA raid is starting."} @PlayersInRadius{r=50}

Players who have gate_pass may enter, everyone else is told they need a pass. ?~ tests the player who right-clicked the mob, and ?~! negates it.

Gatekeeper:
  Type: VILLAGER
  Skills:
  - message{m="&aYou may enter."} @trigger ~onInteract ?~networkVariableIsSet{var=gate_pass;scope=target}
  - message{m="&cYou need a gate pass."} @trigger ~onInteract ?~!networkVariableIsSet{var=gate_pass;scope=target}

Aliases

  • netvarisset
  • netvarset

netvarset is also an alias of the networkVariableSet mechanic. Write networkVariableIsSet or netvarisset in conditions to avoid mixing them up.

Updated Oct 29, 2026