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 Skull = (new ItemSkull(1000)).setItemName("Skull");
- public void load()
- {
- Skull.iconIndex = ModLoader.addOverride("/gui/items.png","/Items/skull.png");
- //Registering
- //Adding names
- ModLoader.addName(Skull,"Skull");
- //Crafting Recipes
- ModLoader.addRecipe(new ItemStack(mod_tutorial.Skull, 1), new Object[]
- {
- "XX ", 'X', Item.bone //Crafting Line
- });
- //Smelting Recipes
- //Shapeless Recipes
- }
- public String getVersion()
- {
- return "1.2.5";
- }
- }
- THE ITEM FILE :
- package net.minecraft.src;
- public class ItemSkull extends Item
- {
- protected ItemSkull(int par1)
- {
- super(par1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment