PowerStones
一款包含红石、蓝石、绿石和黄玉四种重叠线路的 Minecraft 模组。

版权所有 (c) 2023-2026 CalvinMT
依赖项
为了使 PowerStones 正常运行,必须安装以下模组:
Fabric
| 模组 | 原因 |
|---|---|
| Fabric API | Fabric 模组正常工作所必需。 |
| FerriteCore | 使 Minecraft 能够以默认内存数量加载,而不是需要添加参数(-Xmx12G)才能使用的 12GB。 |
Forge
| 模组 | 原因 |
|---|---|
| FerriteCore | 使 Minecraft 能够以默认内存数量加载,而不是需要添加参数(-Xmx12G)才能使用的 12GB。 |
兼容性
PowerStones 与其他红石类模组兼容,例如 Red Bits 或 Redstone Bits。
旨在尽可能让 PowerStones 与更多其他模组兼容,但这需要一些时间。
如果您发现某个喜欢的模组似乎与 PowerStones 不兼容,请使用 GitHub 上的“模组兼容性请求”创建一个新的 Issue。
功能特性
机制
- 提供四种独立的线路颜色:Redstone、Bluestone、Greenstone 和 Yellowstone,每种颜色携带各自独立的信号。
- 动力石线路可以成对重叠,允许两种独立的线路颜色占据同一个方块而互不干扰。
- 每种颜色的线路仅连接并接收来自相同颜色线路、方块、火把、中继器、比较器和其他红石组件的电力。
- 红石中继器可以将电力从一种线路颜色传输到另一种颜色,从而在原本独立的电路之间实现可控的交互。
- 手持动力石粉尘物品时破坏线路,仅移除与该物品颜色匹配的线路通道,使得在不干扰其他通道的情况下轻松编辑重叠线路变得容易。
方块与物品
| 名称 | 图片 | 合成配方 |
|---|---|---|
| Redstone | ![]() |
![]() |
| Bluestone | ![]() |
![]() |
| Greenstone | ![]() |
![]() |
| Yellowstone | ![]() |
![]() |
| Bluestone Block | ![]() |
![]() |
| Greenstone Block | ![]() |
![]() |
| Yellowstone Block | ![]() |
![]() |
| Bluestone Torch | ![]() |
![]() |
| Greenstone Torch | ![]() |
![]() |
| Yellowstone Torch | ![]() |
![]() |
实现过程与限制
最初的想法是能够在单个方块上放置全部四种能量石导线。这意味着红石导线的状态数将超过 5,084,166 种(3x3x3x3x16x16x16x16),而其原版的状态数为 1,296 种(3x3x3x3x16)。由于游戏会在启动时计算所有方块的所有状态,这将需要比计算机处理能力更多的计算时间和内存。
为了保留这一初始想法,人们尝试将能量石的电力限制为两种状态(0-1),而不是十六种(0-15)。这使得红石导线的状态数降低到了其原版的 1,296 种状态(3x3x3x3x2x2x2x2)。然而,这个数字并非最终定案,因为后续还会增加更多状态以显示所有可能的连接方式。最终,该实现被证明过于复杂且不合理,无法继续推进,因为它需要对红石导线的电力更新进行彻底 overhaul(重构/全面修改),并移除了所有与红石电力等级相关的原版红石功能。
尽管拥有可重叠的能量石仍被视为目标,但首先成功地在红石之上添加蓝石的做法是通过增加另一个电力属性并为两个电力属性各加 1 来实现的。因此,红石导线的状态数变为 23,409 种(3x3x3x3x17x17),这仅使加载时间增加了几秒钟。
出于与初始想法相同的原因(状态过多),通过增加两个额外的电力属性来扩展模组以支持绿石和黄石导线是不可行的。于是决定让导线成对重叠:红石导线可与蓝石导线重叠,而绿石导线可与黄石导线重叠。这可以通过增加一个具有两种状态(每对能量石对应一个状态)的属性轻松实现,从而使红石导线的状态数达到 46,818 种(3x3x3x3x17x17x2)。添加这个基本属性后,游戏启动速度变慢(约 1 分 30 秒)。更令人担忧的是,游戏加载所有状态所需的内存(RAM)约为 12GB。虽然其他模组要求用户在 Minecraft 启动器中添加简单的 Java 参数以将分配给游戏的最大内存扩展到更高水平,但与这个模组为游戏带来的微小改进相比,12GB 的内存需求显得过于庞大。
经过六周的学习和开发,能量石对属性似乎是一个能让项目尽可能接近初始目标的合理折中方案,因此决定寻找一款能显著减少运行 PowerStones 所需内存的模组。经过快速搜索,FerriteCore 看起来符合要求,并且出乎意料地使得游戏无需更改最大分配内存限制(<4GB)即可运行 PowerStones。尽管 PowerStones 现在依赖于一个性能优化模组,但用户可以在不担心内存消耗的情况下享受其带来的好处。
PowerStones 最初是为 Fabric 开发的,并大量依赖 mixins(混入)。在模组起步成功后,为了让其也能用于 Forge,作者寻求了 Forge Discord 社区的帮助。然而,询问关于 mixin 的问题只招致了对 PowerStones 过度依赖 O-So-Cursed-Mixin 的批评。尽管这些建议在其深度上很有帮助,但其傲慢的态度和假设本可以避免。尽管在与 Forge 部分社区的不愉快经历中遭受挫折,但时间和理性分析证明,使用每个加载器的 API 以及独立的能量石类,而不是过度依赖 mixins,才是最佳选择,这不仅能使模组在 Forge 上可用,还能最大限度地减少错误并提高模组兼容性。随后,模组进行了全面 overhaul(重构/全面修改)以应用这些必要的更改。
由于实现引入了大量的状态,对 FerriteCore 的依赖成为了必要的妥协,而非可选的性能优化。然而,这也凸显了采用更可持续架构方法的必要性。因此,PowerStones 的逻辑下一步是将 MultipleWires 系统重构为基于 BlockEntity(区块实体)的实现,许多用户已经指出这是降低状态复杂性、提高整体性能和可扩展性的关键。在此背景下,社区贡献者 AtronixMH48 提供了宝贵帮助,提供了一个包含 BlockEntity 驱动解决方案的修改版模组。对该贡献进行了仔细审查,以确保充分理解其机制,并在集成到项目之前进行了部分完善,最终消除了 PowerStones 对 FerriteCore 的依赖。
完成 BlockEntity 重构后,多个导线方块的渲染仍然受到原版方块模型的限制,后者无法正确表示同一个方块上具有不同连接布局的两条导线。因此,引入了自定义烘焙模型(custom baked model)以独立渲染两条导线通道,使用存储在 MultipleWiresBlockEntity 中的连接数据。这一重大变化使得每条导线都能保持其自身的直线段、转角、 junctions(连接点)和垂直连接,而不影响另一条导线的外观。随着这一渲染基础的确立,多条导线的实现随后被推广到原始的红石-蓝石和绿石-黄石对之外,以支持红石、蓝石、绿石和黄石之间所有六种可能的配对组合。尽管 PowerStones 仍然限制每个方块最多只能重叠两种颜色的导线,但现在任何两种可用的颜色都可以共享同一空间,同时保持其电力等级和连接的独立性。
颜色选择
蓝色、绿色和黄色是在大约 2012 年项目最初构思时选定的。其中一个目标是为了更好地利用那些使用不当且几乎无用但储量丰富的资源,如青金石、绿宝石和萤石粉。
每种新能量石的颜色都来自红石颜色与配方中所用资源颜色的组合。首先,使用资源的颜色对能量石的纹理进行着色。然后,将红石的纹理叠加在其上方,最后应用一层透明度约为 30%(75/255)的红石颜色减淡混合滤镜。
贡献
请在实施重大功能之前进行讨论。
即使技术上正确,未经请求的功能拉取请求也可能被拒绝。
错误修复、小型兼容性修复以及范围明确的功能改进通常更有可能被接受。
贡献者
- CalvinMT (作者)
- AtronixMH48 (重构
MultipleWiresBlock为方块实体)
许可证
PowerStones 根据 Mozilla Public License Version 2.0 授权。
如果您重新使用或修改本项目,您必须按照 Mozilla Public License 2.0 的要求保留所需的版权声明和许可证声明。
如果您基于 PowerStones 创建项目,我们将非常感谢您对 PowerStones 的可见认可并提供指向原始仓库的链接。
PowerStones
Minecraft mod with overlapping wires of Redstone, Bluestone, Greenstone and Yellowstone

