Update modding docs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// what client scripts get, see "Client scripts" and "GUIs" in MODS.md
|
||||
// what client scripts get, see docs/modding/gui/index.md
|
||||
import type { Id, ItemStack, KeyCode, ModInfo, Position } from "./shared.ts";
|
||||
|
||||
export type { Id, ItemStack, KeyCode, ModInfo, Position } from "./shared.ts";
|
||||
@@ -25,7 +25,7 @@ export interface ClientContext {
|
||||
// the mod that registered it
|
||||
mod(id: Id): string;
|
||||
};
|
||||
// every recipe as its json (see Recipes in MODS.md), including mods' own types, in load order. copies
|
||||
// every recipe as its json (see docs/modding/resources/recipes.md), including mods' own types, in load order. copies
|
||||
recipes: {
|
||||
// deno-lint-ignore no-explicit-any
|
||||
list(type?: Id): any[];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// what server scripts get, see "Server scripts" in MODS.md
|
||||
// what server scripts get, see docs/modding/
|
||||
import type { EventSignal, Face, Id, ItemStack, ModInfo, Position } from "./shared.ts";
|
||||
import type { ArgumentType, CommandNode } from "../commands.ts";
|
||||
|
||||
@@ -61,7 +61,7 @@ export interface ComponentRegistry {
|
||||
register_item<P>(id: Id, component: ItemComponent<P>): void;
|
||||
}
|
||||
|
||||
// commands, fabric's (brigadier's) way: see common/commands.ts and "Commands" in MODS.md
|
||||
// commands, fabric's (brigadier's) way: see common/commands.ts and docs/modding/misc/commands.md
|
||||
|
||||
// who ran a command
|
||||
export interface CommandSource {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// what worldgen scripts get, see "World generation" in MODS.md. runs in chunk workers and must be deterministic
|
||||
// what worldgen scripts get, see docs/modding/worldgen/index.md. runs on the server and must be deterministic
|
||||
import type { Id } from "./shared.ts";
|
||||
|
||||
export type { Id } from "./shared.ts";
|
||||
|
||||
Reference in New Issue
Block a user