Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Map;
- import java.util.Random;
- public class mod_EasterPractel extends BaseMod
- {
- public static final Block easterEgg1 = new BlockeasterEgg1(159,0).setResistance(15F).setHardness(3F).setLightValue(0.125F).setBlockName("easter1");
- /*
- public static final Item ChristmasPick = new ItemPickaxe(603, EnumToolMaterial.CHRISTMAS).setItemName("ChristmasPick");
- public static final Block ChristmasL = new BlockChristmasL(159,0).setResistance(1F).setHardness(2.0F).setBlockName("christmasl");
- */
- public mod_EasterPractel()
- {
- //ChristmasLBlock
- ModLoader.RegisterBlock(easterEgg1);
- ModLoader.AddName(easterEgg1,"Green Easter Egg");
- easterEgg1.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/easter/easterEgg1.png");
- ModLoader.AddRecipe(new ItemStack(easterEgg1,16), new Object[]{
- "XXX", "XGX", "XXX",Character.valueOf('X'), Block.planks,Character.valueOf('G'), Block.bedrock
- });
- /*
- //Nutcracker
- ModLoader.AddName(Nutcracker, "A Nutcracker");
- Nutcracker.iconIndex = ModLoader.addOverride("/gui/items.png","/practel/Nutcracker.png");
- ModLoader.AddRecipe(new ItemStack(Nutcracker,0), new Object[]{
- "XXX","XXX","XXX",Character.valueOf('X'), Block.waterMoving});
- });
- //GreenPresent
- ModLoader.RegisterBlock(GreenP);
- ModLoader.AddName(GreenP,"Green Christmas Present");
- GreenP.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/practel/practelblock.png");
- ModLoader.AddRecipe(new ItemStack(GreenP,5), new Object[]{
- "XXX", "XGX", "XXX",Character.valueOf('X'), Item.slimeBall,Character.valueOf('G'), Block.stone
- */
- }
- //WorldGen
- /*public void GenerateSurface(World world, Random rand, int baseX, int baseZ)
- {
- for(int x = 0; x < 2; x++)
- {
- int Xcoord = baseX + rand.nextInt(1);
- int Ycoord = rand.nextInt(28);
- int Zcoord = baseZ + rand.nextInt(1);
- (new WorldGenMinable(ChristmasOre.blockID, 8)).generate(world, rand, Xcoord, Ycoord, Zcoord);
- }
- BiomeGenBase biome = world.getWorldChunkManager().getBiomeGenAt(baseX, baseZ);
- WorldGenCTree tree = new WorldGenCTree();
- if((biome instanceof BiomeGenPlains) || (biome instanceof BiomeGenForest) || (biome instanceof BiomeGenHills) ||
- (biome instanceof BiomeGenDesert) || (biome instanceof BiomeGenSwamp) || (biome instanceof BiomeGenTaiga))
- {
- for(int x = 0; x < 2; x++)
- {
- int Xcoord = baseX + rand.nextInt(16);
- int Zcoord = baseZ + rand.nextInt(16);
- int i = world.getHeightValue(Xcoord, Zcoord);
- tree.generate(world, rand, Xcoord, i, Zcoord);
- }
- }
- }
- public void TakenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack)
- {
- if(itemstack.itemID == mod_ChristmasTools.GreenP.blockID)
- {
- entityplayer.addStat(pickUpPresent, 1);
- }
- }
- //MobSpawn
- public void AddRenderer(Map map)
- {
- //EvilSanta
- map.put(EntityEvilSanta.class, new RenderBiped(new ModelBiped(), 0.5F));
- //DarkElf
- map.put(EntityDarkElf.class, new RenderBiped(new ModelBiped(), 0.5F));
- //Gingerbreadman
- map.put(EntityGinger.class, new RenderBiped(new ModelBiped(), 0.5F));
- //SnowCreeper
- map.put(EntitySnowCreeper.class, new RenderSnowCreeper());
- //IceMan
- map.put(EntityIceMan.class, new RenderBiped(new ModelBiped(), 0.5F));
- }
- */
- public String Version()
- {
- return "EasterPractel";
- }
- @Override
- public String getVersion() {
- // TODO Auto-generated method stub
- return null;
- }
- @Override
- public void load() {
- // TODO Auto-generated method stub
- }
- }
Add Comment
Please, Sign In to add comment