Expanded Redstone

模组

· 作者 Kole07139

更多完全原版风格的红石方块,这些是 Mojang 应该在 Minecraft 中添加的!

4 本站下载 0 关注 更新于 5 天前

最新 0.0.1-beta.1 · 26.3 · NeoForge

一键开服(送7天)

Expanded Redstone

图标

modrinth

支持所有近期版本:从 1.17 至 26.3


本模组修复与新增内容

  • 中继器(Relays): 一种非导能方块(如玻璃、楼梯、台阶、漏斗、杜鹃花等)的变体,可绕过红石信号的硬编码向下传输限制。

中继器允许红石粉尘信号向下传递,同时保持为非导能方块。其合成方式为:在十字形排列的 4 个非导能方块中间放置 1 个紫水晶碎片。

***→ 趣味事实:*目前 Minecraft 中最长的物品名称将是:“中继器 氧化锈制切制铜楼梯”

  • 红石灯笼: 灵感来源于 Redstone Lantern 模组的方块模型,是一款简单的红石版灯笼。相比红石火把,它的强度更高:灯笼变体会强力激活(红石火把仅会强力激活上方方块)周围所有相邻方块,悬挂方块除外。此外,红石灯笼的烧尽时间翻倍,使其不再只能运行 8 个时钟周期,而是 16 个。

本模组还添加了两个可选的 QoL 资源包,以便更好地在物品栏或方块模型中区分中继器和普通方块。

→ 欢迎通过 GitHub Issue 提出更多功能建议!


原版

Vanilla Showcase

新式中继器

Relay Showcase

对于红石工程师来说,了解中继器向下传播背后的代码逻辑可能很有用。这是本模组对红石代码的唯一修改:

/** Adds relay blocks to the vertical-diode decision without changing vanilla blocks. */

@Mixin(RedstoneWireEvaluator.class)

// Assumes priority 1000 and a Minecraft version higher than 1.21.2
// Before 1.21.2 the wire signal is computed in RedStoneWireBlock class instead of in RedstoneWireEvaluator: same relay logic though

public abstract class RedstoneWireEvaluatorMixin {
@Shadow protected abstract int getWireSignal(BlockPos pos, BlockState state);

    @Inject(method = "getIncomingWireSignal", at = @At("HEAD"), cancellable = true)
    private void expandedredstone$allowRelayDownward(Level level, BlockPos pos,
                                                   CallbackInfoReturnable<Integer> cir) {
        int i = 0;
        for(Direction direction : Direction.Plane.HORIZONTAL) {
            BlockPos neighborPos = pos.relative(direction);
            BlockState neighborState = level.getBlockState(neighborPos);
            i = Math.max(i, this.getWireSignal(neighborPos, neighborState));
            BlockPos abovePos = pos.above();
            // isRelay OR added within the isRedsoneConductor check, since a below pos can access power if such neighbor block is a relay
            if ((neighborState.isRedstoneConductor(level, neighborPos) || expandedredstone$isRelay(neighborState)) && !level.getBlockState(abovePos).isRedstoneConductor(level, abovePos)) {
                BlockPos aboveNeighborPos = neighborPos.above();
                i = Math.max(i, this.getWireSignal(aboveNeighborPos, level.getBlockState(aboveNeighborPos)));
            }
            if (!neighborState.isRedstoneConductor(level, neighborPos)) { // else removal, since now it is a dual logic
                BlockPos belowNeighborPos = neighborPos.below();
                i = Math.max(i, this.getWireSignal(belowNeighborPos, level.getBlockState(belowNeighborPos)));
            }
        }

        cir.setReturnValue(Math.max(0, i - 1));
    }

    @Unique
    private static boolean expandedredstone$isRelay(BlockState state) {
        return state.getBlock() instanceof Relay relay && relay.isRelay(state);
    }
}

