![]() |
VOOZH | about |
| Health points | โ (Minecraft Education) 0 (Bedrock Edition) |
|---|---|
| Behavior | Passive |
| Hitbox size | Height: 2.1 Blocks Width: 0.6 Blocks |
| Spawn | See Spawning |
{
"extratext": "View [[#Gallery|all renders]]",
"title": "NPC",
"images": [
"NPC1pre.png"
],
"rows": [
{
"field": "โ (Minecraft Education)<br>0 (Bedrock Edition)",
"label": "(link to Health article, displayed as Health points)"
},
{
"field": "Passive",
"label": "Behavior"
},
{
"field": "Height: 2.1 Blocks<br>Width: 0.6 Blocks",
"label": "(link to Hitbox article, displayed as Hitbox size)"
},
{
"field": "See (link to #Spawning article, displayed as Spawning)",
"label": "(link to Mob spawning article, displayed as Spawn)"
}
],
"invimages": [
"NPC Spawn Egg"
]
}
Non player characters (abbreviated as NPCs) are interactive passive mobs that have models similar to villagers.[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. 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.
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.
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.
/summon command; as the name set by the menu is different and cannot be selected by name= target selector argument.@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 | |||||||
|---|---|---|---|---|---|---|---|
| Sound | Closed captions | Source | Description | Identifier | Translation key | Volume | Pitch |
| โ ? | Friendly Mobs | When an NPC is spawned | mob.villager.idle | โ ? | 1.0 | 0.8โ1.2 | |
| โ ? | Friendly Mobs | When a NPC dies | mob.villager.death | โ ? | 1.0 | 0.8โ1.2 | |
| โ ? | Blocks | When an NPC despawns in the void. | dig.wood | โ ? | 1.0 | 0.8โ1.2 | |
| Name | Identifier | Numeric ID | Family | Translation key |
|---|---|---|---|---|
| ๐ EntitySprite npc.png: Sprite image for npc in Minecraft NPC | npc | 51 |
mobnpc | entity.npc.name |
NPCs have entity data associated with them that contain various properties.
| Pocket Edition Alpha | |||||||
|---|---|---|---|---|---|---|---|
| v0.16.0 | build 1 | ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image 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.0 | alpha 0.17.0.1 | NPCs have been re-added. | |||||
| Bedrock Edition | |||||||
| 1.8.0 | beta 1.8.0.8 | NPCs currently have no functionality.[verify] | |||||
NPCs can now be summoned only using the /summon command while having Minecraft Education mode enabled. | |||||||
| 1.10.0 | beta 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.0 | beta 1.12.0.2 | Dialog and changeable skins have been removed from NPCs. | |||||
| 1.16.0 | beta 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.30 | beta 1.18.20.21 | ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image Added 5 bee-themed NPC skins. | |||||
| ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image Added 5 educator-themed skins. | |||||||
| ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image Added 5 constructor-themed skins. | |||||||
| 1.19.40 | Preview 1.19.40.21 | ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image Added 10 agriculture-themed skins. | |||||
| ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image Added 5 business mob-themed skins. | |||||||
| ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image Added 5 everyday business-themed skins. | |||||||
| ๐ Image ๐ Image ๐ Image ๐ Image ๐ Image Added 5 kiosk-themed skins. | |||||||
Issues relating to "NPC" are maintained on the bug tracker. Issues should be reported and viewed there.
ยงeNPC| Minecraft Education | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||
| |||||||||||||||||||