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 LSPickaxe = (new ItemPickaxe(1003,EnumToolMaterial.IRON).setItemName("LSPickaxe"));
- public void load()
- {
- LSPickaxe.iconIndex = ModLoader.addOverride("/gui/items.png","/Tools/lavastonepick.png");
- //Registering
- //Adding names
- ModLoader.addName(LSPickaxe, "Lava Stone Pickaxe");
- //Crafting Recipes
- ModLoader.addRecipe(new ItemStack(mod_tutorial.LSPickaxe, 1), new Object[]
- {
- "XXX"," Y "," Y ", 'X', mod_tutorial.LavaStone , 'Y', Item.stick //Crafting Line
- });
- //Smelting Recipes
- //Shapeless Recipes
- }
- public String getVersion()
- {
- return "1.2.5";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment