
Physics for Create Fly & More are here!
Minecraft 26.1.2, 26.2 & 26.3 / Fabric
A Physics Library For Modders!
What Is It?
SampPhysics is the physics engine that makes SampCoasters' carts roll and its balloons float!
(Check out SampCoasters here!)
It turns a group of blocks into a pod, which is a build that moves on its own. Pods fall, tip over, bump into things, and get saved with your world. Every block in a pod is still a real block, so you can open and use things like chests, crafting tables, furnaces, etc! all while it's moving.
Who Is It For?
- Players
- Download this if you use a mod that needs it, or if you want a standalone engine patch for SampCoasters (SampCoasters 1.3.0+ already bundles it!).
- Modders
- It's a library you can build on! (only if you want to) You can turn blocks into pods or make them from scratch, push them with custom force channels, link them together, add custom hit reactions, and give your own blocks weight or lift.
- SampPhysics handles the moving, colliding, saving, and syncing to players for you. The modder's guide shows how.
What Pods Can Do
- Move for real!
- Gravity, momentum, and collisions with the world and with each other. If you break a pod in two, you get two pods.
- Carry you.
- Players and mobs can walk around on them and ride along, pets follow you on board, and you can build, climb ladders, sleep in beds, pour water or lava, and even use portals while moving.
- React to crashes.
- Hard hits break wild leaves, melons, pumpkins, bamboo, cactus, lily pads, and ice, ring bells, play note blocks, chime amethyst, trigger target blocks, light TNT properly, and spill honey from beehives (and mods or data packs can add their own!).
- Take a beating.
- Explosions break and push pods, things like slime and honey bounce them right back up, they can also crash and destroy blocks in the world if they have enough impact and force!
- Float!
- Balloons (sampcoasters) and any block given floating values (through commands, data packs, or mods) can lift pods into the air.
- Get shoved.
- Hit a pod to push it (light ones fly, heavy ones barely budge), or push off a wall while standing on one.
- Stay safe in your saves.
- Each pod saves as its own file inside your world folder so a crash mid-save won't corrupt your builds, and if the physics library ever fails to load, your worlds still open safely with pods held in place.
Commands
- SampPhysics has its own command to help you debug and build mods:
/sampphysics!- On its own it shows the version, whether the physics library loaded, and how many pods are loaded.
/sampphysics helplists everything else. list,info,goto, andbringfind pods, tell you about one, take you to it, or bring it to you.move,stop,name, andremovemove a pod, stop a runaway, name it, or remove it.parkedlists pods waiting in unloaded chunks (usually where lost ones are hiding!), andkeeploadedkeeps pods loaded and moving even when nobody is nearby.assemble connectedandassemble boxturn blocks already in the world into a pod.blocklets operators inspect and tweak any block's weight, fill, bounce, grip, shatter, and floating settings live in-game.dataedits a pod's extra data,runruns any command inside a pod, andupdatestoggles the optional update check.
- On its own it shows the version, whether the physics library loaded, and how many pods are loaded.
- Pods have their own selectors.
- Pick pods with
@e,@n,@r,@v,@l,@t, and@i, with filters like@e[mass=10..](distance,name,sort,limit,mass, andspeed), or by UUID.
- Pick pods with
- How hard players push pods is controlled by two attributes:
sampphysics:punch_strengthandsampphysics:punch_cooldown. - Everything past
/sampphysics,help, andstatusneeds operator level 2. - The full list with examples is on the commands page!
You'll Need
- Minecraft 26.1.2, 26.2, or 26.3 with Fabric Loader 0.19.2+ and Java 25+.
- Fabric API: 0.155.3+ on 26.1.2, 0.161.0+ on 26.2, and 0.163.0+ on 26.3.
- SampPhysics on the server and on every player's game in the same version!
- Available in English and Latin American Spanish.
For Modders
- The modder's guide covers coordinates, making pods, force channels, links, hit reactions, block rules, events, data packs, and examples.
- SampPhysics doesn't draw a pod's blocks. It moves, collides, saves, and syncs them, and drawing them is up to your mod (the guide shows how!). On its own, a pod is there and you can stand on it, it's just uhh invisible.
Links
Please report any bugs in the comments or on GitHub Issues, thank you! :D