mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
docs: Add npc rotate command and inverted need_permission
This commit is contained in:
@@ -177,6 +177,13 @@ Teleports NPC to specified location.
|
|||||||
- **Syntax**: `/npc move_to (npc) (x) (y) (z) [world] [--look-in-my-direction]`
|
- **Syntax**: `/npc move_to (npc) (x) (y) (z) [world] [--look-in-my-direction]`
|
||||||
- **Permissions**: `fancynpcs.command.npc.move_to`
|
- **Permissions**: `fancynpcs.command.npc.move_to`
|
||||||
|
|
||||||
|
### Rotate npc
|
||||||
|
|
||||||
|
Sets the yaw and pitch of the specified NPC.
|
||||||
|
|
||||||
|
- **Syntax**: `/npc rotate (npc) (yaw) (pitch)`
|
||||||
|
- **Permissions**: `fancynpcs.command.npc.rotate`
|
||||||
|
|
||||||
### Center npc location
|
### Center npc location
|
||||||
|
|
||||||
Centers the NPC to the specified location.
|
Centers the NPC to the specified location.
|
||||||
|
|||||||
@@ -122,6 +122,10 @@ Syntax: `need_permission (permission)`
|
|||||||
|
|
||||||
Example: `/npc action (npc) (trigger) add need_permission my.cool.permission`
|
Example: `/npc action (npc) (trigger) add need_permission my.cool.permission`
|
||||||
|
|
||||||
|
!!!info
|
||||||
|
If you add the `!` prefix to the permission, the action will be inverted. This means that the action list will be canceled if the player has the permission.
|
||||||
|
!!!
|
||||||
|
|
||||||
### play_sound
|
### play_sound
|
||||||
|
|
||||||
Plays a sound to the player. This action is useful for creating audio feedback for the player when interacting with the NPC.
|
Plays a sound to the player. This action is useful for creating audio feedback for the player when interacting with the NPC.
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
- Added support for 1.21.11
|
- Added support for 1.21.11
|
||||||
- Fixed skin mirroring for 1.21.9
|
- Fixed skin mirroring for 1.21.9
|
||||||
|
- Added inverted permission check for `need_permission` action (use prefix `!` to invert)
|
||||||
|
- Added `/npc rotate <npc> <yaw> <pitch>` command to set NPC orientation
|
||||||
- Added `swing_arm_on_update` config option
|
- Added `swing_arm_on_update` config option
|
||||||
- Added `use-minecraft-usercache` feature flag
|
- Added `use-minecraft-usercache` feature flag
|
||||||
Reference in New Issue
Block a user