IMG-LOGO

  • how it works
  • What Is Minecraft?
  • News & stories
  • Camps and Clubs
  • Teach with Minecraft
  • Explore Lessons
  • Computer Science
  • Build Challenges
  • Get Trained
  • Ambassador program
  • MY CLASSROOM
  • My Resources

Adding NPC a name, dialogue box, and fire commands using edit UI screen.

Beginners guide to adding NPCs

Learn everything about what NPCs have to offer

What are NPCs

NPCs (or Non-Playable Characters) are a part of many game experiences and are used to deliver story content, provide quests, and give players instructions. Since Minecraft is an open-world creative sandbox game, NPCs are not part of the base Vanilla gameplay experience.  

Before the release of NPCs, creators had to be resourceful, using a bunch of work-arounds to create their own Overworld inhabitants, but they could never quite get exactly what they wanted. You could deliver story content with books and signs, but having a conversation with a mob was hard. Chat messages disappear after a short while and there was often no easy way to interact with them. But that was so yesterday! Today, NPCs solve these problems!

NPCs in Minecraft

Originating in Minecraft: Education Edition, NPCs were added to Minecraft Bedrock in 1.16.0. There are many advantages to using them over creating your own workaround. Obtained in Creative mode using commands, creators can choose from several default skins, give their NPC a name, add dialogue, and fire commands all from the edit UI screen. NPCs also are invulnerable in Survival and Adventure mode by default, ensuring that gameplay isn’t broken by a rogue Creeper.

Tim asking his friends about NPCs using dialog box.

NPCs allow players to display dialogue on a UI screen, and the UI screen remains up until the player manually exits. This gives players the time they need to read all the dialogue. Creators can make the dialogue as long as they want, because NPCs automatically add a scroll bar if the dialogue is too long to appear on screen. NPCs can send commands when interacted with, either when a dialogue screen opens or when players press one of the dialogue buttons. 

Different commands can be fired depending on what button is pressed so that the NPC or the world can react to your choices! For example, these buttons can be used to set up branching dialogue.  We’ve also made the minecraft:npc component that can be added to any entity to turn them into an NPC.

For more information on how to get started with NPCs, check out this  tutorial  or learn more about setting up branching dialogue with this  tutorial .

SHARE THIS STORY

Block...Block...Block...

Minecraft Wiki

  • Passive mobs
  • Humanoid mobs
  • Education Edition mobs
  • View history

Realms Plus Icon

Non player characters (abbreviated as NPCs ) are passive and interactive mobs that have a model similar to that of villagers . They are exclusive to Minecraft Education and Bedrock Edition . [1]

  • 3.1 Customization
  • 8.1 Screenshots
  • 8.2 In other media
  • 9 References

Spawning [ ]

Unlike other entities , NPCs do not spawn naturally; they can be spawned using the NPC spawn egg (it can be obtained with the following command: /give @s spawn_egg 1 51 ), or by using the command /summon npc . When spawned, an NPC displays a name hovering over its head. The default name is "NPC" with a color code of §e , resulting in the name being yellow.

To spawn an NPC with its spawn egg, the player must have the Worldbuilder authorization, automatically granted to players in Creative mode, or by using the / worldbuilder command.

Behavior [ ]

NPCs have no AI. They can neither move nor be pushed by other entities. They also cannot take damage nor be affected by potions . NPCs can still turn their body and stare at the nearest player if close enough. The NPCs can be pushed by sticky pistons from below or their sides with a slime block attached, and they can slide on ice when pushed. NPCs can also block minecarts from passing. Minecarts cannot go through NPCs.

NPCs are invulnerable to attacks. If an NPC is attacked by zoglins , withers , wardens , and vindicators named Johnny, the NPC remains undamaged. Projectiles pass through them. However, an NPC dies when going below Y=-64, and despawns if it falls into the void .

Interface [ ]

Npcpet

NPC interface without world builder permission.

NPCs Talk page in pe

NPC interface with world builder permission.

