page_type | author | description | ms.author | ms.date | languages | products | ||
---|---|---|---|---|---|---|---|---|
sample |
docsbryce |
The sample NPC Dialogue Behavior Pack used in the NPC Dialogue Tutorial. |
v-bbortree |
05/17/2022 |
|
|
This sample is the behavior pack used in the NPC Dialogue Tutorial.
See the NPC Dialogue documentation for the full walkthrough adding custom dialogue for an NPC.
The behavior pack sample is a useful tool to check your work while completing the NPC Dialogue Behavior Pack Tutorial. Using it is as simple as adding it to your development_behavior_pack
folder.
- Press Win+R to open Run.
- Copy and paste the following into the Open field:
%localappdata%\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang
- Click OK.
- Click
development_behavior_packs
. - Copy
npc_dialogue_sample
into the folder.
- Launch Minecraft and select Play.
- Select Create New World.
- Under Settings, scroll down to the Add-Ons section.
- Click on Behavior Packs to see all available packs.
- Click the MY PACKS drop-down to open it.
- Select My NPC Dialogue Behavior Pack and click Activate to add the behavior pack to the world.
- Click Create to create your world.
Now you can create an NPC named Ducky and receive a very cool item for chatting with them.
- dialogue/scene.json: This defines the dialogue that an NPC named Ducky will use when you run the command in the NPC Dialogue tutorial.
- manifest.json: This is the manifest.json folder for the sample behavior pack.