SHOW:
|
|
- or go back to the newest paste.
| 1 | package science; | |
| 2 | ||
| 3 | import net.minecraft.block.Block; | |
| 4 | import net.minecraft.block.material.Material; | |
| 5 | import net.minecraft.item.EnumArmorMaterial; | |
| 6 | import net.minecraft.item.Item; | |
| 7 | import net.minecraft.item.ItemStack; | |
| 8 | import net.minecraftforge.common.Configuration; | |
| 9 | import net.minecraftforge.common.EnumHelper; | |
| 10 | import net.minecraftforge.common.MinecraftForge; | |
| 11 | import science.Lead.LeadBlock; | |
| 12 | import science.Lead.LeadIngot; | |
| 13 | import science.Lead.LeadOre; | |
| 14 | import science.Lead.LeadOreGeneration; | |
| 15 | import science.Quontonium.QuontoniumArmor; | |
| 16 | import science.Quontonium.QuontoniumBlock; | |
| 17 | import science.Quontonium.QuontoniumIngot; | |
| 18 | import science.Quontonium.QuontoniumOre; | |
| 19 | import science.Quontonium.QuontoniumOreGeneration; | |
| 20 | import science.Rhodium.RhodiumArmor; | |
| 21 | import science.Rhodium.RhodiumBlock; | |
| 22 | import science.Rhodium.RhodiumIngot; | |
| 23 | import science.Rhodium.RhodiumOre; | |
| 24 | import science.Rhodium.RhodiumOreGeneration; | |
| 25 | import science.Ruby.RubyArmor; | |
| 26 | import science.Ruby.RubyBlock; | |
| 27 | import science.Ruby.RubyItem; | |
| 28 | import science.Ruby.RubyOre; | |
| 29 | import science.Ruby.RubyOreGeneration; | |
| 30 | import science.Sapphire.SapphireArmor; | |
| 31 | import science.Sapphire.SapphireBlock; | |
| 32 | import science.Sapphire.SapphireItem; | |
| 33 | import science.Sapphire.SapphireOre; | |
| 34 | import science.Sapphire.SapphireOreGeneration; | |
| 35 | import cpw.mods.fml.common.Mod; | |
| 36 | import cpw.mods.fml.common.Mod.EventHandler; | |
| 37 | import cpw.mods.fml.common.event.FMLInitializationEvent; | |
| 38 | import cpw.mods.fml.common.event.FMLLoadEvent; | |
| 39 | import cpw.mods.fml.common.event.FMLPreInitializationEvent; | |
| 40 | import cpw.mods.fml.common.event.FMLServerStartingEvent; | |
| 41 | import cpw.mods.fml.common.network.NetworkMod; | |
| 42 | import cpw.mods.fml.common.registry.GameRegistry; | |
| 43 | import cpw.mods.fml.common.registry.LanguageRegistry; | |
| 44 | ||
| 45 | @Mod(modid="Random_Mod", name="Random_Mod", version="1.0") | |
| 46 | @NetworkMod(clientSideRequired=true, serverSideRequired=false) | |
| 47 | ||
| 48 | public class Random_Mod {
| |
| 49 | ||
| 50 | //Block ID Section | |
| 51 | int QuontoniumBlockID; | |
| 52 | int QuontoniumOreID; | |
| 53 | int LeadBlockID; | |
| 54 | int LeadOreBlockID; | |
| 55 | int RhodiumBlockID; | |
| 56 | int RhodiumOreID; | |
| 57 | int RubyBlockID; | |
| 58 | int RubyOreID; | |
| 59 | int SapphireBlockID; | |
| 60 | int SapphireOreID; | |
| 61 | ||
| 62 | ||
| 63 | //Item ID Section | |
| 64 | int QuontoniumIngotID; | |
| 65 | int LeadIngotID; | |
| 66 | int RhodiumIngotID; | |
| 67 | int RubyItemID; | |
| 68 | int SapphireItemID; | |
| 69 | ||
| 70 | //Armor ID Section | |
| 71 | //Quontonium | |
| 72 | int QuontoniumHelmetID; | |
| 73 | int QuontoniumChestID; | |
| 74 | int QuontoniumLeggingsID; | |
| 75 | int QuontoniumBootsID; | |
| 76 | //Lead | |
| 77 | int LeadHelmetID; | |
| 78 | int LeadChestID; | |
| 79 | int LeadLeggingsID; | |
| 80 | int LeadBootsID; | |
| 81 | //Rhodium | |
| 82 | int RhodiumHelmetID; | |
| 83 | int RhodiumChestID; | |
| 84 | int RhodiumLeggingsID; | |
| 85 | int RhodiumBootsID; | |
| 86 | ------------------------------------- | |
| 87 | //Ruby | |
| 88 | int RubyHelmetID; | |
| 89 | int RubyChestID; | |
| 90 | int RubyLeggingsID; | |
| 91 | int RubyBootsID; | |
| 92 | ||
| 93 | //Sapphire | |
| 94 | int SapphireHelmetID; | |
| 95 | int SapphireChestID; | |
| 96 | int SapphireLeggingsID; | |
| 97 | int SapphireBootsID; | |
| 98 | ------------------------------------ | |
| 99 | //Tool ID Section | |
| 100 | ||
| 101 | ||
| 102 | //Block Section | |
| 103 | public static Block QuontoniumBlock; | |
| 104 | public static Block QuontoniumOre; | |
| 105 | public static Block LeadBlock; | |
| 106 | public static Block LeadOre; | |
| 107 | public static Block RhodiumBlock; | |
| 108 | public static Block RhodiumOre; | |
| 109 | public static Block RubyBlock; | |
| 110 | public static Block RubyOre; | |
| 111 | public static Block SapphireBlock; | |
| 112 | public static Block SapphireOre; | |
| 113 | ||
| 114 | //Item Section | |
| 115 | public static Item QuontoniumIngot; | |
| 116 | public static Item LeadIngot; | |
| 117 | public static Item RhodiumIngot; | |
| 118 | public static Item RubyItem; | |
| 119 | public static Item SapphireItem; | |
| 120 | ||
| 121 | //Material Section | |
| 122 | public static EnumArmorMaterial QuontoniumArmor = | |
| 123 | EnumHelper.addArmorMaterial("QuontoniumArmor", 1819, new int[] { 3, 8, 7, 3 }, 10);
| |
| 124 | ||
| 125 | public static EnumArmorMaterial LeadArmor = | |
| 126 | EnumHelper.addArmorMaterial("LeadArmor", 1819, new int[]{ 2, 6, 5, 2 }, 15);
| |
| 127 | ||
| 128 | public static EnumArmorMaterial RhodiumArmor = | |
| 129 | EnumHelper.addArmorMaterial("RhodiumArmor", 829, new int[]{ 2, 5, 4, 1 }, 7);
| |
| 130 | ----------------------------------------------------------------------------------------------------------- | |
| 131 | public static EnumArmorMaterial RubyArmor = | |
| 132 | EnumHelper.addArmorMaterial("RubyArmor", 829, new int[]{ 2, 6, 4, 2 }, 10);
| |
| 133 | ||
| 134 | public static EnumArmorMaterial SapphireArmor = | |
| 135 | EnumHelper.addArmorMaterial("SapphireArmor", 829, new int[]{ 3, 7, 6, 3 }, 15);
| |
| 136 | ----------------------------------------------------------------------------------------------------------- | |
| 137 | ||
| 138 | //Armor Section | |
| 139 | //Quontonium | |
| 140 | public static Item QuontoniumHelmet; | |
| 141 | public static Item QuontoniumChest; | |
| 142 | public static Item QuontoniumLeggings; | |
| 143 | public static Item QuontoniumBoots; | |
| 144 | //Lead | |
| 145 | public static Item LeadHelmet; | |
| 146 | public static Item LeadChest; | |
| 147 | public static Item LeadLeggings; | |
| 148 | public static Item LeadBoots; | |
| 149 | //Rhodium | |
| 150 | public static Item RhodiumHelmet; | |
| 151 | public static Item RhodiumChest; | |
| 152 | public static Item RhodiumLeggings; | |
| 153 | public static Item RhodiumBoots; | |
| 154 | ------------------------------------------------- | |
| 155 | //Ruby | |
| 156 | public static Item RubyHelmet; | |
| 157 | public static Item RubyChest; | |
| 158 | public static Item RubyLeggings; | |
| 159 | public static Item RubyBoots; | |
| 160 | //Sapphire | |
| 161 | public static Item SapphireHelmet; | |
| 162 | public static Item SapphireChest; | |
| 163 | public static Item SapphireLeggings; | |
| 164 | public static Item SapphireBoots; | |
| 165 | ------------------------------------------------- | |
| 166 | ||
| 167 | //Instance of the mod | |
| 168 | public static Random_Mod instance; | |
| 169 | ||
| 170 | @EventHandler | |
| 171 | public void preInit(FMLPreInitializationEvent event) {
| |
| 172 | ||
| 173 | //OreGeneration | |
| 174 | GameRegistry.registerWorldGenerator(new QuontoniumOreGeneration()); | |
| 175 | GameRegistry.registerWorldGenerator(new LeadOreGeneration()); | |
| 176 | GameRegistry.registerWorldGenerator(new RhodiumOreGeneration()); | |
| 177 | GameRegistry.registerWorldGenerator(new RubyOreGeneration()); | |
| 178 | GameRegistry.registerWorldGenerator(new SapphireOreGeneration()); | |
| 179 | ||
| 180 | ||
| 181 | //Configuration Code | |
| 182 | Configuration config = new Configuration(event.getSuggestedConfigurationFile()); | |
| 183 | ||
| 184 | config.load(); | |
| 185 | //Quontonium | |
| 186 | QuontoniumBlockID = config.get("Block IDs", "Quontonium Block ID", 10000).getInt();
| |
| 187 | QuontoniumOreID = config.get("Block IDs", "Quontonium Ore ID", 10001).getInt();
| |
| 188 | ||
| 189 | QuontoniumIngotID = config.get("Material IDs", "Quontonium Ingot ID", 10002).getInt();
| |
| 190 | ||
| 191 | QuontoniumHelmetID = config.get("Armor IDs", "Quontonium Helmet ID", 10003).getInt();
| |
| 192 | QuontoniumChestID = config.get("Armor IDs", "Quontonium Chest ID", 100004).getInt();
| |
| 193 | QuontoniumLeggingsID = config.get("Armor IDs", "Quontonium Leggings ID", 10005).getInt();
| |
| 194 | QuontoniumBootsID = config.get("Armor IDs", "Quontonium Boots ID", 10006).getInt();
| |
| 195 | ||
| 196 | ||
| 197 | //Lead | |
| 198 | LeadBlockID = config.get("Block IDs", "Lead Block ID", 10012).getInt();
| |
| 199 | LeadOreBlockID = config.get("Block IDs", "Lead Ore ID", 10013).getInt();
| |
| 200 | ||
| 201 | LeadIngotID = config.get("Material IDs", "Lead Ingot ID", 10014).getInt();
| |
| 202 | ||
| 203 | LeadHelmetID = config.get("Armor IDs", "Lead Helmet ID", 10015).getInt();
| |
| 204 | LeadChestID = config.get("Armor IDs", "Lead Chest ID", 10016).getInt();
| |
| 205 | LeadLeggingsID = config.get("Armor IDs", "Lead Leggings ID", 1017).getInt();
| |
| 206 | LeadBootsID = config.get("Armor IDs", "Lead Boots ID", 100018).getInt();
| |
| 207 | ||
| 208 | //Rhodium | |
| 209 | RhodiumBlockID = config.get("Block IDs", "Rhodium Block ID", 10024).getInt();
| |
| 210 | RhodiumOreID = config.get("Block IDs", "Rhodium Ore ID", 10025).getInt();
| |
| 211 | ||
| 212 | RhodiumIngotID = config.get("Material IDs", "Rhodium Ingot ID", 10026).getInt();
| |
| 213 | ||
| 214 | RhodiumHelmetID = config.get("Armor IDs", "Rhodium Helmet ID", 10027).getInt();
| |
| 215 | RhodiumChestID = config.get("Armor IDs", "Rhodium Chest ID", 10028).getInt();
| |
| 216 | RhodiumLeggingsID = config.get("Armor IDs", "Rhodium Leggings ID", 10029).getInt();
| |
| 217 | RhodiumBootsID = config.get("Armor IDs", "Rhodium Boots ID", 10030).getInt();
| |
| 218 | ||
| 219 | //Ruby | |
| 220 | RubyBlockID = config.get("Block IDs", "Ruby Block ID", 10036).getInt();
| |
| 221 | RubyOreID = config.get("Block IDs", "Ruby Ore ID", 10037).getInt();
| |
| 222 | ||
| 223 | RubyItemID = config.get("Material IDs", "Ruby ID", 10038).getInt();
| |
| 224 | ----------------------------------------------------------------------------------------- | |
| 225 | RubyHelmetID = config.get("Armor IDs", "Ruby Helmet ID", 10039).getInt();
| |
| 226 | RubyChestID = config.get("Armor IDs", "Ruby Chest ID", 10040).getInt();
| |
| 227 | RubyLeggingsID = config.get("Armor IDs", "Ruby Leggings ID", 10041).getInt();
| |
| 228 | RubyBootsID = config.get("Armor IDs", "Ruby Boots ID", 10042).getInt();
| |
| 229 | ----------------------------------------------------------------------------------------- | |
| 230 | ||
| 231 | //Sapphire | |
| 232 | SapphireBlockID = config.get("Block IDs", "Sapphire Block ID", 10048).getInt();
| |
| 233 | SapphireOreID = config.get("Block IDs", "Sapphire Ore ID", 10049).getInt();
| |
| 234 | ||
| 235 | SapphireItemID = config.get("Material IDs", "Sapphire ID", 10050).getInt();
| |
| 236 | ----------------------------------------------------------------------------------------------- | |
| 237 | SapphireHelmetID = config.get("Armor IDs", "Sapphire Helmet ID", 10051).getInt();
| |
| 238 | SapphireChestID = config.get("Armor IDs", "Sapphire Chest ID", 10052).getInt();
| |
| 239 | SapphireLeggingsID = config.get("Armor IDs", "Sapphire Leggings ID", 10053).getInt();
| |
| 240 | SapphireBootsID = config.get("Armor IDs", "Sapphire Boots ID", 10054).getInt();
| |
| 241 | ----------------------------------------------------------------------------------------------- | |
| 242 | config.save(); | |
| 243 | ||
| 244 | //Initialise our Blocks | |
| 245 | //Quontonium | |
| 246 | this.QuontoniumBlock = new QuontoniumBlock(QuontoniumBlockID, Material.rock); | |
| 247 | this.QuontoniumOre = new QuontoniumOre(QuontoniumOreID); | |
| 248 | this.LeadBlock = new LeadBlock(LeadBlockID, Material.rock); | |
| 249 | this.LeadOre = new LeadOre(LeadOreBlockID); | |
| 250 | this.RhodiumBlock = new RhodiumBlock(RhodiumBlockID, Material.rock); | |
| 251 | this.RhodiumOre = new RhodiumOre(RhodiumOreID); | |
| 252 | this.RubyBlock = new RubyBlock(RubyBlockID, Material.rock); | |
| 253 | this.RubyOre = new RubyOre(RubyOreID); | |
| 254 | this.SapphireBlock = new SapphireBlock(SapphireBlockID, Material.rock); | |
| 255 | this.SapphireOre = new SapphireOre(SapphireOreID); | |
| 256 | ||
| 257 | //Initialise our Items | |
| 258 | this.QuontoniumIngot = new QuontoniumIngot(QuontoniumIngotID); | |
| 259 | this.LeadIngot = new LeadIngot(LeadIngotID); | |
| 260 | this.RhodiumIngot = new RhodiumIngot(RhodiumIngotID); | |
| 261 | this.RubyItem = new RubyItem(RubyItemID); | |
| 262 | this.SapphireItem = new SapphireItem(SapphireItemID); | |
| 263 | ||
| 264 | //Initialise our Armor | |
| 265 | //Quontonium | |
| 266 | QuontoniumHelmet = new QuontoniumArmor(QuontoniumHelmetID, | |
| 267 | QuontoniumArmor, 0, 0, "Quontonium"); | |
| 268 | QuontoniumChest = new QuontoniumArmor(QuontoniumChestID, | |
| 269 | QuontoniumArmor, 0, 1, "Quontonium"); | |
| 270 | QuontoniumLeggings = new QuontoniumArmor(QuontoniumLeggingsID, | |
| 271 | QuontoniumArmor, 0, 2, "Quontonium"); | |
| 272 | QuontoniumBoots = new QuontoniumArmor(QuontoniumBootsID, | |
| 273 | QuontoniumArmor, 0, 3, "Quontonium"); | |
| 274 | ||
| 275 | //Lead | |
| 276 | LeadHelmet = new QuontoniumArmor(LeadHelmetID, | |
| 277 | LeadArmor, 0, 0, "Lead"); | |
| 278 | LeadChest = new QuontoniumArmor(LeadChestID, | |
| 279 | LeadArmor, 0, 1, "Lead"); | |
| 280 | LeadLeggings = new QuontoniumArmor(LeadLeggingsID, | |
| 281 | LeadArmor, 0, 2, "Lead"); | |
| 282 | LeadBoots = new QuontoniumArmor(LeadBootsID, | |
| 283 | LeadArmor, 0, 3, "Lead"); | |
| 284 | ||
| 285 | //Rhodium | |
| 286 | RhodiumHelmet = new RhodiumArmor(RhodiumHelmetID, | |
| 287 | RhodiumArmor, 0, 0, "Rhodium"); | |
| 288 | RhodiumChest = new RhodiumArmor(RhodiumChestID, | |
| 289 | RhodiumArmor, 0, 1, "Rhodium"); | |
| 290 | RhodiumLeggings = new RhodiumArmor(RhodiumLeggingsID, | |
| 291 | RhodiumArmor, 0, 2, "Rhodium"); | |
| 292 | RhodiumBoots = new RhodiumArmor(RhodiumBootsID, | |
| 293 | RhodiumArmor, 0, 3, "Rhodium"); | |
| 294 | ----------------------------------------------------------------------------------------- | |
| 295 | //Ruby | |
| 296 | RubyHelmet = new RubyArmor(RubyHelmetID, | |
| 297 | RubyArmor, 0, 0, "Ruby"); | |
| 298 | RubyChest = new RubyArmor(RubyChestID, | |
| 299 | RubyArmor, 0, 1, "Ruby"); | |
| 300 | RubyLeggings = new RubyArmor(RubyLeggingsID, | |
| 301 | RubyArmor, 0, 2, "Ruby"); | |
| 302 | RubyBoots = new RubyArmor(RubyBootsID, | |
| 303 | RubyArmor, 0, 3, "Ruby"); | |
| 304 | ||
| 305 | //Sapphire | |
| 306 | SapphireHelmet = new SapphireArmor(SapphireHelmetID, | |
| 307 | SapphireArmor, 0, 0, "Sapphire"); | |
| 308 | SapphireChest = new SapphireArmor(SapphireChestID, | |
| 309 | SapphireArmor, 0, 1, "Sapphire"); | |
| 310 | SapphireLeggings = new SapphireArmor(SapphireLeggingsID, | |
| 311 | SapphireArmor, 0, 2, "Sapphire"); | |
| 312 | SapphireBoots = new SapphireArmor(SapphireBootsID, | |
| 313 | SapphireArmor, 0, 3, "Sapphire"); | |
| 314 | ----------------------------------------------------------------------------------------- | |
| 315 | ||
| 316 | //Initalise our Tools | |
| 317 | ||
| 318 | ||
| 319 | //Quontonium | |
| 320 | LanguageRegistry.addName(QuontoniumBlock, "Quontonium Block"); | |
| 321 | MinecraftForge.setBlockHarvestLevel(QuontoniumBlock, "pickaxe", 2); | |
| 322 | GameRegistry.registerBlock(QuontoniumBlock, "QuontoniumBlock"); | |
| 323 | ||
| 324 | LanguageRegistry.addName(QuontoniumOre, "Quontonium Ore"); | |
| 325 | MinecraftForge.setBlockHarvestLevel(QuontoniumOre, "pickaxe", 2); | |
| 326 | GameRegistry.registerBlock(QuontoniumOre, "QuontoniumOre"); | |
| 327 | ||
| 328 | LanguageRegistry.addName(QuontoniumIngot, "Quontonium Ingot"); | |
| 329 | ||
| 330 | LanguageRegistry.addName(QuontoniumHelmet, "Quontonium Helmet"); | |
| 331 | LanguageRegistry.addName(QuontoniumChest, "Quontonium Chestplate"); | |
| 332 | LanguageRegistry.addName(QuontoniumLeggings, "Quontonium Leggings"); | |
| 333 | LanguageRegistry.addName(QuontoniumBoots, "Quontonium Boots"); | |
| 334 | ||
| 335 | ||
| 336 | //Lead | |
| 337 | LanguageRegistry.addName(LeadBlock, "Lead Block"); | |
| 338 | MinecraftForge.setBlockHarvestLevel(LeadBlock, "pickaxe", 1); | |
| 339 | GameRegistry.registerBlock(LeadBlock, "LeadBlock"); | |
| 340 | ||
| 341 | LanguageRegistry.addName(LeadOre, "Lead Ore"); | |
| 342 | MinecraftForge.setBlockHarvestLevel(LeadOre, "pickaxe", 1); | |
| 343 | GameRegistry.registerBlock(LeadOre, "LeadOre"); | |
| 344 | ||
| 345 | LanguageRegistry.addName(LeadIngot, "Lead Ingot"); | |
| 346 | ||
| 347 | LanguageRegistry.addName(LeadHelmet, "Lead Helmet"); | |
| 348 | LanguageRegistry.addName(LeadChest, "Lead Chestplate"); | |
| 349 | LanguageRegistry.addName(LeadLeggings, "Lead Leggings"); | |
| 350 | LanguageRegistry.addName(LeadBoots, "Lead Boots"); | |
| 351 | ||
| 352 | ||
| 353 | //Rhodium | |
| 354 | LanguageRegistry.addName(RhodiumBlock, "Rhodium Block"); | |
| 355 | MinecraftForge.setBlockHarvestLevel(RhodiumBlock, "pickaxe", 2); | |
| 356 | GameRegistry.registerBlock(RhodiumBlock, "RhodiumBlock"); | |
| 357 | ||
| 358 | LanguageRegistry.addName(RhodiumOre, "Rhodium Ore"); | |
| 359 | MinecraftForge.setBlockHarvestLevel(RhodiumOre, "pickaxe", 2); | |
| 360 | GameRegistry.registerBlock(RhodiumOre, "RhodiumOre"); | |
| 361 | ||
| 362 | LanguageRegistry.addName(RhodiumIngot, "Rhodium Ingot"); | |
| 363 | ||
| 364 | LanguageRegistry.addName(RhodiumHelmet, "Rhodium Helmet"); | |
| 365 | LanguageRegistry.addName(RhodiumChest, "Rhodium Chestplate"); | |
| 366 | LanguageRegistry.addName(RhodiumLeggings, "Rhodium Leggings"); | |
| 367 | LanguageRegistry.addName(RhodiumBoots, "Rhodium Boots"); | |
| 368 | ||
| 369 | //Ruby | |
| 370 | LanguageRegistry.addName(RubyBlock, "Ruby Block"); | |
| 371 | MinecraftForge.setBlockHarvestLevel(RubyBlock, "pickaxe", 2); | |
| 372 | GameRegistry.registerBlock(RubyBlock, "RubyBlock"); | |
| 373 | ||
| 374 | LanguageRegistry.addName(RubyOre, "Ruby Ore"); | |
| 375 | MinecraftForge.setBlockHarvestLevel(RubyOre, "pickaxe", 2); | |
| 376 | GameRegistry.registerBlock(RubyOre, "RubyOre"); | |
| 377 | ||
| 378 | LanguageRegistry.addName(RubyItem, "Ruby"); | |
| 379 | ----------------------------------------------------------------------------------------- | |
| 380 | LanguageRegistry.addName(RubyHelmet, "Ruby Helmet"); | |
| 381 | LanguageRegistry.addName(RubyChest, "Ruby Chestplate"); | |
| 382 | LanguageRegistry.addName(RubyLeggings, "Ruby Leggings"); | |
| 383 | LanguageRegistry.addName(RubyBoots, "Ruby Boots"); | |
| 384 | ----------------------------------------------------------------------------------------- | |
| 385 | ||
| 386 | //Sapphire | |
| 387 | LanguageRegistry.addName(SapphireBlock, "Sapphire Block"); | |
| 388 | MinecraftForge.setBlockHarvestLevel(SapphireBlock, "pickaxe", 2); | |
| 389 | GameRegistry.registerBlock(SapphireBlock, "Sapphire Block"); | |
| 390 | ||
| 391 | LanguageRegistry.addName(SapphireOre, "Sapphire Ore"); | |
| 392 | MinecraftForge.setBlockHarvestLevel(SapphireOre, "pickaxe", 2); | |
| 393 | GameRegistry.registerBlock(SapphireOre, "SapphireOre"); | |
| 394 | ||
| 395 | LanguageRegistry.addName(SapphireItem, "Sapphire"); | |
| 396 | ----------------------------------------------------------------------------------------- | |
| 397 | LanguageRegistry.addName(SapphireHelmet, "Sapphire Helmet"); | |
| 398 | LanguageRegistry.addName(SapphireChest, "Sapphire Chestplate"); | |
| 399 | LanguageRegistry.addName(SapphireLeggings, "Sapphire Leggings"); | |
| 400 | LanguageRegistry.addName(SapphireBoots, "Sapphire Boots"); | |
| 401 | ----------------------------------------------------------------------------------------- | |
| 402 | ||
| 403 | //Smelting Recipes | |
| 404 | //Quontonium | |
| 405 | GameRegistry.addSmelting(QuontoniumOreID, new ItemStack(QuontoniumIngot), 0.7F); | |
| 406 | //Lead | |
| 407 | GameRegistry.addSmelting(LeadOreBlockID, new ItemStack(LeadIngot), 1.1F); | |
| 408 | //Rhodium | |
| 409 | GameRegistry.addSmelting(RhodiumOreID, new ItemStack(RhodiumIngot), 0.9F); | |
| 410 | ||
| 411 | ||
| 412 | //Crafting Recipes | |
| 413 | //Quontonium | |
| 414 | //Blocks | |
| 415 | GameRegistry.addRecipe(new ItemStack(QuontoniumBlock), | |
| 416 | "xxx", "xxx", "xxx", | |
| 417 | 'x', QuontoniumIngot); | |
| 418 | //Armor | |
| 419 | GameRegistry.addRecipe(new ItemStack(QuontoniumHelmet), | |
| 420 | "xxx", "x x", | |
| 421 | 'x', QuontoniumIngot); | |
| 422 | ||
| 423 | GameRegistry.addRecipe(new ItemStack(QuontoniumChest), | |
| 424 | "x x", "xxx", "xxx", | |
| 425 | 'x', QuontoniumIngot); | |
| 426 | ||
| 427 | GameRegistry.addRecipe(new ItemStack(QuontoniumLeggings), | |
| 428 | "xxx", "x x", "x x", | |
| 429 | 'x', QuontoniumIngot); | |
| 430 | ||
| 431 | GameRegistry.addRecipe(new ItemStack(QuontoniumBoots), | |
| 432 | " ", "x x", "x x", | |
| 433 | 'x', QuontoniumIngot); | |
| 434 | //Tools | |
| 435 | ||
| 436 | ||
| 437 | //Lead | |
| 438 | GameRegistry.addRecipe(new ItemStack(LeadBlock), | |
| 439 | "xxx", "xxx", "xxx", | |
| 440 | 'x', LeadIngot); | |
| 441 | ||
| 442 | GameRegistry.addRecipe(new ItemStack(LeadHelmet), | |
| 443 | "xxx", "x x", | |
| 444 | 'x', LeadIngot); | |
| 445 | ||
| 446 | GameRegistry.addRecipe(new ItemStack(LeadChest), | |
| 447 | "x x", "xxx", "xxx", | |
| 448 | 'x', LeadIngot); | |
| 449 | ||
| 450 | GameRegistry.addRecipe(new ItemStack(LeadLeggings), | |
| 451 | "xxx", "x x", "x x", | |
| 452 | 'x', LeadIngot); | |
| 453 | ||
| 454 | GameRegistry.addRecipe(new ItemStack(LeadBoots), | |
| 455 | " ", "x x", "x x", | |
| 456 | 'x', LeadIngot); | |
| 457 | ||
| 458 | ||
| 459 | //Rhodium | |
| 460 | GameRegistry.addRecipe(new ItemStack(RhodiumBlock), | |
| 461 | "xxx", "xxx", "xxx", | |
| 462 | 'x', RhodiumIngot); | |
| 463 | ||
| 464 | GameRegistry.addRecipe(new ItemStack(RhodiumHelmet), | |
| 465 | "xxx", "x x", | |
| 466 | 'x', RhodiumIngot); | |
| 467 | ||
| 468 | GameRegistry.addRecipe(new ItemStack(RhodiumChest), | |
| 469 | "x x", "xxx", "xxx", | |
| 470 | 'x', RhodiumIngot); | |
| 471 | ||
| 472 | GameRegistry.addRecipe(new ItemStack(RhodiumLeggings), | |
| 473 | "xxx", "x x", "x x", | |
| 474 | 'x', RhodiumIngot); | |
| 475 | ||
| 476 | GameRegistry.addRecipe(new ItemStack(RhodiumBoots), | |
| 477 | " ", "x x", "x x", | |
| 478 | 'x', RhodiumIngot); | |
| 479 | ||
| 480 | //Ruby | |
| 481 | GameRegistry.addRecipe(new ItemStack(RubyBlock), | |
| 482 | "xxx", "xxx", "xxx", | |
| 483 | 'x', RubyItem); | |
| 484 | ||
| 485 | GameRegistry.addRecipe(new ItemStack(RubyHelmet), | |
| 486 | "xxx", "x x", | |
| 487 | 'x', RubyItem); | |
| 488 | ||
| 489 | GameRegistry.addRecipe(new ItemStack(RubyChest), | |
| 490 | "x x", "xxx", "xxx", | |
| 491 | 'x', RubyItem); | |
| 492 | ||
| 493 | GameRegistry.addRecipe(new ItemStack(RubyLeggings), | |
| 494 | "xxx", "x x", "x x", | |
| 495 | 'x', RubyItem); | |
| 496 | ||
| 497 | GameRegistry.addRecipe(new ItemStack(RubyBoots), | |
| 498 | " ", "x x", "x x", | |
| 499 | 'x', RubyItem); | |
| 500 | ||
| 501 | //Sapphire | |
| 502 | GameRegistry.addRecipe(new ItemStack(SapphireBlock), | |
| 503 | "xxx", "xxx", "xxx", | |
| 504 | 'x', SapphireItem); | |
| 505 | ||
| 506 | GameRegistry.addRecipe(new ItemStack(SapphireHelmet), | |
| 507 | "xxx", "x x", | |
| 508 | 'x', SapphireItem); | |
| 509 | ||
| 510 | GameRegistry.addRecipe(new ItemStack(SapphireChest), | |
| 511 | "x x", "xxx", "xxx", | |
| 512 | 'x', SapphireItem); | |
| 513 | ||
| 514 | GameRegistry.addRecipe(new ItemStack(SapphireLeggings), | |
| 515 | "xxx", "x x", "x x", | |
| 516 | 'x', SapphireItem); | |
| 517 | ||
| 518 | GameRegistry.addRecipe(new ItemStack(SapphireBoots), | |
| 519 | " ", "x x", "x x", | |
| 520 | 'x', SapphireItem); | |
| 521 | ||
| 522 | } | |
| 523 | ||
| 524 | @EventHandler | |
| 525 | public void load(FMLLoadEvent event) {
| |
| 526 | ||
| 527 | ||
| 528 | } | |
| 529 | ||
| 530 | ||
| 531 | @EventHandler | |
| 532 | public void postInit(FMLInitializationEvent event) {
| |
| 533 | ||
| 534 | } | |
| 535 | ||
| 536 | ||
| 537 | @EventHandler | |
| 538 | public void ServerStart(FMLServerStartingEvent event) {
| |
| 539 | ||
| 540 | ||
| 541 | } | |
| 542 | ||
| 543 | ||
| 544 | } |