Skip to content

Commit

Permalink
Adding diagnostics for loot table in blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanV2 committed Mar 29, 2024
1 parent 9adc1fd commit 5cd28be
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Context } from "../../../../Utility/components";
import { ComponentCheck, components_check, component_error } from "../../../../Utility/components/checks";
import { resourcepack_has_model } from "../../../ResourcePack/Model/diagnose";
import { check_geo_and_rules } from '../../../ResourcePack/BlockCulling';
import { behaviorpack_loot_table_diagnose } from '../../Loot Table';

/**
*
Expand Down Expand Up @@ -34,5 +35,7 @@ const component_test: Record<string, ComponentCheck> = {
if (component.culling && component.identifier) check_geo_and_rules(component.identifier, component.culling, diagnoser);
}
},
//TODO minecraft:collision_box
"minecraft:loot": (name, component, context, diagnoser) => {
if (typeof component === "string") behaviorpack_loot_table_diagnose(component, diagnoser);
},
};

0 comments on commit 5cd28be

Please sign in to comment.