Advertisement
TeNNoX

mod_Bomb

Dec 19th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. public mod_General() {
  2.         // Items //
  3.         Item bomb = new Item(ModLoader.getUniqueEntityId()).setItemName("bomb");
  4.        
  5.         // Register and Names //
  6.         ModLoader.AddName(bomb, "Bombs");
  7.        
  8.         // Texture
  9.         bomb.iconIndex = ModLoader.addOverride("/gui/items.png", "/mod/bomb.png");
  10.        
  11.         // Recipes //
  12.         ModLoader.AddRecipe(new ItemStack(bomb, 4), new Object[] { "##", "##", Character.valueOf('#'), Block.tnt});
  13.        
  14.         // Entitys //
  15.         ModLoader.RegisterEntityID(EntityBomb.class, "Bomb", ModLoader.getUniqueEntityId());
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement