docs: Add npc rotate command and inverted need_permission

This commit is contained in:
Oliver
2025-11-08 13:36:33 +01:00
parent 24c1907eec
commit ab5826be3c
3 changed files with 14 additions and 1 deletions

View File

@@ -177,6 +177,13 @@ Teleports NPC to specified location.
- **Syntax**: `/npc move_to (npc) (x) (y) (z) [world] [--look-in-my-direction]`
- **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
Centers the NPC to the specified location.

View File

@@ -122,6 +122,10 @@ Syntax: `need_permission (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
Plays a sound to the player. This action is useful for creating audio feedback for the player when interacting with the NPC.

View File

@@ -1,4 +1,6 @@
- Added support for 1.21.11
- 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 `use-minecraft-usercache` feature flag