#(yriokiri) Npc creation
11 messages · Page 1 of 1 (latest)
(yriokiri) Npc creation
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
!c create
Citizens
npc
create [<entity>] [<name>] (<location>) (traits:<trait>|...) (registry:<name>)
Creates a new NPC, and optionally spawns it at a location.
Creates an npc which the entity type specified, or specify an existing npc to create a copy.
If no location is specified the npc is created despawned.
Use the 'save:<savename>' argument to return the npc for later use in a script.
Optionally specify a list of traits to immediately apply when creating the NPC.
Optionally specify a custom registry to create the NPC into. (Most users, leave this option off).
Will generate a new registry if needed.
!c trait
Citizens
npc
trait (state:true/false/{toggle}) [<trait>] (to:<npc>|...)
Adds or removes a trait from an NPC.
This command adds or removes a trait from an NPC.
Use "state:true" to add or "state:false" to remove.
If neither is specified, the default is "toggle", which means remove if already present or add if not.
Note that a redundant instruction, like adding a trait that the NPC already has, will give an error message.
The trait input is simply the name of the trait, like "sentinel".
Optionally, specify a list of NPCs to apply the trait to. If unspecified, the linked NPC will be used.
create the npc
apply sentinel trait and others that may be relevant, like health
and then for configuring the npc's sentinel options, you'll have to use execute as_server "sentinel ... --id <[yournpc].id>" silent
Thx Will try as soon as i get home