MoreHeadSounds
作者: thojo0 & PYZR
描述
MoreHeadSounds 是一款 Minecraft 插件,通过将自定义声音与玩家头颅和音符盒关联,增强游戏体验。该插件提供了一种独特的方式来定制你 Minecraft 世界中的声音,为玩家互动和事件增添个性化和趣味性。
功能
- 玩家头颅的自定义声音: 为特定的玩家头颅分配声音,这些声音可以在与音符盒交互时触发。
- 动态声音配置: 通过配置文件轻松配置哪些声音应包含或排除在特定玩家头颅中。
- 便于管理的命令:
- /moreheadsounds config: 允许更改配置。
- /moreheadsounds clearItem: 清除你手中所持玩家头颅上的自定义声音。
- /moreheadsounds getHash: 获取你手持或注视的玩家头颅的材质哈希值,有助于调试和配置。
- Tab 补全: 为命令和坐标提供便捷的 Tab 补全功能,使使用插件功能更加容易。
命令与权限
-
/moreheadsounds config reload
- 权限:
moreheadsounds.config
- 描述: 重新加载插件配置。
-
/moreheadsounds config list [page]
- 权限:
moreheadsounds.config
- 描述: 列出所有已配置的头颅哈希值。
-
/moreheadsounds config include <sound>
- 权限:
moreheadsounds.config
- 描述: 将一种声音添加到所持头颅的包含列表中。
-
/moreheadsounds config exclude <sound>
- 权限:
moreheadsounds.config
- 描述: 将一种声音添加到所持头颅的排除列表中。
-
/moreheadsounds config remove <sound>
- 权限:
moreheadsounds.config
- 描述: 从所持头颅的配置中移除一种声音。
-
/moreheadsounds config show
- 权限:
moreheadsounds.config
- 描述: 显示所持头颅的配置,包括当前激活声音的预览。
-
/moreheadsounds clearItem
- 权限:
moreheadsounds.clearItem
- 描述: 清除主手所持玩家头颅上的自定义声音。
-
/moreheadsounds getHash
- 权限:
moreheadsounds.getHash
- 描述: 获取你手持或注视的玩家头颅的材质哈希值,有助于调试和配置。
配置
插件的配置文件(config.yml)允许服务器管理员指定哪些声音应包含或排除在特定玩家头颅中。这使得你可以对 Minecraft 世界中应用於玩家头颅的自定义声音进行精细控制。
配置基于玩家头颅的材质哈希值。对于每个哈希值,你可以为声音指定 include(包含)和 exclude(排除)列表。条目必须是有效的命名空间标识符。
include:要与头颅关联的声音或声音类别列表。
exclude:要排除的声音或声音类别列表。
你可以指定单个声音(例如 entity.creeper.primed),其中包括来自材质包的自定义声音;或者通过以点结尾来指定整个声音类别(例如 entity.creeper.)。
处理顺序如下:
- 添加
include 列表中所有类别的声音。
- 移除
exclude 列表中所有类别的声音。
- 添加
include 列表中所有单个声音。
- 移除
exclude 列表中所有单个声音。
示例:
e50294a1747310f104124c6373cc639b712baa57b7d926297b645188b7bb9ab9:
include:
- entity.allay.
a3c34722ac64496c9b84d0c54019daae6185d6094990133ad6810eea3d24067a:
include:
- entity.parrot.
exclude:
- entity.parrot.imitate.
安装
- 下载 MoreHeadSounds 插件 jar 文件。
- 将 jar 文件放入服务器的
plugins 目录中。
- 启动或重启你的服务器。
- 插件将在
plugins/MoreHeadSounds 目录中创建默认配置文件。
- 根据需要编辑配置文件以定制玩家头颅的声音。
- 使用
/moreheadsounds config reload 应用对配置文件所做的任何更改。
用法
- 手持一个玩家头颅并使用
/moreheadsounds clearItem 命令移除其上的任何自定义声音。
- 使用
/moreheadsounds getHash 命令获取玩家头颅的材质哈希值,该值可用于配置文件中。
- 放置一个音符盒并在其上方放置一个玩家头颅,在与音符盒交互时触发自定义声音。
支持
如需支持和更多信息,请访问插件的官方页面或联系作者。
MoreHeadSounds
Authors: thojo0 & PYZR
Description
MoreHeadSounds is a Minecraft plugin that enhances the gameplay experience by allowing custom sounds to be associated with player heads and note blocks. This plugin provides a unique way to customize the sounds in your Minecraft world, adding a layer of personalization and fun to player interactions and events.
Features
- Custom Sounds for Player Heads: Assign specific sounds to player heads, which can be triggered when interacting with note blocks.
- Dynamic Sound Configuration: Easily configure which sounds should be included or excluded for specific player heads using the configuration file.
- Commands for Easy Management:
- /moreheadsounds config: Allows changing the configuration.
- /moreheadsounds clearItem: Clear the custom sound from the player head you are holding.
- /moreheadsounds getHash: Retrieve the texture hash of the player head you are holding or looking at, useful for debugging and configuration.
- Tab Completion: Provides convenient tab completion for commands and coordinates, making it easier to use the plugin's features.
Commands and Permissions
-
/moreheadsounds config reload
- Permission:
moreheadsounds.config
- Description: Reloads the plugin configuration.
-
/moreheadsounds config list [page]
- Permission:
moreheadsounds.config
- Description: Lists all the configured head hashes.
-
/moreheadsounds config include <sound>
- Permission:
moreheadsounds.config
- Description: Adds a sound to the include list of the held head.
-
/moreheadsounds config exclude <sound>
- Permission:
moreheadsounds.config
- Description: Adds a sound to the exclude list of the held head.
-
/moreheadsounds config remove <sound>
- Permission:
moreheadsounds.config
- Description: Removes a sound from the held head's configuration.
-
/moreheadsounds config show
- Permission:
moreheadsounds.config
- Description: Shows the configuration of the held head, including a preview of the active sounds.
-
/moreheadsounds clearItem
- Permission:
moreheadsounds.clearItem
- Description: Clears the custom sound from the player head in your main hand.
-
/moreheadsounds getHash
- Permission:
moreheadsounds.getHash
- Description: Retrieve the texture hash of the player head you are holding or looking at, useful for debugging and configuration.
Configuration
The plugin's configuration file (config.yml) allows server administrators to specify which sounds should be included or excluded for specific player heads. This enables fine-tuned control over the custom sounds applied to player heads in your Minecraft world.
The configuration is based on the texture hash of the player heads. For each hash, you can specify include and exclude lists for sounds. The entries must be valid namespaced identifiers.
include: A list of sounds or sound categories to be associated with the head.
exclude: A list of sounds or sound categories to be excluded.
You can specify a single sound (e.g., entity.creeper.primed) including custom sounds from texture packs, or a whole category of sounds by ending with a dot (e.g., entity.creeper.).
The processing order is as follows:
- All sounds from categories in the
include list are added.
- All sounds from categories in the
exclude list are removed.
- All single sounds from the
include list are added.
- All single sounds from the
exclude list are removed.
Example:
e50294a1747310f104124c6373cc639b712baa57b7d926297b645188b7bb9ab9:
include:
- entity.allay.
a3c34722ac64496c9b84d0c54019daae6185d6094990133ad6810eea3d24067a:
include:
- entity.parrot.
exclude:
- entity.parrot.imitate.
Installation
- Download the MoreHeadSounds plugin jar file.
- Place the jar file in your server's
plugins directory.
- Start or restart your server.
- The plugin will create a default configuration file in the
plugins/MoreHeadSounds directory.
- Edit the configuration file as needed to customize the sounds for player heads.
- Use
/moreheadsounds config reload to apply any changes made to the configuration file.
Usage
- Hold a player head and use the
/moreheadsounds clearItem command to remove any custom sound from it.
- Use the
/moreheadsounds getHash command to get the texture hash of a player head, which can be used in the configuration file.
- Place a note block and a player head above it to trigger the custom sound when interacting with the note block.
Support
For support and more information, visit the plugin's official page or contact the authors.
评论 0
登录后参与评分
还没有评论,来抢沙发吧