Add chain-coupled minecart trains, closed loops and slime buffers

This commit is contained in:
2026-09-13 09:38:31 +03:00
parent c6c222ef36
commit a1802eb02d
19 changed files with 625 additions and 16 deletions
@@ -59,7 +59,7 @@ public final class RailSpeed {
var check=pos.offset(dx*i,0,dz*i);
if(!level.hasChunkAt(check)) return .4;
BlockState state=level.getBlockState(check);
if(!(state.getBlock() instanceof BaseRailBlock rail)) return .4;
if(!(state.getBlock() instanceof BaseRailBlock rail)) return state.is(Blocks.SLIME_BLOCK)?limit:.4;
RailShape shape=rail.getRailDirection(state,level,check,cart);
if(shape!=RailShape.NORTH_SOUTH && shape!=RailShape.EAST_WEST) return .4;
if (i>0 && (state.is(Blocks.DETECTOR_RAIL) || state.is(Blocks.ACTIVATOR_RAIL)