All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Create Optimized Trains

Create Optimized Trains

by GreenToastSoftware • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

🚅⚡Create Optimized Trains

Performance optimization addon for Create Mod trains (Forge 1.20.1).

🔗Dependencies

This mod requires Create or Create Fabric.

  • Minecraft 1.20.1
  • Forge 47.1.33+
  • Create Mod 6.0.8+
  • Flywheel 1.0.6+ (bundled with Create)

📦Features

1. LOD (Level of Detail) for Trains

  • FULL — Real carriages with full physics (player nearby)
  • MEDIUM — Simplified physics, normal rendering
  • LOW — No physics, no collisions, minimal contraption updates
  • GHOST — Ghost entity, no rendering, abstract data only

2. Carriage Grouping / Abstraction

  • Merges multiple carriages into a single logical entity (TrainGroup)
  • Stores only: length, speed, position, carriage list as NBT
  • Expands back when the player approaches

3. Safe Multi-threading

Secondary thread (safe):

  • Route calculation
  • Collision prediction
  • Schedule optimization
  • Priority management
  • LOD decisions
  • Predictive simulation

Main thread (required):

  • Actual entity movement
  • Create physics
  • Rendering
  • Block interaction

4. Tick Throttling (Partial Updates)

  • FULL: every tick
  • MEDIUM: every 3 ticks (configurable)
  • LOW: every 8 ticks
  • GHOST: every 20 ticks

5. Render Optimization

  • Disables animations for distant trains
  • Skips full rendering for GHOST LOD
  • Reduces particles and visual effects
  • Hides internal details when not visible

6. Proxy Entities

  • Lightweight entity representing the entire train
  • Replaces dozens of contraptions
  • Keeps position, speed and direction
  • Recreates real carriages when needed

7. Smart Chunk Loading Management

  • Loads only essential chunks
  • Unloads chunks behind the train earlier
  • Pre-loads chunks ahead
  • Anti-thrashing (prevents repeated load/unload cycles)

8. Physics Optimization

  • Simplified physics for distant carriages
  • Disables collisions between carriages at low LOD
  • Reduces bogie checks
  • Disables internal contraption physics when far away

9. Networking Optimization

  • Sends updates only when speed/direction changes
  • Batches packets (delta compression)
  • Reduces sync frequency for distant trains

10. Priority System

  • Priority by type (EXPRESS > PASSENGER > FREIGHT > LOW)
  • Conflict resolution at junctions
  • Track segment reservation
  • Async conflict analysis

11. Dynamic Performance Monitor

  • NORMAL (TPS >= 18): full fidelity
  • DEGRADED (15 <= TPS < 18): light optimizations
  • CRITICAL (TPS < 15): aggressive optimizations, reduced LOD distances

🏅 Technical Performance Certificate

Create Optimized Trains has undergone a series of internal and community tests, including:

Stress Tests

  • Trains over 300 blocks long
  • Simultaneous moving contraptions
  • Rendering with hundreds of entities
  • Worlds with aggressive preloading

Compatibility Tests

  • Create
  • Steam ’n’ Rails
  • Embeddium
  • Radium
  • Copycats+
  • Distant Horizons

Community Testing

Pre-release versions were made available on the official Discord, ensuring that every public update is stable and free of regressions.

⚙️Configuration

File: create_optimized_trains-common.toml

All features are individually configurable with distances, intervals and toggles.

🪄Backported Fixes from Create 6.0.9+

Create 6.0.9 (for Minecraft 1.21.1) introduced several important fixes that were never backported to 1.20.1. Since 1.20.1 is no longer receiving updates from the Create team, this mod backports the following fixes for users staying on 1.20.1:

