Network Variable Unset

Description

Removes a network variable from the proxy and from every server. Removing a variable that is not set has no visible effect.

This mechanic requires MythicMobs Premium!

Attributes

It takes var and scope, see networkVariableSet. Use the same scope the variable was set with, see Variable Scopes. type, duration and save have no effect, so leave them out.

A server that is not connected to the proxy at that moment keeps its copy, see When a Proxy Is Down.

Examples

boss_alive exists only while the boss lives, so networkVariableIsSet is true only in between. ~onDeath does not run when the boss despawns, so ~onDespawn removes the variable too.

NetworkBoss:
  Type: ZOMBIE
  Skills:
  - networkVariableSet{var=boss_alive;type=BOOLEAN;value=true} @self ~onSpawn
  - networkVariableUnset{var=boss_alive} @self ~onDeath
  - networkVariableUnset{var=boss_alive} @self ~onDespawn

A player who right-clicks the priest loses their blessed variable. scope=target is needed because the variable belongs to the player.

Priest:
  Type: VILLAGER
  Skills:
  - networkVariableUnset{var=blessed;scope=target} ~onInteract

Aliases

  • netvarunset
  • unsetnetvar
  • networkUnsetVariable
Updated Oct 29, 2026