Change imports
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
// create's basin: items dropped into it go in, a kind to a stack, fluid containers empty into it and fill from it, and
|
||||
// an empty hand takes the items out
|
||||
import { assert, assertEquals } from "@std/assert";
|
||||
import { ItemStack } from "$/common/inventory.ts";
|
||||
import type { FluidStack, ItemStack as Stack } from "bworld/shared";
|
||||
import { ItemStack } from "@/common/inventory.ts";
|
||||
import type { FluidStack, ItemStack as Stack } from "cubi/shared";
|
||||
import {
|
||||
apply_basin_recipe,
|
||||
BASIN_SLOTS,
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
BASIN_TANKS,
|
||||
fill,
|
||||
insert_item,
|
||||
} from "$/mods/create/scripts/processing/basin.ts";
|
||||
} from "@/mods/create/scripts/processing/basin.ts";
|
||||
import { setup, visual_for } from "./helpers.ts";
|
||||
|
||||
const juice = (item: string) => ({ id: "bworld:juice", data: { item } });
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
// create's generators besides the hand crank: the water wheel, turned by water flowing past it, and the creative
|
||||
// motor, which turns at whatever speed it's scrolled to
|
||||
import { assert, assertEquals } from "@std/assert";
|
||||
import { type BlockRegistry, EverythingRegistry } from "$/common/everything_registry.ts";
|
||||
import { AIR_ID } from "$/common/protocol.ts";
|
||||
import { flow_score, motor_step } from "$/mods/create/scripts/kinetics/generators.ts";
|
||||
import { type BlockRegistry, EverythingRegistry } from "@/common/everything_registry.ts";
|
||||
import { AIR_ID } from "@/common/protocol.ts";
|
||||
import { flow_score, motor_step } from "@/mods/create/scripts/kinetics/generators.ts";
|
||||
import { AXIS, FACING, setup, visual_for } from "./helpers.ts";
|
||||
|
||||
// the rpm a generator's params say
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import { type BlockRegistry, EverythingRegistry } from "$/common/everything_registry.ts";
|
||||
import { AIR_ID } from "$/common/protocol.ts";
|
||||
import { get_state_value, set_state_value } from "$/common/utils.ts";
|
||||
import type { Face } from "$/common/mod_api/shared.ts";
|
||||
import type { ClientContext, Instances, ModelRef, Visual, VisualBlock } from "$/common/mod_api/client.ts";
|
||||
import { setup as setup_client } from "$/mods/create/scripts/client.ts";
|
||||
import { type BlockRegistry, EverythingRegistry } from "@/common/everything_registry.ts";
|
||||
import { AIR_ID } from "@/common/protocol.ts";
|
||||
import { get_state_value, set_state_value } from "@/common/utils.ts";
|
||||
import type { Face } from "@/common/mod_api/shared.ts";
|
||||
import type { ClientContext, Instances, ModelRef, Visual, VisualBlock } from "@/common/mod_api/client.ts";
|
||||
import { setup as setup_client } from "@/mods/create/scripts/client.ts";
|
||||
import { stone_floor, test_game } from "../helpers.ts";
|
||||
|
||||
// facing and axis states, in the order the importer numbers them
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// create's kinetics: shafts take the speed of what turns them, a hand crank turns them while it's being clicked, a
|
||||
// block that would turn two ways at once breaks, and a network that takes more than its generators make stops
|
||||
import { assert, assertEquals } from "@std/assert";
|
||||
import { AIR_ID } from "$/common/protocol.ts";
|
||||
import { AIR_ID } from "@/common/protocol.ts";
|
||||
import { test_game } from "../helpers.ts";
|
||||
import { AXIS, FACING, setup, visual_for } from "./helpers.ts";
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
// pressing recipes, one at a time, or with a basin under it makes compacting recipes in that, and it only ticks while
|
||||
// it turns
|
||||
import { assert, assertEquals } from "@std/assert";
|
||||
import { ItemStack } from "$/common/inventory.ts";
|
||||
import { BASIN_TANK_CAPACITY } from "$/mods/create/scripts/processing/basin.ts";
|
||||
import { BASIN_TRAVEL, PRESS_AT } from "$/mods/create/scripts/processing/press.ts";
|
||||
import { ItemStack } from "@/common/inventory.ts";
|
||||
import { BASIN_TANK_CAPACITY } from "@/mods/create/scripts/processing/basin.ts";
|
||||
import { BASIN_TRAVEL, PRESS_AT } from "@/mods/create/scripts/processing/press.ts";
|
||||
import { FACING, setup, visual_for } from "./helpers.ts";
|
||||
|
||||
// a press at 1 101 0 along x, turned by a crank on its west side, with the floor two blocks under it
|
||||
|
||||
@@ -3,20 +3,20 @@
|
||||
|
||||
// create's recipe types: read and checked when the mod loads, and shown by the recipe viewer
|
||||
import { assert, assertEquals, assertThrows } from "@std/assert";
|
||||
import { EverythingRegistry } from "$/common/everything_registry.ts";
|
||||
import { tag_api } from "$/common/tags.ts";
|
||||
import type { ClientContext } from "$/common/mod_api/client.ts";
|
||||
import type { RecipeReader } from "$/common/mod_api/shared.ts";
|
||||
import { recipe_lookup } from "$/common/mod_loader.ts";
|
||||
import { EverythingRegistry } from "@/common/everything_registry.ts";
|
||||
import { tag_api } from "@/common/tags.ts";
|
||||
import type { ClientContext } from "@/common/mod_api/client.ts";
|
||||
import type { RecipeReader } from "@/common/mod_api/shared.ts";
|
||||
import { recipe_lookup } from "@/common/mod_loader.ts";
|
||||
import {
|
||||
COMPACTING,
|
||||
parse_processing,
|
||||
PRESSING,
|
||||
processing_type,
|
||||
type ProcessingRecipe,
|
||||
} from "$/mods/create/scripts/recipes/processing.ts";
|
||||
import { inputs, outputs } from "$/mods/recipe_viewer/scripts/recipes.ts";
|
||||
import { RecipeIndex } from "$/mods/recipe_viewer/scripts/recipes_screen.ts";
|
||||
} from "@/mods/create/scripts/recipes/processing.ts";
|
||||
import { inputs, outputs } from "@/mods/recipe_viewer/scripts/recipes.ts";
|
||||
import { RecipeIndex } from "@/mods/recipe_viewer/scripts/recipes_screen.ts";
|
||||
import { test_game } from "../helpers.ts";
|
||||
|
||||
const lookup = () => ({
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
// create's blocks that pass rotation on: gearboxes, clutches and gearshifts worked by verdigris, encased shafts and
|
||||
// cogs, and chain drives
|
||||
import { assert, assertEquals } from "@std/assert";
|
||||
import { AIR_ID } from "$/common/protocol.ts";
|
||||
import { chain_ratio } from "$/mods/create/scripts/kinetics/connections.ts";
|
||||
import { AIR_ID } from "@/common/protocol.ts";
|
||||
import { chain_ratio } from "@/mods/create/scripts/kinetics/connections.ts";
|
||||
import { AXIS, FACING, setup, visual_for } from "./helpers.ts";
|
||||
|
||||
// a crank at 0 100 0 facing west, turning a shaft at 1 100 0 along x, and the speed it turns that line at
|
||||
|
||||
Reference in New Issue
Block a user