Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Java by max ( 15 years ago )
package net.minecraft.src;

import java.util.Random;

public class mod_Ore extends BaseMod
{
 public mod_Ore()
 {
  ModLoader.RegisterBlock(newore);
  ModLoader.AddName(newore, "Copper Ore");
  orerefined.iconIndex = ModLoader.addOverride("/gui/items.png", "/Max/Items/orerefined.png");
  ModLoader.AddSmelting(newore.blockID, new ItemStack(orerefined));
 }
 public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
 {
  for(int i = 0; i <60; i++)
   {
    int randPosX = chunkX + rand.nextInt(16);
    int randPosY = rand.nextInt(128);
    int randPosZ = rand.nextInt(16);
    (new WorldGenMinable(newore.blockID, 16)).generate(world, rand, randPosX, randPosY, randPosZ);
   }
 }
 
 public static Block newore;
 public static Item orerefined = (newItemOrerefined(ModLoader.getUniqueEntityId())).setItemName("orerefined");
 
 static 
 {
 newore = new BlockNewore(200, ModLoader.addOverride("/terrain.png", "/Max/Items/ore.png")).setHardness(2.0f).setResistance(5.0F).setBlockName("newore");
 }
 
 public String Version()
 {
  return "1.7_03";
 }
}

 

Revise this Paste

Children: 37389
Your Name: Code Language: