Implement tags !

This commit is contained in:
2026-09-30 13:41:29 -03:00
parent dc70ada7c4
commit 342b45d593
51 changed files with 978 additions and 219 deletions
+4 -2
View File
@@ -1,7 +1,7 @@
// what client scripts get, see docs/modding/gui/index.md
import type { Id, ItemStack, KeyCode, ModInfo, Position } from "./shared.ts";
import type { Id, ItemStack, KeyCode, ModInfo, Position, TagApi } from "./shared.ts";
export type { Id, ItemStack, KeyCode, ModInfo, Position } from "./shared.ts";
export type { Id, ItemStack, KeyCode, ModInfo, Position, TagApi, TagRegistry } from "./shared.ts";
export interface ClientContext {
mod: ModInfo;
@@ -30,6 +30,8 @@ export interface ClientContext {
// deno-lint-ignore no-explicit-any
list(type?: Id): any[];
};
// every mod's block, item and entity tags
tags: TagApi;
log(...args: unknown[]): void;
}