Item Stages

Allows items to be restricted to a stage.

119,17k

Item Stages

<p style="text-align:center">Item Stages</p>

<p style="text-align:left">This mod is an addon for the <a href="https://www.modrinth.com/mod/game-stages" rel="nofollow">GameStages API</a>. 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.</p>

This project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!

<h2>Setup</h2> <p>This mod uses <a href="https://www.modrinth.com/mod/crafttweaker" rel="nofollow">CraftTweaker</a> for configuration.</p> <p>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. <code>mods.ItemStages.addItemStage(String stage, Item/Block/OreDict);</code></p> <h2><a href="https://github.com/Darkhax-Minecraft/ItemStages#effects" rel="nofollow"></a>Effects</h2> <p>When something is restricted by this mod, several things will happen to prevent the player from using the item.</p> <ul> <li>Holding a restricted item will cause it to be dropped immediately. (Configurable)</li> <li>Equipping the item to offhand, armor, or bauble slot will cause it to be dropped. (Configurable)</li> <li>Players can not right click or left click with the item. (Configurable)</li> <li>The tooltip will be replaced with a restricted message.</li> <li>The item will not be visible in JEI</li> </ul> <h2><a href="https://github.com/Darkhax-Minecraft/ItemStages#example-script" rel="nofollow"></a>Example Script</h2> <pre><code>// 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>);<br><br>// Locks all items from a mod to a stage<br>mods.ItemStages.stageModItems("one", "minecraft");<br><br>// Locks a liquid to a stage. This only affects JEI<br>mods.ItemStages.stageLiquid("nine", <liquid:water>);</code></pre>

ADS