Add circuit plating recipe to datagen

This commit is contained in:
DBotThePony 2023-08-19 00:18:48 +07:00
parent f56884705a
commit a0b0580bfa
Signed by: DBot
GPG Key ID: DCC23B5715498507
2 changed files with 3 additions and 10 deletions

View File

@ -3,7 +3,9 @@ package ru.dbotthepony.mc.otm.datagen.recipes
import net.minecraft.util.valueproviders.ConstantFloat
import net.minecraft.world.item.Items
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.MItems
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)
@ -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("circuit_plating", result = Ingredient.of(MItems.CIRCUIT_PLATING), ingredient = Ingredient.of(Tags.Items.SAND), workTicks = 120, experience = ConstantFloat.of(0.2f))
}

View File

@ -1,10 +0,0 @@
{
"type": "overdrive_that_matters:plate_press",
"input": {
"tag": "forge:sand"
},
"result": {
"item": "overdrive_that_matters:circuit_plating"
},
"work_time": 120
}