Remove direct coloring of cargo crates
This commit is contained in:
parent
c4c36fa55b
commit
82c9384087
@ -19,17 +19,13 @@ import ru.dbotthepony.mc.otm.datagen.modLocation
|
||||
import java.util.function.Consumer
|
||||
|
||||
fun addCraftingTableRecipes(consumer: Consumer<FinishedRecipe>) {
|
||||
for ((dye, crate) in MRegistry.CARGO_CRATES.blocks) {
|
||||
ShapedRecipeBuilder(crate, 1)
|
||||
.define('P', MItemTags.TRITANIUM_PLATES)
|
||||
.define('C', Tags.Items.CHESTS)
|
||||
.define('D', dye.tag)
|
||||
.pattern(" D ").pattern("PCP")
|
||||
// .unlockedBy("has_dye", has(dye.tag))
|
||||
.unlockedBy("has_tritanium_plate", has(MItemTags.TRITANIUM_PLATES))
|
||||
.unlockedBy("has_chest", has(Tags.Items.CHESTS))
|
||||
.save(consumer)
|
||||
MatteryRecipe(MRegistry.CARGO_CRATES.item)
|
||||
.row(MItemTags.TRITANIUM_PLATES, Tags.Items.CHESTS, MItemTags.TRITANIUM_PLATES)
|
||||
.unlockedBy(MItemTags.TRITANIUM_PLATES)
|
||||
.unlockedBy(Tags.Items.CHESTS)
|
||||
.build(consumer)
|
||||
|
||||
for ((dye, crate) in MRegistry.CARGO_CRATES.blocks) {
|
||||
ShapelessRecipeBuilder(crate, 1)
|
||||
.requires(Ingredient.of(MRegistry.CARGO_CRATES.allItems.entries.stream().filter { it.key != dye }.map { ItemStack(it.value) }))
|
||||
.requires(dye.tag)
|
||||
@ -47,14 +43,6 @@ fun addCraftingTableRecipes(consumer: Consumer<FinishedRecipe>) {
|
||||
.unlockedBy(MItemTags.TRITANIUM_INGOTS_STORAGE)
|
||||
.save(consumer, modLocation("tritanium_ingot_from_storage"))
|
||||
|
||||
ShapedRecipeBuilder(MRegistry.CARGO_CRATES.item, 1)
|
||||
.define('P', MItemTags.TRITANIUM_PLATES)
|
||||
.define('C', Tags.Items.CHESTS)
|
||||
.pattern("PCP")
|
||||
.unlockedBy("has_tritanium_plate", has(MItemTags.TRITANIUM_PLATES))
|
||||
.unlockedBy("has_chest", has(Tags.Items.CHESTS))
|
||||
.save(consumer)
|
||||
|
||||
MatteryRecipe(MBlocks.TRITANIUM_DOOR, 3)
|
||||
.rowAB(MItemTags.TRITANIUM_PLATES, MItemTags.TRITANIUM_PLATES)
|
||||
.rowAB(MItemTags.TRITANIUM_PLATES, MItemTags.TRITANIUM_PLATES)
|
||||
|
Loading…
Reference in New Issue
Block a user