Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- public class mod_Ashphalt extends BaseMod
- {
- public static Block Ashphalt = new BlockAshphalt(178, 0).setHardness(2.0F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("Ashphalt");
- public String Version()
- {
- return "1.8.1";
- }
- public mod_Ashphalt()
- {
- ModLoader.RegisterBlock(Ashphalt);
- Ashphalt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Blocks/Ashphalt.png");
- ModLoader.AddName(Ashphalt, "Ashphalt");
- ModLoader.AddRecipe(new ItemStack(Ashphalt, 2), new Object[]{ "##", "##", Character.valueOf('#'), Block.stone});
- }
- public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
- {
- for(int i = 0; i < 1; i++)
- {
- int randPosX = chunkX + rand.nextInt(16);
- int randPosY = rand.nextInt(80);
- int randPosZ = chunkZ + rand.nextInt(16);
- (new WorldGenMinable(mod_Ashphalt.Ashphalt.blockID, 60)).generate(world, rand, randPosX, randPosY, randPosZ);
- }
- }
- }
Add Comment
Please, Sign In to add comment