How to Make an Item Extension in Minecraft (Mod Maker guide)

Learn how to add extra properties to items in your browser using 9Minecraft Mod Maker. Give any item fuel power, composting, or custom dispenser actions.

  1. Open the Studio and Workspace

    Open 9Minecraft Mod Maker directly in your web browser. You do not need to install anything on your computer to get started.

    Create a new workspace or open an existing one. Make sure your project uses a supported version: NeoForge 26.1.2 or NeoForge 1.21.1.

  2. Add an Item Extension

    In your workspace, click the green plus button to add a new mod element.

    Look inside the Blocks & items group and choose Item extension. An Item extension is a set of extra properties that can be added to an item.

  3. Choose the Target Item

    Find the Item extension source field first. This is the target item of this extension.

    Select the item you want to upgrade with new properties.

  4. Set Composting Chance

    Look at the Chance of success to compost field. This number is the percentage of chance of the item to add a layer to the composter block.

    Keep the value of 0 to disable it, or enter a number if you want players to compost this item.

  5. Turn the Item into Fuel

    Look for Make this item a fuel. Check this box to make the selected item a fuel for furnaces (like coal, planks, etc.).

    Next, set the Fuel burn time (power) field. Burn Time indicates how many ticks a given fuel will last. 20 ticks are 1 second of burning time. The default setting is 1600 ticks, which is 80 seconds (like coal) and is just enough to smelt 8 items.

    If you want to restrict when the fuel works, set the Fuel burning success condition field. If a condition is specified, the selected item can only be used as fuel if the condition passes.

  6. Add Custom Dispenser Behavior

    Check the Enable custom dispense behavior box if you want to change how dispensers shoot this item. If checked, the item will not be dropped by dispensers with the default action, and will call custom procedures instead.

    Use Dispense successfully if to pick a condition that determines if the dispense completes. If the condition fails, the dispenser will play the fail effect.

    Use On dispense attempt with result to choose a procedure that determines what happens to the item after attempting at being dispensed. You can use this to consume the item, damage it, or replace it with another item. If nothing is selected or the procedure does not return an itemstack, the current itemstack will shrink in size by 1 in case of dispense success.

  7. Save, Test, and Export

    Save your new Item extension element when you are happy with your settings.

    Click Build & run in the studio to test your item inside a furnace, composter, or dispenser. When everything works right, export your mod to share and play.

Tips

Try it in the Studio All item extension fields explained →