Copyright (c) 2023-2026 CalvinMT
Dependencies
Mods needed to be installed in order for PowerStones to function correctly:
Fabric
| Mod | Reason |
|---|---|
| Fabric API | Essential for Fabric mods to work. |
| FerriteCore | Enables Minecraft to load with the default number of RAM, instead of 12GB which requires the addition of an argument (-Xmx12G). |
Forge
| Mod | Reason |
|---|---|
| FerriteCore | Enables Minecraft to load with the default number of RAM, instead of 12GB which requires the addition of an argument (-Xmx12G). |
Compatibility
PowerStones is compatible with other redstone mods, such as Red Bits or Redstone Bits.
It is intended to make PowerStones compatible with as much other mods as possible, but this will take some time.
If there is a mod that you like which seems incompatible with PowerStones, please make an new issue on GitHub using the "Mod compatibility request".
Features
Functionalities
- Four independent wire colours are available: Redstone, Bluestone, Greenstone, and Yellowstone, each carrying its own separate power signal.
- Powerstone wires can overlap in pairs, allowing two independent wire colours to occupy the same block without interfering with each other.
- Each wire colour only connects to and receives power from wires, blocks, torches, repeaters, comparators, and other redstone components of the same colour.
- Redstone Repeaters can transfer power from one wire colour to another, allowing controlled interaction between otherwise independent circuits.
- Breaking a wire while holding a powerstone dust item only removes wire channels matching the colour of the item held, making it easy to edit overlapping wires without disturbing the other channel.
Blocks and items
| Name | Image | Crafting recipes |
|---|---|---|
| Redstone | ![]() |
![]() |
| Bluestone | ![]() |
![]() |
| Greenstone | ![]() |
![]() |
| Yellowstone | ![]() |
![]() |
| Bluestone Block | ![]() |
![]() |
| Greenstone Block | ![]() |
![]() |
| Yellowstone Block | ![]() |
![]() |
| Bluestone Torch | ![]() |
![]() |
| Greenstone Torch | ![]() |
![]() |
| Yellowstone Torch | ![]() |
![]() |
Implementation process and limitations
The initial idea was to be able to place all four powerstone wires on a single block. This meant that the redstone wire block would have had more than 5 308 416 states (3x3x3x3x16x16x16x16) compared to its unmoded version of 1 296 states (3x3x3x3x16). As all states of all the game's blocks are computed on startup, this would have taken more computation time and memory than a computer can handle.
In order to keep the initial idea, an effort was made to limit the powerstone's power to two states (0-1), instead of sixteen (0-15). This lowered the number of states for the redstone wire block down to its unmoded version of 1 296 states (3x3x3x3x2x2x2x2). However, this number of states would not have been final as more would have been added to display all possible connections. Eventually, the implementation proved itself too complicated and unreasonable to continue, as it required an overhaul of the redstone wire block's power updates and removed all vanilla redstone functionalities related to redstone power levels.
The idea of having overlappable powerstones still viewed as a goal, an attempt to first add bluestone on top of redstone was made with success through the addition of another power property and the incrementation of both power properties by one. Thus, the number of states for the redstone wire block was of 23 409 (3x3x3x3x17x17), which only added a couple of seconds more to the loading time.
Extending the mod with greenstone and yellowstone wires could not have been achieved through the addition of two more power properties for the same reason as stated in the initial idea (too many states). The choice had then been made to make wires overlappable by pairs. Redstone wires would be overlappable with bluestone wires, while greenstone wires would be overlappable with yellowstone wires. This was easily achievable through the addition of a single property with two states (one state per pair of powerstones), ending with a number of states for the redstone wire block of 46 818 (3x3x3x3x17x17x2). Adding this basic property rendered the game's startup slower (~1mn30s). However, with higher concern, the number of memory (RAM) needed in order for the game to load every state approximated 12GB. Even if asking users to add a simple Java argument in the Minecraft's launcher to extend the maximum amount of allocated memory to the game is done for other mods, 12GB of memory is huge in comparison to the small addition this mod would have brought to the game.
As the powerstone pair property seemed like a good settle point to bring the project as close to the initial goal as it could have after six weeks of learning and developping, the decision was taken to find a mod which could considerably reduce the amount of memory allocated to run the game with PowerStones. After a quick search, FerriteCore seemed adequate and, against all expectations, made it possible for the game to run with PowerStones wihtout changing the maximum amount of allocated memory (<4GB). Although PowerStones has become dependent of a performance mod, users can benefit from it without worrying about memory consumption.
PowerStones was initially developed to be used with Fabric and largely relied on mixins. After a sufficiently successful start of the mod and wanting to make it useable with Forge, help was sought on the Forge Discord. However, asking mixin related questions only brought criticism towards the O-So-Cursed-Mixin reliance of PowerStones. Although the suggestions were helpful in their depth, their arrogant form and suppositions could have been left behind. In spite of this unpleasant experience with some of Forge's community, time and rational reasoning proved to show that using each mod loader's API and separate powerstone classes instead of overrelying on mixins would be best, not only to make it available through Forge, but also to minimise bugs and maximise mod compatibility. An overhaul of the mod then took place to apply these necessary changes.
With the high number of states introduced by the implementation, the dependency on FerriteCore became a necessary compromise rather than an optional optimisation. However, it also highlighted the need for a more sustainable architectural approach. A logical next step for PowerStones was therefore to refactor the MultipleWires system into a BlockEntity-based implementation, an approach that several users had already identified as essential for reducing state complexity while improving overall performance and extensibility. In this context, a contributor from the community, AtronixMH48, offered valuable assistance by providing a modified version of the mod featuring a BlockEntity-driven solution. This contribution was carefully reviewed to ensure full understanding of its mechanics and was partially refined before being integrated into the project, ultimately removing PowerStones’ dependency on FerriteCore.
Following the BlockEntity refactor, the rendering of multiple wire blocks remained limited by the vanilla block model, which could not correctly represent two wires with different connection layouts on the same block. A custom baked model was therefore introduced to render both wire channels independently, using the connection data stored in the MultipleWiresBlockEntity. This major change made it possible for each wire to preserve its own straight runs, corners, junctions and vertical connections without affecting the appearance of the other. With this rendering foundation in place, the multiple wire implementation was then generalised beyond the original redstone-bluestone and greenstone-yellowstone pairs to support all six possible pair combinations between redstone, bluestone, greenstone and yellowstone. Although PowerStones still limits overlapping wires to two colours per block, any two of the four available colours can now share the same space while keeping their power levels and connections independent.
Colour choices
The colours blue, green and yellow were chosen around the year 2012, when this project first came into mind. One of the goals was to make better application of poorly used and almost unuseful, but abundant resources such as lapis lazuli, emerald and glowstone dust.
Each new powerstone colour comes from a combination of the redstone's colour and the resource's colour used in the powerstone's recipe. First, the powerstone texture was coloured with the resource's colour. Then, the redstone's texture was layered above it before finally applying to the redstone layer a colour dodge blending filter with ~30% opacity (75/255).
Contributions
Please discuss substantial features before implementing them.
Unsolicited feature pull requests may be declined even if they are technically correct.
Bug fixes, small compatibility fixes, and well-scoped improvements are generally more likely to be accepted.
Contributors
- CalvinMT (Author)
- AtronixMH48 (Refactor
MultipleWiresBlockto a Block Entity)
Licence
PowerStones is licensed under the Mozilla Public License Version 2.0.
If you reuse or modify this project, you must retain the required copyright and licence notices in accordance with the Mozilla Public License 2.0.
If you create a project based on PowerStones, a visible acknowledgement of PowerStones and a link back to the original repository are greatly appreciated.
下载 PowerStones
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PowerStones
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PowerStones
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PowerStones
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PowerStones
下载 PowerStones
下载 PowerStones
下载 PowerStones
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PowerStones
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PowerStones
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
/!\ 重大更新:从之前的 PowerStones 版本升级将大幅修改现有的红石电路,您需要重新建造它们。
- 支持所有六种多色线缆组合
- 每条线缆通道拥有独立的连接与功率等级
- 新增实体用于存储多条线缆数据
- 新增自定义烘焙模型以渲染多色线缆
- 修复线缆支撑方块上的电力传播问题
- 修复 Fabric 版中垂直方向的多色线缆连接问题
- 修复漏斗连接问题
- 移除 FerriteCore 依赖
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。




















评论 0
登录后参与评分
还没有评论,来抢沙发吧