Home›Java›Mods›Pushable Brittle Ice
Pushable Brittle Ice
ModsJava

Pushable Brittle Ice

Java mod listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.

by T3rminalIns4nity · on Modrinth

⬇ Download on Modrinth

Pushable Brittle Ice


This mod couldn't get much more simple; all it does is mix in to one class to override the pushReaction() of the Brittle Ice block.

@Mixin(BlockBehaviour.BlockStateBase.class)
public class BrittleIceMixin {

    @Inject(
            method = "getPistonPushReaction",
            at = @At("HEAD"),
            cancellable = true
    )
    private void overridePushReaction(CallbackInfoReturnable<PushReaction> cir) {
        BlockBehaviour.BlockStateBase state = (BlockBehaviour.BlockStateBase) (Object) this;

        if (state.getBlock() instanceof BrittleIceBlock) {
            cir.setReturnValue(PushReaction.PUSH_PULL);
        }
    }
}

Feel free to do with this mod whatever you like; put it on your server, put it in your modpack, or hang it up on your wall! Just be sure not to claim it as solely your own work, and leave a paper trail back to me if you redistribute/port it somewhere.


Note: it should go without saying that this mod absolutely won't work on any version before 26.4-snapshot-4, as Brittle Ice literally didn't exist before then :)

Additionally, while you can run the mod exclusively on the server, it will cause desyncs when the client thinks the block was broken by the piston but the server updates its position anyway.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more