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.
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.
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.
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.
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.
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.
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.
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
- To measure how many ticks you need for Fuel burn time (power), multiply the number of items you want the fuel to smelt by 200.
- Keep the Chance of success to compost value at 0 if you do not want the item to work in a composter block.
- When using Enable custom dispense behavior, remember that if you leave On dispense attempt with result empty, a successful dispense will automatically shrink the itemstack by 1.
- Always verify your workspace is set to NeoForge 26.1.2 or NeoForge 1.21.1 so the Item extension element works properly.