Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MOD_FILE CONTENTS:
- package net.minecraft.src;
- import java.util.Random;
- public class mod_tutorial extends BaseMod
- {
- //Blocks
- //Items
- public static final Item Neutron = (new ItemNeutron(1009).setItemName("Neutron"));
- public void load()
- {
- Neutron.iconIndex = ModLoader.addOverride("/gui/items.png","/Items/neutroncatalyst.png");
- //Registering
- //Adding names
- ModLoader.addName(Neutron,"Neutron Catalyst");
- //Crafting Recipes
- //Smelting Recipes
- //Shapeless Recipes
- ModLoader.addShapelessRecipe(new ItemStack(mod_tutorial.Neutron, 1), new Object[]
- {
- Item.enderPearl, Item.diamond //Crafting Line
- });
- }
- public int addFuel(int i, int j)
- {
- if (i == mod_tutorial.Neutron.shiftedIndex)
- {
- return 20000;
- }
- return 0;
- }
- public String getVersion()
- {
- return "1.2.5";
- }
- }
- NEUTRON CATALYST ITEM FILE :
- package net.minecraft.src;
- public class ItemNeutron extends Item
- {
- public ItemNeutron(int par1)
- {
- super(par1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment