Appearance
spool / BallisticOptions
Interface: BallisticOptions โ
Defined in: plugins/ballistics/static.ts:14
FunctionContext.ballistic's options: how to aim, plus what to throw.
Extends โ
LaunchOptions.ShellOptions
Properties โ
fuse? โ
readonlyoptionalfuse?: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? โ
readonlyoptionalmaxSpeed?:number
Defined in: plugins/ballistics/launch.ts:25
Reject faster solutions, in blocks/tick. Default 10, vanilla's Motion limit.
Inherited from โ
maxTicks? โ
readonlyoptionalmaxTicks?: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 โ
minSpeed? โ
readonlyoptionalminSpeed?:number
Defined in: plugins/ballistics/launch.ts:23
Reject solutions slower than this, in blocks/tick. Default 0.
Inherited from โ
minTicks? โ
readonlyoptionalminTicks?:number
Defined in: plugins/ballistics/launch.ts:27
Earliest allowed flight time, in ticks. Default 1.
Inherited from โ
pitchRange? โ
readonlyoptionalpitchRange?: 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 โ
prefer? โ
readonlyoptionalprefer?:"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 โ
projectile? โ
readonlyoptionalprojectile?:ProjectileProfile
Defined in: plugins/ballistics/launch.ts:21
Which entity to model. Default PROJECTILES.tnt.
Inherited from โ
shell? โ
readonlyoptionalshell?: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? โ
readonlyoptionalsubTickSamples?:number
Defined in: plugins/ballistics/launch.ts:49
Flight times tried per tick. Default 1. Raise for projectiles that must arrive between ticks.