NPC: Difference between revisions
m (Revert consecutive edits by 101.165.172.240 (talk)) Tag: Mobile edit |
No edit summary Tag: Mobile edit |
||
Line 20: | Line 20: | ||
Scientist9pre.png; |
Scientist9pre.png; |
||
Scientist10pre.png |
Scientist10pre.png |
||
|image2=Baby Zombie Villager.png |
|||
|invimage2=NPC Spawn Egg |
|invimage2=NPC Spawn Egg |
||
|damage=None |
|damage=None |
||
Line 29: | Line 30: | ||
|multiplevers= See [[#History|History]] |
|multiplevers= See [[#History|History]] |
||
|sounds= * {{sound|'''Idle'''|Villager1.ogg}} |
|sounds= * {{sound|'''Idle'''|Villager1.ogg}} |
||
}} |
|||
|sounds2= * {{sound|'''Hostile/Hurt'''|Fireball.mp3}} |
|||
}} |
|||
|sound3= * {{sound|'''Death'''|Baby Zombie Villager Idle.ogg}} |
|||
}} |
}} |
||
{{exclusive|education|bedrock}} |
{{exclusive|education|bedrock}} |
Revision as of 09:47, 7 November 2018
{ "title": "NPC", "rows": [ { "field": "20<span class=\"hidden-alt-text\">HP</span><span class=\"nowrap mc-hearts\"><span class=\"iconbar pixel-image nowrap\" style=\"--icon-offset:-1px;\" title=\"1 heart\">(link to File:Heart (icon).png article, displayed as 9px|link=|alt=♥)</span> × 10</span>", "label": "(link to Health article, displayed as Health points)" }, { "field": "None", "label": "Attack<br/>strength" } ], "invimages": [ "NPC Spawn Egg" ], "images": [ "Baby Zombie Villager.png" ] }
|sounds2= * Hostile/HurtFile:Fireball.mp3 }} |sound3= * DeathFile:Baby Zombie Villager Idle.ogg }}
Non Player Characters (abbreviated as NPCs) are both passive and interactive mobs that have model similar to villagers. They are exclusive to the Education Edition.[1]
Spawning
Unlike other entities, NPCs don't spawn naturally, they can only be spawned using the NPC spawn egg.
When spawned, NPCs will display a name hovering over their head and defaults to §eNPC
.
Behavior
NPCs have no AI. They can neither move nor be pushed by other entities. They also cannot take damage or be affected by potions. Nevertheless, the NPCs can still turn their body and stare at the nearest player if close enough.
NPCs are invincible, meaning that projectile will go through their body.
Interface


Right-clicking an NPC will show the interface, it can only be edited as long as the player has the world builder permission. The interface allows the player to edit the dialog, name and appearance. When the player doesn't have the world builder permission, it only shows the dialog and the 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.
- 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 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
- 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 will show up 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 an executable command in the NPC. The command can be entered at the first input box below the title, unlike the command block multiple commands can be executed in one window. The current maximum letters for the command is 1024.
- 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 only be executed if the player has the world builder permission disabled.
- When not added as a button, the command will be executed by right clicking the NPC. In contrariwise, the button will be displayed and has a label color defaults to light gray, and can be changed by using the color codes.
History
[hide]Pocket Edition Alpha | |||||||
---|---|---|---|---|---|---|---|
0.16.0 | Added NPCs.
{"type": "pocket Alpha", "version": "0.16.0", "exp": "", "snap": "", "content": "Added NPCs."} | ||||||
Alpha | NPCs have now been removed. However, their savegame ID and spawn egg still exist.
{"type": "pocket Alpha", "version": "", "exp": "", "snap": "", "content": "NPCs have now been removed. However, their savegame ID and (link to spawn egg article, displayed as spawn egg) still exist."} | ||||||
Alpha | The NPC spawn egg has now been removed.
{"type": "pocket Alpha", "version": "", "exp": "", "snap": "", "content": "The NPC spawn egg has now been removed."} | ||||||
Alpha | NPCs will now have a behavior file in: 'server/entities/npc.json'.
{"type": "pocket Alpha", "version": "", "exp": "", "snap": "", "content": "NPCs will now have a behavior file in: 'server/entities/npc.json'."} | ||||||
[hide]Upcoming Bedrock Edition | |||||||
1.8 | Re-added NPCs.[verify] They can be only summoned using /summon command while having the Education Edition mode enabled. However, they didn't function like they did in Education Edition.
{"type": "bedrock upcoming", "version": "1.8", "exp": "", "snap": "", "content": "Re-added NPCs.<sup class=\"noprint nowrap Inline-Template \" title=\"\">[<i>[https://minecraft.wiki/w/Talk:NPC <span title=\"Needs a verification in this entity. \" style=\"border-bottom: 1px dotted\">verify</span>]</i>]</sup>(link to Category:Verify article, displayed as Category:Verify) They can be only summoned using <!-- Command --><code ><span>/(link to Commands/summon article, displayed as summon)</span></code><!-- /Command --> command while having the Education Edition mode enabled. However, they didn't function like they did in Education Edition."} | ||||||
[hide]Minecraft Education | |||||||
1.0 | Added NPCs. These NPCs are editable and can be given commands to do certain actions.
{"type": "education", "version": "1.0", "exp": "", "snap": "", "content": "Added NPCs. These NPCs are editable and can be given (link to commands article, displayed as commands) to do certain actions."} | ||||||
1.0.2 | NPC interface page is now more advanced.
{"type": "education", "version": "1.0.2", "exp": "", "snap": "", "content": "NPC interface page is now more advanced."} | ||||||
Added button mode for the URL and commands.
{"type": "education", "version": "1.0.2", "exp": "", "snap": "", "content": "Added button mode for the URL and commands."} |
Issues
Issues relating to "NPC" are maintained on the bug tracker. Issues should be reported and viewed there.
Trivia
- The NPC will instantly die when going below y=0 and makes wood placing sounds as it vaporizes.
- Even though the NPC can easily be killed with the world builder permission, it cannot be killed by using the
/kill
command. - The name of the NPC will remain visible from a distance, even through walls.
Gallery
-
NPC.
-
Example of a spawned NPC named
§eNPC
. -
NPC skins.
References
[hide] | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||
|