private static ItemStack getFlower(String type) throws Compat.ItemNotFoundException { Item specialFlower = Compat.getItem("Botania", "specialFlower"); ItemStack flower = new ItemStack(specialFlower, 1, 0); NBTTagCompound tag = new NBTTagCompound(); tag.setString("type", type); flower.setTagCompound(tag); return flower; }
public static void baka() throws Compat.ItemNotFoundException { Item resource = Compat.getItem("Botania", "manaResource"); Block storage = Compat.getBlock("Botania", "storage"); ItemStack terra = new ItemStack(storage, 1, 1); ItemStack gaia = new ItemStack(resource, 1, 5); Grinder.catalyst.getInput().add(terra); Grinder.catalyst.getInput().add(gaia); Alfheim.vacationTime(); BotaniaAPI.registerSubTile("asgardandelion", SubTileCheaty.class); BotaniaAPI.registerSubTileSignature(SubTileCheaty.class, new Signature("asgardandelion")); BotaniaAPI.addSubTileToCreativeMenu("asgardandelion"); ItemStack cheaty = getFlower("asgardandelion"); SubTileCheaty.lexicon = new LudicrousLexicon("asgardandelion", BotaniaAPI.categoryGenerationFlowers); SubTileCheaty.lexicon.addPage( BotaniaAPI.internalHandler.textPage("avaritia.lexicon.asgardandelion.0")); SubTileCheaty.lexicon.setIcon(cheaty); ExtremeCraftingManager.getInstance() .addRecipe( cheaty, new Object[] { " III ", " IIIII ", " IIXII ", " IIIII ", " III ", " nn N nn ", "nnnnNnnnn", " nn N nn ", " N ", 'I', new ItemStack(LudicrousItems.resource, 1, 6), 'X', new ItemStack(LudicrousItems.resource, 1, 5), 'N', new ItemStack(LudicrousItems.resource, 1, 4), 'n', new ItemStack(LudicrousItems.resource, 1, 3), }); LudicrousBlocks.infinitato = GameRegistry.registerBlock(new BlockInfinitato(), "infinitato"); GameRegistry.registerTileEntity(TileInfinitato.class, "Avaritia_Infinitato"); costumes = new ItemInfinitatoCostume(); GameRegistry.registerItem(costumes, "costumes"); if (Compat.nei) { try { NotEnough.hide(new ItemStack(costumes, 1, OreDictionary.WILDCARD_VALUE)); } catch (Throwable e) { } } Block potato = Compat.getBlock("Botania", "tinyPotato"); ExtremeShapedRecipe tatorecipe = ExtremeCraftingManager.getInstance() .addRecipe( new ItemStack(LudicrousBlocks.infinitato), new Object[] { "IIIIIIIII", "IIIIIIIII", "IIISISIII", "IIIIIIIII", "IISIXISII", "IIISSSIII", "IIIIIIIII", "IIIIIIIII", "IIIIIIIII", 'I', new ItemStack(potato), 'X', new ItemStack(LudicrousItems.resource, 1, 5), 'S', new ItemStack(Items.diamond) }); BlockInfinitato.lexiconEntry = new LudicrousLexicon("infinitato", BotaniaAPI.categoryMisc); BlockInfinitato.lexiconEntry .setLexiconPages( BotaniaAPI.internalHandler.textPage("avaritia.lexicon.infinitato.0"), new PageLudicrousRecipe("avaritia.lexicon.infinitato.1", tatorecipe)) .setIcon(new ItemStack(LudicrousBlocks.infinitato)); }
public static void abracadabra() { ULTRA_DEATH = new Aspect( "terminus", 0xb90000, new Aspect[] {Aspect.GREED, Aspect.ELDRITCH}, new ResourceLocation("avaritia", "textures/misc/terminus.png"), 771); LudicrousItems.akashic_record = new ItemAkashicRecord(); GameRegistry.registerItem(LudicrousItems.akashic_record, "Akashic_Record"); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.resource, 1, 1), new AspectList().add(ULTRA_DEATH, 1).add(Aspect.ENERGY, 8).add(Aspect.CRYSTAL, 32)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.resource, 1, 4), new AspectList().add(ULTRA_DEATH, 2).add(Aspect.METAL, 12).add(Aspect.ENERGY, 12)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.resource, 1, 5), new AspectList().add(ULTRA_DEATH, 5).add(Aspect.EXCHANGE, 12)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.resource, 1, 6), new AspectList().add(ULTRA_DEATH, 16).add(Aspect.ELDRITCH, 64)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousBlocks.neutron_collector, 1, OreDictionary.WILDCARD_VALUE), new AspectList() .add(ULTRA_DEATH, 5) .add(Aspect.METAL, 64) .add(Aspect.ENERGY, 64) .add(Aspect.MECHANISM, 64)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.singularity, 1, 0), new AspectList().add(ULTRA_DEATH, 3).add(Aspect.METAL, 100)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.singularity, 1, 1), new AspectList().add(ULTRA_DEATH, 3).add(Aspect.METAL, 100).add(Aspect.GREED, 100)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.singularity, 1, 2), new AspectList().add(ULTRA_DEATH, 3).add(Aspect.SENSES, 100)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.singularity, 1, 3), new AspectList().add(ULTRA_DEATH, 3).add(Aspect.MECHANISM, 100).add(Aspect.ENERGY, 100)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.singularity, 1, 4), new AspectList().add(ULTRA_DEATH, 3).add(Aspect.CRYSTAL, 100).add(Aspect.ORDER, 100)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.singularity, 1, 5), new AspectList().add(ULTRA_DEATH, 3).add(Aspect.METAL, 100)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.singularity, 1, 6), new AspectList().add(ULTRA_DEATH, 3).add(Aspect.METAL, 100)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.singularity, 1, 7), new AspectList().add(ULTRA_DEATH, 3).add(Aspect.METAL, 100)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.singularity, 1, 8), new AspectList().add(ULTRA_DEATH, 3).add(Aspect.METAL, 100)); ThaumcraftApi.registerObjectTag( new ItemStack(LudicrousItems.infinity_sword), new AspectList() .add(ULTRA_DEATH, 60) .add(Aspect.WEAPON, 999) .add(Aspect.DEATH, 999) .add(Aspect.ELDRITCH, 100)); ThaumcraftApi.registerComplexObjectTag( new ItemStack(LudicrousItems.skull_sword), new AspectList() .add(ULTRA_DEATH, 1) .add(Aspect.FIRE, 2) .add(Aspect.CRYSTAL, 16) .add(Aspect.DEATH, 4)); WAND_ROD_NEUTRONIUM = new WandRod( "infinity", 9999999, new ItemStack(LudicrousBlocks.resource_block, 1, 0), 9999, new CheatyWandUpdate(), new ResourceLocation("avaritia", "textures/models/wand_rod_neutronium.png")); WAND_ROD_NEUTRONIUM.setGlowing(true); WAND_CAP_CRYSTAL = new WandCap("matrix", 0.0F, new ItemStack(Blocks.command_block), 1000); WAND_CAP_CRYSTAL.setTexture( new ResourceLocation("avaritia", "textures/models/wand_cap_crystal.png")); ItemStack wand = new ItemStack(ConfigItems.itemWandCasting, 1, 9000); ((ItemWandCasting) ConfigItems.itemWandCasting).setRod(wand, WAND_ROD_NEUTRONIUM); ((ItemWandCasting) ConfigItems.itemWandCasting).setCap(wand, WAND_CAP_CRYSTAL); ExtremeCraftingManager.getInstance() .addRecipe( wand, " C ", " CIC ", " NIIC", " NINC ", " NXN ", " CNIN ", "CIIN ", " CIC ", " C ", 'I', new ItemStack(LudicrousItems.resource, 1, 6), 'C', new ItemStack(LudicrousItems.resource, 1, 1), 'N', new ItemStack(LudicrousItems.resource, 1, 4), 'X', new ItemStack(LudicrousBlocks.resource_block, 1, 1)); if (Loader.isModLoaded("ThaumicTinkerer")) { try { boolean kami = Class.forName("thaumic.tinkerer.common.core.handler.ConfigHandler") .getField("enableKami") .getBoolean(null); if (kami) { Item kamiResource = Compat.getItem("ThaumicTinkerer", "kamiResource"); Grinder.catalyst.getInput().add(new ItemStack(kamiResource, 1, 2)); } } catch (Exception e) { Lumberjack.log( Level.INFO, e, "Avaritia couldn't find the last research it needs to unlock Ichor."); } } }