Item rendering
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user