Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 68161e2

Browse files
Add and remove command sections for /npc actions
1 parent bd25be7 commit 68161e2

File tree

1 file changed

+68
-61
lines changed

1 file changed

+68
-61
lines changed

Writerside/topics/FN-Commands.md

Lines changed: 68 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
This page provides detailed information about the various commands available in FancyNpcs, allowing you to make the
44
most out of its features.
55

6+
## Commadns for /fancynpcs
7+
68
### `/fancynpcs feature_flags`
79

810
- **Syntax**: `/fancynpcs feature_flags`
@@ -23,6 +25,8 @@ most out of its features.
2325
- **Syntax**: `/fancynpcs version`
2426
- **Permissions**: `fancynpcs.command.fancynpcs.version`
2527

28+
## Commadns for /npc
29+
2630
### `/npc attribute`
2731

2832
Sets an attribute of the NPC.
@@ -126,28 +130,6 @@ Lists all NPCs in all worlds. Can be filtered and sorted.
126130
- **Syntax**: `/npc list [--type (type)] [--sort (sort)]`
127131
- **Permissions**: `fancynpcs.command.npc.list`
128132

129-
### `/npc message`
130-
131-
``add`` - Adds a new message to the list.
132-
133-
``set`` - Sets a message at a specific index.
134-
135-
``remove`` - Removes a message at a specific index.
136-
137-
``clear`` - Clears all messages.
138-
139-
``list`` - Lists all messages.
140-
141-
``send_randomly`` - Changes the order of messages to be sent randomly.
142-
143-
Messages are shown to players when they interact with the NPC.
144-
145-
PlaceholderAPI and MiniPlaceholders are supported.
146-
147-
- **Syntax**: `/npc message (npc) (add | set | remove | clear | list | send_randmly)`
148-
- **Permissions**: `fancynpcs.command.npc.message.(sub)`
149-
- Empty message placeholder is `@none`.
150-
151133
### `/npc move_here`
152134

153135
Teleports specified NPC to your location.
@@ -169,51 +151,13 @@ Lists all NPCs in your world. Can be filtered and sorted.
169151
- **Syntax**: `/npc nearby [--radius (radius)] [--type (type)] [--sort (sort)]`
170152
- **Permissions**: `fancynpcs.command.npc.nearby`
171153

172-
### `/npc player_command`
173-
174-
``add`` - Adds a new player command to the list.
175-
176-
``set`` - Sets a player command at a specific index.
177-
178-
``remove`` - Removes a player command at a specific index.
179-
180-
``clear`` - Clears all player commands.
181-
182-
``list`` - Lists all player commands.
183-
184-
Player commands are executed by the player when players interact with the NPC.
185-
186-
PlaceholderAPI and MiniPlaceholders are supported.
187-
188-
- **Syntax**: `/npc player_command (npc) (add | set | remove | clear | list)`
189-
- **Permissions**: `fancynpcs.command.npc.player_command.(sub)`
190-
191154
### `/npc remove`
192155

193156
Removes the specified NPC.
194157

195158
- **Syntax**: `/npc remove (npc)`
196159
- **Permissions**: `fancynpcs.command.npc.remove`
197160

198-
### `/npc server_command`
199-
200-
``add`` - Adds a new server command to the list.
201-
202-
``set`` - Sets a server command at a specific index.
203-
204-
``remove`` - Removes a server command at a specific index.
205-
206-
``clear`` - Clears all server commands.
207-
208-
``list`` - Lists all server commands.
209-
210-
Server commands are executed by the console, when players interact with the NPC.
211-
212-
PlaceholderAPI and MiniPlaceholders are supported.
213-
214-
- **Syntax**: `/npc server_command (npc) (add | set | remove | clear | list)`
215-
- **Permissions**: `fancynpcs.command.npc.server_command.(sub)`
216-
217161
### `/npc show_in_tab`
218162

219163
Changes whether the NPC is shown in the player-list. This works only on NPCs of PLAYER type.
@@ -266,4 +210,67 @@ Changes the type of the NPC.
266210
Changes the scale of the size of the NPC.
267211

268212
- **Syntax**: `/npc scale (npc) (factor)`
269-
- **Permissions**: `fancynpcs.command.npc.scale`
213+
- **Permissions**: `fancynpcs.command.npc.scale`
214+
215+
### `Add action`
216+
217+
Adds an action to the specified NPC's trigger.
218+
219+
- **Syntax**: `/npc action (npc) (trigger) add (actionType) [value]`
220+
- **Permissions**: `fancynpcs.command.npc.action.add`
221+
222+
### `Add action before`
223+
224+
Adds an action before the specified index in the NPC's action list for the given trigger.
225+
226+
- **Syntax**: `/npc action (npc) (trigger) add_before (index) (actionType) [value]`
227+
- **Permissions**: `fancynpcs.command.npc.action.addBefore`
228+
229+
### `Add action after`
230+
231+
Adds an action after the specified index in the NPC's action list for the given trigger.
232+
233+
- **Syntax**: `/npc action (npc) (trigger) add_after (index) (actionType) [value]`
234+
- **Permissions**: `fancynpcs.command.npc.action.addAfter`
235+
236+
### `Set action`
237+
238+
Sets an action at the specified number in the NPC's action list for the given trigger.
239+
240+
- **Syntax**: `/npc action (npc) (trigger) set (number) (actionType) [value]`
241+
- **Permissions**: `fancynpcs.command.npc.action.set`
242+
243+
### `Remove action`
244+
245+
Removes an action from the NPC's action list based on the specified number for the given trigger.
246+
247+
- **Syntax**: `/npc action (npc) (trigger) remove (number)`
248+
- **Permissions**: `fancynpcs.command.npc.action.remove`
249+
250+
### `Move action up`
251+
252+
Moves the action at the specified number up in the NPC's action list for the given trigger.
253+
254+
- **Syntax**: `/npc action (npc) (trigger) move_up (number)`
255+
- **Permissions**: `fancynpcs.command.npc.action.moveUp`
256+
257+
### `Move action down`
258+
259+
Moves the action at the specified number down in the NPC's action list for the given trigger.
260+
261+
- **Syntax**: `/npc action (npc) (trigger) move_down (number)`
262+
- **Permissions**: `fancynpcs.command.npc.action.moveDown`
263+
264+
### `Clear actions`
265+
266+
Clears all actions from the NPC for the given trigger.
267+
268+
- **Syntax**: `/npc action (npc) (trigger) clear`
269+
- **Permissions**: `fancynpcs.command.npc.action.clear`
270+
271+
### `List actions`
272+
273+
Lists all actions for the specified NPC and trigger.
274+
275+
- **Syntax**: `/npc action (npc) (trigger) list`
276+
- **Permissions**: `fancynpcs.command.npc.action.list`

0 commit comments

Comments
 (0)