effect
create npc <name> at <location>HyperCitizensMake an NPC that looks like a player
create npc "&aGuide" at player's location← All of the Docs HyperCitizens
create npc <name> at <location>HyperCitizensMake an NPC that looks like a player
create npc "&aGuide" at player's locationcreate npc <name> as <kind> at <location>HyperCitizensMake one that is a creature: "villager", "cow", "zombie" and so on
create npc "Rex" as "wolf" at player's locationdelete npc <npc>HyperCitizensRemove an NPC for good
delete npc "Guide"rename npc <npc> to <name>HyperCitizensGive it another name; colour codes work
rename npc {guide} to arg.1set skin of npc <npc> to <player name>HyperCitizensFor an NPC that looks like a player: whose skin it wears
set skin of npc last created npc to "Notch"last created npcHyperCitizensThe number of the NPC create npc made most recently
set {guide} to last created npccommand /setguide:
permission: "npcs.manage"
players only: true
trigger:
create npc "&aGuide" at player's location
set skin of npc last created npc to "Notch"
set {guide} to last created npc
send "&aThe guide stands here now (number %{guide}%)."
command /setcow:
permission: "npcs.manage"
players only: true
trigger:
create npc "Bessie" as "cow" at player's location
command /nameguide <name>:
permission: "npcs.manage"
trigger:
rename npc {guide} to arg.1
send "&aThe guide is now called %arg.1%."
command /removeguide:
permission: "npcs.manage"
trigger:
delete npc "Guide"
| Syntax | Effect |
|---|---|
create npc <name> at <location> | Make an NPC that looks like a player |
create npc <name> as <kind> at <location> | Make one that is a creature: "villager", "cow", "zombie" and so on |
delete npc <npc> | Remove an NPC for good |
rename npc <npc> to <name> | Give it another name; colour codes work |
set skin of npc <npc> to <player name> | For an NPC that looks like a player: whose skin it wears |
last created npc | The number of the NPC create npc made most recently |
<npc> is an NPC's number or its name: delete npc 3, delete npc "Guide". A name is compared without colours. The number never changes and is the safe one to keep in a variable.create npc once, from a command; an on load: block would make another one at every reload.