Minecraft Wiki
Advertisement
Realms Plus Icon
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
Information icon
This feature is exclusive to Bedrock Edition and Minecraft Education. 

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]

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[]

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‌[Minecraft Education 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‌[Minecraft Education 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[]

SoundSourceDescriptionResource locationVolumePitch
Friendly CreaturesWhen an NPC is spawned[verify]mob.villager.idle1.00.8-1.2
Friendly CreaturesWhen an NPC is damaged[verify]mob.villager.hit1.00.8-1.2
BlocksWhen an NPC dies[verify]dig.wood1.00.8-1.2

Data values[]

ID[]

NameIdentifierNumeric ID Translation key
NPCnpc51entity.npc.name

History[]

Missing Model JE3
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
Pocket Edition Alpha
v0.16.0build 1NPC1pre NPC2pre NPC3pre NPC4pre NPC5pre NPC6pre NPC7pre NPC8pre NPC9pre NPC10pre
Scientist1pre Scientist2pre Scientist3pre Scientist4pre Scientist5pre Scientist6pre Scientist7preScientist8pre Scientist9pre Scientist10pre Added NPCs.
build 2NPCs have been removed. However, their savegame ID and spawn egg still exist.
build 4The NPC spawn egg has been removed.
build 5NPCs now have a behavior file in: 'server/entities/npc.json'.
Pocket Edition
1.0.0alpha 0.17.0.1NPCs have been re-added.
Bedrock Edition
1.8.0beta 1.8.0.8NPCs currently have no functionality.[verify]
NPCs can now be summoned only using the /summon command while having Minecraft Education mode enabled.
1.10.0beta 1.10.0.4NPCs are no longer summonable using /summon, but can still be spawned via mob editing, and still available in a world if one was spawned in a previous version.
NPCs now have a dialog GUI and changeable skins.
1.12.0beta 1.12.0.2Dialog and changeable skins have been removed from NPCs.
1.16.0beta 1.15.0.51Dialog and changeable skins for NPCs have been added back into the game.
NPC spawn eggs can now be obtained using /give <player> spawn_egg 1 51.
beta 1.16.0.51NPCs can now be summoned using the /summon command again.
beta 1.16.0.60NPCs no longer have a health value.
Education Edition
1.0NPC1pre NPC2pre NPC3pre NPC4pre NPC5pre NPC6pre NPC7pre NPC8pre NPC9pre NPC10pre
Scientist1pre Scientist2pre Scientist3pre Scientist4pre Scientist5pre Scientist6pre Scientist7preScientist8pre Scientist9pre Scientist10pre Added NPCs.
NPCs are editable and can be given commands to do certain actions.
1.0.2NPC interface page is now more advanced.
Added button mode for the URL and commands.
1.14.31Apiary1pre Apiary2pre Apiary3pre Apiary4pre Apiary5pre Added 5 bee-themed NPC skins.
1.14.701.14.60NPC Teacher 1 (texture) NPC Teacher 2 (texture) NPC Teacher 3 (texture) NPC Teacher 4 (texture) NPC Teacher 5 (texture) Added 5 educator-themed skins.
NPC Construction 1 (texture) NPC Construction 2 (texture) NPC Construction 3 (texture) NPC Construction 4 (texture) NPC Construction 5 (texture) Added 5 constructor-themed skins.
1.18.32?NPC Agriculture 1 (texture) NPC Agriculture 2 (texture) NPC Agriculture 3 (texture) NPC Agriculture 4 (texture) NPC Agriculture 5 (texture) NPC Agriculture 6 (texture) NPC Agriculture 7 (texture) NPC Agriculture 8 (texture) NPC Agriculture 9 (texture) NPC Agriculture 10 (texture) Added 10 agriculture-themed skins.
NPC Business Mobs 1 (texture) NPC Business Mobs 2 (texture) NPC Business Mobs 3 (texture) NPC Business Mobs 4 (texture) NPC Business Mobs 5 (texture) Added 5 business mob-themed skins.
NPC Everyday Business 1 (texture) NPC Everyday Business 2 (texture) NPC Everyday Business 3 (texture) NPC Everyday Business 4 (texture) NPC Everyday Business 5 (texture) Added 5 everyday business-themed skins.
NPC Kiosk 1 (texture) NPC Kiosk 2 (texture) NPC Kiosk 3 (texture) NPC Kiosk 4 (texture) NPC Kiosk 5 (texture) Added 5 kiosk-themed skins.

Issues[]

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

Gallery[]

Screenshots[]

In other media[]

References[]

Advertisement