Right-clicking an NPC displays the interface. It can be edited only as long as the player has the world builder permission. The interface allows the player to edit the dialog, name, appearance and advanced settings. When the player does not have the world builder permission, it shows only the dialog and buttons.

Customization [ ]

  • The command feature allows the player to add one or more executable commands in the NPC. The command can be entered at the first input box below the title, unlike the command block wherein multiple commands can be executed in one window. The current maximum characters for the command is 1024. The command(s) get executed when the dialogue with the NPC is closed.
  • The command can be presented either as a button or a direct command. As a button, the button name or label can be changed by filling the input box titled "Button Name", the text limit for the label is 16 letters. It can be executed only if the player has the world builder permission disabled.
  • When not added as a button, the command is executed after the dialogue with the NPC, visible by right clicking the NPC, has closed. In contrariwise, the button is displayed and has a label color defaults to light gray, and can be changed by using the color codes. (the default name of the NPC is NPC)
  • @initiator ‌ [ Bedrock Edition only ] is a specialized Target selector that targets the player that has interacted with the NPC, distinguishing them from other players that may interact later. This is useful for running commands on a per-player basis.

Data values [ ]

History [ ].

Missing Model JE3

Issues relating to "NPC" are maintained on the bug tracker . Report issues there .

Gallery [ ]

NPC

Screenshots [ ]

The NPC placed in a world along with other Education Edition features.

The NPC placed in a world along with other Education Edition features.

NPC.

Example of a spawned NPC named §eNPC .

NPC skins.

In other media [ ]

NPCs in promotional artwork for the Chemistry Update.

NPCs in promotional artwork for the Chemistry Update .

NPC in promotional artwork for the Library Update.

NPC in promotional artwork for the Library Update .

NPCs in promotional artwork for the Chromebook Release.

NPCs in promotional artwork for the Chromebook Release .

NPC in promotional artwork for Mobile, Multiplayer & More.

NPC in promotional artwork for Mobile, Multiplayer & More .

Education Poster.png

The Beekeeper NPCs.

The Construction Worker NPCs.

The Construction Worker NPCs.

The Teacher NPCs.

The Teacher NPCs.

The Agriculture NPCs.

The Agriculture NPCs.

The Business Mob NPCs.

The Business Mob NPCs.

The Everyday Business NPCs.

The Everyday Business NPCs.

The Kiosk NPCs.

The Kiosk NPCs.

References [ ]

  • ↑ "Using NPCs - Education Edition Knowledge Base" .

Entities  

  • MinecraftEdu
  • Minecraft Hour of Code
  • 3 Smithing Template

Advertisements

  • Minecraft Basics
  • Getting Started
  • Status Effects
  • Enchantments
  • Version History
  • Minecraft Advanced
  • Commands & Cheats
  • Command Generators
  • Command Blocks
  • ID & Name Lists
  • Spawn Events
  • Minecraft Items
  • Armor Recipes
  • Basic Recipes
  • Block Recipes
  • Brewing Recipes
  • Decoration Recipes
  • Dye Recipes
  • Firework Recipes
  • Food Recipes
  • Mechanism Recipes
  • Tool Recipes
  • Transportation Recipes
  • Weapon Recipes

NPC in Minecraft

This Minecraft tutorial explains all about NPCs ( Non Player Characters ) with screenshots and step-by-step instructions. Let's learn about the NPC in Minecraft.

Supported Platforms

The NPC is available in the following versions of Minecraft:

* The version that it was added or removed, if applicable. NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.

The following is a picture of what the NPC looks like in Minecraft:

npc

The NPC is a special type of mob that is only available in Minecraft Education Edition. NPC stands for Non Player Character and this type of mob is used to interact with players, provide instructions, and run game commands.

The NPC is an invincible mob that can not be killed, take damage or be affected by potions. It does not spawn naturally in the game. The only way to spawn the NPC is to use the NPC spawn egg .

Customizing the NPC

