Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Random;
- public class mod_Client extends BaseMod
- {
- public static final Block BlockClient = new BlockClient(227,0).setHardness(5F).setLightValue(0.975F).setResistance(2000.0F).setBlockName("blockcleint");
- public mod_Client()
- {
- ModLoader.RegisterBlock(BlockClient);
- ModLoader.AddName(BlockClient, "Sapphire");
- BlockTest.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Sapphire.png");
- ModLoader.AddRecipe(new ItemStack(BlockTest, 1), new Object[] {
- "***", Character.valueOf('*'), Item.ironIngot
- });
- }
- public String Version()
- {
- return "1.8.1";
- }
- }
- --------------------------------------------------------------------------
- package net.minecraft.src;
- import java.util.Random;
- public class BlockClient extends Block
- {
- protected BlockClient(int i, int j)
- {
- super (i,j,Material.rock);
- }
- public int idDropped(int i, Random random)
- {
- return mod_Client.BlockClient.blockID;
- }
- public int quantityDropped(Random random)
- {
- return 1;
- }
- }
Add Comment
Please, Sign In to add comment