Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mod_name file code :
- // Declaring of item that you want to use to create a compressed block (diamond would be this for diamond block in this case) //
- public static final Item GodParticle = (new ItemGodParticle(1000).setItemName("GodParticle));
- // Declaring of the compressed block (diamond block is an equilivant in this case) //
- public static final Block GodParticleBlock = (new BlockGodParticle(200, ModLoader.addOverride("/terrain.png","/Blocks/godparticleblock.png").setHardness(50F)
- .setResistance(100F).setBlockName("GodParticleBlock"));
- //Crafting recipe in public void load() for crafting a GodParticleBlock with 9 GodParticles //
- ModLoader.addRecipe(new ItemStack(mod_name.GodParticleBlock,1), new Object [] {
- "XXX","XXX","XXX", 'X', mod_name.GodParticle //Crafting Line "" (1st row),"" (2nd row),"" (3rd row)
- });
- 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