VOOZH about

URL: https://minecraft.wiki/w/NPC

โ‡ฑ NPC โ€“ Minecraft Wiki


NPC

From Minecraft Wiki
Jump to navigation Jump to search
๐Ÿ‘ Image
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
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]

Spawning

[edit | edit source]

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

[edit | edit source]

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.

Interface

[edit | edit source]
๐Ÿ‘ Image
NPC interface without world builder permission.
๐Ÿ‘ Image
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

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

[edit | edit source]
Sounds
SoundClosed captionsSourceDescriptionIdentifierTranslation keyVolumePitch
โ€‹ ?Friendly MobsWhen an NPC is spawnedmob.villager.idleโ€‹ ?1.00.8โ€“1.2
โ€‹ ?Friendly MobsWhen a NPC diesmob.villager.deathโ€‹ ?1.00.8โ€“1.2
โ€‹ ?BlocksWhen an NPC despawns in the void.dig.woodโ€‹ ?1.00.8โ€“1.2

Data values

[edit | edit source]
NameIdentifierNumeric ID FamilyTranslation key
๐Ÿ‘ EntitySprite npc.png: Sprite image for npc in Minecraft
NPC
npc51 mob
npc
entity.npc.name

Entity data

[edit | edit source]

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

See Bedrock Edition level format/Entity format.

History

[edit | edit source]

Bedrock Edition

[edit | edit source]
Pocket Edition Alpha
v0.16.0build 1๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image

๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
Added NPCs.
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 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.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.
1.18.30beta 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.40Preview 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.

Minecraft Education

[edit | edit source]
Minecraft Education
1.0๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image

๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
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.31๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
Added 5 bee-themed NPC skins.
1.14.701.14.60๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
Added 5 educator-themed skins.
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
๐Ÿ‘ Image
Added 5 constructor-themed skins.
1.18.32?๐Ÿ‘ 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

[edit | edit source]

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

Trivia

[edit | edit source]
  • 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.

Gallery

[edit | edit source]

Renders

[edit | edit source]

Screenshots

[edit | edit source]

Development images

[edit | edit source]

In other media

[edit | edit source]

References

[edit | edit source]

External links

[edit | edit source]

Navigation

[edit | edit source]
Retrieved from "https://minecraft.wiki/w/NPC?oldid=3621026"

Navigation menu