Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Random;
- public class mod_Meteorite extends BaseMod
- {
- private static StepSound soundStoneFootstep;
- public static final Block Meteorite = (new BlockMeteorite(111,0)).setHardness(3.0F).setResistance(6000F).setStepSound(soundStoneFootstep).setBlockName("ElieseStone").setRequiresSelfNotify();
- public mod_Meteorite()
- {
- ModLoader.RegisterBlock(Meteorite);
- Meteorite.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Meteorite.png");
- ModLoader.AddName(Meteorite, "Meteorite");
- };
- public void addSmelting()
- {
- ModLoader.AddSmelting(Meteorite.blockID, new ItemStack(Item.MysteriousRock, 1));
- }
- public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
- {
- for (int i=0; i < 25; i++)
- {
- int randPosX = chunkX + rand.nextInt(16);
- int randPosY = rand.nextInt(65);
- int randPosZ = chunkZ + rand.nextInt(16);
- (new WorldGenMinable(Meteorite.blockID, 50)). generate(world, rand, randPosX, randPosY, randPosZ);
- }
- }
- public String Version()
- {
- return "1.8.1";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement