Project Scaffold
Project Scaffold 是一款面向 Minecraft 1.21.1 的小型 Fabric 模组,旨在通过一次快速操作替换脚手架方块。
通常情况下,如果你使用脚手架进行建造,后来想将其替换为实体方块,你必须先破坏脚手架,等待空间清空,然后再放置新方块。Project Scaffold 使这一工作流程更加高效:手持可放置的方块右键点击脚手架,模组便会破坏脚手架并在其位置放置你选定的方块。
功能特性
- 手持可放置的方块右键点击脚手架即可进行替换。
- 支持主手或副手持握的方块。
- 遵循原版 Minecraft 的放置规则。
- 当手持方块无法放置时,回退至原版行为。
- 排除脚手架自身的替换行为。
- 支持单人世界。
- 提供仅客户端的回退机制,适用于未安装该模组的服务器。
行为逻辑
当模组安装在单人世界或同时安装在客户端与服务器上时,脚手架的处理由服务端逻辑干净地管理。脚手架方块被破坏且不会正常掉落,随后会尝试返还至玩家的物品栏中。如果物品栏已满,脚手架将在被替换的位置掉落。
当仅在安装了 Project Scaffold 的服务器上以仅客户端模式使用时,模组尝试通过常规客户端交互执行相同操作:先破坏脚手架,再放置手持方块。在此模式下,最终结果仍由服务器控制,因此行为可能取决于延迟、权限、服务器规则以及其他模组的影响。
依赖项
- Minecraft 1.21.1
- Fabric Loader
- Fabric API
链接
许可证
Project Scaffold 采用 MIT License 授权。
Project Scaffold
Project Scaffold is a small quality-of-life Fabric mod for Minecraft 1.21.1 that lets you replace scaffolding blocks in one quick action.
Normally, if you build with scaffolding and later want to replace it with a real block, you have to break the scaffolding first, wait for the space to clear, and then place the new block. Project Scaffold makes that workflow faster: right-click scaffolding with a placeable block in your hand, and the mod will break the scaffolding and place your selected block in its position.
Features
- Replace scaffolding by right-clicking it with a placeable block.
- Works with blocks held in either the main hand or offhand.
- Keeps normal Minecraft placement rules.
- Falls back to vanilla behavior when the held block cannot be placed there.
- Excludes scaffolding itself from replacement behavior.
- Works in singleplayer worlds.
- Includes a client-only fallback for servers without the mod installed.
Behavior
When the mod is installed in singleplayer or on both client and server, scaffolding is handled cleanly by the server-side logic. The scaffolding block is broken without dropping normally, then it is returned to the player’s inventory if possible. If the inventory has no room, the scaffolding drops at the replaced position.
When used client-only on a server without Project Scaffold installed, the mod attempts to perform the same action using normal client interactions: break the scaffolding first, then place the held block. In this mode, the server still controls the final result, so behavior may depend on latency, permissions, server rules, and other mods.
Requirements
- Minecraft 1.21.1
- Fabric Loader
- Fabric API
Links
License
Project Scaffold is licensed under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