Spawn Mythicmobs Mob
Spawn a mob from MythicMobs
Campos
| Campo | Tipo | Padrão | Descrição |
|---|---|---|---|
mobName | Var<String> | — | —Placeholders |
level | Var<Double> | 1.0 | — |
onlyVisibleForPlayer | Boolean | false | If true, the mob is visible only to the triggering player (single-player mode) |
visibilityGroup | Ref<GroupEntry> | — | Optional group reference. If set, the mob is visible only to members of this group. Takes priority over onlyVisibleForPlayer. |
spawnLocation | Var<Position> | ORIGIN | —Com rotação |
visibilityCriteria | List<Criteria> | empty | Criteria 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. |
visibilityRefreshInterval | Duration | ofSeconds(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. |
collidable | Boolean | true | If 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. |
abandonRange | Double | 0.0 | The mob is removed when no player allowed to see it has been within this many blocks for the abandon delay. 0 = never removed. |
abandonDelay | Duration | ofSeconds(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)
| Campo | Tipo | Padrão | Descrição |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
mobNameis the MythicMobs internal name. It accepts PlaceholderAPI placeholders. An unknown name does nothing.levelis passed to MythicMobs as the mob level.spawnLocationis a position with a rotation: capture it in game.- Visibility:
onlyVisibleForPlayershows the mob only to the player who triggered the action.visibilityGroupshows 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. visibilityCriterianarrows 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 everyvisibilityRefreshInterval(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, noonlyVisibleForPlayerand 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.
collidableset tofalseremoves collision and pushing for everybody, not only for the players who cannot see the mob. The collision is all or nothing.abandonRangeandabandonDelay: with a range above 0, the mob is removed when no allowed player stays within that many blocks for the whole delay.0turns it off. The web editor pre-fills every new duration field with 1 second: checkabandonDelay(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
typewritervisibletarget condition to those skills, see MythicMobs.