Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

spool / BallisticOptions

Interface: BallisticOptions โ€‹

Defined in: plugins/ballistics/static.ts:14

FunctionContext.ballistic's options: how to aim, plus what to throw.

Extends โ€‹

Properties โ€‹

fuse? โ€‹

readonly optional fuse?: number | false

Defined in: plugins/ballistics/shell.ts:48

Fuse in ticks, or false for none. Defaults to the flight time.

Inherited from โ€‹

ShellOptions.fuse


maxSpeed? โ€‹

readonly optional maxSpeed?: number

Defined in: plugins/ballistics/launch.ts:25

Reject faster solutions, in blocks/tick. Default 10, vanilla's Motion limit.

Inherited from โ€‹

LaunchOptions.maxSpeed


maxTicks? โ€‹

readonly optional maxTicks?: number

Defined in: plugins/ballistics/launch.ts:32

Latest flight time. Defaults to the projectile's fuse (80 for TNT), so it doesn't explode early.

Inherited from โ€‹

LaunchOptions.maxTicks


minSpeed? โ€‹

readonly optional minSpeed?: number

Defined in: plugins/ballistics/launch.ts:23

Reject solutions slower than this, in blocks/tick. Default 0.

Inherited from โ€‹

LaunchOptions.minSpeed


minTicks? โ€‹

readonly optional minTicks?: number

Defined in: plugins/ballistics/launch.ts:27

Earliest allowed flight time, in ticks. Default 1.

Inherited from โ€‹

LaunchOptions.minTicks


pitchRange? โ€‹

readonly optional pitchRange?: readonly [number, number]

Defined in: plugins/ballistics/launch.ts:37

Launch angle range in degrees, negative is up. [-90, -45] for a lob, [-20, 0] for a flat shot.

Inherited from โ€‹

LaunchOptions.pitchRange


prefer? โ€‹

readonly optional prefer?: "min-speed" | "min-time" | "max-time"

Defined in: plugins/ballistics/launch.ts:44

Which exact solution to return:

  • "min-speed" (default): slowest shot that reaches.
  • "min-time": flattest and fastest.
  • "max-time": highest lob that fits; clears walls.

Inherited from โ€‹

LaunchOptions.prefer


projectile? โ€‹

readonly optional projectile?: ProjectileProfile

Defined in: plugins/ballistics/launch.ts:21

Which entity to model. Default PROJECTILES.tnt.

Inherited from โ€‹

LaunchOptions.projectile


shell? โ€‹

readonly optional shell?: ShellFactory

Defined in: plugins/ballistics/shell.ts:46

The projectile's NBT. Default: primed TNT with nothing but the solver's own fields.

Inherited from โ€‹

ShellOptions.shell


subTickSamples? โ€‹

readonly optional subTickSamples?: number

Defined in: plugins/ballistics/launch.ts:49

Flight times tried per tick. Default 1. Raise for projectiles that must arrive between ticks.

Inherited from โ€‹

LaunchOptions.subTickSamples

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.