Add missing "enchantments" upgrade ops to energy sword
This commit is contained in:
parent
d8e52f11a9
commit
78ae793ade
@ -199,11 +199,6 @@ 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")
|
||||
|
@ -3,6 +3,7 @@ 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
|
||||
|
||||
@ -12,7 +13,9 @@ 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)
|
||||
.buildEnergetic(consumer)
|
||||
.addUpgradeOps(UpgradeRecipe.CopyEnergyCharge)
|
||||
.addUpgradeOps(UpgradeRecipe.CopyEnchantments)
|
||||
.build(consumer)
|
||||
|
||||
MatteryRecipe(MItems.TRITANIUM_SWORD, category = RecipeCategory.COMBAT)
|
||||
.rowB(MItemTags.TRITANIUM_INGOTS)
|
||||
|
Loading…
Reference in New Issue
Block a user