/*
        For comparison, this is how vanilla computes the signal instead:
        
     protected int getIncomingWireSignal(Level level, BlockPos blockPos) {
        int i = 0;

```java
for (Direction direction : Plane.HORIZONTAL) {
            BlockPos blockPos2 = blockPos.relative(direction);
            BlockState blockState = level.getBlockState(blockPos2);
            i = Math.max(i, this.getWireSignal(blockPos2, blockState));
            BlockPos blockPos3 = blockPos.above();
            if (blockState.isRedstoneConductor(level, blockPos2) && !level.getBlockState(blockPos3).isRedstoneConductor(level, blockPos3)) {
                BlockPos blockPos4 = blockPos2.above();
                i = Math.max(i, this.getWireSignal(blockPos4, level.getBlockState(blockPos4)));
            } else if (!blockState.isRedstoneConductor(level, blockPos2)) {
                BlockPos blockPos4 = blockPos2.below();
                i = Math.max(i, this.getWireSignal(blockPos4, level.getBlockState(blockPos4)));
            }
        }

        return Math.max(0, i - 1);
    }
        
 */

Redstone Lantern

它向周围的 5 个相邻方块发送强信号(悬挂状态下为 6 个,排除下方),并充当功能更强大的红石火把。

与红石火把相比,其烧毁时间翻倍,从而产生 16 个时钟周期而非 8 个。以下是一些演示:

Redstone Lantern Burnout Showcase Redstone Lantern Strong Power Showcase

如果需要检查该方块的运行机制,以下是 Redstone Lantern 的主要功能实现:

    //? if >=1.21.2 {
    protected Orientation randomOrientation(Level level) {
    return ExperimentalRedstoneUtils.initialOrientation(level, null, Direction.UP);
    }
    //? }

    public boolean isSignalSource(BlockState blockState) {
        return blockState.getValue(LIT);
    }

    public int getSignal(BlockState blockState, BlockGetter blockGetter, BlockPos blockPos, Direction direction) {
        if(blockState.getValue(LIT)){
            if(blockState.getValue(HANGING)){
                return Direction.DOWN != direction ? 15 : 0;
            }else{
                return Direction.UP != direction ? 15 : 0;
            }
        }else{
            return 0;
        }
    }
    public int getDirectSignal(BlockState blockState, BlockGetter blockGetter, BlockPos blockPos, Direction direction) {
        if(blockState.getValue(LIT)){
            if(blockState.getValue(HANGING)){
                return Direction.DOWN != direction ? 15 : 0;
            }else{
                return Direction.UP != direction ? 15 : 0;
            }
        }else{
            return 0;
        }
    }

    protected boolean hasNeighborSignal(Level world, BlockPos pos, BlockState state) {
        return shouldUnpower(state, world, pos);
    }

    protected boolean shouldUnpower(BlockState state, Level level, BlockPos pos) {
        if(state.getValue(HANGING)) return level.hasSignal(pos.above(), Direction.UP);
        else return level.hasSignal(pos.below(), Direction.DOWN);
    }

非常感谢您的反馈和错误报告! Bug tracker。 也非常欢迎您加入我的 Discord 服务器! Discord server。


🐛 Bug reports, issues or suggestions

由于 Expanded Redstone 处于早期开发阶段,您可能会发现一些错误。请在 GitHub 上报告可复现的问题,并使用 Discord 服务器进行一般性提问和交流。

请将 GitHub Issue 也用于提交建议和改进方案!


Credits

感谢以下项目/作者:

  • Redstone Lantern,提供了 Redstone Lantern 的纹理、模型和方块状态数据。但该模组的代码并未被参考或查看,其行为逻辑是本模组的原创作品。

My Other Projects!

如果您喜欢 Expanded Redstone,您可能也会喜欢我的其他项目:

Defixus Anti-Cheat - (1.21.11 - 26.4)

一款结构完整、运行良好的反作弊模组,适用于较新的 Minecraft 版本。面向整合包、休闲服务器及大型社区设计。

Builders Freecam - (1.17 - 26.4)

Freecam 的一个完整且优化良好的分支,防止了诸如在“固体”方块和岩浆上移动以及透视洞穴等类似作弊的功能。

Just Redstone Waterlog - (1.14 - 26.4)

此 Mod/插件将基岩版中所有支持红石组件的水浸方块扩展到了 Java 版。

Just Bedrock Waterlog WIP - (1.14 - 26.4)

此项目将所有基岩版支持水浸的方块扩展到了 Java 版。同时也附带配置文件!

ViaAlert (ViaVersion Addon) - (1.21.11 - 26.4)

