ADQ Tweaks
ADQ Tweaks 是 Aeronautics Delivery Quests (ADQ / TNM Quests) 的一个 NeoForge 1.21.1 附加模组。
它在保留 ADQ 的任务板、货物蓝图、奖励、已保存任务、冷却时间、指南针以及基于 Sable 的货物运输玩法的同时,替换了不安全的任务生成机制,并增加了货物运输、交付、PvP、可见性以及任务板的改进功能。
无卡顿任务生成
ADQ Tweaks 会在 ADQ 原生生成器运行之前拦截所有公开的 ADQ/TNM 任务生成入口点。这包括自动任务生成以及通过 ADQ/TNM UI 或命令调用上游生成器的路径。
原生的 ADQ/TNM 生成过程会被取消,并重定向至 ADQ Tweaks 进行处理。
无卡顿生成器具有以下特性:
- 从不使用 ADQ 原生的
findNearestMapStructure 搜索。
- 从不使用阻塞式的
getChunkAt 调用来创建路线。
- 绝不会为了寻找任务位置而生成地形。
- 对于基于结构的路线,它会从已有区块中读取持久化的结构数据,并将其缓存以供后续使用。
- 使用有界扫描工作量和共享的生成冷却时间。
- 当无法找到经过验证的有效路线时,会安全地跳过生成,而不是导致服务器卡死。
- 记录被重定向的原生 ADQ/TNM 请求数量
这意味着如果路线搜索失败,系统会给出安全的跳过提示,而不是强制生成远处的区块,从而避免严重的 TPS 损失或集成服务器的卡死。
ADQ 配置兼容性
ADQ Tweaks 尊重 ADQ 的正常配置和任务数据。服务器管理员可以继续通过以下方式配置 ADQ:
config/aeronautics_delivery_quests.toml
该附加模组支持以下设置:
- 最小和最大运输距离。
- 任务板上允许的最大活跃任务数。
- ADQ 任务地点模式。
- 自定义任务模板。
- 自定义奖励字符串和物品组件。
- 货物蓝图。
- 重量等级和配置的货物重量。
- 由 ADQ 模板提供的固定拾取/交付坐标。
- ADQ 正常的任务板、奖励、冷却时间、存档文件以及接受流程。
任务地点模式
| ADQ 地点模式 |
ADQ Tweaks 行为 |
VILLAGE |
仅使用 ADQ 注册的 Minecraft 村庄标签中的结构。 |
ANY_STRUCTURE |
使用符合条件的地表结构,同时排除已知的地下、水下、下界和末地目的地。 |
RANDOM |
在已加载的区块中使用安全的陆地位置,且不生成地形。 |
结构端点缓存按 ADQ 地点模式分离。例如,从 ANY_STRUCTURE 更改为 VILLAGE 时,无法重用旧的通用结构端点。
地表安全的目标点和交付点
ADQ Tweaks 改进了重型整合包中的端点放置方式。
- 基于结构的路线使用检测到的结构轮廓内的点,而不是任意的区块中心坐标。
- 地下结构(如古代城市、矿井、要塞、试炼密室、海洋纪念碑、沉船、下界结构和末地城)被排除在正常的结构交付路线之外(即使修改包含它们)。
- 地表放置使用感知地形的海拔数据,而不是假设固定的 Y 轴高度。
- 当目标区块加载时,拾取和交付标记会被解析到地表位置。
- 支持高耸地形和模组化高山世界。
- 默认拒绝流体和水下端点。
- 拾取货物和交付端点会显示可见的垂直粒子信标。
- 交付半径、目标粒子半径和货物激活距离均可配置。
任务板改进
大型自定义奖励列表可能导致上游任务板重叠且难以阅读。
ADQ Tweaks 改变了任务板布局,使每个页面只显示一份合同,从而保持大型奖励列表的可读性。
该附加模组还会在生成后重新同步任务板,以确保新创建的合同可靠地出现。
货物可靠性与奖励完整性
ADQ Tweaks 围绕 Sable 货物子层级添加了多项保护和恢复改进功能。
- 在定位活跃货物时使用真实的 Sable 子层级标识。
- 跨层级搜索 Sable 容器,以减少传送或切换维度后出现的虚假“货物物理子层级丢失”错误。
- 追踪货物方块破坏情况、负责的玩家以及附近的玩家,以便未来进行挂钩或集成。
- 组装后记录测量的 Sable 货物质量,以实现更准确的重量/奖励行为。
- 当一个目标分裂成四个或更多子层级时,移除孤立的货物。
- 当任务被取消或完成时,清理货物的后代对象。
- 支持 ADQ 的按比例缺失货物奖励行为。
- 避免因损坏的货物方块导致的货物物品重复。
- 抑制重复的上游运输距离提醒聊天消息。
可选的货物 PvP 模式
货物 PvP 默认禁用,可在以下文件中启用:
config/adq_tweaks-common.toml
启用后:
- 服务器会公告玩家接受了合同。
- 玩家会被告知摧毁已接受合同的目标可以赚取奖励份额。
- 造成伤害的敌对玩家将从合同主人的奖励中获得按比例扣除的价值。
- 奖励分配使用 ADQ 的缺失货物奖励逻辑,包括在支持的范围内使用的自定义奖励字符串/组件。
- 友好玩家和合同主人 FTB 团队的成员将被排除在外。
- 如果货物完整性降至 20% 或更低,合同将自动取消。
- 当 PvP 启用时,剩余奖励将分发给符合条件的货物摧毁者。
- 当 PvP 禁用时,完整性降至 20% 或更低的货物将被移除,合同随之取消。
- 玩家可以使用
/adq_tweaks compass <player> 接收并刷新指南针,以追踪选定玩家的活跃目标。
- 指南针追踪会以可配置的间隔进行刷新。
命令
-
/adq_tweaks generate
请求执行一次正常的无卡顿任务生成过程。需要权限等级 2。
-
/adq_tweaks config
显示当前活跃的无卡顿生成安全限制。需要权限等级 2。
-
/adq_tweaks debug
为拾取、运输、交付、信标和货运测试创建一个独立的本地测试合约。这是唯一使用调试路由的命令;常规任务生成从不使用它。需要权限等级 2。
-
/adq_tweaks compass <player>
当启用货运 PvP 时,向该玩家的当前货运目标给予并刷新指南针。
配置
ADQ Tweaks 配置文件生成于:
config/adq_tweaks-common.toml
重要选项包括:
- 仅加载区块的安全生成。
- 候选者扫描限制。
- 共享生成冷却时间。
- 请求者通知行为。
- 路线范围:请求玩家、所有玩家或世界重生点。
- 旱地要求。
- 持久化结构扫描。
- 货运激活距离。
- 目标信标可见半径。
- 交付交付半径。
- 货运 PvP 模式。
- 货运破坏通知。
- 指南针命令及刷新间隔。
- 货运保护行为。
安装
- 将 ADQ Tweaks 与 Aeronautics Delivery Quests 一起安装。
- 在服务器以及使用 ADQ 的每个客户端上安装。
- 保持 ADQ 已安装状态;ADQ Tweaks 是插件,而非 ADQ 内容或界面的替代品。
- 添加或更新模组后重启游戏。
- 在
aeronautics_delivery_quests.toml 中正常配置 ADQ。
- 在
adq_tweaks-common.toml 中配置插件特定选项。
要求
- Minecraft 1.21.1
- NeoForge
- Aeronautics Delivery Quests 1.1.0
- ADQ 所需的 Create Aeronautics 和 Sable 依赖项
注意
ADQ Tweaks 有意优先选择安全的跳过生成请求,而非强制地形生成。请在请求基于结构的任务之前,探索或预生成目标区域。
调试合约仅用于测试,且与常规生成的合约分离。
Sable 将组装好的货运视为物理子层级。合并到货运中的方块(包括绳索、贴纸和连接器)在该子层级被召回时仍可能被移除。ADQ Tweaks 不会尝试不安全的方块实体退款,因为这可能导致物品栏重复或损坏玩家的机械装置。
ADQ Tweaks 是一个独立的 MIT 许可插件。它不包含、修改或重新分发 Aeronautics Delivery Quests 的 jar 文件。
感谢 Sandemon 创建了 Aeronautics Delivery Quests 模组。
ADQ Tweaks
ADQ Tweaks is a NeoForge 1.21.1 addon for Aeronautics Delivery Quests (ADQ / TNM Quests).
It keeps ADQ’s quest board, cargo schematics, rewards, saved quests, cooldowns, compasses, and Sable-based cargo gameplay, while replacing unsafe quest generation and adding cargo, delivery, PvP, visibility, and board improvements.
Lagless quest generation
ADQ Tweaks intercepts both public ADQ/TNM quest-generation entry points before ADQ’s native generator runs. This includes automatic quest generation and ADQ/TNM UI or command paths that call the upstream generator.
Native ADQ/TNM generation is cancelled and routed through ADQ Tweaks instead.
The lagless generator:
- Never uses ADQ’s native
findNearestMapStructure search.
- Never uses blocking
getChunkAt calls to create a route.
- Never generates terrain merely to find a quest location.
- Reads persisted structure data from existing chunks for structure-based routes, caching them for future use.
- Uses bounded scan work and a shared generation cooldown.
- Safely skips generation when it cannot find a proven valid route, instead of freezing the server.
- Tracks how many native ADQ/TNM requests were rerouted
This means a failed route search gives a safe skip message instead of forcing distant chunk generation and causing major TPS loss or an integrated-server freeze.
ADQ configuration compatibility
ADQ Tweaks respects ADQ’s normal configuration and quest data. Server owners can continue configuring ADQ through:
config/aeronautics_delivery_quests.toml
The addon honors:
- Minimum and maximum delivery distance.
- Maximum active quests on the board.
- ADQ quest location mode.
- Custom quest templates.
- Custom reward strings and item components.
- Cargo schematics.
- Weight classes and configured cargo weights.
- Fixed pickup/dropoff coordinates when supplied by an ADQ template.
- ADQ’s normal quest board, rewards, cooldowns, save files, and acceptance flow.
Quest location modes
| ADQ location mode |
ADQ Tweaks behavior |
VILLAGE |
Only uses structures in ADQ’s registered Minecraft village tag. |
ANY_STRUCTURE |
Uses eligible surface structures while excluding known underground, underwater, Nether, and End destinations. |
RANDOM |
Uses safe dry-land positions in already loaded chunks without generating terrain. |
Structure endpoint caches are separated by ADQ location mode. Changing from ANY_STRUCTURE to VILLAGE, for example, cannot reuse old generic structure endpoints.
Surface-safe objectives and delivery points
ADQ Tweaks improves endpoint placement for terrain-heavy modpacks.
- Structure routes use points inside the detected structure footprint rather than arbitrary chunk-center coordinates.
- Underground structures such as ancient cities, mineshafts, strongholds, trial chambers, ocean monuments, shipwrecks, Nether structures, and End cities are excluded from normal structure delivery routes (when altered to include them)
- Surface placement uses terrain-aware height data rather than assuming a fixed Y level.
- Pickup and turn-in markers are resolved to the surface when their destination chunk is loaded.
- Tall terrain and modded mountain worlds are supported.
- Fluid and underwater endpoints are rejected by default.
- Pickup cargo and delivery endpoints receive visible vertical particle beacons.
- Turn-in radius, objective-particle radius, and cargo activation distance are configurable.
Quest board improvements
Large custom reward lists can make the upstream quest board overlap and become unreadable.
ADQ Tweaks changes the board layout so contracts are shown one per page, keeping large reward lists readable.
The addon also resynchronizes the quest board after generation so newly created contracts reliably appear.
Cargo reliability and reward integrity
ADQ Tweaks adds several protections and recovery improvements around Sable cargo sublevels.
- Uses real Sable sublevel identity when locating active cargo.
- Searches Sable containers across levels to reduce false “cargo physics sublevel missing” failures after teleporting or changing dimensions.
- Tracks cargo block breaks, the player responsible, and nearby players for future hooks or integrations.
- Records measured Sable cargo mass after assembly for more accurate weight/reward behavior.
- Removes orphaned cargo when an objective splits into four or more sublevels.
- Cleans up cargo descendants when a quest is cancelled or completed.
- Supports ADQ’s proportional missing-cargo reward behavior.
- Avoids cargo-item duplication from broken cargo blocks.
- Suppresses repetitive upstream delivery-distance reminder chat messages.
Optional cargo PvP mode
Cargo PvP is disabled by default and can be enabled in:
config/adq_tweaks-common.toml
When enabled:
- The server announces when a player accepts a contract.
- Players are told that destroying the accepted contract’s objective can earn reward shares.
- Eligible hostile players who damage cargo receive the proportional value removed from the contract owner’s reward.
- The reward split uses ADQ’s missing-cargo reward logic, including custom reward strings/components where supported.
- Friendly players and members of the contract owner’s FTB team are excluded.
- If cargo falls to 20% integrity or less, the contract is automatically cancelled.
- When PvP is enabled, the remaining reward is distributed to eligible cargo destroyers.
- When PvP is disabled, cargo at 20% integrity or less is removed and the contract is cancelled.
- Players can use
/adq_tweaks compass <player> to receive and refresh a compass that tracks the chosen player’s active objective.
- Compass tracking refreshes at a configurable interval.
Commands
-
/adq_tweaks generate
Requests a normal lagless quest-generation pass. Requires permission level 2.
-
/adq_tweaks config
Shows active lagless-generation safety limits. Requires permission level 2.
-
/adq_tweaks debug
Creates a separate local test contract for pickup, transport, turn-in, beacon, and cargo testing. This is the only command that uses the debug route; normal quest generation never uses it. Requires permission level 2.
-
/adq_tweaks compass <player>
When cargo PvP is enabled, gives and refreshes a compass to that player’s active cargo objective.
Configuration
ADQ Tweaks configuration is generated at:
config/adq_tweaks-common.toml
Important options include:
- Loaded-chunk-only generation safety.
- Candidate scan limit.
- Shared generation cooldown.
- Requester notification behavior.
- Route scope: requesting player, all players, or world spawn.
- Dry-land requirement.
- Persisted structure scanning.
- Cargo activation distance.
- Objective beacon visibility radius.
- Delivery turn-in radius.
- Cargo PvP mode.
- Cargo destruction notifications.
- Compass command and refresh interval.
- Cargo protection behavior.
Installation
- Install ADQ Tweaks alongside Aeronautics Delivery Quests.
- Install it on both the server and every client using ADQ.
- Keep ADQ installed; ADQ Tweaks is an addon, not a replacement for ADQ’s content or UI.
- Restart after adding or updating the mod.
- Configure ADQ normally in
aeronautics_delivery_quests.toml.
- Configure addon-specific options in
adq_tweaks-common.toml.
Requirements
- Minecraft 1.21.1
- NeoForge
- Aeronautics Delivery Quests 1.1.0
- ADQ’s normal Create Aeronautics and Sable dependencies
Notes
ADQ Tweaks intentionally prefers a safe skipped generation request over forced terrain generation. Explore or pre-generate the intended region before requesting structure-based quests.
Debug contracts are only for testing and are separate from normal generated contracts.
Sable treats assembled cargo as a physics sublevel. Blocks merged into cargo, including ropes, stickers, and connectors, can still be removed when that sublevel is recalled. ADQ Tweaks does not attempt unsafe block-entity refunds because that could duplicate inventories or damage player contraptions.
ADQ Tweaks is an independent MIT-licensed addon. It does not bundle, modify, or redistribute the Aeronautics Delivery Quests jar.
Thank you to Sandemon for creating the Aeornautics Delivery Quests mod.
评论 0
登录后参与评分
还没有评论,来抢沙发吧