跳到主要内容

Mythicmob NPC Hide

Hide a MythicMob NPC

字段

字段类型默认值描述
npcInstanceRef<MythicMobNpcInstance>—The MythicMob NPC instance to hide.
MythicMobNpcInstance(6)
字段类型默认值描述
definitionRef<MythicMobNpcDefinition>——
MythicMobNpcDefinition(11)
字段类型默认值描述
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—带旋转
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)
hideForAllPlayersBooleanfalseWhether to hide for all players or just the triggering player.
TypeWriter 通用字段(criteria, modifiers, triggers)
字段类型默认值描述
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<Ref<TriggerableEntry>>empty—

How to use it​

Set npcInstance to the instance to hide. With hideForAllPlayers off (default) only the player who triggered the action stops seeing it; on, every player in the NPC world does. The action looks for mobs within 2 blocks of the instance's spawn point and also hides the text displays of its name tag. Reverse it with Show MythicMob NPC.