Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Random;
- public class mod_Firstblock extends BaseMod
- {
- public static final Block firstBlock = new BlockFirst(97,0).setHardness(0.5F).setResistance(6.0F).setBlockName("firstblock").setLightValue(1F);
- public mod_Firstblock()
- {
- ModLoader.RegisterBlock(firstBlock);
- firstBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/firstBlock.png");
- ModLoader.AddName(firstBlock, "Hurray for me Ore");
- ModLoader.AddRecipe(new ItemStack(firstBlock, 2), new Object []{
- "**", Character.valueOf('*'), Block.dirt
- });
- }
- public void GenerateSurface (World world, Random rand, int chunkX, int chuckZ)
- {
- for (int i=0; i < 16; i++)
- {
- int randPosX = chunkX + rand.nextInt(5);
- int randPosY = rand.nextint(70);
- int randPosZ = chunkZ + rand.nextInt(9);
- (new WorldGenMinable(firstBlock.blockID, 25)).generate(world, rand, randPosX, randPosY, randPosZ);
- }
- }
- public String Version()
- {
- return "3.14159265";
- }
- }
Add Comment
Please, Sign In to add comment