Render geo models in items

This commit is contained in:
2026-11-22 12:24:14 -03:00
parent dee07eaa0c
commit e751d22c6e
10 changed files with 171 additions and 29 deletions
+2 -1
View File
@@ -361,7 +361,8 @@ 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");
// an entity model is drawn in the item's texture
if (json.model && !entity_model_owners.has(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");
for (const layer of json.layers ?? []) uses(file, layer.texture, "texture");