How to add npcs in minecraft

This Minecraft tutorial explains how to add a URL to the dialog box for the NPC (Non Player Character) with screenshots and step-by-step instructions.

In Minecraft Education Edition, the NPC will interact with players using a dialog box that looks like a speech bubble. You can add a button to the dialog box that opens your browser to a specific web address. Let's explore how to add a URL to the NPC's dialog box.

Steps to Add a URL to the NPC's Dialog

1. Open the Non Player Character Menu

In this tutorial, we have spawned the NPC that is named "Mr. Smith". Now we want to add a URL to the NPC's dialog box.

How to add npcs in minecraft

To add a URL to 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 (and have World Builder permissions).

This is the what the Non Player Character menu looks like:

How to add npcs in minecraft

To add a URL, click on the Advanced Settings button.

2. Open the URL Options

Now, click on the Add URL button in the Advanced NPC Settings menu to open the URL options.

3. Add a URL and Button Name

Now, that the URL option screen is open. Enter a URL and a button name.

In this example, we have entered the URL https://www.digminecraft.com with a button name of DigMinecraft.

TIP: You can add up to 6 URLs, each with its own button. To add another URL, simply click on the Add URL button again and enter another URL and button name. Each button will be displayed below the NPC's dialog message.

When you are done entering the URL information, click on the arrow in the top right corner to go back to the Advanced NPC Settings menu and then close the Non Player Character menu.

4. NPC's Speech Bubble will be Updated

Now, when you return to the game and left-click on the NPC (without World Builder status), you will see the following speech bubble appear:

How to add npcs in minecraft

A new button called DigMinecraft will appear below the NPC's image. When a player clicks on this button, it will automatically open the default browser to https://www.digminecraft.com.

Congratulations, you just learned how to add a URL to the dialog box for the NPC in Minecraft.

Other Things to Do with the NPC

Here are some other activities that you can do with the 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:

PlatformSupported (Version*)
How to add npcs in minecraft
 Java Edition (PC/Mac)
No
How to add npcs in minecraft
 Pocket Edition (PE)
Yes (1.16.0)
How to add npcs in minecraft
 Xbox 360
No
How to add npcs in minecraft
 Xbox One
Yes (1.16.0)
How to add npcs in minecraft
 PS3
No
How to add npcs in minecraft
 PS4
Yes (1.16.0)
How to add npcs in minecraft
 Wii U
No
How to add npcs in minecraft
 Nintendo Switch
Yes (1.16.0)
How to add npcs in minecraft
 Windows 10 Edition
Yes (1.16.0)
How to add npcs in minecraft
 Education Edition
Yes

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

Background

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

How to add npcs in minecraft

Hostility Level Passive Mob
Health Points NPC is invincible and can not be killed or take damage
Where to Find Does not spawn naturally in the game
(must be created with the NPC spawn egg)
Weapon None
Attack Method Will never attack you
Drops None
Special Skills Can interact with players and run game commands

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.

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

How to add npcs in minecraft

Spawn Egg for NPC

You can spawn the NPC using the following spawn egg:

Things to Do with the NPC

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

Other Mobs

Here are some of the other mobs in Minecraft:

How to add npcs in minecraft

This page would benefit from the addition of isometric renders. 

Please remove this notice once you've added suitable isometric renders to the article.
The specific instructions are: New EE skins

How to add npcs in minecraft

This feature is exclusive to Bedrock Edition and Education Edition. 

Non Player Characters (abbreviated as NPCs) are both passive and interactive mobs that have model similar to villagers. They are exclusive to Education Edition and Bedrock Edition.[1]

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. Nevertheless, the 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 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 invincible, meaning that projectiles pass through them. However, if an NPC falls through the void, they instantly despawn.

Interface[]

How to add npcs in minecraft

NPC interface without world builder permission.

How to add npcs in minecraft

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 doesn't have the world builder permission, it shows only the dialog and buttons.

Customization[]

Name The name of an NPC can be entered in the top text pane titled "Name". The text limit for the name is 32, and the color can be changed by using the color codes as by default the color is yellow (§e). Dialog The dialog box located right below the "Name" and often used as a tool for guiding. The text limit for the dialog is 256, although in some cases it appears as 337. Appearance NPCs appearance are selectable, to change the skin simply just by left clicking on the preferred skin. There are currently 20‌[Bedrock Edition only] or 35‌[Education Edition only] skins available for the NPCs and defaults to the yellow-robed NPC. Advanced Settings The advanced NPC settings consists of URL and commands. They are used to create interactive buttons. The current maximum advanced settings that can be added is 6. URL‌[Education Edition only] The URL feature allows the player to add a hyperlink button. The URL can be entered at the first input box below the title up to 1024 letters. To change the button name or label can be proceeded by filling the input box titled "Button Name", the current text limit for the label is 16 letters. When added, the button appears only if the player has the world builder permission disabled. The button label defaults to "Learn More" and the color defaults to blue, it can be changed by using the color codes. Command
  • 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.

Sounds[]

Data values[]

ID[]

NameIdentifierNumeric ID Translation key
NPCnpc51entity.npc.name

History[]

How to add npcs in minecraft

This page would benefit from the addition of more images. 

Please remove this notice once you've added suitable images to the article.
The specific instructions are: Teacher / Construction Worker / Agriculture / Business Mobs / Everyday Business / Kiosk NPC skin renders

Issues[]

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

Trivia[]

  • An NPC instantly dies when going below Y=0 and makes player death sounds as it vaporizes or if it gets hit in creative mode.
  • The player can summon an NPC in Bedrock Edition by either using the command /summon npc or /give @s spawn_egg 1 51.
  • Zoglins, withers and vindicators named Johnny attempt to attack NPCs. The NPC remains undamaged, as NPCs are invincible. However, the mobs still continue to attack.

Gallery[]

Screenshots[]

In other media[]

References[]

  1. "Using NPCs - Education Edition Knowledge Base" .

Entities