Minecraft Mod: Item StagesDarkhaxDev

Item Stages is a mod designed as an addon for the GameStages API in Minecraft. It enables the integration of items and blocks into custom progression systems within the game environment. For detailed information, it is recommended to refer to the description of the GameStages API mod. In brief, stages represent different levels of progression established by the modpack or server. Players receive stages through various means such as quests, advancements, or Command Blocks.

This project is supported by Nodecraft. Use code Darkhax to enjoy a 30% discount on your initial month of service!

Setup:

The mod utilizes CraftTweaker for configuration purposes. One new ZenScript method is introduced for implementing item stage restrictions. You can specify an item/block ID or an ore dictionary entry for restrictions. When an ore dictionary entry is used, all corresponding entries will be restricted. (mods.ItemStages.addItemStage(String stage, Item/Block/OreDict))

Effects:

  • Restricted items will be immediately dropped when held. (Configurable)
  • Equipping restricted items in offhand, armor, or bauble slots will result in them being dropped. (Configurable)
  • Players cannot interact with restricted items via right-click or left-click actions. (Configurable)
  • The item’s tooltip will display a restricted message.
  • Restricted items will not be visible in the Just Enough Items (JEI) interface.

Example Script:

// Locks stone to stage one
mods.ItemStages.addItemStage(“one”, );

// Locks all registered records to stage two
mods.ItemStages.addItemStage(“two”, );

// Locks all items from a specific mod to a stage
mods.ItemStages.stageModItems(“one”, “minecraft”);

// Locks a liquid to a stage. This only affects JEI
mods.ItemStages.stageLiquid(“nine”, );

Feel free to expand on this text and add further information as needed.

Leave a Reply

Your email address will not be published. Required fields are marked *

Hey!

I’m Bedrock. Discover the ultimate Minetest resource – your go-to guide for expert tutorials, stunning mods, and exclusive stories. Elevate your game with insider knowledge and tips from seasoned Minetest enthusiasts.

Join the club

Stay updated with our latest tips and other news by joining our newsletter.