diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b622d28 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.vs/ +bin/ +obj/ +CraftableUncraftables.csproj +CraftableUncraftables.csproj.user +CraftableUncraftables.sln \ No newline at end of file diff --git a/EndlessCrafting.cs b/EndlessCrafting.cs new file mode 100644 index 0000000..561b430 --- /dev/null +++ b/EndlessCrafting.cs @@ -0,0 +1,863 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace EndlessCrafting +{ + class EndlessCrafting : Mod + { + public EndlessCrafting() + { + } + + public override void AddRecipeGroups() + { + RecipeGroup shadowScales = new RecipeGroup(() => Lang.misc[37] + " Shadow Scale", new int[] + { + ItemID.ShadowScale, + ItemID.TissueSample + }); + RecipeGroup.RegisterGroup("EndlessCrafting:ShadowScales", shadowScales); + + RecipeGroup goldBars = new RecipeGroup(() => Lang.misc[37] + " Gold Bar", new int[] + { + ItemID.GoldBar, + ItemID.PlatinumBar + }); + RecipeGroup.RegisterGroup("EndlessCrafting:GoldBars", goldBars); + + RecipeGroup crimstoneBlocks = new RecipeGroup(() => Lang.misc[37] + " Crimstone Block", new int[] + { + ItemID.CrimstoneBlock, + ItemID.EbonstoneBlock + }); + RecipeGroup.RegisterGroup("EndlessCrafting:CrimstoneBlocks", crimstoneBlocks); + } + + public override void AddRecipes() + { + addCraftingStations(); + addMounts(); + addPets(); + addBossSummons(); + } + + private void addBossSummons() + { + bossBrainOfCthulhu(); + bossDestroyer(); + bossDukeFishron(); + bossEaterOfWorlds(); + bossEyeOfCthulhu(); + bossGolem(); + bossMoonlord(); + bossPlantera(); + bossQueenBee(); + bossSkeletron(); + bossSkeletronPrime(); + bossSlimeKing(); + bossTwins(); + bossWallOfFlash(); + } + + private void addMounts() + { + addSlimeMount(); + addBeeMount(); + addTurtleMount(); + addBunnyMount(); + addBasiliskMount(); + addPigronMount(); + addCuteFishronMount(); + addRudolphMount(); + addUFOMount(); + addScutlixMount(); + addUnicornMount(); + } + + private void addCraftingStations() + { + addAlchemyTable(); + addAncientManipulator(); + addAutoHammer(); + addBlendOMatic(); + addBoneWelder(); + addCrystalBall(); + addDyeVat(); + addExtractinator(); + addFleshCloningVat(); + addHoneyDispender(); + addIceMachine(); + addImbuingStation(); + addLihzahrdFurnace(); + addLivingLoom(); + addMeatGrinder(); + addSkyMill(); + addSolidifier(); + addSteamPunkBoiler(); + addTinkerersWorkshop(); + } + + private void addPets() + { + addBunnyPet(); + addBlackCatPet(); + addCompanionPet(); + addCursedSaplingPet(); + addDinosaurPet(); + addEaterPet(); + addEyeballPet(); + addFaceMonsterPet(); + addGrinchPet(); + addHoardagronPet(); + addHornetPet(); + addLizardPet(); + addMinotaurPet(); + addParrotPet(); + addPenguinPet(); + addPropellerPet(); + addPuppyPet(); + addSaplingPet(); + addSkeletronPet(); + addSnowmanPet(); + addSpiderPet(); + addSquashlingPet(); + addTikiSpiritPet(); + addTrufflePet(); + addTurtlePet(); + addZephyrPet(); + } + + private void bossSlimeKing() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.Gel, 30); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.SlimeCrown); + recipe.AddRecipe(); + } + + private void bossEyeOfCthulhu() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.Lens, 2); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.SuspiciousLookingEye); + recipe.AddRecipe(); + } + + private void bossEaterOfWorlds() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.RottenChunk, 2); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.WormFood); + recipe.AddRecipe(); + } + + private void bossBrainOfCthulhu() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.Vertebrae, 2); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.BloodySpine); + recipe.AddRecipe(); + } + + private void bossQueenBee() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.BottledHoney, 2); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.Abeemination); + recipe.AddRecipe(); + } + + private void bossSkeletron() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.Bone, 10); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.ClothierVoodooDoll); + recipe.AddRecipe(); + } + + private void bossWallOfFlash() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.AshBlock, 50); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.GuideVoodooDoll); + recipe.AddRecipe(); + } + + private void bossTwins() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.SoulofNight, 2); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.MechanicalEye); + recipe.AddRecipe(); + } + + private void bossDestroyer() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.SoulofNight, 2); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.MechanicalWorm); + recipe.AddRecipe(); + } + + private void bossSkeletronPrime() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.SoulofNight, 2); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.MechanicalSkull); + recipe.AddRecipe(); + } + + private void bossPlantera() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.SoulofLight, 2); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.PlanteraMask); + recipe.AddRecipe(); + } + + private void bossGolem() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.SoulofLight, 2); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.LihzahrdPowerCell); + recipe.AddRecipe(); + } + + private void bossDukeFishron() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.SoulofLight, 2); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.TruffleWorm); + recipe.AddRecipe(); + } + + private void bossMoonlord() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LihzahrdPowerCell, 3); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.CelestialSigil); + recipe.AddRecipe(); + } + + private void addBunnyPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.SnowBlock); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.Carrot); + recipe.AddRecipe(); + } + + private void addDinosaurPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.DesertFossil); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.AmberMosquito); + recipe.AddRecipe(); + } + + private void addPenguinPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.IceBlock); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.Fish); + recipe.AddRecipe(); + } + + private void addFaceMonsterPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddRecipeGroup("EndlessCrafting:CrimstoneBlocks"); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.BoneRattle); + recipe.AddRecipe(); + } + + private void addSkeletronPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.Bone); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.BoneKey); + recipe.AddRecipe(); + } + + private void addParrotPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.Feather); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.ParrotCracker); + recipe.AddRecipe(); + } + + private void addTurtlePet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.Coral); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.Seaweed); + recipe.AddRecipe(); + } + + private void addTrufflePet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.GlowingMushroom); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.StrangeGlowingMushroom); + recipe.AddRecipe(); + } + + private void addSnowmanPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.Snowball); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.ToySled); + recipe.AddRecipe(); + } + + private void addEaterPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddRecipeGroup("EndlessCrafting:CrimstoneBlocks"); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.EatersBone); + recipe.AddRecipe(); + } + + private void addHornetPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.BottledHoney); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.Nectar); + recipe.AddRecipe(); + } + + private void addLizardPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.DirtBlock); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.LizardEgg); + recipe.AddRecipe(); + } + + private void addSaplingPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.GrassSeeds); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.Seedling); + recipe.AddRecipe(); + } + + private void addTikiSpiritPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.JungleSpores); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.TikiTorch); + recipe.AddRecipe(); + } + + private void addEyeballPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.Lens); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.EyeSpring); + recipe.AddRecipe(); + } + + private void addSquashlingPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.Pumpkin); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.MagicalPumpkinSeed); + recipe.AddRecipe(); + } + + private void addBlackCatPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.Silk); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.UnluckyYarn); + recipe.AddRecipe(); + } + + private void addCursedSaplingPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.SpookyWood); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.CursedSapling); + recipe.AddRecipe(); + } + + private void addSpiderPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.Cobweb); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.SpiderEgg); + recipe.AddRecipe(); + } + + private void addPuppyPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.Ruby); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.DogWhistle); + recipe.AddRecipe(); + } + + private void addGrinchPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.Salmon); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.BabyGrinchMischiefWhistle); + recipe.AddRecipe(); + } + + private void addMinotaurPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.Cactus); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.TartarSauce); + recipe.AddRecipe(); + } + + private void addZephyrPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.BottledWater); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.ZephyrFish); + recipe.AddRecipe(); + } + + private void addCompanionPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.Diamond); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.CompanionCube); + recipe.AddRecipe(); + } + + private void addPropellerPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.SoulofFlight); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.DD2PetGato); + recipe.AddRecipe(); + } + + private void addHoardagronPet() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddIngredient(ItemID.SoulofLight); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.DD2PetDragon); + recipe.AddRecipe(); + } + + private void addBunnyMount() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.Cloud, 25); + recipe.AddRecipeGroup("EndlessCrafting:GoldBars", 5); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.FuzzyCarrot); + recipe.AddRecipe(); + } + + private void addSlimeMount() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.Gel, 50); + recipe.AddRecipeGroup("EndlessCrafting:GoldBars", 10); + recipe.AddIngredient(ItemID.ManaCrystal); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.SlimySaddle); + recipe.AddRecipe(); + } + + private void addBeeMount() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.HoneyBlock, 25); + recipe.AddRecipeGroup("EndlessCrafting:GoldBars", 15); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.HoneyedGoggles); + recipe.AddRecipe(); + } + + private void addTurtleMount() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.Starfish, 10); + recipe.AddIngredient(ItemID.Coral, 10); + recipe.AddRecipeGroup("EndlessCrafting:GoldBars", 15); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.HardySaddle); + recipe.AddRecipe(); + } + + private void addBasiliskMount() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddRecipeGroup("EndlessCrafting:CrimstoneBlocks", 100); + recipe.AddRecipeGroup("EndlessCrafting:GoldBars", 15); + recipe.AddIngredient(ItemID.LifeCrystal, 2); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.AncientHorn); + recipe.AddRecipe(); + } + + private void addPigronMount() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.HallowedBar, 15); + recipe.AddIngredient(ItemID.Coral, 3); + recipe.AddRecipeGroup("EndlessCrafting:GoldBars", 15); + recipe.AddIngredient(ItemID.SoulofFlight); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.ScalyTruffle); + recipe.AddRecipe(); + } + + private void addCuteFishronMount() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.HallowedBar, 25); + recipe.AddIngredient(ItemID.Coral, 3); + recipe.AddRecipeGroup("EndlessCrafting:GoldBars", 20); + recipe.AddIngredient(ItemID.SoulofFlight); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.ShrimpyTruffle); + recipe.AddRecipe(); + } + + private void addRudolphMount() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.HallowedBar, 15); + recipe.AddRecipeGroup("EndlessCrafting:GoldBars", 25); + recipe.AddIngredient(ItemID.SoulofLight); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.ReindeerBells); + recipe.AddRecipe(); + } + + private void addUFOMount() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.HallowedBar, 25); + recipe.AddRecipeGroup("IronBar", 50); + recipe.AddRecipeGroup("EndlessCrafting:GoldBars", 25); + recipe.AddIngredient(ItemID.SoulofSight); + recipe.AddIngredient(ItemID.LifeCrystal, 3); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.CosmicCarKey); + recipe.AddRecipe(); + } + + private void addScutlixMount() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.HallowedBar, 35); + recipe.AddRecipeGroup("EndlessCrafting:GoldBars", 15); + recipe.AddIngredient(ItemID.SoulofFright); + recipe.AddIngredient(ItemID.SoulofMight); + recipe.AddIngredient(ItemID.LifeCrystal, 3); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.BrainScrambler); + recipe.AddRecipe(); + } + + private void addUnicornMount() + { + ModRecipe recipe = new ModRecipe(this); + recipe.AddIngredient(ItemID.CrystalShard, 30); + recipe.AddRecipeGroup("EndlessCrafting:GoldBars", 15); + recipe.AddIngredient(ItemID.SoulofLight); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddTile(TileID.WorkBenches); + recipe.SetResult(ItemID.BlessedApple); + recipe.AddRecipe(); + } + + private void addAncientManipulator() + { + ModRecipe ancientManipulator = new ModRecipe(this); + ancientManipulator.AddIngredient(ItemID.FragmentNebula, 1); + ancientManipulator.AddIngredient(ItemID.FragmentSolar, 1); + ancientManipulator.AddIngredient(ItemID.FragmentStardust, 1); + ancientManipulator.AddIngredient(ItemID.FragmentVortex, 1); + ancientManipulator.AddTile(TileID.WorkBenches); + ancientManipulator.SetResult(ItemID.LunarCraftingStation); + ancientManipulator.AddRecipe(); + } + + private void addAlchemyTable() + { + ModRecipe alchemyTable = new ModRecipe(this); + alchemyTable.AddRecipeGroup("Wood", 25); + alchemyTable.AddRecipeGroup("IronBar", 12); + alchemyTable.AddIngredient(ItemID.Bottle, 3); + alchemyTable.AddRecipeGroup("EndlessCrafting:ShadowScales"); + alchemyTable.AddTile(TileID.WorkBenches); + alchemyTable.SetResult(ItemID.AlchemyTable); + alchemyTable.AddRecipe(); + } + + private void addTinkerersWorkshop() + { + ModRecipe tinkerersWorkshop = new ModRecipe(this); + tinkerersWorkshop.AddRecipeGroup("Wood", 25); + tinkerersWorkshop.AddRecipeGroup("IronBar", 25); + tinkerersWorkshop.AddIngredient(ItemID.Obsidian); + tinkerersWorkshop.AddTile(TileID.WorkBenches); + tinkerersWorkshop.SetResult(ItemID.TinkerersWorkshop); + tinkerersWorkshop.AddRecipe(); + } + + private void addImbuingStation() + { + ModRecipe imbuingStation = new ModRecipe(this); + imbuingStation.AddRecipeGroup("Wood", 25); + imbuingStation.AddRecipeGroup("IronBar", 15); + imbuingStation.AddIngredient(ItemID.Bottle, 3); + imbuingStation.AddIngredient(ItemID.Hellstone); + imbuingStation.AddTile(TileID.WorkBenches); + imbuingStation.SetResult(ItemID.ImbuingStation); + imbuingStation.AddRecipe(); + } + + private void addDyeVat() + { + ModRecipe dyeVat = new ModRecipe(this); + dyeVat.AddRecipeGroup("Wood", 25); + dyeVat.AddRecipeGroup("IronBar", 8); + dyeVat.AddIngredient(ItemID.YellowMarigold, 3); + dyeVat.AddTile(TileID.WorkBenches); + dyeVat.SetResult(ItemID.DyeVat); + dyeVat.AddRecipe(); + } + + private void addCrystalBall() + { + ModRecipe crystalBall = new ModRecipe(this); + crystalBall.AddIngredient(ItemID.Glass, 30); + crystalBall.AddIngredient(ItemID.ManaCrystal, 3); + crystalBall.AddIngredient(ItemID.Obsidian, 10); + crystalBall.AddTile(TileID.WorkBenches); + crystalBall.SetResult(ItemID.CrystalBall); + crystalBall.AddRecipe(); + } + + private void addAutoHammer() + { + ModRecipe autoHammer = new ModRecipe(this); + autoHammer.AddRecipeGroup("Wood", 25); + autoHammer.AddRecipeGroup("IronBar", 12); + autoHammer.AddIngredient(ItemID.GlowingMushroom, 50); + autoHammer.AddTile(TileID.WorkBenches); + autoHammer.SetResult(ItemID.Autohammer); + autoHammer.AddRecipe(); + } + + private void addBoneWelder() + { + ModRecipe boneWelder = new ModRecipe(this); + boneWelder.AddRecipeGroup("Wood", 25); + boneWelder.AddRecipeGroup("IronBar", 8); + boneWelder.AddIngredient(ItemID.Bone, 50); + boneWelder.AddTile(TileID.WorkBenches); + boneWelder.SetResult(ItemID.BoneWelder); + boneWelder.AddRecipe(); + } + + private void addHoneyDispender() + { + ModRecipe honeyDispenser = new ModRecipe(this); + honeyDispenser.AddRecipeGroup("Wood", 25); + honeyDispenser.AddRecipeGroup("IronBar", 8); + honeyDispenser.AddIngredient(ItemID.HoneyBlock, 10); + honeyDispenser.AddIngredient(ItemID.BottledHoney); + honeyDispenser.AddTile(TileID.WorkBenches); + honeyDispenser.SetResult(ItemID.HoneyDispenser); + honeyDispenser.AddRecipe(); + } + + private void addIceMachine() + { + ModRecipe iceMachine = new ModRecipe(this); + iceMachine.AddRecipeGroup("Wood", 25); + iceMachine.AddRecipeGroup("IronBar", 8); + iceMachine.AddIngredient(ItemID.IceBlock, 10); + iceMachine.AddIngredient(ItemID.SnowBlock); + iceMachine.AddTile(TileID.WorkBenches); + iceMachine.SetResult(ItemID.IceMachine); + iceMachine.AddRecipe(); + } + + private void addLivingLoom() + { + ModRecipe livingLoom = new ModRecipe(this); + livingLoom.AddRecipeGroup("Wood", 25); + livingLoom.AddRecipeGroup("IronBar", 8); + livingLoom.AddTile(TileID.WorkBenches); + livingLoom.SetResult(ItemID.LivingLoom); + livingLoom.AddRecipe(); + } + + private void addSkyMill() + { + ModRecipe skyMill = new ModRecipe(this); + skyMill.AddRecipeGroup("Wood", 25); + skyMill.AddRecipeGroup("IronBar", 8); + skyMill.AddIngredient(ItemID.SunplateBlock, 10); + skyMill.AddTile(TileID.WorkBenches); + skyMill.SetResult(ItemID.SkyMill); + skyMill.AddRecipe(); + } + + private void addSolidifier() + { + ModRecipe solidifier = new ModRecipe(this); + solidifier.AddRecipeGroup("Wood", 25); + solidifier.AddRecipeGroup("IronBar", 8); + solidifier.AddIngredient(ItemID.Gel, 50); + solidifier.AddTile(TileID.WorkBenches); + solidifier.SetResult(ItemID.Solidifier); + solidifier.AddRecipe(); + } + + private void addBlendOMatic() + { + ModRecipe blendOMatic = new ModRecipe(this); + blendOMatic.AddRecipeGroup("Wood", 25); + blendOMatic.AddRecipeGroup("IronBar", 8); + blendOMatic.AddIngredient(ItemID.StoneBlock, 50); + blendOMatic.AddIngredient(ItemID.Gel, 25); + blendOMatic.AddTile(TileID.WorkBenches); + blendOMatic.SetResult(ItemID.BlendOMatic); + blendOMatic.AddRecipe(); + } + + private void addMeatGrinder() + { + ModRecipe meatGrinder = new ModRecipe(this); + meatGrinder.AddRecipeGroup("Wood", 25); + meatGrinder.AddRecipeGroup("IronBar", 8); + meatGrinder.AddIngredient(ItemID.CrimstoneBlock, 50); + meatGrinder.AddTile(TileID.WorkBenches); + meatGrinder.SetResult(ItemID.MeatGrinder); + meatGrinder.AddRecipe(); + } + + private void addSteamPunkBoiler() + { + ModRecipe steamPunkBoiler = new ModRecipe(this); + steamPunkBoiler.AddRecipeGroup("Wood", 25); + steamPunkBoiler.AddRecipeGroup("IronBar", 8); + steamPunkBoiler.AddIngredient(ItemID.Chain, 12); + steamPunkBoiler.AddTile(TileID.WorkBenches); + steamPunkBoiler.SetResult(ItemID.SteampunkBoiler); + steamPunkBoiler.AddRecipe(); + } + + private void addFleshCloningVat() + { + ModRecipe fleshCloningVat = new ModRecipe(this); + fleshCloningVat.AddRecipeGroup("Wood", 25); + fleshCloningVat.AddRecipeGroup("IronBar", 8); + fleshCloningVat.AddIngredient(ItemID.FleshBlock, 50); + fleshCloningVat.AddTile(TileID.WorkBenches); + fleshCloningVat.SetResult(ItemID.FleshCloningVaat); + fleshCloningVat.AddRecipe(); + } + + private void addLihzahrdFurnace() + { + ModRecipe lihzahrdFurnace = new ModRecipe(this); + lihzahrdFurnace.AddRecipeGroup("Wood", 25); + lihzahrdFurnace.AddRecipeGroup("IronBar", 8); + lihzahrdFurnace.AddIngredient(ItemID.LihzahrdTable); + lihzahrdFurnace.AddTile(TileID.WorkBenches); + lihzahrdFurnace.SetResult(ItemID.LihzahrdFurnace); + lihzahrdFurnace.AddRecipe(); + } + + private void addExtractinator() + { + ModRecipe extractinator = new ModRecipe(this); + extractinator.AddRecipeGroup("Wood", 25); + extractinator.AddRecipeGroup("IronBar", 25); + extractinator.AddIngredient(ItemID.SiltBlock, 50); + extractinator.AddTile(TileID.WorkBenches); + extractinator.SetResult(ItemID.Extractinator); + extractinator.AddRecipe(); + } + } +} diff --git a/EndlessCrafting.csproj b/EndlessCrafting.csproj new file mode 100644 index 0000000..92f6329 --- /dev/null +++ b/EndlessCrafting.csproj @@ -0,0 +1,57 @@ + + + Debug + AnyCPU + {CF5496D9-C3E1-4F39-8129-726E1700A5E4} + Library + false + ClassLibrary + v4.0 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + EndlessCrafting + + + + + ..\..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Terraria\ModdedTerraria.exe + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/EndlessCrafting.csproj.user b/EndlessCrafting.csproj.user new file mode 100644 index 0000000..d014f64 --- /dev/null +++ b/EndlessCrafting.csproj.user @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/EndlessCrafting.sln b/EndlessCrafting.sln new file mode 100644 index 0000000..513940c --- /dev/null +++ b/EndlessCrafting.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28010.2050 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EndlessCrafting", "EndlessCrafting.csproj", "{CF5496D9-C3E1-4F39-8129-726E1700A5E4}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CF5496D9-C3E1-4F39-8129-726E1700A5E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CF5496D9-C3E1-4F39-8129-726E1700A5E4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CF5496D9-C3E1-4F39-8129-726E1700A5E4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CF5496D9-C3E1-4F39-8129-726E1700A5E4}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {61080E6B-B4FE-4001-BB44-5389F98D2B20} + EndGlobalSection +EndGlobal diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f547f20 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018 valkyrienyanko + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/build.txt b/build.txt new file mode 100644 index 0000000..2e1b5c7 --- /dev/null +++ b/build.txt @@ -0,0 +1,4 @@ +author = valkyrienyanko +version = 1.3 +displayName = Endless Crafting +homepage = https://discord.gg/thMupbv \ No newline at end of file diff --git a/description.txt b/description.txt new file mode 100644 index 0000000..701ce15 --- /dev/null +++ b/description.txt @@ -0,0 +1,52 @@ +The description for this mod is too long, to see the full description you must read it from your mods list, not from the mod browser. + +[c/ff9eed:Prehardmode] +[i:3000] [c/5c5c5c:Alchemy Table] (25 wood*, 12 iron*, 3 bottles) +[i:2192] [c/5c5c5c:Bone Welder] (25 wood*, 8 iron*, 50 bones) +[i:1120] [c/5c5c5c:Dye Vat] (25 wood*, 8 iron*, 3 yellow marigold) +[i:1430] [c/5c5c5c:Imbuing Station] (25 wood*, 15 iron*, 3 bottles, 1 hellstone) +[i:398] [c/5c5c5c:Tinkerers Workshop] (25 wood*, 25 iron*, 1 obsidian) +[i:997] [c/5c5c5c:Extractinator] (25 wood*, 25 iron*, 50 silt) + +[c/ff9eed:Hardmode] +[i:3549] [c/5c5c5c:Ancient Manipulator] (1 solar fragment, 1 nebula fragment, 1 stardust fragment, 1 vortex fragment) +[i:1551] [c/5c5c5c:Auto Hammer] (25 wood*, 12 iron*, 50 glowing mushroom) +[i:487] [c/5c5c5c:Crystal Ball] (30 glass, 3 mana crystal, 10 obsidian) + +[c/ff9eed:Specialized] +[i:995] [c/5c5c5c:Blend O Matic] (25 wood*, 8 iron*, 50 stone, 25 gel) +[i:996] [c/5c5c5c:Meat Grinder] (25 wood*, 8 iron*, 50 crimstone blocks) + +[c/ff9eed:Themed Furniture] +[i:2193] [c/5c5c5c:Flesh Cloning Vat] (25 wood*, 8 iron*, 50 flesh blocks) +[i:2204] [c/5c5c5c:Honey Dispenser] (25 wood*, 8 iron*, 10 honey blocks, 1 bottled honey) +[i:2198] [c/5c5c5c:Ice Machine] (25 wood*, 8 iron*, 10 ice blocks, 1 snow block) +[i:2195] [c/5c5c5c:Lihzahrd Furnace] (25 wood*, 8 iron*, 1 lihzahrd table) +[i:2196] [c/5c5c5c:Living Loom] (25 wood*, 8 iron*) +[i:2197] [c/5c5c5c:Sky Mill] (25 wood*, 8 iron*, 10 sunplate blocks) +[i:998] [c/5c5c5c:Solidifier] (25 wood*, 8 iron*, 50 gel) +[i:2203] [c/5c5c5c:Steam Punk Boiler] (25 wood*, 8 iron*, 12 chains) + +[i:2428] = 25 [i:751] 5 [i:19] 1 [i:29] +[i:2430] = 50 [i:23] 10 [i:19] 1 [i:109] +[i:2502] = 25 [i:1125] 15 [i:19] 1 [i:29] +[i:2491] = 10 [i:2626] 10 [i:275] 15 [i:19] 1 [i:29] +[i:3771] = 100 [i:836] 15 [i:19] 2 [i:29] +[i:2429] = 15 [i:1225] 3 [i:275] 15 [i:19] 1 [i:520] 1 [i:29] +[i:3367] = 25 [i:1225] 3 [i:275] 20 [i:19] 1 [i:520] 1 [i:29] +[i:1914] = 15 [i:1225] 25 [i:19] 1 [i:520] 1 [i:29] +[i:2769] = 25 [i:1225] 50 [i:22] 25 [i:19] 1 [i:549] 3 [i:29] +[i:2771] = 35 [i:1225] 15 [i:19] 1 [i:547] 1 [i:548] 3 [i:29] +[i:3260] = 30 [i:502] 15 [i:19] 1 [i:520] 1 [i:29] + +In addition.. all pets are now craftable, craft them with a crystal heart and some other block. To see all the possible recipes show the guide a crystal heart and all the pet recipes will be listed. + +Also all boss summons are craftable now! + +Enjoy! + +v1.3 +Merged master + +v1.01 +Fixed bug where you could craft a yoyo that did 100 damage with only 2 lens \ No newline at end of file diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..09405d1 Binary files /dev/null and b/icon.png differ