Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:NPC: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Remove broken links to missing pages
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
Line 1: Line 1:
{{About|the interactive mob in ''Bedrock Edition'' and ''Minecraft Education''|the fake player in ''Java Edition''|Mannequin}}
{{About|the interactive mob in ''Bedrock Edition'' and ''Minecraft Education''|the fake player in ''Java Edition''|Mannequin}}
{{Hatnote|For the mobs classified as "NPC" in the game's code, see [[Minecraft:Villager]] and Wandering Trader.}}
{{MC/Hatnote|For the mobs classified as "NPC" in the game's code, see [[Minecraft:Villager]] and Wandering Trader.}}
{{Exclusive|bedrock|education}}
{{MC/Exclusive|bedrock|education}}
{{Infobox entity
{{Infobox entity
| image = NPC1pre.png
| image = NPC1pre.png
Line 17: Line 17:
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: <code>/give @s spawn_egg 1 51</code>), or by using the command <code>/summon npc</code>. When spawned, an NPC displays a name hovering over its head. The default name is "NPC" with a color code of <code>§e</code>, resulting in the name being yellow.
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: <code>/give @s spawn_egg 1 51</code>), or by using the command <code>/summon npc</code>. When spawned, an NPC displays a name hovering over its head. The default name is "NPC" with a color code of <code>§e</code>, 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 {{cmd|worldbuilder}} command.
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 {{MC/Cmd|worldbuilder}} command.


== Behavior ==
== Behavior ==
Line 32: Line 32:
=== Customization ===
=== Customization ===
;Name
;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 {{cmd|summon}} command; as the name set by the menu is different and cannot be selected by {{cd|[[Minecraft:Target selectors#Selecting targets by name|name{{=}}]]}} target selector argument.
: 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 {{MC/Cmd|summon}} command; as the name set by the menu is different and cannot be selected by {{cd|[[Minecraft:Target selectors#Selecting targets by name|name{{=}}]]}} target selector argument.
; Dialog
; 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.
: 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
; Appearance
: NPCs appearance are selectable, to change the skin simply just by left clicking on the preferred skin.
: NPCs appearance are selectable, to change the skin simply just by left clicking on the preferred skin.
: There are currently 60 skins available for the NPCs and defaults to the yellow-robed NPC. {{IN|ee}}, there are only 35 available to choose from.
: There are currently 60 skins available for the NPCs and defaults to the yellow-robed NPC. {{MC/In|ee}}, there are only 35 available to choose from.
; Advanced Settings
; 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.
: 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.
Line 103: Line 103:
=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|pocket alpha}}
|{{MC/HistoryLine|pocket alpha}}
|{{HistoryLine||v0.16.0|dev=build 1|[[File:NPC1pre.png|32px]] [[File:NPC2pre.png|32px]] [[File:NPC3pre.png|32px]] [[File:NPC4pre.png|32px]] [[File:NPC5pre.png|32px]] [[File:NPC6pre.png|32px]] [[File:NPC7pre.png|32px]] [[File:NPC8pre.png|32px]] [[File:NPC9pre.png|32px]] [[File:NPC10pre.png|32px]]<br>[[File:Scientist1pre.png|32px]] [[File:Scientist2pre.png|32px]] [[File:Scientist3pre.png|32px]] [[File:Scientist4pre.png|32px]] [[File:Scientist5pre.png|32px]] [[File:Scientist6pre.png|32px]] [[File:Scientist7pre.png|32px]][[File:Scientist8pre.png|32px]] [[File:Scientist9pre.png|32px]] [[File:Scientist10pre.png|32px]] Added NPCs.}}
|{{MC/HistoryLine||v0.16.0|dev=build 1|[[File:NPC1pre.png|32px]] [[File:NPC2pre.png|32px]] [[File:NPC3pre.png|32px]] [[File:NPC4pre.png|32px]] [[File:NPC5pre.png|32px]] [[File:NPC6pre.png|32px]] [[File:NPC7pre.png|32px]] [[File:NPC8pre.png|32px]] [[File:NPC9pre.png|32px]] [[File:NPC10pre.png|32px]]<br>[[File:Scientist1pre.png|32px]] [[File:Scientist2pre.png|32px]] [[File:Scientist3pre.png|32px]] [[File:Scientist4pre.png|32px]] [[File:Scientist5pre.png|32px]] [[File:Scientist6pre.png|32px]] [[File:Scientist7pre.png|32px]][[File:Scientist8pre.png|32px]] [[File:Scientist9pre.png|32px]] [[File:Scientist10pre.png|32px]] Added NPCs.}}
|{{HistoryLine|||dev=build 4|The NPC spawn egg has been removed.}}
|{{MC/HistoryLine|||dev=build 4|The NPC spawn egg has been removed.}}
|{{HistoryLine|||dev=build 5|NPCs now have a behavior file in: 'server/entities/npc.json'.}}
|{{MC/HistoryLine|||dev=build 5|NPCs now have a behavior file in: 'server/entities/npc.json'.}}
|{{HistoryLine|pocket}}
|{{MC/HistoryLine|pocket}}
|{{HistoryLine||1.0.0|dev=alpha 0.17.0.1|NPCs have been re-added.}}
|{{MC/HistoryLine||1.0.0|dev=alpha 0.17.0.1|NPCs have been re-added.}}
|{{HistoryLine|bedrock}}
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine||1.8.0|dev=beta 1.8.0.8|NPCs currently have no functionality.{{verify|Needs verification in this entity.}}
|{{HistoryLine||1.8.0|dev=beta 1.8.0.8|NPCs currently have no functionality.{{MC/Verify|Needs verification in this entity.}}
|NPCs can now be summoned only using the {{cmd|summon}} command while having {{el|ee}} mode enabled.}}
|NPCs can now be summoned only using the {{MC/Cmd|summon}} command while having {{MC/El|ee}} mode enabled.}}
|{{HistoryLine||1.10.0|dev=beta 1.10.0.4|NPCs are no longer summonnable using {{cmd|summon}}, but can still be spawned via [[Minecraft:mob]] editing, and still available in a world if one was spawned in a previous version.
|{{HistoryLine||1.10.0|dev=beta 1.10.0.4|NPCs are no longer summonnable using {{MC/Cmd|summon}}, but can still be spawned via [[Minecraft: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.}}
|NPCs now have a dialog GUI and changeable skins.}}
|{{HistoryLine||1.12.0|dev=beta 1.12.0.2|Dialog and changeable skins have been removed from NPCs.}}
|{{MC/HistoryLine||1.12.0|dev=beta 1.12.0.2|Dialog and changeable skins have been removed from NPCs.}}
|{{HistoryLine||1.16.0|dev=beta 1.15.0.51|Dialog and changeable skins for NPCs have been added back into the game.
|{{HistoryLine||1.16.0|dev=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 {{cmd|give <player> spawn_egg 1 51}}.}}
|NPC spawn eggs can now be obtained using {{MC/Cmd|give <player> spawn_egg 1 51}}.}}
|{{HistoryLine|||dev=beta 1.16.0.51|NPCs can now be summoned using the {{cmd|summon}} command again.}}
|{{HistoryLine|||dev=beta 1.16.0.51|NPCs can now be summoned using the {{MC/Cmd|summon}} command again.}}
|{{HistoryLine|||dev=beta 1.16.0.60|NPCs no longer have a health value.}}
|{{MC/HistoryLine|||dev=beta 1.16.0.60|NPCs no longer have a health value.}}
|{{HistoryLine||1.18.30|dev=beta 1.18.20.21|[[File:Apiary1pre.png|32px]] [[File:Apiary2pre.png|32px]] [[File:Apiary3pre.png|32px]] [[File:Apiary4pre.png|32px]] [[File:Apiary5pre.png|32px]] Added 5 bee-themed NPC skins.
|{{MC/HistoryLine||1.18.30|dev=beta 1.18.20.21|[[File:Apiary1pre.png|32px]] [[File:Apiary2pre.png|32px]] [[File:Apiary3pre.png|32px]] [[File:Apiary4pre.png|32px]] [[File:Apiary5pre.png|32px]] Added 5 bee-themed NPC skins.
|[[File:Teacher1NPC.png|32px]] [[File:Teacher2NPC.png|32px]] [[File:Teacher3NPC.png|32px]] [[File:Teacher4NPC.png|32px]] [[File:Teacher5NPC.png|32px]] Added 5 educator-themed skins.
|[[File:Teacher1NPC.png|32px]] [[File:Teacher2NPC.png|32px]] [[File:Teacher3NPC.png|32px]] [[File:Teacher4NPC.png|32px]] [[File:Teacher5NPC.png|32px]] Added 5 educator-themed skins.
|[[File:Construction1pre.png|32px]] [[File:Construction2pre.png|32px]] [[File:Construction3pre.png|32px]] [[File:Construction4pre.png|32px]] [[File:Construction5pre.png|32px]] Added 5 constructor-themed skins.}}
|[[File:Construction1pre.png|32px]] [[File:Construction2pre.png|32px]] [[File:Construction3pre.png|32px]] [[File:Construction4pre.png|32px]] [[File:Construction5pre.png|32px]] Added 5 constructor-themed skins.}}
|{{HistoryLine||1.19.40|dev=Preview 1.19.40.21|[[File:Agriculture1pre.png|32px]] [[File:Agriculture2pre.png|32px]] [[File:Agriculture3pre.png|32px]] [[File:Agriculture4pre.png|32px]] [[File:Agriculture5pre.png|32px]] [[File:Agriculture6pre.png|32px]] [[File:Agriculture7pre.png|32px]] [[File:Agriculture8pre.png|32px]] [[File:Agriculture9pre.png|32px]] [[File:Agriculture10pre.png|32px]] Added 10 agriculture-themed skins.
|{{MC/HistoryLine||1.19.40|dev=Preview 1.19.40.21|[[File:Agriculture1pre.png|32px]] [[File:Agriculture2pre.png|32px]] [[File:Agriculture3pre.png|32px]] [[File:Agriculture4pre.png|32px]] [[File:Agriculture5pre.png|32px]] [[File:Agriculture6pre.png|32px]] [[File:Agriculture7pre.png|32px]] [[File:Agriculture8pre.png|32px]] [[File:Agriculture9pre.png|32px]] [[File:Agriculture10pre.png|32px]] Added 10 agriculture-themed skins.
|[[File:BusinessMob1pre.png|32px]] [[File:BusinessMob2pre.png|32px]] [[File:BusinessMob3pre.png|32px]] [[File:BusinessMob4pre.png|32px]] [[File:BusinessMob5pre.png|32px]] Added 5 business mob-themed skins.
|[[File:BusinessMob1pre.png|32px]] [[File:BusinessMob2pre.png|32px]] [[File:BusinessMob3pre.png|32px]] [[File:BusinessMob4pre.png|32px]] [[File:BusinessMob5pre.png|32px]] Added 5 business mob-themed skins.
|[[File:EverydayBusiness1pre.png|32px]] [[File:EverydayBusiness2pre.png|32px]] [[File:EverydayBusiness3pre.png|32px]] [[File:EverydayBusiness4pre.png|32px]] [[File:EverydayBusiness5pre.png|32px]] Added 5 everyday business-themed skins.
|[[File:EverydayBusiness1pre.png|32px]] [[File:EverydayBusiness2pre.png|32px]] [[File:EverydayBusiness3pre.png|32px]] [[File:EverydayBusiness4pre.png|32px]] [[File:EverydayBusiness5pre.png|32px]] Added 5 everyday business-themed skins.
Line 130: Line 130:
=== ''Minecraft Education'' ===
=== ''Minecraft Education'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|education}}
|{{MC/HistoryLine|education}}
|{{HistoryLine||1.0|[[File:NPC1pre.png|32px]] [[File:NPC2pre.png|32px]] [[File:NPC3pre.png|32px]] [[File:NPC4pre.png|32px]] [[File:NPC5pre.png|32px]] [[File:NPC6pre.png|32px]] [[File:NPC7pre.png|32px]] [[File:NPC8pre.png|32px]] [[File:NPC9pre.png|32px]] [[File:NPC10pre.png|32px]]<br>[[File:Scientist1pre.png|32px]] [[File:Scientist2pre.png|32px]] [[File:Scientist3pre.png|32px]] [[File:Scientist4pre.png|32px]] [[File:Scientist5pre.png|32px]] [[File:Scientist6pre.png|32px]] [[File:Scientist7pre.png|32px]][[File:Scientist8pre.png|32px]] [[File:Scientist9pre.png|32px]] [[File:Scientist10pre.png|32px]] Added NPCs.
|{{MC/HistoryLine||1.0|[[File:NPC1pre.png|32px]] [[File:NPC2pre.png|32px]] [[File:NPC3pre.png|32px]] [[File:NPC4pre.png|32px]] [[File:NPC5pre.png|32px]] [[File:NPC6pre.png|32px]] [[File:NPC7pre.png|32px]] [[File:NPC8pre.png|32px]] [[File:NPC9pre.png|32px]] [[File:NPC10pre.png|32px]]<br>[[File:Scientist1pre.png|32px]] [[File:Scientist2pre.png|32px]] [[File:Scientist3pre.png|32px]] [[File:Scientist4pre.png|32px]] [[File:Scientist5pre.png|32px]] [[File:Scientist6pre.png|32px]] [[File:Scientist7pre.png|32px]][[File:Scientist8pre.png|32px]] [[File:Scientist9pre.png|32px]] [[File:Scientist10pre.png|32px]] Added NPCs.
|NPCs are editable and can be given [[Minecraft:commands]] to do certain actions.}}
|NPCs are editable and can be given [[Minecraft:commands]] to do certain actions.}}
|{{HistoryLine||1.0.2|NPC interface page is now more advanced.
|{{MC/HistoryLine||1.0.2|NPC interface page is now more advanced.
|Added button mode for the URL and commands.}}
|Added button mode for the URL and commands.}}
|{{HistoryLine||1.14.31|[[File:Apiary1pre.png|32px]] [[File:Apiary2pre.png|32px]] [[File:Apiary3pre.png|32px]] [[File:Apiary4pre.png|32px]] [[File:Apiary5pre.png|32px]] Added 5 bee-themed NPC skins.}}
|{{MC/HistoryLine||1.14.31|[[File:Apiary1pre.png|32px]] [[File:Apiary2pre.png|32px]] [[File:Apiary3pre.png|32px]] [[File:Apiary4pre.png|32px]] [[File:Apiary5pre.png|32px]] Added 5 bee-themed NPC skins.}}
|{{HistoryLine||1.14.70|dev=1.14.60|[[File:Teacher1NPC.png|32px]] [[File:Teacher2NPC.png|32px]] [[File:Teacher3NPC.png|32px]] [[File:Teacher4NPC.png|32px]] [[File:Teacher5NPC.png|32px]] Added 5 educator-themed skins.|[[File:Construction1pre.png|32px]] [[File:Construction2pre.png|32px]] [[File:Construction3pre.png|32px]] [[File:Construction4pre.png|32px]] [[File:Construction5pre.png|32px]] Added 5 constructor-themed skins.}}
|{{MC/HistoryLine||1.14.70|dev=1.14.60|[[File:Teacher1NPC.png|32px]] [[File:Teacher2NPC.png|32px]] [[File:Teacher3NPC.png|32px]] [[File:Teacher4NPC.png|32px]] [[File:Teacher5NPC.png|32px]] Added 5 educator-themed skins.|[[File:Construction1pre.png|32px]] [[File:Construction2pre.png|32px]] [[File:Construction3pre.png|32px]] [[File:Construction4pre.png|32px]] [[File:Construction5pre.png|32px]] Added 5 constructor-themed skins.}}
|{{HistoryLine||1.18.32|dev=?|[[File:Agriculture1pre.png|32px]] [[File:Agriculture2pre.png|32px]] [[File:Agriculture3pre.png|32px]] [[File:Agriculture4pre.png|32px]] [[File:Agriculture5pre.png|32px]] [[File:Agriculture6pre.png|32px]] [[File:Agriculture7pre.png|32px]] [[File:Agriculture8pre.png|32px]] [[File:Agriculture9pre.png|32px]] [[File:Agriculture10pre.png|32px]] Added 10 agriculture-themed skins.
|{{MC/HistoryLine||1.18.32|dev=?|[[File:Agriculture1pre.png|32px]] [[File:Agriculture2pre.png|32px]] [[File:Agriculture3pre.png|32px]] [[File:Agriculture4pre.png|32px]] [[File:Agriculture5pre.png|32px]] [[File:Agriculture6pre.png|32px]] [[File:Agriculture7pre.png|32px]] [[File:Agriculture8pre.png|32px]] [[File:Agriculture9pre.png|32px]] [[File:Agriculture10pre.png|32px]] Added 10 agriculture-themed skins.
|[[File:BusinessMob1pre.png|32px]] [[File:BusinessMob2pre.png|32px]] [[File:BusinessMob3pre.png|32px]] [[File:BusinessMob4pre.png|32px]] [[File:BusinessMob5pre.png|32px]] Added 5 business mob-themed skins.
|[[File:BusinessMob1pre.png|32px]] [[File:BusinessMob2pre.png|32px]] [[File:BusinessMob3pre.png|32px]] [[File:BusinessMob4pre.png|32px]] [[File:BusinessMob5pre.png|32px]] Added 5 business mob-themed skins.
|[[File:EverydayBusiness1pre.png|32px]] [[File:EverydayBusiness2pre.png|32px]] [[File:EverydayBusiness3pre.png|32px]] [[File:EverydayBusiness4pre.png|32px]] [[File:EverydayBusiness5pre.png|32px]] Added 5 everyday business-themed skins.
|[[File:EverydayBusiness1pre.png|32px]] [[File:EverydayBusiness2pre.png|32px]] [[File:EverydayBusiness3pre.png|32px]] [[File:EverydayBusiness4pre.png|32px]] [[File:EverydayBusiness5pre.png|32px]] Added 5 everyday business-themed skins.
Line 144: Line 144:


== Issues ==
== Issues ==
{{issue list|projects=mcpe}}
{{MC/Issue list|projects=mcpe}}


== Trivia ==
== Trivia ==
*The NPC is the only mob in {{BE}}  to not have its spawn egg changed yet.
*The NPC is the only mob in {{MC/BE}}  to not have its spawn egg changed yet.
*The NPC addition in Pocket Edition alpha was likely accidental due to Pocket Edition sharing the same codebase as Education Edition likely in an [[Minecraft:agent]].
*The NPC addition in Pocket Edition alpha was likely accidental due to Pocket Edition sharing the same codebase as Education Edition likely in an [[Minecraft:agent]].


Line 173: Line 173:
Scientist9pre.png|Scientist
Scientist9pre.png|Scientist
Scientist10pre.png|Scientist
Scientist10pre.png|Scientist
Apiary1pre.png|{{va|Apiary}}
Apiary1pre.png|{{MC/Va|Apiary}}
Apiary2pre.png|Apiary
Apiary2pre.png|Apiary
Apiary3pre.png|Apiary
Apiary3pre.png|Apiary
Line 252: Line 252:


== References ==
== References ==
{{reflist}}
{{MC/Reflist}}


== External links ==
== External links ==
Line 258: Line 258:


== Navigation ==
== Navigation ==
{{Navbox entities|mobs}}
{{MC/Navbox entities|mobs}}
{{Navbox Education|exclusive}}
{{MC/Navbox Education|exclusive}}


[[Category:Passive mobs]]
[[Category:Passive mobs]]

Latest revision as of 20:41, 9 April 2026

For the mobs classified as "NPC" in the game's code, see Minecraft:Villager and Wandering Trader.

Script error: No such module "Exclusive". Template:Infobox entity

Non player characters (abbreviated as NPCs) are interactive passive mobs that have models similar to Minecraft:villagers.<ref>Template:Cite</ref>

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

  1. REDIRECT Template:Command

Template:Redr 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, Minecraft:water, Minecraft:lava, by sticky pistons from below or sides with a slime block attached and they can slide on Minecraft:ice when pushed. They cannot take damage nor be affected by Minecraft:potions. Nevertheless, the NPCs can still turn their body and stare at the nearest player if close enough. NPCs can also never ride Minecraft:minecarts or Minecraft:boats, and the vehicles go through NPCs. The player cannot use a Minecraft:lead on them.

NPCs are invulnerable to attacks. An NPC is attacked by zoglins, Minecraft:withers, Minecraft: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

File:Npcpet.png
NPC interface without world builder permission.
File:NPCs Talk page in pe.png
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
  1. REDIRECT Template:Command

Template:Redr command; as the name set by the menu is different and cannot be selected by Template:Cd 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 currently 60 skins available for the NPCs and defaults to the yellow-robed NPC. in Template:Editions, 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.
URLTemplate: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)
  • @initiatorTemplate: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

Template:SoundTable

Data values

ID

Template:ID table

Entity data

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

See Minecraft:Bedrock Edition level format/Entity format.

History

Bedrock Edition

Template:HistoryTable

Minecraft Education

Template:HistoryTable

Issues

Script error: No such module "Issue list".

Trivia

  • The NPC is the only mob in Bedrock Edition to not have its spawn egg changed yet.
  • The NPC addition in Pocket Edition alpha was likely accidental due to Pocket Edition sharing the same codebase as Education Edition likely in an Minecraft:agent.

Gallery

Renders

Screenshots

Development images

In other media

References

<references group="">

 </references>

External links

Navigation

Passive
Template:Els & Template:Els only
Neutral
Hostile
Bosses
Mob types
Other
Player
Blocks
Template:Els only
Vehicles
Template:JE only
Projectiles
Template:JE only
Template:Els only
Stationary
objects
Java Edition only
Miscellaneous
Template:Els only
Template:Els & Template:Els only
Technical
objects
Template:Els only
Editor only
Mobs
April Fools 2013
April Fools 2015
April Fools 2019
April Fools 2023
April Fools 2024
April Fools 2025
Pet variants
April Fools 2026
Other entities
April Fools 2013
April Fools 2015
April Fools 2023
April Fools 2024
April Fools 2026

Template:Article other

General
Blocks
Items
Entities
Chemistry
Blocks
Items
Entities

Template:Article other

de:NPC es:NPC fr:PNJ it:PNG ja:NPC ko:NPC pl:NPC pt:NPC ru:Неигровой персонаж th:NPC tr:NPC uk:Неігровий персонаж zh:NPC