#(yriokiri) Npc creation

11 messages · Page 1 of 1 (latest)

hollow swan
#

Hey guys is there a way for me to create an item that will generate a sentinel npc on right click? is possible? wanted to let my player place sentinels

reef cometBOT
#

(yriokiri) Npc creation

reef cometBOT
#

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.

woeful isle
#

!c create

edgy ventureBOT
# woeful isle !c create
Required Plugins or Platforms

Citizens

Group

npc

Syntax

create [<entity>] [<name>] (<location>) (traits:<trait>|...) (registry:<name>)

Short Description

Creates a new NPC, and optionally spawns it at a location.

Description

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.

woeful isle
#

!c trait

edgy ventureBOT
# woeful isle !c trait
Required Plugins or Platforms

Citizens

Group

npc

Syntax

trait (state:true/false/{toggle}) [<trait>] (to:<npc>|...)

Short Description

Adds or removes a trait from an NPC.

Description

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.

woeful isle
#

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

hollow swan
#

Thx Will try as soon as i get home