Mineuniverse
NPC

NPC

Non player characters (abbreviated as NPCs) are interactive passive mobs that have models similar to villagers.

8 min read Updated
Bedrock Edition Entities Minecraft Education Passive mobs Humanoid mobs Minecraft Education mobs NPCs
Advertisement Remove ads with Premium →
Contents (20)
  1. Spawning
  2. Behavior
  3. Interface
  4. Customization
  5. Sounds
  6. Data values
  7. ID
  8. Entity data
  9. History
  10. Bedrock Edition
  11. Minecraft Education
  12. Issues
  13. Trivia
  14. Gallery
  15. Renders
  16. Screenshots
  17. Development images
  18. In other media
  19. References
  20. External links
This article is about the interactive mob in Bedrock Edition and Minecraft Education. For the fake player in Java Edition, see Mannequin.
For the mobs classified as "NPC" in the game's code, see Villager and Wandering Trader.
This feature is exclusive to Bedrock Edition and Minecraft Education.
NPC
NPC1pre.png: Infobox image for Minecraft entity 'NPC'
Invicon NPC Spawn Egg.png: Inventory sprite for NPC Spawn Egg in Minecraft as shown in-game with description: NPC Spawn Egg
Health points ∞ (Minecraft Education)
0 (Bedrock Edition)
Behavior Passive
Hitbox size Height: 2.1 Blocks
Width: 0.6 Blocks
Spawn See Spawning

Non player characters (abbreviated as NPCs) are interactive passive mobs that have models similar to villagers.[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 basic AI. They can neither move nor be pushed by most entities, but they can be pushed by the breeze's wind charge, and by explosions, water, lava, by sticky pistons from below or sides with a slime block attached, and they can slide on ice when pushed. They 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. NPCs can also never ride minecarts or boats, and the vehicles go through NPCs. The player cannot use a lead on them.

NPCs are invulnerable to attacks. An NPC is attacked by zoglins, withers, wardens, goats, and vindicators named Johnny, but the NPC remains undamaged. Pufferfish also inflate when an NPC is nearby. Foxes don't sleep near NPCs as well. Projectiles pass through them. However, an NPC dies when going below Y=-64, and despawns if it falls into the void. When the player is in creative mode and attemps to attack the NPC, said mob will completely disappear.

Interface

NPC interface without world builder permission.
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). This does not set the custom name given by name tag, renamed spawn egg, or /summon command; as the name set by the menu is different and cannot be selected by name= target selector argument.
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 60 skins available for the NPC In Bedrock Edition, with the default being the yellow-robed NPC. In Minecraft Education, there are only 35 available to choose from.
Advanced Settings
The advanced NPC settings consists of URLs 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

Sounds
SoundClosed captionsSourceDescriptionIdentifierTranslation keyVolumePitch
​Villager mumblesFriendly MobsWhen an NPC is spawnedmob.villager.idle​ ?1.00.8–1.2
​Villager diesFriendly MobsWhen a NPC diesmob.villager.death​ ?1.00.8–1.2
​Block brokenBlocksWhen an NPC despawns in the voiddig.wood​ ?1.00.8–1.2

Data values

ID

NameIdentifierNumeric ID FamilyTranslation key
EntitySprite npc.png: Sprite image for npc in Minecraft NPCnpc51 mob
npc
entity.npc.name

Entity data

NPCs have entity data associated with them that contain various properties.

See Bedrock Edition level format/Entity format.

History

Bedrock Edition

Pocket Edition Alpha
v0.16.0build 1
Added NPCs.
build 4 The NPC spawn egg has been removed.
build 5 NPCs now have a behavior file in: 'server/entities/npc.json'.
Pocket Edition
1.0.0alpha 0.17.0.1 NPCs have been re-added.
Bedrock Edition
1.8.0beta 1.8.0.8 NPCs currently have no functionality.
NPCs can now be summoned only using the /summon command while having Minecraft Education mode enabled.
1.10.0beta 1.10.0.4 NPCs are no longer summonnable 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.2 Dialog and changeable skins have been removed from NPCs.
1.16.0beta 1.15.0.51 Dialog 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.51 NPCs can now be summoned using the /summon command again.
beta 1.16.0.60 NPCs no longer have a health value.
1.18.30beta 1.18.20.21 Added 5 bee-themed NPC skins.
Added 5 educator-themed skins.
Added 5 constructor-themed skins.
1.19.40Preview 1.19.40.21 Added 10 agriculture-themed skins.
Added 5 business mob-themed skins.
Added 5 everyday business-themed skins.
Added 5 kiosk-themed skins.

Minecraft Education

Minecraft Education
1.0
Added NPCs.
NPCs are editable and can be given commands to do certain actions.
1.0.2 NPC interface page is now more advanced.
Added button mode for the URL and commands.
1.14.31 Added 5 bee-themed NPC skins.
1.14.701.14.60 Added 5 educator-themed skins.
Added 5 constructor-themed skins.
1.18.32? Added 10 agriculture-themed skins.
Added 5 business mob-themed skins.
Added 5 everyday business-themed skins.
Added 5 kiosk-themed skins.

Issues

Issues relating to "NPC" are maintained on the bug tracker. Issues should be reported and viewed there.

Trivia

  • The NPC's spawn egg is the only spawn egg to still be based on the pre-Spring to Life spawn egg design.
  • The NPC addition in Pocket Edition alpha was likely accidental due to Pocket Edition sharing the same codebase as Education Edition likely in an agent.

Renders

Screenshots

Development images

In other media

References

Advertisement Remove ads with Premium →

More in Passive mobs

View all 41 →
Happy GhastHappy GhastA happy ghast is a passive counterpart of ghasts that can be harnessed and ridden by up to four players at once as a flying mount. It can also be used in…HorseHorseA horse is a passive mob that can be ridden when tamed and saddled, and can wear horse armor. Different horses have different running speeds, jump…MooshroomMooshroomA mooshroom is a mushroom-covered variant of the cow exclusive to the mushroom fields biome. Mooshrooms are a great source of mushroom stew and leather.MuleMuleA mule is a passive mob created by breeding a horse and a donkey together. It is very similar to a donkey, except that it cannot breed.OcelotOcelotAn ocelot is a trusting, passive mob found in jungles. They run away from nearby players, but their trust can be gained by feeding them raw cod or raw…ParrotParrotA parrot is a tamable passive mob that spawns in jungle biomes. Parrots imitate sounds of nearby monsters and can perch on the player's shoulders.PigPigA pig is a passive mob found commonly in most grassy biomes. Adult pigs are a source of porkchops and can be ridden using a saddle and a carrot on a…Pink WitherPink WitherThe pink wither or friendly wither was a recurring April Fools' mob present in both Java Edition 2.0 and 15w14a.

Related mods

NPCAuctions NPCAuctions Plugin · 31.6M downloads Custom NPCs Custom NPCs Mod · 27.7M downloads Easy NPC Easy NPC Mod · 8.6M downloads Easy NPC: Core Easy NPC: Core Mod · 2.4M downloads
Explore the Minecraft Wiki
Blocks, items, mobs, biomes and game mechanics — all in one place.
Wiki home