Compare commits

..

No commits in common. "4d8a097b64d0072df6ee2078169cddaa01967037" and "18e7d9bbb3bad45e3bc482c6f53a10b1c34a8b44" have entirely different histories.

2 changed files with 6 additions and 4 deletions

View File

@ -199,6 +199,11 @@ class MatteryRecipe(val result: ItemLike, val count: Int = 1, val category: Reci
buildRegular().save(consumer.map(filter()), name)
}
fun buildEnergetic(consumer: RecipeOutput, name: String? = null) {
addUpgradeOps(UpgradeRecipe.CopyEnergyCharge)
build(consumer, name)
}
fun row(): MatteryRecipe {
if (index == 3) {
throw IllegalStateException("Already have all rows defined")

View File

@ -3,7 +3,6 @@ package ru.dbotthepony.mc.otm.datagen.recipes
import net.minecraft.data.recipes.RecipeCategory
import net.minecraft.data.recipes.RecipeOutput
import net.neoforged.neoforge.common.Tags
import ru.dbotthepony.mc.otm.recipe.UpgradeRecipe
import ru.dbotthepony.mc.otm.registry.MItemTags
import ru.dbotthepony.mc.otm.registry.game.MItems
@ -13,9 +12,7 @@ fun addToolsRecipes(consumer: RecipeOutput) {
.row(MItemTags.CARBON_PLATES, MItemTags.TRITANIUM_PLATES, MItemTags.GOLD_WIRES)
.row(MItems.BATTERY_CAPACITOR, MItems.TRITANIUM_SWORD, MItemTags.ADVANCED_CIRCUIT)
.unlockedBy(MItems.BATTERY_CAPACITOR)
.addUpgradeOps(UpgradeRecipe.CopyEnergyCharge)
.addUpgradeOps(UpgradeRecipe.CopyEnchantments)
.build(consumer)
.buildEnergetic(consumer)
MatteryRecipe(MItems.TRITANIUM_SWORD, category = RecipeCategory.COMBAT)
.rowB(MItemTags.TRITANIUM_INGOTS)