跳到主要内容

Mythic Spawner

MythicMobs Spawner with Corner System

字段

字段类型默认值描述
mobTypeStringSkeletonKingThe internal name of the MythicMob to spawn
regionsList<SpawnerRegion>—Spawn regions - each defines a zone where mobs can spawn using corners
SpawnerRegion(4)
字段类型默认值描述
corner1CoordinateORIGINFirst corner of the spawn zone (absolute world coordinates)
corner2CoordinateORIGINSecond corner of the spawn zone (absolute world coordinates)
activationRangeFactRef<ReadableFactEntry>—Optional fact for global activation range from region center. If not set, uses default.
defaultActivationRangeDouble24.0Default global activation range (3D radius) for player detection
maxMobsFactRef<ReadableFactEntry>—Max mobs allowed in the area. Fact value used directly. Default: 1
defaultMaxMobsInt1Fallback max mobs if fact is not set
mobsPerSpawnFactRef<ReadableFactEntry>—Number of mobs to spawn per spawn cycle. Fact value used directly. Default: 1
defaultMobsPerSpawnInt1Fallback mobs per spawn if fact is not set
cooldownFactRef<ReadableFactEntry>—Cooldown between spawns in ticks. Fact value used directly. Default: 100
defaultCooldownLong100Fallback cooldown in ticks if fact is not set
warmupFactRef<ReadableFactEntry>—Warmup time before first spawn in ticks. Fact value used directly. Default: 0
defaultWarmupLong0Fallback warmup time in ticks if fact is not set
groupRef<GroupEntry>—Optional group. If set, only its members activate this spawner, the criteria are checked on members of the same group, and each group has its own warmup and cooldown. If not set, every player counts. Facts are still read through their own group.
onlyVisibleForNearbyBooleanfalseIf true, spawned mobs are visible only to the nearest player who triggered the spawn
visibilityGroupRef<GroupEntry>—Optional group reference. If set, spawned mobs are visible only to members of this group. Takes priority over onlyVisibleForNearby.
visibilityCriteriaList<Criteria>emptyCriteria a player must meet to see the spawned mobs, be targeted by them and be hurt by them. They are re-checked live. Empty = no criteria. Not the same as the activation criteria above.
visibilityRefreshIntervalDurationofSeconds(1)How often who can see the spawned mobs is re-checked. Only used when the mobs are restricted by criteria, by a group or by the triggering player.
collidableBooleantrueIf false, nobody collides with or is pushed by the spawned mobs, and players walk through them. This applies to every player, not only the ones who cannot see them.
TypeWriter 通用字段(criteria)
字段类型默认值描述
criteriaList<Criteria>emptyThe criteria that must be met by at least one nearby player for the spawner to be active

How to use it​

A spawner is checked once per second for each online player (not in spectator mode), starting about five seconds after the server starts.

  • mobType is the MythicMobs internal name.
  • regions are boxes defined by two corners in absolute world coordinates. A mob spawns at a random point inside a box, so make the box thin and close to the ground. A region is active when a player is within its activation range of the centre of the box (defaultActivationRange, 24 blocks by default, or the value of activationRangeFact).
  • criteria must match at least one player near the region.
  • maxMobsFact / defaultMaxMobs cap the mobs of this type within the activation range plus 5 blocks. mobsPerSpawnFact / defaultMobsPerSpawn is the number spawned per cycle, never above the cap.
  • cooldownFact / defaultCooldown and warmupFact / defaultWarmup are in ticks (20 ticks = 1 second). The warmup runs once per world and spawner (per group when group is set) after the first activation. When a fact reference is set, its value replaces the default.
  • onlyVisibleForNearby makes the mobs visible only to the triggering player; visibilityGroup makes them visible to the online members of the triggering player's group, followed live, and takes priority.
  • visibilityCriteria (not the same as criteria, which activates the spawner) restricts who sees, is targeted by and can hurt or be hurt by the spawned mobs. It is checked again every visibilityRefreshInterval (1 second by default). collidable set to false removes collision and pushing for everybody. This entry has no abandonRange: use Spawn Mob for that.
  • Mobs spawn at level 1.
  • group is optional. When set, only members of that group activate the spawner, criteria is checked on members of the same group, and each group has its own warmup and cooldown. A player who belongs to no such group activates nothing. Without group, every player counts and the state is shared by all of them in the world. maxMobs still counts every mob of the type around the region, whatever the group, and facts are still read through their own group. The state of a group is dropped once none of its members is online; its next visit starts a new warmup.