Compare commits
No commits in common. "4d8a097b64d0072df6ee2078169cddaa01967037" and "18e7d9bbb3bad45e3bc482c6f53a10b1c34a8b44" have entirely different histories.
4d8a097b64
...
18e7d9bbb3
@ -199,6 +199,11 @@ class MatteryRecipe(val result: ItemLike, val count: Int = 1, val category: Reci
|
|||||||
buildRegular().save(consumer.map(filter()), name)
|
buildRegular().save(consumer.map(filter()), name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun buildEnergetic(consumer: RecipeOutput, name: String? = null) {
|
||||||
|
addUpgradeOps(UpgradeRecipe.CopyEnergyCharge)
|
||||||
|
build(consumer, name)
|
||||||
|
}
|
||||||
|
|
||||||
fun row(): MatteryRecipe {
|
fun row(): MatteryRecipe {
|
||||||
if (index == 3) {
|
if (index == 3) {
|
||||||
throw IllegalStateException("Already have all rows defined")
|
throw IllegalStateException("Already have all rows defined")
|
||||||
|
@ -3,7 +3,6 @@ package ru.dbotthepony.mc.otm.datagen.recipes
|
|||||||
import net.minecraft.data.recipes.RecipeCategory
|
import net.minecraft.data.recipes.RecipeCategory
|
||||||
import net.minecraft.data.recipes.RecipeOutput
|
import net.minecraft.data.recipes.RecipeOutput
|
||||||
import net.neoforged.neoforge.common.Tags
|
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.MItemTags
|
||||||
import ru.dbotthepony.mc.otm.registry.game.MItems
|
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(MItemTags.CARBON_PLATES, MItemTags.TRITANIUM_PLATES, MItemTags.GOLD_WIRES)
|
||||||
.row(MItems.BATTERY_CAPACITOR, MItems.TRITANIUM_SWORD, MItemTags.ADVANCED_CIRCUIT)
|
.row(MItems.BATTERY_CAPACITOR, MItems.TRITANIUM_SWORD, MItemTags.ADVANCED_CIRCUIT)
|
||||||
.unlockedBy(MItems.BATTERY_CAPACITOR)
|
.unlockedBy(MItems.BATTERY_CAPACITOR)
|
||||||
.addUpgradeOps(UpgradeRecipe.CopyEnergyCharge)
|
.buildEnergetic(consumer)
|
||||||
.addUpgradeOps(UpgradeRecipe.CopyEnchantments)
|
|
||||||
.build(consumer)
|
|
||||||
|
|
||||||
MatteryRecipe(MItems.TRITANIUM_SWORD, category = RecipeCategory.COMBAT)
|
MatteryRecipe(MItems.TRITANIUM_SWORD, category = RecipeCategory.COMBAT)
|
||||||
.rowB(MItemTags.TRITANIUM_INGOTS)
|
.rowB(MItemTags.TRITANIUM_INGOTS)
|
||||||
|
Loading…
Reference in New Issue
Block a user