Guest User

Untitled

a guest
Oct 21st, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3.  
  4. import java.util.*;
  5.  
  6.  
  7. public class mod_iritems
  8. {
  9.    
  10.     public mod_iritems()
  11.     {
  12.         setTexture();
  13.         addName();
  14.         addRecipe();
  15.     }
  16.    
  17.    
  18.        
  19.    
  20.  
  21.     public void setTexture()
  22.     {
  23.         rockIngot.iconIndex = ModLoader.addOverride("/gui/intems.png", "/ingots/rock.png");
  24.     }
  25.    
  26.     public void addName()
  27.     {
  28.         ModLoader.AddName(rockIngot, "Rock Brick");
  29.        
  30.     }
  31.    
  32.     public void addRecipe()
  33.     {
  34.         ModLoader.AddShapelessRecipe(new ItemStack(rockIngot, 1), new Object[] {                                          
  35.         Block.cobblestone, Block.stone
  36.         });
  37.         }
  38.     public String Version()
  39.     {
  40.         return "MC 1.7.3";
  41.        
  42.     }
  43.    
  44.     public static Item rockIngot;
  45.    
  46.     static
  47.     {
  48.         rockIngot = (new Item (ModLoader.getUniqueEntityId())).setIconCoord(0, 0).setItemName("Rock Ingot");
  49.        
  50.     }
  51.  
  52. }
Add Comment
Please, Sign In to add comment