Mythicmob NPC Definition
A MythicMob that can be used as an NPC
Fields
| Field | Type | Default | Description |
|---|---|---|---|
sound | Var<Sound> | EMPTY | — |
mobType | Var<String> | — | The MythicMob type to spawn. |
showDisplayName | Boolean | true | Whether to show the display name above the mob. |
showDisplayNameInCinematic | Boolean | true | Whether to show the display name during cinematics. |
showDisplayNameInNavigation | Boolean | true | Whether to show the display name during navigation. |
nameOffset | Double | 2.3 | Y offset for the name display above the mob. |
data | List<Ref<EntityData<*>>> | empty | — |
ticking | Boolean | false | Whether to tick the NPC for movement and updates. Off (the supported setting): a model carrier without AI, driven by Typewriter. On: a living mob with AI. Keep it off when another extension's instance, such as a dungeon NPC instance, displays this NPC: each viewer then gets a mob of their own, visible to them alone, that no instance manages. Either way a server mob exists; it is only hidden from the other players. |
clientSideRadius | Double | 0.0 | Radius in which the mob can move (requires ticking=true). If 0, movement is disabled. |
cancelInteractAnimation | Boolean | false | Whether to cancel the interact animation when a player interacts with the NPC. |
Common TypeWriter fields (displayName)
| Field | Type | Default | Description |
|---|---|---|---|
displayName | Var<String> | — | — |
How to use it
The definition says what the NPC is. It does not place anything in the world: link it from a MythicMob NPC Instance.
mobTypeis the MythicMobs internal name of the mob. It accepts variables and PlaceholderAPI placeholders.displayNameis the text shown above the head whenshowDisplayNameis on.nameOffsetraises or lowers it, andshowDisplayNameInCinematicandshowDisplayNameInNavigationhide it while a cinematic plays or while the mob is walking.tickingoff (default) gives each player their own copy of the mob, a model carrier without AI driven by Typewriter and visible to that player alone: it cannot move on its own and cannot cast skills from TypeWriter.tickingon spawns a real server-side mob.clientSideRadiusonly applies withtickingon. At0the AI and gravity of the mob are switched off so it stays exactly where it is placed. Above0the mob can move, and it is despawned and respawned at its spawn point when it leaves that radius.cancelInteractAnimationstops the model'sinteractanimation from playing on right-click.datatakes entity data entries. The lines of a Lines data (extra text in the name tag), a custom name, Speed Data and ModelEngine Stance Data (both withtickingon only), Bone Visibility Data and Attachment Data are read. See the notes of each data entry.