Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.98 KB

File metadata and controls

49 lines (35 loc) · 1.98 KB
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
json
minecraft

NPC Dialogue Sample

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.

Using the NPC Dialogue Behavior Pack Sample

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.

Locate the com.mojang folder

  1. Press Win+R to open Run.
  2. Copy and paste the following into the Open field: %localappdata%\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang
  3. Click OK.

Copy NPC Dialogue Behavior Pack sample into the com.mojang folder

  1. Click development_behavior_packs.
  2. Copy npc_dialogue_sample into the folder.

Enable the NPC Dialogue Behavior Pack in Minecraft

  1. Launch Minecraft and select Play.
  2. Select Create New World.
  3. Under Settings, scroll down to the Add-Ons section.
  4. Click on Behavior Packs to see all available packs.
  5. Click the MY PACKS drop-down to open it.
  6. Select My NPC Dialogue Behavior Pack and click Activate to add the behavior pack to the world.
  7. Click Create to create your world.

Now you can create an NPC named Ducky and receive a very cool item for chatting with them.

Manifest

  • 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.