The interface allows the player to edit the dialog, name, appearance and advanced settings. It can be edited only as long as the player has the world builder permission. Right-clicking an NPC displays the interface. NPC interface with world builder permission. NPC interface without world builder permission. However, an NPC dies when going below Y=-64, and despawns if it falls into the void. An NPC is attacked by zoglins, withers, wardens, and vindicators named Johnny, but the NPC remains undamaged. NPCs can also block minecarts from passing. The NPCs can be pushed by sticky pistons from below or sides with a slime block attached and they can slide on ice when pushed.
Nevertheless, the NPCs can still turn their body and stare at the nearest player if close enough. They also cannot take damage nor be affected by potions. They can neither move nor be pushed by other entities. 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. The default name is 'NPC' with a color code of §e, resulting in the name being yellow. When spawned, an NPC displays a name hovering over its head.
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 spawn_egg 1 51), or by using the command /summon npc.