CC: Tweaked addon for Sable!
CC: Sable is a CC: Tweaked addon for the Sable backend of Create: Simulated!
Currently, it provides the Sub-Level API (sublevel) for all in-game computers! Its methods can only be properly called when the computer is on a Sub-Level (physics object). It also provides the Aerodynamics API (aero,aerodynamics) for all in-game computers to access dimension-specific physics information!
This mod also comes bundled with the CC: Advanced Math datapack for extra math utilities, namely the quaternion module for handling rotations in 3D space. This is used to convert the orientation of Sub-Levels into a more usable format for Lua.
This object is gotten from the tables returned by aero.getRaw and aero.getDefault, specifically from the pressureFunction key.
This method returns an array of points along the bezier curve with altitude, value, and slope as fields for each point.
This method evaluates the function given the altitude along the bezier curve.
This mod also adds the physics properties of blocks to any method calling to block details, such as turtle.inspect().
These new details will be listed under the "sable" key and have the following key-value pairs:
mass: numberfriction: numberrestitution: numbervolume: numberfloatingScale: numberfloatingMaterial: table(can be empty)factHorizontalFriction: numberfactVerticalFriction: numberslowHorizontalFriction: numberslowVerticalFriction: numberliftStrength: numbertransitionSpeed: numberpreventSelfLift: booleanscaleWithGravity: booleanscaleWithPressure: boolean