概述
BlockDiff 是一款适用于 Forge 1.20.1 的模组,用于跟踪和修复玩家定义区域内的差异。它提供了保存快照、将当前方块与快照进行对比,以及使用各种支付方式修复缺失/多余方块的工具。
入门指南
从创造模式标签页“BlockDiff”中获取物品/方块,或使用下方的配方制作它们。
使用快照棒(Snapshot Wand)或 /blockdiff 命令来定义并保存一个区域。
在区域内放置修复方块(Repair Block)以打开修复图形用户界面(GUI)。
使用远程修复终端(Remote Repair Terminal)从远处访问和管理多个区域。
命令
/blockdiff <objective> <x1> <y1> <z1> <x2> <y2> <z2> <mode>
保存快照或比较当前方块。
<mode>: missing(缺失)、extra(多余)、all(全部)
/blockdiff auto <objective> start <mode>
开始每秒自动进行比较。
/blockdiff auto <objective> stop
停止自动比较。
/blockdiff clear <objective>
移除一个快照。
坐标支持通过玩家瞄准的方块或当前位置进行 Tab 补全。
物品与方块
修复方块 (Repair Block)
右键单击以打开包含该方块的区域的修复 GUI。
Shift + 右键单击以删除区域快照。
可以制作。
远程修复终端 (Remote Repair Terminal)
右键单击以打开一个远程 GUI,列出所有附近的快照(在 remoteRange 范围内)。
只有包含修复方块(Repair Block)的区域才能被打开。
左键单击某个区域以打开其修复 GUI。
右键单击某个区域以重命名它。
点击红色的“Delete”按钮以移除快照。
Shift + 右键单击方块本身以删除包含它的快照。
拥有自定义模型和碰撞箱。
快照法杖
Shift + 右键:切换模式(缺失 / 多余 / 全部)。
右键第一个方块:设置点 1。
右键第二个方块:设置点 2 并显示粒子轮廓。
第三次右键:打开命名界面并保存快照。
必须重命名该法杖(例如在铁砧中)以赋予快照名称,或者使用命名界面。
修复 GUI
按钮(从上到下):
代币选择:点击在钻石、金锭和绿宝石之间循环切换。
常规修复:按住以持续修复。
缺失的方块会消耗对应的物品;多余的方块每块消耗 2 点饥饿值。
代币修复:按住以使用选定的代币进行修复(速度是常规的 10 倍)。
如果你是管理员(权限等级 2),点击此按钮将执行忽略所有列表的即时全量修复。
显示差异:切换此区域的线框叠加层。
白色 = 区域边界
红色 = 多余方块(最高优先级)
蓝色 = 状态变更方块(同一方块,不同状态)
绿色 = 缺失方块
叠加层每秒刷新一次,且在 GUI 关闭后仍然保留。
重命名区域:打开一个用于重命名快照的界面。
关闭:关闭 GUI。
长按修复按钮会显示进度条。修复速度由 repairSpeed 配置控制(常规模式默认每秒 5 个方块,代币模式为每秒 50 个)。
配置
文件:config/blockdiff-server.toml
键 默认值 描述
tokenItem minecraft:diamond 用作默认令牌的物品
repairSpeed 5 常规修复每秒可修复的方块数量
remoteRange 200 远程修复终端的搜索半径
whitelist ... 不会被移除为额外方块的方块列表
blacklist ... 不会被恢复为缺失方块的方块列表
stateIgnoredBlocks ... 状态差异将被忽略的方块列表
Overview
BlockDiff is a Forge mod (1.20.1) for tracking and repairing differences in player-defined regions. It provides tools to save snapshots, compare current blocks against those snapshots, and repair missing/extra blocks using various payment methods.
Getting Started
Obtain the items/blocks from the creative tab "BlockDiff" or craft them using the recipes below.
Use the Snapshot Wand or the /blockdiff command to define and save a region.
Place a Repair Block inside the region to open the repair GUI.
Use the Remote Repair Terminal to access and manage multiple regions from a distance.
Commands
/blockdiff <objective> <x1> <y1> <z1> <x2> <y2> <z2> <mode>
Saves a snapshot or compares current blocks.
<mode>: missing, extra, all
/blockdiff auto <objective> start <mode>
Starts automatic comparison every second.
/blockdiff auto <objective> stop
Stops automatic comparison.
/blockdiff clear <objective>
Removes a snapshot.
Coordinates support Tab completion using the player's targeted block or current position.
Items & Blocks
Repair Block
Right-click to open repair GUI for the containing region.
Shift + right-click to delete the region snapshot.
Can be crafted.
Remote Repair Terminal
Right-click to open a remote GUI listing all nearby snapshots (within remoteRange).
Only regions containing a Repair Block can be opened.
Left-click a region to open its repair GUI.
Right-click a region to rename it.
Click the red "Delete" button to remove the snapshot.
Shift + right-click the block itself to delete the snapshot containing it.
Has custom model and collision box.
Snapshot Wand
Shift + right-click: cycle mode (missing / extra / all).
Right-click first block: set point 1.
Right-click second block: set point 2 and show particle outline.
Right-click a third time: open naming screen and save snapshot.
The wand must be renamed (e.g., in an anvil) to give the snapshot a name, or use the naming screen.
Repair GUI
Buttons (top to bottom):
Token Selection: Click to cycle between diamond, gold ingot, and emerald.
Regular Repair: Hold to repair continuously.
Missing blocks consume their corresponding item; extra blocks consume 2 hunger per block.
Token Repair: Hold to repair using selected token (10× speed of regular).
If you are an admin (permission level 2), clicking this button performs instant, full repair ignoring all lists.
Show Differences: Toggles wireframe overlay for this region.
White = region border
Red = extra blocks (highest priority)
Blue = state-changed blocks (same block, different state)
Green = missing blocks
Overlay refreshes every second and stays after GUI closes.
Rename Region: Opens a screen to rename the snapshot.
Close: Closes the GUI.
Long-press repair buttons show a progress bar. Repair speed is controlled by repairSpeed config (default 5 blocks per second for regular, 50 for token).
Configuration
File: config/blockdiff-server.toml
Key Default Description
tokenItem minecraft:diamond Item used as default token
repairSpeed 5 Blocks repaired per second by regular repair
remoteRange 200 Search radius for Remote Repair Terminal
whitelist ... Blocks that will not be removed as extra
blacklist ... Blocks that will not be restored as missing
stateIgnoredBlocks ... Blocks where state differences are ignored
评论 0
登录后参与评分
还没有评论,来抢沙发吧