? WoolProofed
一款适用于 Paper/Spigot 的插件,让羊毛方块充当逼真的隔音材料!
WoolProofed 使用高级数据包拦截技术,当羊毛放置在声源与玩家之间时,可阻止所有声音。非常适合创建隔音红石室、静音存储系统或减少建筑中的噪音污染!
✨ 特性
? 完全隔音:当视线中有羊毛时,自动阻挡所有方块声音(包括红石、活塞、投掷器、发射器、侦测器、按钮、拉杆、门、活板门等)
? 支持所有羊毛颜色:兼容全部 16 种羊毛颜色(白色、橙色、品红、浅蓝色、黄色、黄绿色、粉色、灰色、浅灰色、青色、紫色、蓝色、棕色、绿色、红色、黑色)
? 智能射线检测:使用精确的射线计算来检查声源与玩家之间的每个方块
⚡ 性能优化:高效的数据包拦截,仅在必要时才阻挡声音
? 基于插件:服务端运行,无需客户端模组
? 要求
必需依赖项:
ProtocolLib 5.3.0+ - 下载并放入你的 plugins/ 文件夹
服务器要求:
Paper 或 Spigot 1.21.x
Java 17 或更高版本
? 安装
下载 ProtocolLib(最低版本 5.3.0)
从发布页面下载 WoolProofed
将两个 JAR 文件放入服务器的 plugins/ 文件夹
重启服务器
享受逼真的隔音效果!
? 用法
只需在自身与任何嘈杂的红石装置、农场或机械之间用羊毛方块建造墙壁、地板或天花板。插件会自动检测羊毛是否阻断了声源与玩家位置之间的直线路径。
示例用例:
? 静音红石室 - 不再令人烦躁的咔哒声
? 安静的农场设计 - 建造无需持续噪音的农场
? 隔音住房 - 保持基地宁静
? 录音棚 - 消除背景噪音以进行内容创作
⚙️ 工作原理
WoolProofed 利用 ProtocolLib 在声音数据包到达玩家客户端之前对其进行拦截。当声音即将播放时:
插件使用 ProtocolLib 的数据包监听器捕获声音数据包
它计算从声源到玩家眼睛位置的射线路径
沿此路径每 0.5 个方块检查是否存在羊毛方块
如果检测到羊毛,则在声音数据包到达客户端之前将其取消
如果未找到羊毛,则声音正常播放
这种方法是在 Minecraft 中阻挡声音的唯一可靠方法,因为它防止声音到达玩家,而不是试图在声音已经发送后停止它。
? 技术细节
使用的 API:Paper API 1.21.1-R0.1-SNAPSHOT
数据包类型:NAMED_SOUND_EFFECT, WORLD_EVENT
射线步长:0.5 个方块
检测范围:无限制(遵循 Minecraft 的自然声音范围)
性能影响:极小 - 仅当玩家附近时才处理声音
? 已知限制
需要 ProtocolLib 才能正常运行
客户端声音(如 UI 点击声)无法被阻挡
音乐唱片和唱片机不受影响
? WoolProofed
A Paper/Spigot plugin that makes wool blocks act as realistic soundproofing material!
WoolProofed uses advanced packet interception to block all sounds when wool is placed between the sound source and the player. Perfect for creating soundproof redstone rooms, silent storage systems, or reducing noise pollution in your builds!
✨ Features
? Complete Sound Blocking: Automatically blocks ALL block sounds (redstone, pistons, droppers, dispensers, observers, buttons, levers, doors, trapdoors, and more) when wool is in the line of sight
? All Wool Colors Supported: Works with all 16 wool colors (white, orange, magenta, light blue, yellow, lime, pink, gray, light gray, cyan, purple, blue, brown, green, red, black)
? Smart Raytrace Detection: Uses precise raytrace calculations to check every block between sound source and player
⚡ Performance Optimized: Efficient packet interception that only blocks sounds when necessary
? Plugin-Based: Works server-side, no client mods required
? Requirements
Required Dependencies:
ProtocolLib 5.3.0+ - Download and place in your plugins/ folder
Server Requirements:
Paper or Spigot 1.21.x
Java 17 or higher
? Installation
Download ProtocolLib (minimum version 5.3.0)
Download WoolProofed from the releases page
Place both JAR files in your server's plugins/ folder
Restart your server
Enjoy realistic soundproofing!
? Usage
Simply build walls, floors, or ceilings using wool blocks between yourself and any noisy redstone contraptions, farms, or machinery. The plugin automatically detects when wool blocks the direct line between a sound source and the player's position.
Example Use Cases:
? Silent redstone rooms - no more annoying clicking sounds
? Quiet farm designs - build farms without the constant noise
? Soundproof housing - keep your base peaceful
? Recording studios - eliminate background noise for content creation
⚙️ How It Works
WoolProofed uses ProtocolLib to intercept sound packets before they reach the player's client. When a sound is about to play:
The plugin captures the sound packet using ProtocolLib's packet listeners
It calculates a raytrace path from the sound source to the player's eye position
Every 0.5 blocks along this path, it checks if a wool block exists
If wool is detected, the sound packet is cancelled before reaching the client
If no wool is found, the sound plays normally
This approach is the only reliable method to block sounds in Minecraft, as it prevents the sound from ever reaching the player rather than trying to stop it after it's already been sent.
? Technical Details
API Used: Paper API 1.21.1-R0.1-SNAPSHOT
Packet Types: NAMED_SOUND_EFFECT, WORLD_EVENT
Raytrace Step Size: 0.5 blocks
Detection Range: Unlimited (follows Minecraft's natural sound range)
Performance Impact: Minimal - only processes sounds when players are nearby
? Known Limitations
Requires ProtocolLib to function
Client-side sounds (like UI clicks) cannot be blocked
Music discs and jukeboxes are not affected
评论 0
登录后参与评分
还没有评论,来抢沙发吧