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_TutorialOre extends BaseMod {
- public static final Block oreTutorial = new BlockOre(101, 0).setHardness(5F).setResistance(10F).setBlockName("oreTutorial");
- public mod_TutorialOre() {
- ModLoader.RegisterBlock(oreTutorial);
- oreTutorial.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Tutorial Ore/oretutorial.png");
- }
- public void GenerateSurface(World world, Random rand, int randXCoord, int randZCoord) {
- for(int oreFrequency = 0; oreFrequency < 12; oreFrequency++) {
- int xCoord = randXCoord + rand.nextInt(16);
- int yCoord = rand.nextInt(128);
- int zCoord = randZCoord + rand.nextInt(16);
- new WorldGenMinable(Block.oreTutorial.blockID, 10).generate(world, rand, xCoord, yCoord, zCoord);
- }
- }
- public String Version() {
- return "1.0 for MC Beta 1.7.3";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement