Pular para o conteúdo principal

Spawn Mythicmobs Mob

Spawn a mob from MythicMobs

Campos

CampoTipoPadrãoDescrição
mobNameVar<String>——Placeholders
levelVar<Double>1.0—
onlyVisibleForPlayerBooleanfalseIf true, the mob is visible only to the triggering player (single-player mode)
visibilityGroupRef<GroupEntry>—Optional group reference. If set, the mob is visible only to members of this group. Takes priority over onlyVisibleForPlayer.
spawnLocationVar<Position>ORIGIN—Com rotação
visibilityCriteriaList<Criteria>emptyCriteria a player must meet to see the mob, be targeted by it and be hurt by it. They are re-checked live, so a player who stops (or starts) meeting them loses (or gets) the mob. Empty = no criteria. The mob can be seen by the triggering player only (onlyVisibleForPlayer), the living members of their group (visibilityGroup), or every player of the world when neither is set.
visibilityRefreshIntervalDurationofSeconds(1)How often who can see the mob is re-checked. Only used when the mob is restricted by criteria, by a group or by the triggering player.
collidableBooleantrueIf false, nobody collides with or is pushed by the mob, and players walk through it. This applies to every player, not only the ones who cannot see it.
abandonRangeDouble0.0The mob is removed when no player allowed to see it has been within this many blocks for the abandon delay. 0 = never removed.
abandonDelayDurationofSeconds(10)How long the mob may stay without an allowed player within the abandon range before it is removed.
Campos comuns do TypeWriter (criteria, modifiers, triggers)
CampoTipoPadrãoDescrição
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<Ref<TriggerableEntry>>empty—

How to use it​

  • mobName is the MythicMobs internal name. It accepts PlaceholderAPI placeholders. An unknown name does nothing.
  • level is passed to MythicMobs as the mob level.
  • spawnLocation is a position with a rotation: capture it in game.
  • Visibility: onlyVisibleForPlayer shows the mob only to the player who triggered the action. visibilityGroup shows it to the online members of the triggering player's group and takes priority; if the triggering player is in no group, only that player sees it. The group is followed live: it is no longer frozen at the spawn. A hidden mob cannot be hit, targeted or clicked by other players, and its sounds and particles are not sent to them.
  • visibilityCriteria narrows down who may see the mob. Only the players who meet every criterion see it, can be targeted by it and can hurt it or be hurt by it. The criteria are checked again every visibilityRefreshInterval (1 second by default), so a player who stops meeting them loses the mob, and the mob drops a target it is no longer allowed to have. With no group, no onlyVisibleForPlayer and no criteria, the mob is public as before.
  • Protection: all damage tied to a restricted mob (melee, projectiles, MythicMobs skills, fire) is blocked towards the players who may not see it, and the other way round. Projectiles pass through.
  • collidable set to false removes collision and pushing for everybody, not only for the players who cannot see the mob. The collision is all or nothing.
  • abandonRange and abandonDelay: with a range above 0, the mob is removed when no allowed player stays within that many blocks for the whole delay. 0 turns it off. The web editor pre-fills every new duration field with 1 second: check abandonDelay (default 10 seconds) after adding the entry.
  • A mob whose source entry is deleted stays hidden from everyone.
  • Effects of MythicMobs skills that deal no damage (potion, throw...) are not filtered by default. Add the typewritervisible target condition to those skills, see MythicMobs.