Network Variable In Range

Description

Checks if a number network variable is between min and max, both included. 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
min from The lowest value in range. See Min and Max Attributes No limit
max to The highest value in range. See Min and Max Attributes No limit
scope s Whose variable, see Using the Conditions global

Min and Max Attributes

  • Both limits are included, so min=5;max=5 only matches 5. Leave one out to have no limit on that side.
  • Write plain numbers such as 10 or 0.5. They are read when the skill loads, so placeholders do not work, and text that is not a number counts as no limit.
  • The MythicMobs range syntax, such as 1to5, is not supported.
  • The variable must hold a number, as an INTEGER, LONG, FLOAT, DOUBLE or TIME variable does. A value that is not a number is never in range.

Examples

The message is sent only while the global variable boss_kills is between 10 and 20.

BossDoor:
  Conditions:
  - networkVariableInRange{var=boss_kills;min=10;max=20} true
  Skills:
  - message{m="&aThe boss door is open."} @PlayersInRadius{r=20}

Only players with at least 100 coins are greeted. There is no max, so there is no upper limit. ?~ tests the player who right-clicked the mob.

Banker:
  Type: VILLAGER
  Skills:
  - message{m="&6Welcome, valued customer."} @trigger ~onInteract ?~networkVariableInRange{var=coins;scope=target;min=100}

Aliases

  • netvarinrange
  • netvarrange
Updated Oct 29, 2026