让您在 Fabric 服务器上看到玩家加入时使用的版本以及他们使用的客户端来源。

Cobalt Age - (1.21.11 - 26.4)

这是一个更加完善的科技类模组,添加了一个全新的能量系统——Cobalt Energy System。它与红石并行工作,不同之处在于它与红石信号不兼容且支持水浸,此外还有更多特性,例如最高 60 点的能量强度。


📃 Terms of Use and Attribution | Usage of Expanded Redstone in Modpacks (only Modrinth allowed)

Expanded Redstone is proprietary software by Kole07139 distributed under All Rights Reserved (ARR). Only and only downloadable on the website . There are unofficial and illegal builds on the web that are not affiliated with me, and they may contain viruses. Every illegal redistribution will be removed due to Copyright and sued.

Copyright © 2026 kole07139. All Rights Reserved. License URL:

Expanded Redstone 的所有原始源代码、编译后的二进制文件、资源素材、文档、品牌标识及其他原始组件均受知识产权法保护。您不得重新发布该作品,仅可在提供原作者署名并链接回官方 Modrinth 页面的前提下提及它,且严禁利用下载链接获利,下载必须仅通过 Modrinth 平台进行。

下载 Expanded Redstone 并不授予所有权、再分发权、修改权、商业开发权或对项目任何部分进行分许可的权限。

货币化与商业使用及发布 — 严格禁止

未经版权持有人事先明确的书面授权,严禁对 Expanded Redstone(代码或资源素材)进行任何商业开发。

此限制包括但不限于:

  • 付费整合包: 出售、授权、设置付费墙或以其他方式商业性利用包含 Expanded Redstone 或其部分(包括资源素材)的整合包。
  • 广告收益: 通过广告、赞助下载链接、URL 缩短器、联盟计划或第三方广告平台从 Expanded Redstone 的分发中获取收入。

等等……

Expanded Redstone 免费提供这一事实并不授权任何人对其进行商业开发,其资源素材亦同。

整合包、再分发与第三方托管

除非根据适用平台条款获得独立授权,或经版权持有人明确书面许可:

  • 禁止重新上传、镜像、再分发、重新打包或托管 Expanded Redstone 的二进制文件或资源素材。
  • 禁止将 Expanded Redstone(或其资源素材)直接捆绑到第三方启动器、独立发行版、商业整合包或安装程序中。
  • 禁止分发经过修改、更名、重新打包或非官方的 Expanded Redstone 或其资源素材版本。
  • 禁止将官方下载链接替换为第三方下载服务。
  • 禁止声称自己是 Expanded Redstone 的作者、获得其官方背书、存在合作关系或关联关系。
  • 禁止以暗示官方发布或背书的方式使用 Expanded Redstone 的名称、标志或品牌标识。

整合包:在您的 Modrinth 整合包中使用 Expanded Redstone 的唯一允许方式,是在您的模组描述中直接链接回 Expanded Redstone 的 Modrinth 页面。其他平台的使用是被禁止的。

EXPANDED REDSTONE 下载:允许下载 Expanded Redstone 的唯一途径是通过 Modrinth 平台(涉及上述声明的整合包或 Expanded Redstone Modrinth 页面:),否则将被视为侵犯版权而移除。

允许的使用

在适用分发平台条款的前提下,用户可以为个人非商业用途下载、安装、配置和运行官方的 Expanded Redstone 版本。

非商业服务器管理员可以在无需单独授权的情况下使用官方版本,前提是他们不重新分发未经授权的副本或不商业性利用 Expanded Redstone。

对于普通游戏和服务器管理,建议引导玩家访问官方项目页面。


Expanded Redstone 可免费下载和使用,但前提是保持原样。未经作者书面许可,不得再分发、转售、修改后用于分发、重新发布其 JAR 文件、为其提供赞助,或在整合包中未正确标记的情况下将其用于整合包(仅限 Modrinth),也不得进行商业开发,更不得在任何情况下从其公共仓库或 JAR 文件中提取并使用资源素材。在进行任何操作之前,请阅读使用条款和许可证。如有疑问,请在 Discord 上联系作者。未经作者 Kole07139 的正式、书面许可,请勿执行上述任何操作。

版权所有 © 2026 kole07139。保留所有权利。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源