Item rendering

This commit is contained in:
2026-10-13 22:29:38 -03:00
parent a18b099206
commit b34e97e487
269 changed files with 12566 additions and 3220 deletions
+2
View File
@@ -271,6 +271,7 @@ export function check_references(mods: LoadedMod[], engine_textures: Iterable<st
uses(file, texture, "texture");
}
}
if (json.item_model) uses(file, json.item_model, "model");
if (json.drops) uses(file, json.drops, "item");
if (json.loot_table) uses(file, json.loot_table, "loot table");
if (json.waterloggable) {
@@ -310,6 +311,7 @@ export function check_references(mods: LoadedMod[], engine_textures: Iterable<st
errors.push(`${file}: item ${json.id} has no texture, and no block of this mod gives it an item`);
}
for (const texture of Object.values(json.data_textures ?? {})) uses(file, texture, "texture");
if (json.model) uses(file, json.model, "model");
if (json.places) uses(file, json.places, "block");
if (json.food?.returns) uses(file, json.food.returns, "item");
if (json.worn) {