effect
set tool of npc <npc> to <item>HyperCitizensWhat it holds. Also offhand, helmet, chestplate, leggings and boots; to nothing empties the slot
set tool of npc {guard} to nothing← All of the Docs HyperCitizens
set tool of npc <npc> to <item>HyperCitizensWhat it holds. Also offhand, helmet, chestplate, leggings and boots; to nothing empties the slot
set tool of npc {guard} to nothingadd hologram line <text> to npc <npc>HyperCitizensA line of floating text above it
add hologram line "&7Right-click to talk" to npc {guard}clear hologram of npc <npc>HyperCitizensTake that text away
clear hologram of npc {guard}make npc <npc> watch playersHyperCitizensIt turns to look at whoever comes near
make npc {guard} watch playersmake npc <npc> stop watchingHyperCitizensIt looks ahead again
make npc {guard} stop watchingmake npc <npc> follow <who>HyperCitizensIt walks after a player
make npc last created npc follow playermake npc <npc> stop followingHyperCitizensIt stays where it is
make npc "Rex" stop followingmake npc <npc> patrol <location>, <location>HyperCitizensIt walks from place to place and round again; give two or more
make npc {guard} patrol {gate.north}, {gate.south}make npc <npc> stop patrollingHyperCitizensIt stops where it is
make npc {guard} stop patrollinghide npc <npc> from <who>HyperCitizensThat player no longer sees the NPC; everybody else still does. from all players hides it from everyone who is on now
hide npc "ghost" from arg.1show npc <npc> to <who>HyperCitizensThey see it again
show npc "ghost" to arg.1make npc <npc> swing armHyperCitizensOne swing of its arm, as when it hits something
make npc {_npc} swing armcommand /setguard:
permission: "npcs.manage"
players only: true
trigger:
create npc "&cGuard" at player's location
set {guard} to last created npc
set tool of npc {guard} to diamond sword
set helmet of npc {guard} to iron helmet
set chestplate of npc {guard} to iron chestplate
add hologram line "&7Right-click to talk" to npc {guard}
make npc {guard} watch players
command /guardpatrol:
permission: "npcs.manage"
trigger:
make npc {guard} patrol {gate.north}, {gate.south}
command /pet:
players only: true
trigger:
create npc "Rex" as "wolf" at player's location
make npc last created npc follow player
command /petstay:
trigger:
make npc "Rex" stop following
command /guardrest:
permission: "npcs.manage"
trigger:
make npc {guard} stop patrolling
make npc {guard} stop watching
set tool of npc {guard} to nothing
clear hologram of npc {guard}
| Syntax | Effect |
|---|---|
set tool of npc <npc> to <item> | What it holds. Also offhand, helmet, chestplate, leggings and boots; to nothing empties the slot |
add hologram line <text> to npc <npc> | A line of floating text above it |
clear hologram of npc <npc> | Take that text away |
make npc <npc> watch players | It turns to look at whoever comes near |
make npc <npc> stop watching | It looks ahead again |
make npc <npc> follow <who> | It walks after a player |
make npc <npc> stop following | It stays where it is |
make npc <npc> patrol <location>, <location> | It walks from place to place and round again; give two or more |
make npc <npc> stop patrolling | It stops where it is |
hide npc <npc> from <who> | That player no longer sees the NPC; everybody else still does. from all players hides it from everyone who is on now |
show npc <npc> to <who> | They see it again |
make npc <npc> swing arm | One swing of its arm, as when it hits something |
on server start: block.