Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.*;
- public class mod_iritems
- {
- public mod_iritems()
- {
- setTexture();
- addName();
- addRecipe();
- }
- public void setTexture()
- {
- rockIngot.iconIndex = ModLoader.addOverride("/gui/intems.png", "/ingots/rock.png");
- }
- public void addName()
- {
- ModLoader.AddName(rockIngot, "Rock Brick");
- }
- public void addRecipe()
- {
- ModLoader.AddShapelessRecipe(new ItemStack(rockIngot, 1), new Object[] {
- Block.cobblestone, Block.stone
- });
- }
- public String Version()
- {
- return "MC 1.7.3";
- }
- public static Item rockIngot;
- static
- {
- rockIngot = (new Item (ModLoader.getUniqueEntityId())).setIconCoord(0, 0).setItemName("Rock Ingot");
- }
- }
Add Comment
Please, Sign In to add comment