Item Stages
This mod is an extension for GameStages API that enables creation of custom progression systems for items and blocks. With Item Stages, modpack developers can establish phased access to various game elements.
Configuration
Configuration is handled through CraftTweaker using a special ZenScript method. You can restrict access to specific items and blocks, as well as entire groups via ore dictionary. The main configuration method: mods.ItemStages.addItemStage(String stage, Item/Block/OreDict);
Restriction Functionality
When an item becomes restricted, a comprehensive set of protective mechanisms activates:
- Automatic item dropping when attempting to hold it
- Inability to equip in armor or additional equipment slots
- Blocking interaction through right and left clicking
- Replacement of standard description with restriction message
- Hiding the item from JEI interface
Configuration Example
// Example script
// Restricts stone to stage "one"
mods.ItemStages.addItemStage("one", <minecraft:stone>);
// Restricts all records to stage "two"
mods.ItemStages.addItemStage("two", <ore:record>);
// Restricts all mod items to stage "one"
mods.ItemStages.stageModItems("one", "minecraft");
// Restricts liquid to stage "nine" (JEI only)
mods.ItemStages.stageLiquid("nine", <liquid:water>);