Item Stages
Item Stages
This mod is an addon for the GameStages API. It allows for items and blocks to be placed into custom progression systems. You should check out the GameStage API mod's description for more info. To give a brief run down, stages are parts of the progression system set up by the modpack or server. Stages are given to players through a command, which is typically ran by a questing mod, advancement, or even a Command Block.
This project is sponsored by Nodecraft. Use code Darkhax for 30% off your first month of service!
Setup
This mod uses CraftTweaker for configuration.
This mod adds one new ZenScript method for adding item stage restrictions. You can use a specific item/block id, or an ore dictionary entry. If an ore dictionary is used, all entries for that oredict will be restricted. mods.ItemStages.addItemStage(String stage, Item/Block/OreDict);
Effects
When something is restricted by this mod, several things will happen to prevent the player from using the item.
- Holding a restricted item will cause it to be dropped immediately. (Configurable)
- Equipping the item to offhand, armor, or bauble slot will cause it to be dropped. (Configurable)
- Players can not right click or left click with the item. (Configurable)
- The tooltip will be replaced with a restricted message.
- The item will not be visible in JEI
Example Script
// Example Script
// Locks stone to stage one
mods.ItemStages.addItemStage("one", <minecraft:stone>);
// Locks all registered records to stage two
mods.ItemStages.addItemStage("two", <ore:record>);
// Locks all items from a mod to a stage
mods.ItemStages.stageModItems("one", "minecraft");
// Locks a liquid to a stage. This only affects JEI
mods.ItemStages.stageLiquid("nine", <liquid:water>);
Is there any way to stage all items from a certain mod to a stage without having to write every single one of them?
In reply to Mortercowy:
In reply to clubpetey58622:
I set the left click/right click to default in configs. I thought that would prevent a player from opening up an inventory or GUI of a machine/chest/furnace etc. Am I not understanding the config option?
Edit: I can still equip restricted items to Galacticraft inventory slots.
In reply to teagan75:
In reply to Darkhax:
item stages is broken when using mod staging it doesnt hide things in jei when you do mod staging
I'm trying to stage [Enchanted Books]. Since they're not ore dictionary'd I'm having a tough time.
Does anyone have any ideas? Maybe a function that I'm overlooking?
In reply to offworld1992:
In reply to offworld1992:
In reply to offworld1992:
Could the liquid stage also blocks the bucket pickup?
that would be AWESOME!
If I assign a stage to a mod, can I remove that stage from specific items within that mod?
aka is mods.ItemStages.removeItemStage("one", <minecraft:stone>); such a thing?
Hey ! I have a question : a stage can be unlocked by simply getting an item or crafting a item ? :D
In reply to Migmag789:
I am having trouble understanding how exactly this addon (and the base Game Stages mod) works. Would this allow me to prevent players from acquiring an item based on the following conditions?
Also, are stages unlocked per player or per world?
Thanks for all your hard work with this mod!
In reply to Stormiyo:
In reply to Stormiyo: