Skip to main content

Mythicmob NPC Look at Interaction Bound

An interaction which forces the player to look at a MythicMob NPC

Fields

FieldTypeDefaultDescription
interruptTriggersList<Ref<TriggerableEntry>>empty—
radiusDouble2.0—
npcRef<MythicMobNpcInstance>—The MythicMob NPC instance to look at.
MythicMobNpcInstance (6)
FieldTypeDefaultDescription
definitionRef<MythicMobNpcDefinition>——
MythicMobNpcDefinition (11)
FieldTypeDefaultDescription
displayNameVar<String>——
soundVar<Sound>EMPTY—
mobTypeVar<String>—The MythicMob type to spawn.
showDisplayNameBooleantrueWhether to show the display name above the mob.
showDisplayNameInCinematicBooleantrueWhether to show the display name during cinematics.
showDisplayNameInNavigationBooleantrueWhether to show the display name during navigation.
nameOffsetDouble2.3Y offset for the name display above the mob.
dataList<Ref<EntityData<*>>>empty—
tickingBooleanfalseWhether 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.
clientSideRadiusDouble0.0Radius in which the mob can move (requires ticking=true). If 0, movement is disabled.
cancelInteractAnimationBooleanfalseWhether to cancel the interact animation when a player interacts with the NPC.
spawnLocationVar<Position>ORIGIN—With rotation
dataList<Ref<EntityData<*>>>empty—
activityRef<out EntityActivityEntry>——
groupRef<out GroupEntry>——
secondaryOffsetVector{"x":0.0,"y":0.0,"z":0.0}Offset (X, Y, Z) for the secondary focus point (automatically created with empty text)
Common TypeWriter fields (criteria, modifiers, triggers)
FieldTypeDefaultDescription
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<Ref<TriggerableEntry>>empty—

How to use it​

Holds the player facing the NPC during an interaction. npc is the instance to face; when empty, the NPC the player is currently interacting with is used. The player looks at its spawn point plus secondaryOffset, half a block higher. radius is how far (in blocks) the player may walk from where the interaction started before the interaction is interrupted (the bound's interruptTriggers apply); the player is also slowed down as they approach that limit. If the player looks away for longer than the mythicmob_npc_look_at_interaction_bound.look_back_delay snippet (500 ms by default), the view turns back to the NPC.