Advertisement
Corosus

Untitled

Oct 16th, 2011
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 47.69 KB | None | 0 0
  1. // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
  2. // Jad home page: http://www.kpdus.com/jad.html
  3. // Decompiler options: packimports(3) braces deadcode
  4.  
  5. package net.minecraft.src;
  6.  
  7. import java.util.ArrayList;
  8. import java.util.Map;
  9. import java.util.Random;
  10.  
  11. import org.lwjgl.input.Mouse;
  12.  
  13. import net.minecraft.client.Minecraft;
  14.  
  15. // Referenced classes of package net.minecraft.src:
  16. //            BaseMod, EntityIguana, ModLoader, EnumCreatureType,
  17. //            EntityStarfish, EntityTreeFrog, EntityPoisonousTreeFrogRed, EntityPoisonousTreeFrogYellow,
  18. //            EntityPoisonousTreeFrogBlue, EntityEIH, Block, ItemStack,
  19. //            Item, BlockFlowerIris, BlockFlowerIrisBase, BlockFlowerPineapple,
  20. //            BlockFlowerPineappleBase, BlockFlower2, BlockFlower3, BlockFlower4,
  21. //            BlockCojoPalmLeaves, RenderIguana, ModelIguana, RenderStarfish,
  22. //            ModelStarfish, RenderTreeFrog, ModelTreeFrog, RenderRedTreeFrog,
  23. //            RenderBlueTreeFrog, RenderYellowTreeFrog, EntityPoisonBlot, RenderPoisonBlot,
  24. //            RenderEIH, ModelEIH, WorldGenFlowers2, WorldGenIris,
  25. //            WorldGenPineapple, WorldGenBamboo, WorldGenEIH, World,
  26. //            WorldGenLargeCojoPalmTrees, WorldGenPalmTreeThreeCojo, WorldGenCojoPalmTrees, EntityPlayerSP,
  27. //            InventoryPlayer, BlockHeadb, BlockThatchBl, BlockThatchSt,
  28. //            BlockThatchSl, BlockThatchDsl, BlockBambooBl, BlockBambooSt,
  29. //            BlockBambooSl, BlockBambooDsl, ItemPinaColada, ItemArmor,
  30. //            ItemFood, StepSound, BlockBamboo, ItemBamboo,
  31. //            BlockCojoPalmWood, BlockCoconut, ItemCoconut, StepSoundSand,
  32. //            BlockSand, BlockCojoPalmSapling, ItemIris, ItemPineapple,
  33. //            ItemTropicalFlowers, ItemCojoPalmSapling
  34.  
  35. public class mod_tropicraft extends BaseMod
  36. {
  37.    
  38.     protected static ArrayList<String> mobnames;// = new ArrayList<String>();
  39.     protected static ArrayList<Class> classnames;// = new ArrayList<Class>();
  40.     protected static ArrayList<Integer> spawnrates;// = new ArrayList<Integer>();
  41.     protected static ArrayList<EnumCreatureType> creaturetypes;// = new ArrayList<EnumCreatureType>();
  42.     protected static ArrayList<String> othermobnames;// = new ArrayList<String>();      //for entities w/o spawns
  43.     protected static ArrayList<Class> otherclassnames;// = new ArrayList<Class>();      //for entities w/o spawns
  44.     ///////////////////////////////////////////////////////////ML PROP STUFF, DONT TOUCH/////////////////////////////////////////////////
  45.     @MLProp(info="Spawn rate of red poison tree frogs. Normal=9, Off=0", min=0) public static int poisonredfrograrity;
  46.     @MLProp(info="Spawn rate of yellow poison tree frogs. Normal=7, Off=0", min=0) public static int poisonyellowfrograrity;
  47.     @MLProp(info="Spawn rate of blue poison tree frogs. Normal=4, Off=0", min=0) public static int poisonbluefrograrity;
  48.     @MLProp(info="Spawn rate of regular, non-poisonous tree frogs. Normal=8, Off=0", min=0) public static int treefrograrity;
  49.     @MLProp(info="Spawn rate of Man 'O Wars. Normal=40, Off=0", min=0) public static int MOWrarity;
  50.     @MLProp(info="Spawn rate of Easter Island Head(Mob). Normal=11, Off=0", min=0) public static int EIHrarity;
  51.     @MLProp(info="Spawn rate of Iguanas. Normal=15, Off=0", min=0) public static int iggyrarity;
  52.     @MLProp(info="Spawn rate of Starfish. Normal=19, Off=0", min=0) public static int starfishrarity;
  53. //    @MLProp(info="Spawn rate of Monkeys. Normal=12, Off=0", min=0) public static int monkeyrarity;
  54.  
  55.     public mod_tropicraft()
  56.     {
  57.         ////////////////
  58.         setVals();                      //sets values for all regular variables
  59.         addAllEntities();               //this is required
  60.         registerBlocks();               //registers all blocks added
  61.         addNames();                     //adds names of all things added in mod
  62.         addModRecipes();                //adds recipes
  63.         addImageOverrides();            //this sets iconindex/blockindexintexture overriding stuff
  64.         addAchievements();              //adds achievements
  65.         addTestRecipes();               //COMMENT OUT DURING FINAL COMPILATION
  66.        
  67.         ModLoader.SetInGameHook(this, true, false);
  68.        
  69.    //   ModLoader.RegisterKey(this, new KeyBinding("CojoMakesWeather", 37), true);
  70.    //   ModLoader.RegisterKey(this, new KeyBinding("CojoMakesWeatherStop", 38), true);
  71.    //   ModLoader.RegisterKey(this, new KeyBinding("spawnmow", 39), true);
  72.        
  73.  
  74.        
  75.         ModLoader.AddSmelting(frogleg.shiftedIndex, new ItemStack(froglegcooked));
  76.         /////////////////////////
  77.     }
  78.    
  79.     private void addTestRecipes() {
  80.         ModLoader.AddRecipe(new ItemStack(Scaleleggings, 19), new Object[] {
  81.             "XX", Character.valueOf('X'), Block.sand});
  82.        
  83.     ////    ModLoader.AddRecipe(new ItemStack(beachFloat, 19), new Object[] {
  84.     //        "XX", Character.valueOf('X'), Block.dirt
  85.     //    });      
  86.         ModLoader.AddRecipe(new ItemStack(Block.fire,20), new Object[] {
  87.             "XY", Character.valueOf('X'), Block.dirt, Character.valueOf('Y'), Block.sand
  88.         });    
  89.     //  ModLoader.AddRecipe(new ItemStack(coralItem, 20, 1), new Object[]{
  90. //          "XX", "XX", Character.valueOf('X'), Block.dirt
  91. //      });
  92. //     
  93. //      ModLoader.AddRecipe(new ItemStack(chunkwedge, 3), new Object[] {
  94. //          "XY", Character.valueOf('X'), Block.planks, Character.valueOf('Y'), Block.dirt
  95.     //  });
  96.     //  ModLoader.AddRecipe(new ItemStack(bambooChest, 2), new Object[] {
  97. //          "X", Character.valueOf('X'), Item.sugar
  98. ///     });
  99.         ModLoader.AddRecipe(new ItemStack(Scalehelm, 2), new Object[] {
  100.             "X", Character.valueOf('X'), Block.sand
  101.         });
  102.        
  103.         ModLoader.AddRecipe(new ItemStack(Scaleboots, 2), new Object[] {
  104.             "X", Character.valueOf('X'), Block.dirt
  105.         });
  106.        
  107.         ModLoader.AddRecipe(new ItemStack(Scalechestplate, 2), new Object[] {
  108.             "XX", Character.valueOf('X'), Block.dirt
  109.         });
  110.        
  111.     }
  112.    
  113.     public static void createEntityList()
  114.     {
  115.         mobnames.add("Iguana");classnames.add(net.minecraft.src.EntityIguana.class);spawnrates.add(iggyrarity);creaturetypes.add(EnumCreatureType.creature);
  116.         mobnames.add("Starfish");classnames.add(net.minecraft.src.EntityStarfish.class);spawnrates.add(starfishrarity);creaturetypes.add(EnumCreatureType.waterCreature);
  117.         mobnames.add("Tree Frog");classnames.add(net.minecraft.src.EntityTreeFrog.class);spawnrates.add(treefrograrity);creaturetypes.add(EnumCreatureType.creature);
  118.         mobnames.add("Poisonous Red Tree Frog");classnames.add(net.minecraft.src.EntityPoisonousTreeFrogRed.class);spawnrates.add(poisonredfrograrity);creaturetypes.add(EnumCreatureType.creature);
  119.         mobnames.add("Poisonous Yellow Tree Frog");classnames.add(net.minecraft.src.EntityPoisonousTreeFrogYellow.class);spawnrates.add(poisonyellowfrograrity);creaturetypes.add(EnumCreatureType.creature);
  120.         mobnames.add("Poisonous Blue Tree Frog");classnames.add(net.minecraft.src.EntityPoisonousTreeFrogBlue.class);spawnrates.add(poisonbluefrograrity);creaturetypes.add(EnumCreatureType.creature);
  121.         mobnames.add("EIH");classnames.add(net.minecraft.src.EntityEIH.class);spawnrates.add(EIHrarity);creaturetypes.add(EnumCreatureType.creature);
  122. //      mobnames.add("ManOfWar");classnames.add(net.minecraft.src.EntityManOfWar.class);spawnrates.add(MOWrarity);creaturetypes.add(EnumCreatureType.waterCreature);
  123. //      othermobnames.add("beach chair");otherclassnames.add(net.minecraft.src.EntityChair.class);
  124. //      othermobnames.add("umbrella");otherclassnames.add(net.minecraft.src.EntityUmbrella.class);
  125. //      othermobnames.add("beach float");otherclassnames.add(net.minecraft.src.EntityBeachFloat.class);
  126. //      othermobnames.add("Poison Blot");otherclassnames.add(net.minecraft.src.EntityPoisonBlot.class);
  127.     }
  128.     public static void addImageOverrides()
  129.     {
  130.          bamboo.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/bamboo.png");
  131.             bambooitem.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/bambooitem.png");
  132.             iristop.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/iristop.png");
  133.             irisbase.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/irisbase.png");
  134.             irisitem.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/irisitem.png");
  135.             pineappletop.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/pineappletop.png");
  136.             pineapplebase.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/pineapplebase.png");
  137.             pineappleitem.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/pineappleitem.png");
  138.             flower1.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/flower1.png");
  139.             flower2.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/flower2.png");
  140.             flower3.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/flower3.png");
  141.             bamboomugempty.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/bamboomugempty.png");
  142.             bamboomugfull.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/bamboomugfull.png");
  143.             flower1item.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/flower1.png");
  144.             flower2item.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/flower2.png");
  145.             flower3item.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/flower3.png");
  146.             palmSaplingitem.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/palmSapling.png");
  147.             coconutChunk.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/coconutchunk.png");
  148.             palmLeaves.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/palmleavesbrighter.png");
  149.             palmWood.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/palmwood.png");
  150.             purifiedSand.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/purifiedsand.png");
  151.             palmSapling.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/palmSapling.png");
  152.             coconut.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/coconut.png");
  153.             palmWoodBottom = ModLoader.addOverride("/terrain.png", "/tropicalmod/palmwoodbottom.png");
  154.             Scaleboots.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/scaleboots.png");
  155.             Scalehelm.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/scalehelm.png");
  156.             Scaleleggings.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/scalelegs.png");
  157.             Scalechestplate.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/scalechest.png");
  158.             Scale.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/scale.png");
  159.             shellCommon1.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/commonshell1.png");
  160.             shellCommon2.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/shell2.png");
  161.             shellCommon3.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/shell6.png");
  162.             shellRare1.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/shell3.png");
  163.             shellStarfish.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/shell4.png");
  164.             frogleg.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/frogleg.png");
  165.             froglegcooked.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/froglegcooked.png");
  166.             poisonskin.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/poisonskin.png");
  167.             coconutitem.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/coconut.png");
  168.       //      fertilizer.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/fertilizer.png");
  169.       //      coral.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/testcoral.png");
  170.       //      chunkhammer.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/chunkhammer.png");
  171.       //      chunkwedge.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/chunkwedge.png");
  172.       //      tikiitem.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/tikiitem.png");
  173.       //      tikitopitem.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/tikitop.png");
  174.       //      tikibaseitem.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/tikipole.png");
  175. //          chair.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/chairitem.png");
  176. //          umbrella.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/umbrellaitem.png");
  177.     //      bambooFence.blockIndexInTexture= mod_palmLeaves.bambooBl.blockIndexInTexture;
  178.             headBblock.blockIndexInTexture= ModLoader.addOverride("/terrain.png", "/tropicalmod/chunkohead.png");
  179.             thatchBl.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/thatch.png");
  180.             bambooBl.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/bambooplanks.png");
  181.             thatchDsl.blockIndexInTexture = thatchBl.blockIndexInTexture;
  182.             bambooDsl.blockIndexInTexture = bambooBl.blockIndexInTexture;
  183.     //      tikitop.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/tikitop.png");
  184.     //      tikibase.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/tikipole.png");
  185.             pineappleCube.iconIndex = ModLoader.addOverride("/gui/items.png", "/tropicalmod/pineapplecubes.png");
  186.     //      bambooChest.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/tropicalmod/bambooplanks.png");
  187.     }
  188.    
  189.     public static void registerBlocks()
  190.     {
  191.         ModLoader.RegisterBlock(thatchBl);
  192.         ModLoader.RegisterBlock(headBblock);
  193.         ModLoader.RegisterBlock(bambooBl);
  194.         ModLoader.RegisterBlock(thatchSt);
  195.         ModLoader.RegisterBlock(bambooSt);
  196.         ModLoader.RegisterBlock(thatchSl);
  197.         ModLoader.RegisterBlock(bambooSl);
  198.         ModLoader.RegisterBlock(thatchDsl);
  199.         ModLoader.RegisterBlock(bambooDsl);
  200.         ModLoader.RegisterBlock(palmLeaves);
  201.         ModLoader.RegisterBlock(palmWood);
  202.         ModLoader.RegisterBlock(coconut);
  203.         ModLoader.RegisterBlock(purifiedSand);
  204.         ModLoader.RegisterBlock(flower1);
  205.         ModLoader.RegisterBlock(flower2);
  206.         ModLoader.RegisterBlock(flower3);
  207.         ModLoader.RegisterBlock(palmSapling);
  208.         ModLoader.RegisterBlock(iristop);
  209.         ModLoader.RegisterBlock(irisbase);
  210.         ModLoader.RegisterBlock(pineappletop);
  211.         ModLoader.RegisterBlock(pineapplebase);
  212.         ModLoader.RegisterBlock(bamboo);
  213. //        ModLoader.RegisterBlock(coral);
  214.   //      ModLoader.RegisterBlock(bambooFence);
  215.     //    ModLoader.RegisterBlock(tikitop);
  216.    //     ModLoader.RegisterBlock(tikibase);
  217.   //     ModLoader.RegisterBlock(bambooChest);
  218.        
  219.     }
  220.    
  221.     public static void addNames()
  222.     {
  223. //      ModLoader.AddName(chair, "Beach Chair");
  224. //      ModLoader.AddName(umbrella, "Beach Umbrella");
  225. //      ModLoader.AddName(bambooFence, "Bamboo Fence");
  226.         ModLoader.AddName(headBblock, "Chunk O' Head");        
  227.  //       ModLoader.AddName(fertilizer, "Fertilizer");
  228.         ModLoader.AddName(thatchBl, "Thatch Block");
  229.         ModLoader.AddName(bambooBl, "Bamboo Planks");
  230.         ModLoader.AddName(thatchSt, "Thatch Stairs");
  231.         ModLoader.AddName(bambooSt, "Bamboo Stairs");
  232.         ModLoader.AddName(thatchSl, "Thatch Slab");
  233.         ModLoader.AddName(bambooSl, "Bamboo Slab");
  234.         ModLoader.AddName(thatchDsl, "Double Thatch Flat");
  235.         ModLoader.AddName(thatchDsl, "Double Bamboo Flat");
  236.         ModLoader.AddName(bamboo, "Bamboo");
  237.         ModLoader.AddName(bambooitem, "Bamboo");
  238.         ModLoader.AddName(palmSapling, "Palm Sapling");
  239.         ModLoader.AddName(palmLeaves, "Palm Leaves");
  240.         ModLoader.AddName(palmWood, "Palm Wood");
  241.         ModLoader.AddName(coconut, "Coconut");
  242.         ModLoader.AddName(Scaleboots, "Scale Boots");
  243.         ModLoader.AddName(Scalehelm, "Scale Helmet");
  244.         ModLoader.AddName(Scaleleggings, "Scale Leggings");
  245.         ModLoader.AddName(Scalechestplate, "Scale Chestplate");
  246.         ModLoader.AddName(Scale, "Scale");
  247.         ModLoader.AddName(shellCommon1, "Solonox Shell");
  248.         ModLoader.AddName(shellCommon2, "Frox Conch");
  249.         ModLoader.AddName(shellCommon3, "Pab Shell");
  250.         ModLoader.AddName(shellRare1, "Rube Nautilus");
  251.         ModLoader.AddName(shellStarfish, "Starfish Shell");
  252.         ModLoader.AddName(purifiedSand, "Purified Sand");
  253.         ModLoader.AddName(flower1, "Commelina Diffusa");
  254.         ModLoader.AddName(flower2, "Crocosmia");
  255.         ModLoader.AddName(flower1item, "Commelina Diffusa");
  256.         ModLoader.AddName(flower2item, "Crocosmia");
  257.         ModLoader.AddName(flower3item, "Orchid");
  258.         ModLoader.AddName(palmSaplingitem, "Palm Sapling");
  259.         ModLoader.AddName(coconutChunk, "Coconut Chunk");
  260.         ModLoader.AddName(iristop, "Iris Flower");
  261.         ModLoader.AddName(irisbase, "Iris Stem");
  262.         ModLoader.AddName(irisitem, "Iris");
  263.         ModLoader.AddName(pineappletop, "Pineapple Flower");
  264.         ModLoader.AddName(pineapplebase, "Pineapple Stem");
  265.         ModLoader.AddName(pineappleitem, "Pineapple");
  266.         ModLoader.AddName(bamboomugempty, "Empty Bamboo Mug");
  267.         ModLoader.AddName(bamboomugfull, "Pina Colada");
  268.         ModLoader.AddName(frogleg, "Frog Leg");
  269.         ModLoader.AddName(froglegcooked, "Cooked Frog Leg");
  270.         ModLoader.AddName(poisonskin, "Poison frog skin");
  271.         ModLoader.AddName(coconutitem, "Coconut");
  272. //        ModLoader.AddName(coral, "Coral");
  273.  //       ModLoader.AddName(chunkhammer, "Chunk  O' Hammer");
  274. //        ModLoader.AddName(chunkwedge, "Chunk O' Wedge");
  275.  //       ModLoader.AddName(tikitop, "Tiki torch top");
  276.  //       ModLoader.AddName(tikitopitem, "Tiki top");
  277. //        ModLoader.AddName(tikibase, "Tiki torch base");
  278.  //       ModLoader.AddName(tikibaseitem, "Tiki pole");
  279. //        ModLoader.AddName(tikiitem, "Tiki torch pole");
  280.         ModLoader.AddName(pineappleCube, "Pineapple Cubes");
  281.  //       ModLoader.AddName(bambooChest, "Bamboo chest");
  282.     }
  283.    
  284.     public static void addModRecipes()
  285.     {
  286.     //  ModLoader.AddRecipe(new ItemStack(bambooFence, 2), new Object[] {
  287.   //          "XXX", "XXX",  Character.valueOf('X'), Item.reed
  288. //      });
  289.        
  290. /*      ModLoader.AddRecipe(new ItemStack(chair, 1), new Object[] {
  291.             "XXX", "XIX", "XXX", Character.valueOf('X'), Item.reed, Character.valueOf('I'), Block.cloth});
  292.         ModLoader.AddRecipe(new ItemStack(umbrella, 64), new Object[]{
  293.             "XXX"," I ", " I ", Character.valueOf('X'), Block.cloth, Character.valueOf('I'), Item.reed
  294.         });    */
  295.     //  ModLoader.AddRecipe(new ItemStack(beachFloat, 64), new Object[]{
  296.     //      "XXX", "III", Character.valueOf('X'), Block.cloth, Character.valueOf('I'), Item.reed
  297.     //  });
  298.        
  299. //      ModLoader.AddRecipe(new ItemStack(fertilizer, 2), new Object[] {
  300. //          "XY", Character.valueOf('X'), flower1item, Character.valueOf('Y'), flower3item
  301. //      });
  302.         ModLoader.AddRecipe(new ItemStack(thatchBl, 1), new Object[] {
  303.              "XX", "XX", Character.valueOf('X'), Item.reed
  304.         });
  305.         ModLoader.AddRecipe(new ItemStack(bambooBl, 1), new Object[] {
  306.               "XX", "XX", Character.valueOf('X'), bambooitem
  307.         });
  308.         ModLoader.AddRecipe(new ItemStack(thatchSt, 1), new Object[] {
  309.                "X ", "XX", Character.valueOf('X'), Item.reed
  310.         });
  311.         ModLoader.AddRecipe(new ItemStack(thatchSt, 4), new Object[] {
  312.                 "X ", "XX", Character.valueOf('X'), mod_tropicraft.thatchBl
  313.         });
  314.         ModLoader.AddRecipe(new ItemStack(bambooSt, 1), new Object[] {
  315.             "X ", "XX", Character.valueOf('X'), bambooitem
  316.         });
  317.         ModLoader.AddRecipe(new ItemStack(bambooSt, 4), new Object[] {
  318.             "X ", "XX", Character.valueOf('X'), mod_tropicraft.bambooBl
  319.         });        
  320.         ModLoader.AddRecipe(new ItemStack(thatchSl, 1), new Object[] {
  321.             "XX", Character.valueOf('X'), Item.reed
  322.         });
  323.         ModLoader.AddRecipe(new ItemStack(thatchSl, 2), new Object[] {
  324.             "X", Character.valueOf('X'), mod_tropicraft.thatchBl
  325.         });
  326.         ModLoader.AddRecipe(new ItemStack(bambooSl, 1), new Object[] {
  327.              "XX", Character.valueOf('X'), bambooitem
  328.         });
  329.         ModLoader.AddRecipe(new ItemStack(bambooSl, 2), new Object[] {
  330.              "X", Character.valueOf('X'), mod_tropicraft.bambooBl
  331.         });
  332.         ModLoader.AddRecipe(new ItemStack(Block.planks, 4), new Object[] {
  333.             "#", Character.valueOf('#'), palmWood
  334.         });
  335.         ModLoader.AddRecipe(new ItemStack(bamboomugempty, 1), new Object[] {
  336.             "X X", "X X", "XXX", Character.valueOf('X'), bambooitem
  337.         });
  338.         ModLoader.AddRecipe(new ItemStack(bamboomugfull, 1), new Object[] {
  339.             " X ", " Y ", " Z ", Character.valueOf('X'), coconutChunk, Character.valueOf('Y'), pineappleitem, Character.valueOf('Z'), bamboomugempty
  340.         });
  341.         ModLoader.AddRecipe(new ItemStack(bamboomugfull, 1), new Object[] {
  342.             " Y ", " X ", " Z ", Character.valueOf('X'), coconutChunk, Character.valueOf('Y'), pineappleitem, Character.valueOf('Z'), bamboomugempty
  343.         });
  344.         ModLoader.AddRecipe(new ItemStack(Scalehelm, 1), new Object[] {
  345.             "XXX", "X X", Character.valueOf('X'), Scale
  346.         });
  347.         ModLoader.AddRecipe(new ItemStack(Scalechestplate, 1), new Object[] {
  348.             "X X", "XXX", "XXX", Character.valueOf('X'), Scale
  349.         });
  350.         ModLoader.AddRecipe(new ItemStack(Scaleleggings, 1), new Object[] {
  351.             "XXX", "X X", "X X", Character.valueOf('X'), Scale
  352.         });
  353.         ModLoader.AddRecipe(new ItemStack(Scaleboots, 1), new Object[] {
  354.             "X X", "X X", Character.valueOf('X'), Scale
  355.         });
  356. //        ModLoader.AddRecipe(new ItemStack(tikiitem, 2), new Object[] {
  357. //          "Y","X","X", Character.valueOf('X'), tikibaseitem, Character.valueOf('Y'), tikitopitem
  358. //      });
  359.     }
  360.  
  361.    
  362.     public static void setVals()
  363.     {
  364.         burnable = false;
  365.         isPoisoned = false;
  366.         timer = System.currentTimeMillis() + 20000;
  367.         hitcounter = 0;
  368.         isonfloat = false;
  369.         air = 0;
  370.   //    entityrenderertropics = new EntityRendererTropics(ModLoader.getMinecraftInstance());
  371.         mobnames = new ArrayList<String>();
  372.         classnames = new ArrayList<Class>();
  373.         spawnrates = new ArrayList<Integer>();
  374.         creaturetypes = new ArrayList<EnumCreatureType>();
  375.         othermobnames = new ArrayList<String>();
  376.         otherclassnames = new ArrayList<Class>();
  377.  //     tropicswatermaterial = (new MaterialLiquid(MapColor.waterColor)).setNoPushMobility();      
  378.  
  379.         poisonredfrograrity = 5;
  380.         poisonyellowfrograrity = 5;
  381.         poisonbluefrograrity = 5;
  382.         treefrograrity = 8;
  383.         MOWrarity = 40;
  384.         EIHrarity = 11;
  385.         iggyrarity = 15;
  386.         starfishrarity = 19;
  387.  //       monkeyrarity = 12;        
  388.     }
  389.    
  390. /*  public void KeyboardEvent(KeyBinding keybinding)
  391.     {
  392.         if(keybinding.keyDescription.equals("CojoMakesWeather"))
  393.         {
  394.                 int category;
  395.                
  396.                 category = rand.nextInt(4) + 1;
  397.                
  398.                 generateStorm("tropicalstorm", category, 0);
  399.  
  400.                 System.out.println("I MAKE IT RAIN ON DEM HOES  " + "CATEGORY: " + category);  
  401.         }
  402.         else
  403.             if(keybinding.keyDescription.equals("CojoMakesWeatherStop"))
  404.             {
  405.                 ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsRaining(false);
  406.                 ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsThundering(false);
  407.  
  408.                 System.out.println("Storm halted");
  409.             }
  410.             else
  411.                 if(keybinding.keyDescription.equals("spawnmow"))
  412.                 {                  
  413.                     EntityPoisonousTreeFrogBlue entityliving = (EntityPoisonousTreeFrogBlue)EntityList.createEntityInWorld("Poisonous Blue Tree Frog", ModLoader.getMinecraftInstance().theWorld);
  414.  
  415.                     ModLoader.getMinecraftInstance().theWorld.entityJoinedWorld(new EntityPoisonousTreeFrogBlue(ModLoader.getMinecraftInstance().theWorld));
  416.                    
  417.                     double d6 = (double)ModLoader.getMinecraftInstance().thePlayer.posX + (ModLoader.getMinecraftInstance().theWorld.rand.nextDouble() - ModLoader.getMinecraftInstance().theWorld.rand.nextDouble()) * 4D;
  418.                     double d7 = (ModLoader.getMinecraftInstance().thePlayer.posY + ModLoader.getMinecraftInstance().theWorld.rand.nextInt(3)) - 1;
  419.                     double d8 = (double)ModLoader.getMinecraftInstance().thePlayer.posZ + (ModLoader.getMinecraftInstance().theWorld.rand.nextDouble() - ModLoader.getMinecraftInstance().theWorld.rand.nextDouble()) * 4D;
  420.                    
  421.                     entityliving.setLocationAndAngles(d6, d7, d8, ModLoader.getMinecraftInstance().theWorld.rand.nextFloat() * 360F, 0.0F);
  422.  
  423.                     ModLoader.getMinecraftInstance().theWorld.entityJoinedWorld(entityliving);         
  424.                 }      
  425.     }*/
  426.  
  427.     public void AddRenderer(Map map)
  428.     {
  429.  //     map.put(net.minecraft.src.EntityManOfWar.class, new RenderMOW(new ModelMOW(), 0.25F));
  430.         map.put(net.minecraft.src.EntityIguana.class, new RenderIguana(new ModelIguana(), 0.5F));
  431.         map.put(net.minecraft.src.EntityStarfish.class, new RenderStarfish(new ModelStarfish(), 0.5F));
  432.         map.put(net.minecraft.src.EntityTreeFrog.class, new RenderTreeFrog(new ModelTreeFrog(), 0.5F));
  433.         map.put(net.minecraft.src.EntityPoisonousTreeFrogRed.class, new RenderRedTreeFrog(new ModelTreeFrog(), 0.5F));
  434.         map.put(net.minecraft.src.EntityPoisonousTreeFrogBlue.class, new RenderBlueTreeFrog(new ModelTreeFrog(), 0.5F));
  435.         map.put(net.minecraft.src.EntityPoisonousTreeFrogYellow.class, new RenderYellowTreeFrog(new ModelTreeFrog(), 0.5F));    
  436.         map.put(net.minecraft.src.EntityPoisonBlot.class, new RenderPoisonBlot());
  437.         map.put(EntityEIH.class, new RenderEIH(new ModelEIH(), 1.0F));
  438. //      map.put(EntityChair.class, new RenderChair());
  439. //      map.put(EntityUmbrella.class, new RenderUmbrella());
  440. //      map.put(EntityBeachFloat.class, new RenderBeachFloat() );          
  441.     }
  442.  
  443.     public void GenerateSurface(World world, Random random, int i, int j)
  444.     {
  445.         int k = i + 8;
  446.         int l = random.nextInt(62) + 64;
  447.         int i1 = j + 8;
  448.         (new WorldGenFlowers2(flower1.blockID)).generate(world, random, k, l, i1);
  449.         int j1 = j + 2;
  450.         (new WorldGenFlowers2(flower3.blockID)).generate(world, random, k, l, j1);
  451.         int k1 = i + 8;
  452.         int l1 = random.nextInt(62) + 64;
  453.         int i2 = j + 8;
  454.         (new WorldGenFlowers2(flower2.blockID)).generate(world, random, k1, l1, i2);
  455.         int j2 = i + 8;
  456.         int k2 = random.nextInt(62) + 64;
  457.         int l2 = j + 8;
  458.         (new WorldGenIris(irisbase.blockID)).generate(world, random, j2, k2, l2);
  459.         int i3 = random.nextInt(62) + 64;
  460.         (new WorldGenPineapple(pineapplebase.blockID)).generate(world, random, j2, i3, l2);
  461.         int j4 = i + 8;
  462.         int k4 = random.nextInt(62) + 64;
  463.         int l4 = j + 8;
  464.         (new WorldGenBamboo()).generate(world, random, j4, k4, l4);
  465.        
  466.         int xvar = i + 8;
  467.         int yvar = random.nextInt(62) + 64;
  468.         int zvar = j + 8;
  469.        
  470.         if(random.nextInt(27) == 0)
  471.             (new WorldGenEIH()).generate(world, random, xvar, yvar, zvar);
  472.  
  473.         for(int j3 = 0; j3 < 38; j3++)
  474.         {
  475.             int k3 = i + 8;
  476.             int l3 = random.nextInt(62) + 64;
  477.             int i4 = j + 8;
  478.  
  479.             if(random.nextInt(5) == 0)
  480.                 (new WorldGenLargeCojoPalmTrees()).generate(world, random, k3, l3, i4);
  481.             else
  482.                 if(random.nextInt(5) == 1 || random.nextInt(5) == 2)
  483.                     (new WorldGenTropicraftCurvedPalm()).generate(world, random, k3, l3, i4);
  484.                 else
  485.                     (new WorldGenCojoPalmTrees()).generate(world, random, k3, l3, i4);
  486.         }
  487.  
  488.     }
  489.  
  490.  
  491.     public boolean OnTickInGame(Minecraft minecraft)
  492.     {
  493.  
  494.         World cojoworld = ModLoader.getMinecraftInstance().theWorld;
  495.         EntityPlayerSP thePlayer = ModLoader.getMinecraftInstance().thePlayer;
  496.                
  497.     /*      if(thePlayer.inventory.getCurrentItem() != null && thePlayer.inventory.getCurrentItem().itemID == chunkhammer.shiftedIndex)
  498.             {
  499.                 if(minecraft.objectMouseOver == null)
  500.                 {
  501.                 }else
  502.                 if(minecraft.objectMouseOver.typeOfHit == EnumMovingObjectType.TILE)
  503.                 if(Mouse.getEventButton() == 0 && Mouse.getEventButtonState()){
  504.                     int i = minecraft.objectMouseOver.blockX;
  505.                     int j = minecraft.objectMouseOver.blockY;
  506.                     int k = minecraft.objectMouseOver.blockZ;
  507.                     int i1 = minecraft.objectMouseOver.sideHit;
  508.                     int i2 = cojoworld.getBlockId(i, j, k);
  509.                     int j1 = cojoworld.getBlockId(i, j + 1, k);
  510.                     if(i2 != 0 && (i1 != Block.bedrock.blockID && i1 != Block.obsidian.blockID && i1 != Block.waterMoving.blockID && i1 != Block.waterStill.blockID&& i1 != Block.lavaMoving.blockID && i1 != Block.lavaStill.blockID))
  511.                     {
  512.                         Block block = Block.stone;
  513.                         cojoworld.playSoundEffect((float)i + 0.5F, (float)j + 0.5F, (float)k + 0.5F, block.stepSound.stepSoundDir(), (block.stepSound.getVolume() + 1.0F) / 2.0F, block.stepSound.getPitch() * 0.8F);
  514.                         minecraft.playerController.clickBlock(i, j, k, 0);
  515.                         ItemStack itemstack1 = thePlayer.inventory.getCurrentItem();
  516.                             ModLoader.getMinecraftInstance().effectRenderer.addBlockDestroyEffects((int)i, (int)j, (int)k, cojoworld.getBlockId(i,j,k), 0);
  517.                             cojoworld.setBlockWithNotify(i, j, k, 0);
  518.                            
  519.                             itemstack1.damageItem(1, thePlayer);                //this is what makes the hammer NOT INVINCIBLELOLOLOLOL
  520.                    
  521.                 }
  522.             }
  523.         }else
  524.             if(thePlayer.inventory.getCurrentItem() != null && thePlayer.inventory.getCurrentItem().itemID == chunkwedge.shiftedIndex)
  525.             {
  526.                 if(minecraft.objectMouseOver == null)
  527.                 {
  528.                    
  529.                 }
  530.                 else
  531.                 {
  532.                     if(Mouse.getEventButton() == 0 && Mouse.getEventButtonState()){
  533.                         int i = minecraft.objectMouseOver.blockX;
  534.                         int j = minecraft.objectMouseOver.blockY;
  535.                         int k = minecraft.objectMouseOver.blockZ;
  536.                         int i1 = minecraft.objectMouseOver.sideHit;
  537.                         int i2 = cojoworld.getBlockId(i, j, k);
  538.                         int j1 = cojoworld.getBlockId(i, j + 1, k);
  539.                         if(i2 != 0 && (i1 != Block.bedrock.blockID && i1 != Block.obsidian.blockID && i1 != Block.waterMoving.blockID && i1 != Block.waterStill.blockID&& i1 != Block.lavaMoving.blockID && i1 != Block.lavaStill.blockID))
  540.                         {
  541.                             Block block = Block.stone;
  542.                             cojoworld.playSoundEffect((float)i + 0.5F, (float)j + 0.5F, (float)k + 0.5F, block.stepSound.stepSoundDir(), (block.stepSound.getVolume() + 1.0F) / 2.0F, block.stepSound.getPitch() * 0.8F);
  543.                             minecraft.playerController.clickBlock(i, j, k, i2);
  544.                             ItemStack itemstack1 = thePlayer.inventory.getCurrentItem();
  545.                        //       ModLoader.getMinecraftInstance().effectRenderer.addBlockDestroyEffects((int)i, (int)j, (int)k, cojoworld.getBlockId(i,j,k), 0);
  546.                            //     cojoworld.setBlockWithNotify(i, j, k, 0);
  547.                                 if(j1 == 0)
  548.                                     cojoworld.setBlockWithNotify(i,j,k,0);
  549.                                 else
  550.                                     System.out.print("don't destroy it");
  551.                                
  552.                                 itemstack1.damageItem(1, thePlayer);                //this is what makes the hammer NOT INVINCIBLELOLOLOLOL
  553.                         }
  554.                     }
  555.                 }
  556.             }
  557.        
  558.  
  559.        
  560.         if(cojoworld.worldInfo.getIsRaining())
  561.         {          
  562.             if(thePlayer.inventory.getCurrentItem() != null && thePlayer.inventory.getCurrentItem().itemID == bamboomugfull.shiftedIndex){
  563.                 ModLoader.getMinecraftInstance().theWorld.thunderingStrength = 10F;
  564.                 ModLoader.getMinecraftInstance().thePlayer.triggerAchievement(raindrink);
  565.                 System.out.println("raindrink achievement achieved");
  566.             }
  567.            
  568.             if(minecraft.thePlayer.isCollidedHorizontally)
  569.             {  
  570.                 thePlayer.motionX += windspeed;
  571.             }else
  572.                 thePlayer.motionX += windspeed;
  573.         }
  574.         */
  575.        
  576.         if(cojoworld.worldInfo.getIsRaining())
  577.         {          
  578.             if(thePlayer.inventory.getCurrentItem() != null && thePlayer.inventory.getCurrentItem().itemID == bamboomugfull.shiftedIndex)
  579.             {
  580.                 ModLoader.getMinecraftInstance().theWorld.thunderingStrength = 10F;
  581.                 ModLoader.getMinecraftInstance().thePlayer.triggerAchievement(raindrink);
  582.                 System.out.println("raindrink achievement achieved");
  583.             }
  584.         }
  585.             ItemStack itemstack = minecraft.thePlayer.inventory.armorInventory[0];
  586.             ItemStack itemstack1 = minecraft.thePlayer.inventory.armorInventory[1];
  587.             ItemStack itemstack2 = minecraft.thePlayer.inventory.armorInventory[2];
  588.             ItemStack itemstack3 = minecraft.thePlayer.inventory.armorInventory[3];
  589.            
  590.             if(itemstack != null && itemstack1 != null && itemstack2 != null && itemstack3 != null)
  591.             {
  592.                 if(itemstack.itemID == Scaleboots.shiftedIndex && itemstack1.itemID == Scaleleggings.shiftedIndex && itemstack2.itemID == Scalechestplate.shiftedIndex && itemstack3.itemID == Scalehelm.shiftedIndex)
  593.                 {
  594.                     burnable = false;
  595.                     minecraft.thePlayer.isImmuneToFire = !burnable;
  596.                    
  597.                 } else
  598.                     burnable = true;
  599.                     minecraft.thePlayer.isImmuneToFire = !burnable;
  600.                    
  601.             }
  602.             else
  603.                 burnable = true;
  604.            
  605.             minecraft.thePlayer.isImmuneToFire = !burnable;
  606.            
  607.             //this code lets me just use leggings for anti fire
  608.             /*itemstack2 = minecraft.thePlayer.inventory.armorInventory[1];
  609.            
  610.             if (itemstack2 != null && itemstack2.itemID == Scaleleggings.shiftedIndex) {
  611.                 burnable = false;
  612.                 minecraft.thePlayer.isImmuneToFire = !burnable;
  613.                
  614.             } else {
  615.                 burnable = true;
  616.                 minecraft.thePlayer.isImmuneToFire = !burnable;
  617.             }*/
  618.            
  619.            
  620.             if((itemstack != null || itemstack1 != null || itemstack2 != null || itemstack3 != null))
  621.             {
  622.                
  623.                 if((minecraft.thePlayer.isInsideOfMaterial(Material.fire) || minecraft.thePlayer.isBurning()) && count-- <= 0)
  624.                 {
  625.                     minecraft.thePlayer.inventory.damageArmor(1);
  626.                     count = 30;
  627.                 }
  628.                 else
  629.                 {
  630.                     count = 0;
  631.                 }
  632.             }
  633.  
  634.             /*if(burnable)
  635.                 minecraft.thePlayer.isImmuneToFire = false;
  636.             else
  637.                 if(!burnable)
  638.                     minecraft.thePlayer.isImmuneToFire = true;*/
  639.  
  640.         return true;
  641.     }
  642.  
  643.     public String Version()
  644.     {
  645.         return "2.4";
  646.     }
  647.    
  648.     public static void addAchievements()
  649.     {
  650.         raindrink = (new Achievement(53, "raindrink",-2,-6,bamboomugfull,null)).registerAchievement();
  651.         ModLoader.AddAchievementDesc(raindrink, "If you like pina coladas", "And getting caught in the rain...");
  652.     }
  653.    
  654.                             //Step sounds, add as needed//
  655.     public static final StepSound soundSandFootstep = new StepSoundSand("sand", 1.0F, 1.0F);
  656.     public static final StepSound soundGrassFootstep = new StepSound("grass", 1.0F, 1.0F);
  657.     public static final StepSound soundWoodFootstep  = new StepSound("wood", 1.0F, 1.0F);
  658.    
  659.                                                             //Blocks//
  660.     public static final Block headBblock = new BlockHeadb(221,0).setHardness(2.0f).setResistance(30.0F).setBlockName("headBblock");
  661.     public static final Block thatchBl = new BlockThatchBl(222, 0).setHardness(0.1F).setResistance(0.1F).setBlockName("thatchBl");
  662.     public static final Block thatchSt = new BlockThatchSt(223, 0).setHardness(0.1F).setResistance(0.1F).setBlockName("thatchSt");
  663.     public static final Block thatchSl = new BlockThatchSl(224,false).setHardness(0.1F).setResistance(0.1F).setBlockName("thatchSl");
  664.     public static final Block thatchDsl = new BlockThatchDsl(225, 0).setHardness(0.1F).setResistance(0.1F).setBlockName("thatchDsl");
  665.     public static final Block bambooBl = new BlockBambooBl(226,0).setHardness(1.0F).setResistance(0.1F).setBlockName("bambooBl");
  666.     public static final Block bambooSt = new BlockBambooSt(227,0).setHardness(1.0F).setResistance(0.1F).setBlockName("bambooSt");
  667.     public static final Block bambooSl = new BlockBambooSl(228,false).setHardness(1.0F).setResistance(0.1F).setBlockName("bambooSl");
  668.     public static final Block bambooDsl = new BlockBambooDsl(229, 0).setHardness(1.0F).setResistance(0.1F).setBlockName("bambooDsl");
  669. //  public static final Block bambooFence = new BlockBambooFence(230,0).setHardness(.6F).setResistance(0.6F).setBlockName("bambooFence");
  670.     public static final Block bamboo = (new BlockBamboo(231, 73)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("Bamboo").disableStats();
  671.     public static final BlockCojoPalmLeaves palmLeaves = (BlockCojoPalmLeaves)(new BlockCojoPalmLeaves(232, 0)).setHardness(0.2F).setStepSound(soundGrassFootstep).setLightOpacity(1).setBlockName("Palm Leaves").disableStats().setRequiresSelfNotify();
  672.     public static final Block palmWood = (new BlockCojoPalmWood(233, 0)).setHardness(2.0F).setBlockName("Palm Wood").setStepSound(soundWoodFootstep).setRequiresSelfNotify();
  673.     public static final Block coconut = (new BlockCoconut(234, 0)).setHardness(0.4F).setBlockName("Coconut");
  674.     public static final Block purifiedSand = (new BlockSand(235, 0)).setHardness(0.5F).setStepSound(soundSandFootstep).setBlockName("Purified Sand");
  675.     public static final Block palmSapling = (BlockCojoPalmSapling)(new BlockCojoPalmSapling(253, 0)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("Palm Sapling");
  676.     public static final BlockFlower2 flower1 = (BlockFlower2)(new BlockFlower2(188, 0)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("Commelina Diffusa");
  677.     public static final BlockFlower3 flower2 = (BlockFlower3)(new BlockFlower3(189, 1)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("Crocosmia");
  678.     public static final BlockFlower4 flower3 = (BlockFlower4)(new BlockFlower4(191, 2)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("Orchid");
  679.     public static final BlockFlowerIris iristop = (BlockFlowerIris)(new BlockFlowerIris(192, 3)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("Iris");
  680.     public static final BlockFlowerIrisBase irisbase = (BlockFlowerIrisBase)(new BlockFlowerIrisBase(193, 4)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("Iris stem");
  681.     public static final BlockFlowerPineapple pineappletop = (BlockFlowerPineapple)(new BlockFlowerPineapple(194, 3)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("Pineapple");
  682.     public static final BlockFlowerPineappleBase pineapplebase = (BlockFlowerPineappleBase)(new BlockFlowerPineappleBase(195, 4)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("Pineapple stem");
  683. //  public static final BlockTikiTop tikitop = (BlockTikiTop)(new BlockTikiTop(236,0)).setBlockName("Tiki torch top");
  684. //  public static final BlockTikiBase tikibase = (BlockTikiBase)(new BlockTikiBase(237,0)).setBlockName("Tiki torch base");
  685. //  public static final BlockBambooChest bambooChest = (BlockBambooChest)(new BlockBambooChest(238,0)).setHardness(3.0f).setStepSound(soundWoodFootstep).setBlockName("Bamboo Chest").setRequiresSelfNotify();
  686. //  public static final BlockCojoCoral coral = (BlockCojoCoral)(new BlockCojoCoral(215, 215)).setHardness(1.0F).setLightValue(0.0F).setStepSound(Block.soundWoodFootstep).setBlockName("coralBlock");
  687. //  public static final Block tropicswaterMoving = (new BlockFlowing(222, Material.water)).setHardness(100F).setLightOpacity(3).setBlockName("water").disableStats().disableNeighborNotifyOnMetadataChange();
  688. //    public static final Block tropicswaterStill = (new BlockStationary(223, Material.water)).setHardness(100F).setLightOpacity(3).setBlockName("water").disableStats().disableNeighborNotifyOnMetadataChange();
  689.    
  690.    
  691.                                         //Items//
  692. //    public static final ItemCojoCoral coralItem = (ItemCojoCoral)(new ItemCojoCoral(215 - 256)).setItemName("coralItem");
  693. //    public static final Item chair = new ItemChair(2002).setItemName("chair");
  694. //  public static final Item umbrella = new ItemUmbrella(2003).setItemName("umbrella");
  695. //  public static final Item beachFloat = new ItemBeachFloat(2004).setItemName("beachFloat");
  696.     public static Item irisitem = (new ItemIris(14258, irisbase)).setItemName("Iris");
  697.     public static Item pineappleitem = (new ItemPineapple(14259, pineapplebase)).setItemName("Pineapple");
  698.     public static Item bamboomugempty = (new Item(14260)).setItemName("Empty Bamboo Mug");
  699.     public static Item bamboomugfull = (new ItemPinaColada(14261, 6)).setItemName("Pi\361a Colada");
  700.     public static Item frogleg = (new Item(14262)).setItemName("Frog Leg");
  701.     public static Item froglegcooked = (new ItemFood(14263, 3, false)).setItemName("Cooked Frog Leg");
  702.     public static Item poisonskin = (new Item(14264)).setItemName("Poison Skin");
  703.     public static Item bambooitem = (new ItemBamboo(14265, bamboo)).setItemName("Bamboo");
  704.     public static Item coconutitem = (new ItemCoconut(14266, coconut)).setItemName("Coconut");
  705. //    public static ItemTropicalMeal fertilizer = (ItemTropicalMeal) (new ItemTropicalMeal(14267)).setItemName("Tropical Meal");
  706.     public static Item Scale = (new Item(14268)).setItemName("Scale");
  707.     public static Item Scaleboots = (new ItemArmor(14269, 2, ModLoader.AddArmor("scale"), 3)).setItemName("Scale Boots");
  708.     public static Item Scalehelm = (new ItemArmor(14270, 2, ModLoader.AddArmor("scale"), 0)).setItemName("Scale Helm");
  709.     public static Item Scaleleggings = (new ItemArmor(14271, 2, ModLoader.AddArmor("scale"), 2)).setItemName("Scale Leggings");
  710.     public static Item Scalechestplate = (new ItemArmor(14272, 2, ModLoader.AddArmor("scale"), 1)).setItemName("Scale Chestplate");
  711.     public static Item shellCommon1 = (new Item(14273)).setItemName("Solonox Shell");
  712.     public static Item shellCommon2 = (new Item(14274)).setItemName("Frox Conch");
  713.     public static Item shellCommon3 = (new Item(14275)).setItemName("Pab Shell");
  714.     public static Item shellRare1 = (new Item(14276)).setItemName("Rube Nautilus");
  715.     public static Item shellStarfish = (new Item(14277)).setItemName("Starfish Shell");
  716.     public static Item flower1item = (new ItemTropicalFlowers(14278, flower1)).setItemName("Commelina Diffusa");
  717.     public static Item flower2item = (new ItemTropicalFlowers(14279, flower2)).setItemName("Crocosmia");
  718.     public static Item flower3item = (new ItemTropicalFlowers(14280, flower3)).setItemName("Orchid");
  719.     public static Item palmSaplingitem = (new ItemCojoPalmSapling(14281, palmSapling)).setItemName("Palm Sapling");
  720.     public static Item coconutChunk = (new ItemFood(14282, 1, 0.1F, false)).setItemName("coconut chunk");
  721. //    public static Item tikitopitem = (new ItemTikiTop(14286, tikitop)).setItemName("Tiki pole top");
  722. //    public static Item tikibaseitem = (new ItemTikiBase(14287, tikibase)).setItemName("Tiki pole bottom");
  723. //    public static Item tikiitem = (new ItemTikiItem(14285, tikitop)).setItemName("Tiki pole");
  724. //    public static final Item chunkhammer = (new ItemChunkHammer(14283, EnumToolMaterialTropics.CHUNKOHEAD)).setItemName("Chunk hammer");
  725. //    public static final Item chunkwedge = (new ItemChunkWedge(14284, EnumToolMaterialTropics.CHUNKOHEAD)).setItemName("Chunk Wedge");
  726.     public static Item pineappleCube = (new ItemFood(23000, 1, 0.1F, false)).setItemName("Pineapple Cubes");
  727.    
  728.     //Material//
  729.    
  730.  //   public static Material tropicswatermaterial;// = (new MaterialLiquid(MapColor.waterColor)).setNoPushMobility();
  731.  
  732.                                                         //Achievements//
  733.     private static Achievement raindrink;
  734.    
  735.                                             //ints, booleans, longs, randoms, etc//
  736.     public static int hitcounter;
  737.     public static int palmWoodBottom;
  738.     public static int air;
  739.     public static int temphealth;
  740.     public static boolean burnable;
  741.     public static boolean isPoisoned;
  742.     public static long timer;
  743.     public static Random rand = new Random();
  744.     public static boolean isonfloat;
  745.     public static double windspeed = 0.0D;
  746.     public static int count = 0;
  747.    
  748.  
  749.     public static boolean isUserPoisoned() {
  750.     //  System.out.println("user be poisoned");
  751.         return isPoisoned;
  752.     }
  753.    
  754.     public static void setUserPoisoned(boolean foo)
  755.     {
  756.         System.out.println("user set poisoned");
  757.         isPoisoned = foo;
  758.     }
  759.    
  760.     /*  public void generateStorm(String stormname, int category, int duration)
  761.         {      
  762.             if(stormname.equals("tropicalstorm"))
  763.             {
  764.  
  765.                 switch(category)
  766.                 {
  767.                     case 1:
  768.                         windspeed = 0.0D;
  769.                         ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsRaining(true);
  770.                         ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsThundering(true);
  771.                         ModLoader.getMinecraftInstance().theWorld.thunderingStrength = 2F;
  772.                         ModLoader.getMinecraftInstance().theWorld.rainingStrength = 2F;
  773.                         break;
  774.                     case 2:
  775.                         windspeed = 0.0D;
  776.                         ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsRaining(true);
  777.                         ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsThundering(true);
  778.                         ModLoader.getMinecraftInstance().theWorld.thunderingStrength = 4F;
  779.                         ModLoader.getMinecraftInstance().theWorld.rainingStrength = 4F;
  780.                         break;
  781.                     case 3:
  782.                         windspeed = 0.11837D;
  783.                         ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsRaining(true);
  784.                         ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsThundering(true);
  785.                         ModLoader.getMinecraftInstance().theWorld.thunderingStrength = 6F;
  786.                         ModLoader.getMinecraftInstance().theWorld.rainingStrength = 6F;
  787.                         break;
  788.                     case 4:
  789.                         windspeed = 0.1532480D;
  790.                         ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsRaining(true);
  791.                         ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsThundering(true);
  792.                         ModLoader.getMinecraftInstance().theWorld.thunderingStrength = 8F;
  793.                         ModLoader.getMinecraftInstance().theWorld.rainingStrength = 8F;
  794.                         break;
  795.                     case 5:
  796.                         windspeed = 0.1947504D;
  797.                         ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsRaining(true);
  798.                         ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsThundering(true);
  799.                         ModLoader.getMinecraftInstance().theWorld.thunderingStrength = 10F;
  800.                         ModLoader.getMinecraftInstance().theWorld.rainingStrength = 10F;
  801.                         break;
  802.                     default:
  803.                         windspeed = 0.1D;
  804.                         ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsRaining(true);
  805.                         ModLoader.getMinecraftInstance().theWorld.worldInfo.setIsThundering(true);
  806.                         ModLoader.getMinecraftInstance().theWorld.thunderingStrength = 12F;
  807.                 }
  808.             }
  809.     //          new EntityTropicalStorm(ModLoader.getMinecraftInstance().theWorld, 2D, 3D, 4D);
  810.         }
  811.       */
  812.         public static void addEntityToModWithSpawn(Object entityclassname, String entityname, int spawnrate, Object enumcreaturetype)
  813.         {
  814.             ModLoader.RegisterEntityID((Class)entityclassname, (String)entityname, ModLoader.getUniqueEntityId());
  815.            
  816.             if(entityclassname.equals(net.minecraft.src.EntityIguana.class))
  817.                 ModLoader.AddSpawn((Class)entityclassname, spawnrate,2,6, (EnumCreatureType)enumcreaturetype);
  818.             else
  819.                 ModLoader.AddSpawn((Class)entityclassname, spawnrate, 1, 2, (EnumCreatureType)enumcreaturetype);
  820.         }
  821.        
  822.         public static void addEntityToModWithoutSpawn(Class entityclassname, String entityname)
  823.         {
  824.             ModLoader.RegisterEntityID((Class)entityclassname, (String)entityname, ModLoader.getUniqueEntityId());
  825.         }
  826.        
  827.         public static void addAllEntities()
  828.         {      
  829.             createEntityList();
  830.             int mobiterator = mobnames.size();
  831.             int i = 0;
  832.             while(i < mobiterator)
  833.             {
  834.                 addEntityToModWithSpawn(classnames.get(i), mobnames.get(i), ((Integer) spawnrates.get(i)).intValue(), creaturetypes.get(i));
  835.                 i++;
  836.             }
  837.            
  838.             int other = othermobnames.size();
  839.             i = 0;
  840.             while(i < other)
  841.             {
  842.                 addEntityToModWithoutSpawn(otherclassnames.get(i), othermobnames.get(i));
  843.                 i++;
  844.             }
  845.         }
  846.  
  847. }
  848.  
  849.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement