Add circuit plating recipe to datagen
This commit is contained in:
parent
f56884705a
commit
a0b0580bfa
@ -3,7 +3,9 @@ package ru.dbotthepony.mc.otm.datagen.recipes
|
|||||||
import net.minecraft.util.valueproviders.ConstantFloat
|
import net.minecraft.util.valueproviders.ConstantFloat
|
||||||
import net.minecraft.world.item.Items
|
import net.minecraft.world.item.Items
|
||||||
import net.minecraft.world.item.crafting.Ingredient
|
import net.minecraft.world.item.crafting.Ingredient
|
||||||
|
import net.minecraftforge.common.Tags
|
||||||
import ru.dbotthepony.mc.otm.registry.MItemTags
|
import ru.dbotthepony.mc.otm.registry.MItemTags
|
||||||
|
import ru.dbotthepony.mc.otm.registry.MItems
|
||||||
|
|
||||||
fun addPlatePressRecipes(provider: MatteryRecipeProvider) {
|
fun addPlatePressRecipes(provider: MatteryRecipeProvider) {
|
||||||
val baselineMetals = arrayOf("iron" to 0.2f, "silver" to 0.3f, "bronze" to 0.3f, "lead" to 0.3f, "constantan" to 0.4f, "brass" to 0.3f)
|
val baselineMetals = arrayOf("iron" to 0.2f, "silver" to 0.3f, "bronze" to 0.3f, "lead" to 0.3f, "constantan" to 0.4f, "brass" to 0.3f)
|
||||||
@ -23,4 +25,5 @@ fun addPlatePressRecipes(provider: MatteryRecipeProvider) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
provider.plate("carbon", result = Ingredient.of(MItemTags.CARBON_PLATES), ingredient = Ingredient.of(Items.COAL), workTicks = 140, experience = ConstantFloat.of(0.3f))
|
provider.plate("carbon", result = Ingredient.of(MItemTags.CARBON_PLATES), ingredient = Ingredient.of(Items.COAL), workTicks = 140, experience = ConstantFloat.of(0.3f))
|
||||||
|
provider.plate("circuit_plating", result = Ingredient.of(MItems.CIRCUIT_PLATING), ingredient = Ingredient.of(Tags.Items.SAND), workTicks = 120, experience = ConstantFloat.of(0.2f))
|
||||||
}
|
}
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"type": "overdrive_that_matters:plate_press",
|
|
||||||
"input": {
|
|
||||||
"tag": "forge:sand"
|
|
||||||
},
|
|
||||||
"result": {
|
|
||||||
"item": "overdrive_that_matters:circuit_plating"
|
|
||||||
},
|
|
||||||
"work_time": 120
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user