Create Bugfix: Clipboard Patch
简介
本模组修复了 Create Mod 在 Minecraft 1.21+ 中剪贴板物品的一个关键漏洞。含有非法数据组件的恶意修改版剪贴板可能触发物品复制。该补丁会自动清理组件数据,以确保游戏安全。
技术机制
- 事件监听:挂钩
ItemTossEvent(玩家丢弃物品事件)
- 物品识别:检测被丢弃的物品是否为
create:clipboard
- 组件白名单:仅保留以下数据:
create:clipboard_pages(页面内容)
create:clipboard_type(剪贴板类型)
- 非法组件处理:
- 生成干净的剪贴板实例
- 迁移白名单内的有效数据
- 自动替换被丢弃的物品
- 漏洞防护:通过拦截
container 或其他非法组件来阻止物品复制
修复影响
- 永久修补物品复制漏洞
- 保持剪贴板的正常功能(文本/图标得以保留)
- 兼容 Create Mod 6.0 以上版本
Create Bugfix: Clipboard Patch
Introduction
This mod fixes a critical exploit in Create Mod's clipboard item for Minecraft 1.21+. Maliciously modified clipboards with illegal data components could trigger item duplication. The patch automatically sanitizes component data to ensure gameplay security.
Technical Mechanism
- Event Monitoring: Hooks into
ItemTossEvent (player item-drop event)
- Item Identification: Detects if dropped item is
create:clipboard
- Component Whitelisting: Only preserves:
create:clipboard_pages (page content)
create:clipboard_type (clipboard type)
- Illegal Component Handling:
- Generates clean clipboard instance
- Migrates whitelisted valid data
- Auto-replaces dropped item
- Exploit Prevention: Blocks item duplication via
container or other illegal components
Fix Impact
- Permanently patches item duplication exploits
- Maintains normal clipboard functionality (text/icons preserved)
- Compatible with Create Mod versions larger than 6.0
评论 0
登录后参与评分
还没有评论,来抢沙发吧