Contraption Collision Box GC Pressure (#6902)

Original problem: When train doors open/close at a station, gatherBBsOffThread() combines ALL block collision shapes into a single VoxelShape using Shapes.joinUnoptimized() — an O(n²) operation that creates massive temporary objects. The garbage collector can't keep up, causing lag spikes of 1-30+ seconds depending on train complexity.

Our fix: ContraptionCollisionMixin replaces the collision gathering algorithm with the same O(n) approach used in Create 6.0.9 (commit 8f30c2c). Instead of joining VoxelShapes, it collects AABBs directly from each block's collision shape — no intermediate allocations, no GC pressure. Also includes related duplicates: #4607, #5685, #9026, #9389.

Train Stutter from carriageWaitingForChunks

Original problem: In Train.tick(), when a carriage enters an unloaded chunk, Create sets carriageWaitingForChunks which forces speed = 0 until the chunk finishes loading. On maps with many trains and limited view distance, this causes 0.5-1.5 second freezes every time a train crosses a chunk boundary.

Our fix: TrainMixin redirects all reads of carriageWaitingForChunks in tick() to always return -1, so speed is never zeroed. Combined with the Smart Chunk Loading system (pre-loading chunks ahead of the train), trains move continuously without stutter.

Collision Check Performance

Original problem: collideWithOtherTrains() runs every tick for every train, which becomes expensive on maps with 20+ trains.

Our fix: TrainMixin throttles collision checks adaptively based on server performance — every 4 ticks normally, every 8 when degraded, every 12 when critical. Each train's check is offset by its UUID hash to distribute the load evenly across ticks.

💚About us

Publisher: GreenToastSoftware Games® (C)GreenToastSoftware Corporation. All rights reserved 2020-2026.

How to Install Create Optimized Trains (Mod)

Create Optimized Trains by GreenToastSoftware is verified for Forge across Minecraft versions 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6 (latest release: 1.3.2, file size: 747 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6) and platform (Forge).
  2. Make sure you have the compatible loader or environment installed for Forge.
  3. Move the downloaded Create Optimized Trains file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.20.x
Forge
2mo ago 1
1.20.x
Forge
4mo ago 1
1.20.x
Forge
6mo ago 1
1.20.x
Forge
7mo ago 1
1.20.1
Forge
7mo ago 1
[1.3.2] Create Optimized Trains 1.3.2 by GreenToastSoftware on Sep 07, 2026
Download
## v1.3.2

### Focus

  • Fixes the remaining Copycats+ bit lag, a critical world-load freeze, and last-carriage movement stutter
  • All fixes are follow-ups discovered while stress-testing v1.3.1 on maps with 40+ trains and Copycats+ bit-heavy contraptions

### Bug Fixes

#### Copycats+ Periodic Lag (Bit Blocks with BlockEntity)
  • Contraptions containing Copycats+ "bits" (sub-block sized pieces with a BlockEntity, unlike plain slabs/panels) caused periodic lag spikes every few seconds
  • Root cause: ContraptionWorld does not override getBlockEntity(), so it fell back to WrappedLevel.getBlockEntity(), which queried the **real world** using the contraption's **local** coordinates (e.g. 5,1,3) — forcing the server to load/query the chunk at real-world (0,0) on every call
  • Fix: ContraptionWorldBlockEntityMixin intercepts getBlockEntity() on Level (filtered to ContraptionWorld instances) and always serves the BlockEntity from contraption.getBlocks(), with a lazy per-instance cache — never touching the real world with local coordinates

#### World Freeze on Startup (Memory Pressure)
  • On some world loads, especially after the server had been running a while, the game would hang completely at the loading screen (no crash, just a full freeze)
  • Root cause: heap memory pressure genuinely reaching 90%+ during startup, mainly from Distant Horizons' distant world generation competing with ~40 Create contraptions being assembled simultaneously — triggering long stop-the-world GC pauses (minutes-long in the worst case)
  • Fix: DistantHorizonsThrottle temporarily reduces DH's distant world generation and worker thread count for the first startupThrottleTicks (default 200 ticks / 10s) after the server starts, giving vanilla terrain and contraption assembly priority. DH's original settings are restored automatically afterwards. Uses DH's public API via reflection — no hard dependency

#### Last-Carriage Movement Stutter
  • Long trains (10+ carriages) without a player on board showed irregular movement — the stutter would noticeably improve once the rearmost carriage's entity finally loaded
  • Root cause: ChunkLoadManager's per-tick chunk load rate limit applied to *every* needed chunk indiscriminately, including the exact chunk each carriage physically occupies. On unoccupied trains, that chunk competed with lookahead/trailing chunks for the same 6-per-tick budget, so the last carriage in line could take several ticks just to get its own chunk loaded — delaying its entity creation
  • Fix: chunk requests are now split into **critical** (the exact chunk under each carriage — always loaded immediately, no rate limit, regardless of occupancy) and **soft** (LOD comfort radius, directional lookahead, trailing buffer — still rate-limited). No carriage, including the rearmost one, waits behind empty pre-load chunks anymore

#### Chunks Not Unloading When a Train Stops
  • Chunks along a train's previous travel direction could remain force-loaded indefinitel
...
[1.3.1] Create Optimized Trains 1.3.1 by GreenToastSoftware on Jul 06, 2026
Download
## v1.3.1

### Focus

  • Movement smoothness, simulation distance, LOD chunk radius, and rendering correctness
  • Rendering fixes target entity visibility and depth layering with Oculus/Embeddium + Flywheel OIT
  • Chunk loading and directional filtering improved for smoother train travel
  • Distant Horizons compatibility groundwork added

### New Features

#### Train Simulation Distance
  • New simulation config section: simulationDistance (0–128 chunks) extends the directional chunk lookahead beyond the previous hardcoded 10-chunk limit
  • maxForcedChunks (20–400): configurable global cap for force-loaded chunks
  • Designed for use with Distant Horizons for smooth far-train visibility

#### Per-LOD Carriage Chunk Radius
  • New lod_radius config section: radiusFull, radiusMedium, radiusLow, radiusGhost
  • Load a larger or smaller chunk area around carriages depending on their LOD level
  • Replaces the single CARRIAGE_CHUNK_RADIUS option with fine-grained per-LOD control

#### Distant Horizons Compatibility
  • Added DistantHorizonsCompat to detect DH and coordinate chunk loading so the two systems do not conflict
  • Added ShaderCompat for lightweight detection of active shader packs (used by LOD and render decisions)

#### Player Train Tracker
  • Added PlayerTrainTracker utility to track which players are currently riding which trains
  • Used by chunk loading and LOD systems for proximity-aware decisions

### Improvements

#### Movement Smoothness
  • Chunk boundary grace period is now adaptive: 5 ticks while moving, 20 ticks while stopped
  • Eliminates JourneyMap position lag and entity freeze at chunk boundaries
  • ContraptionTickThrottleMixin added to throttle tickContraption() safely without visual desync

#### Chunk Loading
  • ChunkMapMixin: added a 5-chunk minimum radius — directional filtering is now disabled entirely when the player is close to the train, preventing nearby chunks from being skipped
  • ChunkLoadManager: global forced-chunk cap increased from 30 to 60; lookahead cap increased from 6 to 10
  • TrainEventHandler: startup delay reduced from 100 to 40 ticks; ramp-up batch increased from 2 to 5
  • DirectionalChunkShaper: direction response made faster (smooth factor 0.3 → 0.5)
  • Default sideChunks increased from 3 to 5 in ModConfig

#### LOD System
  • LOD distances restored to v1.2.0 baseline (shaderLodShift default back to 0)
  • Fixed resolveCarriagePosition to use positionAnchor as a fallback when a carriage entity is not yet available
  • shouldAnimate now allows LOW LOD to animate; only GHOST skips animation
  • shouldSkipRender threshold lowered from 40 to 20 FPS

#### Rendering Performance
  • Removed Flywheel frame skipping from RenderOptimizer — positions now update every frame, eliminating position drift under load
  • CarriageRendererMixin: culling distance increased from 256 to 512 blocks

### Bug Fixes

#### Camera Shake
  • Removed the isActiveChunkOrLoadedInManage Redirect that was causing ca
...
[1.3.0] Create Optimized Trains 1.3.0 by GreenToastSoftware on May 12, 2026
Download
## v1.3.0

### Focus

  • Stability-first release focused on fixing regressions introduced after v1.2.0
  • Restores smooth train behavior under real gameplay load (multiple trains, stations, chunk boundaries)
  • Keeps most aggressive optimizations optional behind config flags

### Improvements

#### Movement and Physics Stability
  • Added player proximity guards so nearby trains keep full physics/collision updates
  • Aggressive throttling for other trains is now optional (AGGRESSIVE_OTHER_TRAINS_THROTTLE), default OFF
  • Client-side tickContraption() throttling is blocked to avoid visual desync and “entry-state freeze”

#### Chunk Loading and Spawn Smoothness
  • Startup grace period added to chunk filtering in ChunkMapMixin to avoid missing chunks on world join
  • Chunk force-load pipeline now uses per-train rate limiting to reduce tick spikes when new trains appear
  • Prioritizes immediate carriage chunks before lookahead/trailing chunks
  • Added trailing buffer logic based on train length so rear carriages stay stable on long consists

#### LOD Consistency
  • Fixed LOD classification bug where lowDistance was not being applied correctly
  • Removed dynamic TPS-based shrinking of LOD distances (distance thresholds are now stable)
  • Restored effective LOD behavior to v1.2.0 profile (no extra client-side shader LOD shift)
  • Added fallback distance source (positionAnchor) when a carriage entity is not yet available

### Bug Fixes

#### Camera Shake While Sitting in Carriages
  • Root cause addressed by preventing premature carriage entity creation in non-entity-ticking chunks
  • Added priority chunk loading for carriages with player passengers to stabilize seat/camera sync

#### Trains Appearing as Distant LOD While Nearby
  • Fixed client visual throttle path to never apply near the player/camera
  • Nearby stationary trains no longer look choppy or “far LOD” when standing next to them

#### Visual and Flywheel Regressions
  • CarriageContraptionVisualMixin begin-frame flow aligned with safer behavior (no incorrect skip path for moving trains)
  • Removed problematic skip conditions that could freeze or under-update visuals

### Configuration

New/updated behavior in create_optimized_trains-common.toml:
  • AGGRESSIVE_OTHER_TRAINS_THROTTLE (default: false)
  • GROUPING_ENABLED default changed to false (experimental)
  • PROXY_ENABLED default changed to false (experimental)
  • SHADER_BOOST_ENABLED default changed to false
  • SHADER_LOD_SHIFT default changed to 0

### Notes

  • Recommended migration from older configs: review existing .toml values, because existing files keep old values instead of new defaults
  • This release is tuned for predictable behavior first; re-enable aggressive options only if needed per world/server

### Dependencies

  • Minecraft 1.20.1
  • Forge 47.4.16+
  • Create Mod 6.0.8+
  • Flywheel 1.0.5 (JiJ'd inside Create)
  • Mixin 0.8.5
[1.2.0] Create Optimized Trains 1.2.0 by GreenToastSoftware on Apr 13, 2026
Download
## v1.2.0

### New Features

#### Route Chunk Preloader
  • New chunk preloading system along the railway route using Create's track graph
  • Uses getChunkFuture(FULL) to load chunks into memory **without** force-loading (no entity-ticking)
  • Dedicated COT-RouteChunkPreloader thread to avoid blocking the server tick
  • ~256 block lookahead, maximum of 24 chunks per train

#### Directional Chunk Loading
  • ChunkMapMixin filters new chunks sent to the client when the player is riding a train
  • Lateral chunks outside the directional area are not loaded (front/back have priority)
  • DirectionalChunkShaper tracks players on trains and calculates direction with EMA smoothing
  • Compatible with Distant Horizons — DH uses its own LOD system independently

#### Player Proximity Buffer
  • updatePlayerProximityBuffer() preloads chunks in the buffer zone (view distance + 1~3 chunks)
  • Carriage entities are created and positioned BEFORE the player can see them
  • Result: trains appear fully positioned with no ghost/stutter

#### Position Snap (Client)
  • CarriageEntityClientMixin forces xo=x, yo=y, zo=z for the first 5 ticks after spawn
  • Prevents visual interpolation/sliding when carriage entities are created

#### F3 Debug Overlay
  • COT information on the F3 screen: memory, threads (pool/active/queued), TPS/MSPT/Peak, state/factor, FPS, chunks forced/route-cached
  • JVM thread count cached every ~1s to prevent flickering
  • Can be disabled via DEBUG_OVERLAY_ENABLED config

#### Safe Train Tick Protection
  • SafeTrainTickMixin wraps train.earlyTick() in a try-catch inside GlobalRailwayManager.tickTrains()
  • If an external mod (e.g. RailX) crashes during a train's tick, the train skips the tick instead of crashing the server
  • Logging limited to 3 warnings per train to avoid spam
  • Prevents crash loops that block worlds from loading

### Improvements

#### Chunk Load Manager
  • Directional lookahead based on real train movement (deltaMovement + fallback to position delta)
  • Adaptive lookahead capped at 6 chunks (entity-ticking is CPU-expensive)
  • Side chunks (for curves) only for the 3 nearest chunks
  • getCarriagePosition() uses DimensionalCarriageEntity.positionAnchor as fallback for carriages without entities
  • Anti-thrashing with 12-chunk recent history

#### Render Optimization
  • LOD-based render skipping by distance (>256 blocks = culling)
  • Flywheel update skipping for distant trains (LOD > MEDIUM)
  • Per-train visibility tracking for LOD decisions
  • getClientFPS() cached every 30 frames

#### LOD System
  • Buffer zone: trains approaching the player forced to LOD FULL
  • Temporal hysteresis (500ms minimum between LOD changes) to prevent flip-flop
  • Player position caching for thread-safe calculations
  • Distances adjustable by the Performance Monitor

### Bug Fixes

#### Invisible Trains (Critical)
  • Cause:** Fade-out system marked all distant trains as "departing" on world load → getDepartureScale() returned -1 after 12 frames → renderer
...
[1.0.0] Create Optimized Trains v1.0.0-beta by GreenToastSoftware on Apr 04, 2026
Download
# Create Optimized Trains

Performance optimization addon for **Create Mod** trains (Forge 1.20.1).

## Features

### 1. LOD (Level of Detail) for Trains
  • FULL** — Real carriages with full physics (player nearby)
  • MEDIUM** — Simplified physics, normal rendering
  • LOW** — No physics, no collisions, minimal contraption updates
  • GHOST** — Ghost entity, no rendering, abstract data only

### 2. Carriage Grouping / Abstraction
  • Merges multiple carriages into a single logical entity (TrainGroup)
  • Stores only: length, speed, position, carriage list as NBT
  • Expands back when the player approaches

### 3. Safe Multi-threading
  • Secondary thread (safe):**
  • Route calculation
  • Collision prediction
  • Schedule optimization
  • Priority management
  • LOD decisions
  • Predictive simulation

  • Main thread (required):**
  • Actual entity movement
  • Create physics
  • Rendering
  • Block interaction

### 4. Tick Throttling (Partial Updates)
  • FULL: every tick
  • MEDIUM: every 3 ticks (configurable)
  • LOW: every 8 ticks
  • GHOST: every 20 ticks

### 5. Render Optimization
  • Disables animations for distant trains
  • Skips full rendering for GHOST LOD
  • Reduces particles and visual effects
  • Hides internal details when not visible

### 6. Proxy Entities
  • Lightweight entity representing the entire train
  • Replaces dozens of contraptions
  • Keeps position, speed and direction
  • Recreates real carriages when needed

### 7. Smart Chunk Loading Management
  • Loads only essential chunks
  • Unloads chunks behind the train earlier
  • Pre-loads chunks ahead
  • Anti-thrashing (prevents repeated load/unload cycles)

### 8. Physics Optimization
  • Simplified physics for distant carriages
  • Disables collisions between carriages at low LOD
  • Reduces bogie checks
  • Disables internal contraption physics when far away

### 9. Networking Optimization
  • Sends updates only when speed/direction changes
  • Batches packets (delta compression)
  • Reduces sync frequency for distant trains

### 10. Priority System
  • Priority by type (EXPRESS > PASSENGER > FREIGHT > LOW)
  • Conflict resolution at junctions
  • Track segment reservation
  • Async conflict analysis

### 11. Dynamic Performance Monitor
  • NORMAL** (TPS >= 18): full fidelity
  • DEGRADED** (15 <= TPS < 18): light optimizations
  • CRITICAL** (TPS < 15): aggressive optimizations, reduced LOD distances

## Configuration

File: create_optimized_trains-common.toml

All features are individually configurable with distances, intervals and toggles.

## Dependencies

  • Minecraft 1.20.1
  • Forge 47.1.33+
  • Create Mod 6.0.8+
  • Flywheel 1.0.6+ (bundled with Create)
Create Optimized Trains Icon
Download Create Optimized Trains
Select game version
Select platform