3
3
This page provides detailed information about the various commands available in FancyNpcs, allowing you to make the
4
4
most out of its features.
5
5
6
+ ## Commadns for /fancynpcs
7
+
6
8
### ` /fancynpcs feature_flags `
7
9
8
10
- ** Syntax** : ` /fancynpcs feature_flags `
@@ -23,6 +25,8 @@ most out of its features.
23
25
- ** Syntax** : ` /fancynpcs version `
24
26
- ** Permissions** : ` fancynpcs.command.fancynpcs.version `
25
27
28
+ ## Commadns for /npc
29
+
26
30
### ` /npc attribute `
27
31
28
32
Sets an attribute of the NPC.
@@ -126,28 +130,6 @@ Lists all NPCs in all worlds. Can be filtered and sorted.
126
130
- ** Syntax** : ` /npc list [--type (type)] [--sort (sort)] `
127
131
- ** Permissions** : ` fancynpcs.command.npc.list `
128
132
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
-
151
133
### ` /npc move_here `
152
134
153
135
Teleports specified NPC to your location.
@@ -169,51 +151,13 @@ Lists all NPCs in your world. Can be filtered and sorted.
169
151
- ** Syntax** : ` /npc nearby [--radius (radius)] [--type (type)] [--sort (sort)] `
170
152
- ** Permissions** : ` fancynpcs.command.npc.nearby `
171
153
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
-
191
154
### ` /npc remove `
192
155
193
156
Removes the specified NPC.
194
157
195
158
- ** Syntax** : ` /npc remove (npc) `
196
159
- ** Permissions** : ` fancynpcs.command.npc.remove `
197
160
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
-
217
161
### ` /npc show_in_tab `
218
162
219
163
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.
266
210
Changes the scale of the size of the NPC.
267
211
268
212
- ** 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