Move farmers delight to bworld

This commit is contained in:
2026-11-01 00:49:05 -03:00
parent 4a713a85d1
commit 61693d611a
161 changed files with 403 additions and 466 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ export interface BlockRegistry {
place_in?: string[];
// custom components from mods and their params, the server runs them
components?: Record<string, unknown>;
// draws the item a server script gives it (ServerWorld.set_block_item) on top of it, like farmer's delight's
// draws the item a server script gives it (ServerWorld.set_block_item) on top of it, like the
// cutting board. surface is the height in pixels it lies on. turned with the variant's y
item_display?: { surface: number };
// a fluid like water, drawn like luanti's: its top slopes down towards where it flows. see FluidProperties
+1 -1
View File
@@ -648,7 +648,7 @@ export interface RecipeApi {
is_smeltable(item: Id): boolean;
// the smithing recipe for these items, whatever the material's count. addition is the optional third item
smithing(tool: Id, material: Id, addition?: Id): { result: Id; material_count: number } | undefined;
// every recipe of a mod's own type, like "farmersdelight:cooking", as its json. copies, in load order
// every recipe of a mod's own type, like "bworld:cooking", as its json. copies, in load order
// deno-lint-ignore no-explicit-any
list(type: Id): any[];
}
+1 -1
View File
@@ -132,7 +132,7 @@ export interface SharedContext {
register(id: Id, rules: FluidRules): void;
};
readonly recipes: {
// adds a recipe of type, like "shaped" or "farmersdelight:cooking", as a file in the mod's recipes/ with that
// adds a recipe of type, like "shaped" or "bworld:cooking", as a file in the mod's recipes/ with that
// json would, only during setup. for recipes made from other data, like one for every item with a component.
// shared scripts run on the server and every client alike, so they all have it without it being sent. it's
// there for server and client scripts, which set up after, and it throws when it's broken like a file would
+2 -2
View File
@@ -631,12 +631,12 @@ const engine_recipes = new Map<string, z.ZodType>([
["smithing", smithing_recipe],
]);
// a mod's own types, like "farmersdelight:cooking" for its cooking pot, are only stored by the engine. the mod's server
// a mod's own types, like "bworld:cooking" for its cooking pot, are only stored by the engine. the mod's server
// script reads them with ctx.recipes.list and checks them
const recipe_schema = by_kind(
"type",
(type) => engine_recipes.get(type) ?? (ID_PATTERN.test(type) ? json_object : undefined),
'must be "shaped", "furnace", "fuel", "smithing" or a mod\'s own type like "farmersdelight:cooking"',
'must be "shaped", "furnace", "fuel", "smithing" or a mod\'s own type like "bworld:cooking"',
);
// a recipe type a mod made up, as opposed to the engine's shaped, furnace, fuel and smithing