PistonProPlus
让活塞再次伟大。
一个用于 Minecraft 的服务端 Fabric 模组,通过可配置的推动上限、高级方块推动控制以及 NBT 数据保留功能来增强活塞行为。
特性
- 可配置推动上限 -- 打破原版 12 个方块的限制,设置 1 到 4096 之间的任意上限
- 无限推动模式 -- 将上限设置为负数以启用近乎无限的推动
- 基于类型的方块控制 -- 单独切换命令方块和所有其他方块是否可以被推动
- NBT 保留 -- 在活塞推动过程中保留方块实体数据(例如命令方块的指令)
- 热重载 -- 使用
/pistonproplus reload即时更改配置,无需重启 - 完整国际化 (i18n) -- 内置英文和中文;易于扩展
命令
推动上限
| 命令 | 权限 | 描述 |
|---|---|---|
/pistonproplus pushlimit set <limit> |
OP (等级 4) | 设置活塞推动上限(1-4096)。使用 -1 启用无限模式。 |
/pistonproplus pushlimit get |
无 | 显示当前推动上限和模式。 |
类型限制
| 命令 | 权限 | 描述 |
|---|---|---|
/pistonproplus typelimit commandblock [true/false] |
OP (等级 4) | 切换或查询命令方块的推动状态。 |
/pistonproplus typelimit all [true/false] |
OP (等级 4) | 切换或查询所有方块的推动状态(除 MOVING_PISTON 和命令方块外)。 |
省略布尔参数将显示当前状态(开/关)。
实用工具
| 命令 | 权限 | 描述 |
|---|---|---|
/pistonproplus help |
无 | 显示帮助菜单。 |
/pistonproplus reload |
OP (等级 2) | 从磁盘热重载配置。 |
配置
设置存储在 config/pistonproplus.json 中,可以直接编辑或通过命令修改。
{
"maxPushLimit": 12,
"allowInfinitePush": false,
"allowPushCommandBlock": false,
"allowPushAllBlocks": false
}
| Key | Type | Default | Description |
|---|---|---|---|
maxPushLimit |
int | 12 | 活塞可以推动的最大方块数(1-4096) |
allowInfinitePush |
boolean | false | 当为 true 时,推动上限变为 4096 |
allowPushCommandBlock |
boolean | false | 允许活塞推动命令方块(保留 NBT 数据) |
allowPushAllBlocks |
boolean | false | 允许活塞推动几乎所有方块(除 MOVING_PISTON 外) |
警告
- MOVING_PISTON(方块 ID 36)永远无法被推动。 这是一个硬性安全约束。
- 命令方块可能在边缘情况下丢失 NBT 数据;模组通过捕获/恢复机制保留 NBT,但复杂结构应经过测试。
- 推动所有方块可能导致意外行为。 粘液方块上附着的方块(红石粉、火把等)在大范围推动时可能出现异常行为。
- 极高的推动上限可能导致服务器卡顿。 在生产服务器上部署前请逐步测试。
许可证
本项目根据 GNU General Public License v3.0 授权。
链接
本模组与 Mojang Studios 无关,也未得到其认可。Minecraft 是 Mojang Studios 的商标。
PistonProPlus
Make Piston Great Again.
A server-side Fabric mod for Minecraft that enhances piston behavior with configurable push limits, advanced block pushing control, and NBT data preservation.
Features
- Configurable Push Limit -- Break the vanilla 12-block restriction, set any limit from 1 to 4096
- Infinite Push Mode -- Set the limit to a negative value to enable virtually unlimited pushing
- Type-Based Block Control -- Individually toggle whether command blocks and all other blocks can be pushed
- NBT Preservation -- Block entity data (e.g. command block commands) is retained through piston pushes
- Hot-Reload -- Change configuration on the fly with
/pistonproplus reload, no restart needed - Full i18n -- English and Chinese built-in; easy to extend
Commands
Push Limit
| Command | Permission | Description |
|---|---|---|
/pistonproplus pushlimit set <limit> |
OP (level 4) | Set piston push limit (1-4096). Use -1 for infinite mode. |
/pistonproplus pushlimit get |
None | Display the current push limit and mode. |
Type Limit
| Command | Permission | Description |
|---|---|---|
/pistonproplus typelimit commandblock [true/false] |
OP (level 4) | Toggle or query command block pushing. |
/pistonproplus typelimit all [true/false] |
OP (level 4) | Toggle or query all-blocks pushing (except MOVING_PISTON and command blocks). |
Omitting the boolean argument displays the current status (ON/OFF).
Utility
| Command | Permission | Description |
|---|---|---|
/pistonproplus help |
None | Show the help menu. |
/pistonproplus reload |
OP (level 2) | Hot-reload configuration from disk. |
Configuration
Settings are stored in config/pistonproplus.json and can be edited directly or via commands.
{
"maxPushLimit": 12,
"allowInfinitePush": false,
"allowPushCommandBlock": false,
"allowPushAllBlocks": false
}
| Key | Type | Default | Description |
|---|---|---|---|
maxPushLimit |
int | 12 | Maximum blocks a piston can push (1-4096) |
allowInfinitePush |
boolean | false | When true, push limit becomes 4096 |
allowPushCommandBlock |
boolean | false | Allow pistons to push command blocks (NBT preserved) |
allowPushAllBlocks |
boolean | false | Allow pistons to push nearly all blocks (except MOVING_PISTON) |
Warnings
- MOVING_PISTON (block 36) can never be pushed. This is a hard safety constraint.
- Command blocks may lose NBT data in edge cases; the mod preserves NBT through capture/restore, but complex setups should be tested.
- Pushing all blocks may cause unexpected behavior. Attached blocks (redstone dust, torches, etc.) on slime blocks can behave unexpectedly during large pushes.
- Very high push limits may cause server lag. Test incrementally before deploying on production servers.
License
This project is licensed under the GNU General Public License v3.0.
Links
This mod is not affiliated with or endorsed by Mojang Studios. Minecraft is a trademark of Mojang Studios.
下载 Piston Pro Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Piston Pro Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Piston Pro Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Piston Pro Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Piston Pro Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Piston Pro Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Piston Pro Plus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