allows items to be disabled unless certain conditions are met.
defines different types of objects requirements are applied to.
RegistryReqType<Item> ITEM = RegistryReqType.registry("item", BuiltInRegistries.ITEM, Registries.ITEM);
custom requirement types need to be registered to the RegisterRequirementTypesEvent you can check requirements by calling
RegisterRequirementTypesEvent
RequirementManager.instance.meetsRequirements(RequirementType.ITEM, Items.NETHERITE_SWORD, living);
requirements are put as a list of different conditions per item in a unified file for each requirement type
{ "minecraft:diamond_sword": [{ "type": "stat", "stat": "minecraft.mined:minecraft.diamond_ore", "minCount": 5 }] }
There was an error while loading. Please reload this page.