EntityNpcComponent Class
Caution
This class is still in pre-release. Its signature may change or it may be removed in future releases.
Extends
Adds NPC capabilities to an entity such as custom skin, name, and dialogue interactions.
Properties
defaultScene
defaultScene: string;
The DialogueScene that is opened when players first interact with the NPC.
Type: string
Important
This property can't be edited in read-only mode.
name
name: string;
The name of the NPC as it is displayed to players.
Type: string
Important
This property can't be edited in read-only mode.
skinIndex
skinIndex: number;
The index of the skin the NPC will use.
Type: number
Important
This property can't be edited in read-only mode.
Constants
componentId
static read-only componentId = "minecraft:npc";
Type: string
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for