Nathan Jeremy Cid Guerra

create an minecraft mod for 26.3 fabric that makes move and rotate like real physics to block structures, or "sub-levels" (like Sable, Valkyrien Skies or Create Aeronautics)

Kodari AI
KodariOct 11 at 9:19 pm 3
PhysicsStructures
Adds realistic physics simulation to block structures in Minecraft Fabric 26.3. Players can assemble multi-block constructs that respond to gravity, momentum, and collision forces. Structures rotate and translate based on applied impulses, with configurable mass properties per block type. Features include structure anchoring, velocity-based movement, rotational inertia, and collision detection between moving structures. Implements a custom physics engine running on the server tick loop, with client-side interpolation for smooth rendering. Supports sub-levels where structures can be nested and interact with each other. Includes debug visualization tools and API for developers to create custom physics-enabled blocks.
  1. Set up a Fabric 26.3 mod project.

  2. Add a /sublevel assemble <radius> prototype that turns nearby blocks into a rigid, physics-driven moving structure.

  3. Tick translation and rotation, with basic gravity and ground collision.

Created Sublevels Physics, a Fabric 26.3 prototype. In-game, run /sublevel assemble <radius> with a radius from 1 to 3. It converts nearby non-air blocks (excluding blocks with block entities) into a moving, rotating structure with gravity and basic ground collision.

This is an initial physics prototype: it doesn’t yet collide with players or other structures, and assembled structures aren’t restored when the server restarts.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
10 359
src/main/java/com/kodari/sublevels/SublevelsMod.java
package com.kodari.sublevels;

import net.fabricmc.api.ModInitializer;
import com.kodari.sublevels.physics.SubLevelManager;

public final class SublevelsMod implements ModInitializer {
	@Override
	public void onInitialize() {
		SubLevelManager.initialize();
	}
}