Single module modding
This commit is contained in:
@@ -49,7 +49,7 @@ const half_shaft = (facing: Face) => HALF_SHAFT_TURNS[OPPOSITE[facing]];
|
||||
// how a model made along y is turned to an axis, the way the kinetic blocks' variants turn theirs
|
||||
const AXIS_TURNS: Record<Axis, { x?: number; y?: number }> = { x: { x: 90, y: 90 }, y: {}, z: { x: 90, y: 180 } };
|
||||
|
||||
export function setup(ctx: ClientContext) {
|
||||
export function client(ctx: ClientContext) {
|
||||
const shape_of = (block: VisualBlock): KineticShape => {
|
||||
const params = ctx.blocks.components(block.id)["create:kinetic"] as KineticParams;
|
||||
return kinetic_shape(params, (name) => block.states[name]);
|
||||
|
||||
Reference in New Issue
Block a user