InventorySounds

点击物品栏时的声音

资源图片
通过在与物品栏交互时播放自定义声音来增强您的服务器体验! **InventorySounds** 允许在玩家点击物品栏中的物品时播放特定声音。您可以轻松地为每个物品设置预设和特定声音,并根据需要调整音量和音调。 ### 命令: - /inventorysound reload: 重新加载插件配置。 ### 权限: - inventorysounds.reload: 允许您使用 /inventorysound reload 命令。 **config.yml**
Config.yml ```yml ############################### # # # SOUND DEFAULT # # # ############################### # This section defines the default sound that will be played # when clicking on an item that is not specifically configured # in the items section. # # active: true/false - Whether the sound is active or not. # sound: Sound name - The name of the sound to be played. # volume: Sound volume - The volume of the sound (0.0 - 1.0). # pitch: Sound pitch - The pitch of the sound (0.0 - 2.0). inventorysound_default: active: true sound: "BLOCK_NOTE_BLOCK_PLING" volume: 1.0 pitch: 1.0 ############################### # # # ITEMS # # # ############################### # This section allows defining specific sounds for different # items. If an item is not configured here, the default sound # defined in 'inventorysound_default' will be used. items: active: true diamond: type: "DIAMOND" sound: "ENTITY_EXPERIENCE_ORB_PICKUP" volume: 1.0 pitch: 1.0 oro: type: "GOLD_ORE" sound: "BLOCK_GOLD_BLOCK_BREAK" volume: 1.0 pitch: 1.0 ############################### # # # OTHER INVENTORIES # # # ############################### # This section allows defining specific sounds for different # types of inventories, such as chests, furnaces, etc. # BLOCKS: ANVIL, FURNACE, DISPENSER, DROPPER, HOPPER, SHULKER_BOX, BEACON. # Etc, more at: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/inventory/InventoryType.html other_invs: active: true anvil: block: "ANVIL" sound: "ENTITY_EXPERIENCE_ORB_PICKUP" volume: 1.0 pitch: 1.0 furnace: block: "FURNACE" sound: "ENTITY_EXPERIENCE_ORB_PICKUP" volume: 1.0 pitch: 1.0 ```