package net.minecraft.src;
import java.util.*;
import java.util.Map;
public class mod_JungleCraft extends BaseMod
{
public String Version()
{
return "1.5_01";
}
public mod_JungleCraft()
{//Recette craftingbox
ModLoader.AddRecipe(new ItemStack(mybowlMilk, 1), new Object[] {"A", "B",
Character.valueOf('A'), ItemBucket.bucketMilk, Character.valueOf('B'), Item.bowlEmpty}); //Recette du bol de lait
ModLoader.AddRecipe(new ItemStack(myamethyste, 1), new Object[] {"#XY",
Character.valueOf('#'), myfiolerubis, Character.valueOf('X'), myfiolediamant, Character.valueOf('Y'), myfioleor});
//Recette amethyste
//Recette Four
ModLoader.AddSmelting(Item.ingotGold.shiftedIndex, new ItemStack(myfioleor, 1));
ModLoader.AddSmelting(Item.diamond.shiftedIndex, new ItemStack(myfiolediamant, 1));
ModLoader.AddSmelting(myrubis.shiftedIndex, new ItemStack(myfiolerubis, 1));
//Mobs spawn
ModLoader.RegisterEntityID(EntityMyGorille.class, "Gorille", ModLoader.getUniqueEntityId());
ModLoader.RegisterEntityID(EntityGiantZombie.class, "Giant Zombie", ModLoader.getUniqueEntityId());
ModLoader.RegisterEntityID(EntityMyYetizombie.class, "Yeti Zombie", ModLoader.getUniqueEntityId());
ModLoader.RegisterEntityID(EntityMyYeti.class, "Yeti", ModLoader.getUniqueEntityId());
ModLoader.RegisterEntityID(EntityMyMorse.class, "Morse", ModLoader.getUniqueEntityId());
ModLoader.AddSpawn(EntityMyGorille.class, 1, EnumCreatureType.monster);
ModLoader.AddSpawn(EntityGiantZombie.class, 1, EnumCreatureType.monster); //Génération du zombie Géant
ModLoader.AddSpawn(EntityMyYetizombie.class, 1, EnumCreatureType.monster, BiomeGenHell); //Génération du Yeti zombie
ModLoader.AddSpawn(EntityMyYeti.class, 1, EnumCreatureType.monster); //Génération du Yeti
ModLoader.AddSpawn(EntityMyMorse.class, 1, EnumCreatureType.monster); //Génération du Morse
}
public void AddARenderer(Map map)
{
map.put(EntityMyGorille.class, new RenderBiped(new ModelBiped(),0.5F));//Formation du gorille
map.put(EntityMyYetizombie.class, new RenderBiped(new ModelBiped(),0.5F));//Formation du yetizombie
map.put(EntityMyYeti.class, new RenderBiped(new ModelBiped(),0.5F));//Formation du yeti
map.put(EntityMyMorse.class, new RenderBiped(new ModelBiped(),0.5F));//Formation du morse
}
public void addItems()
{
ModLoader.AddName(mybowlMilk, "Bol de lait");
ModLoader.AddName(mybanane, "Banane");
ModLoader.AddName(myamethyste, "Amethyste");
ModLoader.AddName(myrubis, "Rubis");
ModLoader.AddName(myfioleor, "Orium");
ModLoader.AddName(myfiolediamant, "Diamonsium");
ModLoader.AddName(myfiolerubis, "Rubissium");
ModLoader.AddName(myswordamethyste, "Epee Amethyste");
}
public static final Item mybowlMilk =
(new ItemMybowlMilk(1820,3)).setItemName("mybowlMilk").setIconIndex
(ModLoader.addOverride("/gui/items.png", "/mod/junglecraft/boldelait.png"));
//Propriété du bol de lait
public static final Item mybanane =
(new ItemMyBanane(2010,4)).setItemName("mybanane").setIconIndex
(ModLoader.addOverride("/gui/items.png", "/mod/junglecraft/banane.png"));
//Propriété de la banane
public static final Item myamethyste =
(new ItemMyAmethyste(2011)).setItemName("myamethyste").setIconIndex
(ModLoader.addOverride("/gui/items.png", "/mod/junglecraft/amethyste.png"));
//propriété de l'amethyste
public static final Item myrubis =
(new ItemMyRubis(2012)).setItemName("myrubis").setIconIndex
(ModLoader.addOverride("/gui/items.png", "/mod/junglecraft/rubis.png"));
//Propriété du rubis
public static final Item myfioleor =
(new ItemMyFioleOr(2013)).setItemName("myfioleor").setIconIndex
(ModLoader.addOverride("/gui/items.png", "/mod/junglecraft/fioleor.png"));
//Propiété de la fiole or
public static final Item myfiolediamant =
(new ItemMyFioleDiamant(2014)).setItemName("myfiolediamant").setIconIndex
(ModLoader.addOverride("/gui/items.png", "/mod/junglecraft/fiolediamant.png"));
//Propriété de la fiole diamant
public static final Item myfiolerubis =
(new ItemMyFioleRubis (2015)).setItemName("myfiolerubis").setIconIndex
(ModLoader.addOverride("/gui/items.png", "/mod/junglecraft/fiolerubis.png"));
//Propriété de la fiole rubis
public static final Item myswordamethyste =
(new ItemSword(2016, EnumToolMaterial.AMETHYSTE)).setItemName("myswordamethyste").setIconIndex
(ModLoader.addOverride("/gui/items.png", "/mod/junglecraft/swordamethyste.png"));
//Propriété de l'épée en amethyste
public static final BiomeGenBase hell = (new BiomeGenHell()).setColor(0xff0000).setBiomeName("Hell").setDisableRain();//Biome spawn
}