Repository navigation
Commands
Everything in SampPhysics lives under /sampphysics. It doesn't touch or add anything to vanilla commands.
Permissions: /sampphysics, /sampphysics status, and /sampphysics help can be run by anyone. Everything else needs operator level 2.
Anywhere a command asks for <pod> or <pods>, you can pass either a pod's UUID or a selector:
| Selector | Picks |
|---|---|
@e |
Every loaded pod |
@n |
The closest pod |
@r |
A random pod |
@v |
The pod you're looking at |
@l |
The newest pod |
@t |
The pod you're standing on |
@i |
The pod this spot belongs to |
You can narrow a selector down with brackets [...]:
| Option | What it filters | Example |
|---|---|---|
distance= |
Distance in blocks | @e[distance=..20] |
mass= |
Weight of the pod | @e[mass=100..] |
speed= |
Speed in blocks per second | @e[speed=1..] |
name= |
The pod's name | @e[name="My Ship"] |
sort= |
nearest or furthest
|
@e[sort=nearest,limit=3] |
limit= |
Max number of pods to pick (whole number above 0) | @e[limit=1] |
Each option can only be used once per selector. If a command only accepts a single <pod> (like info or goto), use a single-pod selector like @n or @v, or add limit=1.
Shows the SampPhysics version, which native physics library loaded, and how many pods are loaded in your current dimension.
Lists all commands and selector syntax right in chat.
Lists loaded pods, nearest first, with their coordinates, distance, and weight.
/sampphysics list
/sampphysics list @e[distance=..50,mass=10..]Shows one pod's UUID (click to copy), position, speed, block size, weight, and where its blocks live in zone space.
/sampphysics info @vLists pods waiting in unloaded chunks, nearest first, with clickable coordinates to teleport there. Super handy when a pod drifts off and goes missing!
Teleports you to a pod.
/sampphysics goto @nBrings a pod right in front of you.
/sampphysics bring @nMoves a pod to the given coordinates.
/sampphysics move @v ~ ~10 ~Stops matching pods dead in their tracks.
/sampphysics stop @e[speed=5..]Shows, sets, or clears a pod's name.
/sampphysics name @v set "Coaster 1"
/sampphysics name @v clearKeeps pods loaded and moving even when nobody is nearby (and remembers across restarts). Use off to let them unload normally again.
/sampphysics keeploaded @v on
/sampphysics keeploaded @e offRemoves matching pods. Add drop at the end if you want their blocks to drop as items.
/sampphysics remove @v
/sampphysics remove @e[distance=..10] dropTurns all connected blocks starting at <block> into a pod. Optionally pass <most> to cap how many blocks it can grab.
/sampphysics assemble connected ~ ~-1 ~
/sampphysics assemble connected 10 64 -20 500Turns every block inside the box from <from> to <to> into a pod.
/sampphysics assemble box ~-2 ~ ~-2 ~2 ~3 ~2Shows a block's current physics values, or changes/resets them for this world. Changes save to sampphysics/block_changes.json inside your world folder and apply right away.
Available values and limits:
-
weight:0to10000 -
fill:0.01to1 -
bounce:0to1 -
grip:0to10 -
shatters:trueorfalse -
floats_as: floating material ID (set this before settingfloat_share) -
float_share:0to1
Examples:
/sampphysics block minecraft:oak_planks
/sampphysics block minecraft:oak_planks set weight 1.5
/sampphysics block minecraft:slime_block set bounce 0.9
/sampphysics block minecraft:oak_planks reset weight
/sampphysics block minecraft:oak_planks resetReads or edits a pod's extra saved NBT data. data get with a path returns the value as the command result, so it works with vanilla /execute store.
/sampphysics data get @v
/sampphysics data merge @v {customFlag:1b}Runs any command inside a pod's zone (in), back out in world space (out), or at the pod's center (center).
/sampphysics run center @v particle minecraft:flame ~ ~1 ~ 0.2 0.2 0.2 0.01 10Shows or changes whether SampPhysics checks GitHub for new versions on startup (off by default!). When running standalone, this only affects your game; on a dedicated server, run sampphysics updates on in the console or set checkForUpdates = true in config/sampphysics.properties.
How hard players push pods when hitting them is controlled by two vanilla attributes you can change with /attribute:
sampphysics:punch_strengthsampphysics:punch_cooldown
/attribute @s sampphysics:punch_strength base set 2.0If you run into any command bugs or weirdness, open an issue on GitHub! :D