Guest User

Untitled

a guest
Jan 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.07 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. public class mod_Ashphalt extends BaseMod
  4. {
  5.    public static Block Ashphalt = new BlockAshphalt(178, 0).setHardness(2.0F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("Ashphalt");
  6.    
  7.    public String Version()
  8.    {
  9.       return "1.8.1";
  10.    }
  11.    
  12.    public mod_Ashphalt()
  13.    {
  14.       ModLoader.RegisterBlock(Ashphalt);
  15.       Ashphalt.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Blocks/Ashphalt.png");
  16.       ModLoader.AddName(Ashphalt, "Ashphalt");
  17.           ModLoader.AddRecipe(new ItemStack(Ashphalt, 2), new Object[]{ "##", "##", Character.valueOf('#'), Block.stone});
  18.     }
  19.    
  20.               public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
  21.     {
  22.         for(int i = 0; i < 1; i++)
  23.         {
  24.             int randPosX = chunkX + rand.nextInt(16);
  25.             int randPosY = rand.nextInt(80);
  26.             int randPosZ = chunkZ + rand.nextInt(16);
  27.             (new WorldGenMinable(mod_Ashphalt.Ashphalt.blockID, 60)).generate(world, rand, randPosX, randPosY, randPosZ);
  28.         }
  29.     }
  30.    
  31. }
Add Comment
Please, Sign In to add comment