drackiseries

Compressed block

Apr 26th, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.01 KB | None | 0 0
  1. mod_name file code :
  2.  
  3. // Declaring of item that you want to use to create a compressed block (diamond would be this for diamond block in this case) //
  4.  
  5. public static final Item GodParticle = (new ItemGodParticle(1000).setItemName("GodParticle));
  6.  
  7. // Declaring of the compressed block (diamond block is an equilivant in this case) //
  8.  
  9. public static final Block GodParticleBlock = (new BlockGodParticle(200, ModLoader.addOverride("/terrain.png","/Blocks/godparticleblock.png").setHardness(50F)
  10. .setResistance(100F).setBlockName("GodParticleBlock"));
  11.  
  12. //Crafting recipe in public void load() for crafting a GodParticleBlock with 9 GodParticles //
  13.  
  14. ModLoader.addRecipe(new ItemStack(mod_name.GodParticleBlock,1), new Object [] {
  15.     "XXX","XXX","XXX", 'X', mod_name.GodParticle     //Crafting Line  "" (1st row),"" (2nd row),"" (3rd row)
  16. });
  17.  
  18.  
  19.  
  20.  
  21. Make sure that you have created an item file for the item and a block file for your compressed block and that they function properly, refer to previous tutorials if stuck.
Advertisement
Add Comment
Please, Sign In to add comment