To customize the NPC, you need to right-click on the NPC and have World Builder permissions. This will open the Non Player Character menu where you can change the name, dialog and appearance of the NPC. You can also program game commands under the Advanced Settings option.

npc appearance

If you don't have World Builder permissions and you right-click on the NPC, the NPC's dialog message will appear instead.

npc dialog

TIP: To customize the NPC, you must have World Builder permissions.

How to give yourself Word Builder Permissions

You can use the /wb command to quickly toggle your world builder status between false and true :

Or you can use the /ability command to set your world builder status to true :

Spawn Egg for NPC

You can spawn the NPC using the following spawn egg:

npc spawn egg

Things to Do with the NPC

Here are some activities that you can do with the NPC in Minecraft:

change the name of the npc

Home | About Us | Contact Us | Donate

While using this site, you agree to have read and accepted our Terms of Service and Privacy Policy .

DigMinecraft.com is not affiliated with Mojang.

Copyright © 2014-2024 DigMinecraft.com. All rights reserved.

COMMENTS

  1. Adding Non-Player Characters (NPCs)

    The name of the NPC will remain visible from a distance, even through walls. When an Operator or non-World Builder right clicks on an NPC, they will see the displayed text. From here you can: Name your NPC. Enter the message you wish the NPC to share into the Dialog box. Choose your NPC skin. Click the Advanced Settings button.

  2. Must Know Tips for Using an NPC

    Learn how to make changes to your own NPC (Non Player Character) to includes links, commands and dialogue when using Minecraft Education Edition.Non Player C...

  3. How to Change the Dialog for the NPC in Minecraft

    1. Open the Non Player Character Menu. In this tutorial, we have spawned the NPC that is named " Mr. Smith ". Now we want to enter the text for the NPC's speech bubble in the NPC's dialog option. To change the dialog for the NPC, you will first need to open the Non Player Character menu. To open this menu, you will need right-click on the NPC ...

  4. Minecraft: Education Edition NPC Tutorial

    This is a how-to video that accompanies the in-game NPC Tutorial in Minecraft: Education Edition. Learn more and download the tutorial world here: https://ak...

  5. Using Non Player Characters (NPCs) in Minecraft: Education Edition

    Learn how both Educators and Students alike can use NPCs to share information in Minecraft Education, and learn the importance of World Builder permissions.

  6. How to use NPCs in Minecraft: Education Edition

    If a Minecraft player has worldbuilding privileges, they can use the "use" action with the corresponding right-click or button press in order to edit their NPC. This allows players to edit the NPC ...

  7. How to spawn and use NPCs in Minecraft Education Edition

    Once inside the menu, they should search for 'NPC' - players must be in Creative Mode to complete this step. Once the NPC spawn egg is selected, players can then place it down anywhere they wish ...

  8. Trainings

    They could be used to display text and provide the user with options in the form of buttons. NPCs act as guides in Minecraft worlds, providing instructions and information to help players learn and complete activities. In this lesson you'll learn how to place and then modify an NPC. You will learn to: - place an NPC - edit an NPC - create your ...

  9. PDF Minecraft Education Edition: Adding Non-Playable Characters (NPCs)

    Minecraft world from View My Worlds or the Lesson Library. 4. Select Play. 5. Press "E" on the keyboard to access the inventory. 6. Select the magnify glass (search) icon to have access to search the inventory. 7. Type "NPC" in the search field. 8. Select the "NPC" icon. 9. Drag the "NPC" icon down to the toolbar

  10. Commands/dialogue

    Used to open the NPC dialogue to the player and change the dialogue displayed by an NPC. dialogue open Forces open the targeted NPC's dialogue box to the targeted player(s), simulating the experience of clicking on an NPC. A targeted scene can also be indicated. Syntax: dialogue open <npc: target> <player: target> [sceneName: string] Example: Open the dialogue of an NPC with tag "ducky" toward ...

  11. NPCs in Minecraft Education Edition: Everything you need to know

    When an Operator or non-World Builder right-clicks on an NPC, they will see the displayed text that was intended to come with the Minecraft: Education Edition NPC. NPCs do not come naturally in ...

  12. Beginners guide to adding NPCs

    NPCs in Minecraft. Originating in Minecraft: Education Edition, NPCs were added to Minecraft Bedrock in 1.16.0. There are many advantages to using them over creating your own workaround. Obtained in Creative mode using commands, creators can choose from several default skins, give their NPC a name, add dialogue, and fire commands all from the ...

  13. Hi, how can i use /dialogue command?

    If you want to do /dialogue open <target:npc> <target:player> [scene:string] then you need to have written the behavior pack with a dialogue folder that has the example.diag.json file that contains the scenes you want to use. If you have that behavior pack implemented then you can also use the.

  14. NPC Dialogue Question

    3 years ago. Hello, as alleece set a dialogue cannot be changed. But i stead of teleporting a different npc you can open the dialogue for a npc. By adding the command /dialogue @e [name=npcname] @p to the right answer it opens the menu for a different npc. This would create a more seamless way to solve your problem. 3. Aleece Landis. 3 years ago.

  15. Minecraft Education Edition: Getting started with NPCs and Command

    In this episode / lesson, working with NPCs and having them issue commands is demonstrated. We also get into the basics of command blocks. Enjoy!

  16. NPC

    Non player characters (abbreviated as NPCs) are passive and interactive mobs that have a model similar to that of villagers. They are exclusive to Minecraft Education and Bedrock Edition.[1] Unlike other entities, NPCs do not spawn naturally; they can be spawned using the NPC spawn egg (it can be obtained with the following command: /give @s spawn_egg 1 51), or by using the command /summon npc ...

  17. NPC in Minecraft

    NPC stands for Non Player Character and this type of mob is used to interact with players, provide instructions, and run game commands. The NPC is an invincible mob that can not be killed, take damage or be affected by potions. It does not spawn naturally in the game. The only way to spawn the NPC is to use the NPC spawn egg.

  18. Minecraft: Here's How To Talk to Villagers and Other NPCs

    Minecraft Bedrock Edition can continue to make money for both Microsoft and Mojang through add-ons that you have to buy to get the chance to experience a different dimension of the game. Java Edition never fell victim to this because Java was coded in Java, whereas Minecraft Bedrock was coded in C++ .

  19. Creating and Using NPC's in Minecraft Education Edition

    This video demonstrates the different ways a teacher can use NPC's (Non-Player Characters) in Minecraft Education Edition.

  20. Click on NPC to talk? : r/MinecraftCommands

    NPC 2: "Oh hey, go back to NPC 1 and ask about spider ambrosia." NPC 1: (Switched to Function set 2) [Talk] [Sell] [Spider Ambrosia.] Archived post. New comments cannot be posted and votes cannot be cast. Summon an invisible NoAI slime with a custom tag on the npc's location and run the dialogue command if its HurtTime tag is set to 10s, aka if ...

  21. minecraft commands minecraft bedrock edition

    I'm in my creative world on an Apple iPad in Minecraft-PE trying to make a map. When I do /say in a command block for example: /say Hello Wary traveler! it says: [!] Hello Wary traveler! I've searched far and wide how to change that [!] into a name! I've tried renaming the command block. No luck. I've tried: /tellraw @a {"text":"[DizzyKitty] Hi

  22. I just created an NPC Dialogue Creator : r/Minecraft

    I just created a plugin that's adds a dialogue to npc's in minecraft. It allows you to make NPCs talk with player / execute function on specific options in short: create a fully working conversation with npc, and there is no configs, everything is done through website with nice UI. I'd be more than happy to see your optionions on it: https ...

  23. How to get NPC's to Talk & Follow You in Minecraft Bedrock

    Need help with this tutorial? Join the discord and someone will assist you! (http:/discord.com/invite/9dNnmehuUq)Most information can be found by watching th...