Unrefined floor tiles and general floor tiles recipes
This commit is contained in:
parent
b7a6571aa4
commit
d726db119b
@ -8,6 +8,7 @@ private fun decoratives(provider: MatteryLanguageProvider) {
|
||||
|
||||
provider.englishColors.add(MRegistry.TRITANIUM_BLOCK, "%s Tritanium Block")
|
||||
provider.englishColors.add(MRegistry.FLOOR_TILES, "%s Floor Tiles")
|
||||
provider.englishColors.add(MRegistry.UNREFINED_FLOOR_TILES, "Unrefined %s Floor Tiles")
|
||||
|
||||
provider.englishColors.add(MRegistry.INDUSTRIAL_GLASS, "%s Stained Industrial Glass")
|
||||
provider.englishColors.add(MRegistry.INDUSTRIAL_GLASS_PANE, "%s Stained Industrial Glass Pane")
|
||||
|
@ -3,9 +3,12 @@ package ru.dbotthepony.mc.otm.datagen.recipes
|
||||
import net.minecraft.data.recipes.FinishedRecipe
|
||||
import net.minecraft.data.recipes.ShapedRecipeBuilder
|
||||
import net.minecraft.data.recipes.ShapelessRecipeBuilder
|
||||
import net.minecraft.data.recipes.SimpleCookingRecipeBuilder
|
||||
import net.minecraft.resources.ResourceLocation
|
||||
import net.minecraft.world.item.DyeColor
|
||||
import net.minecraft.world.item.Items
|
||||
import net.minecraft.world.item.crafting.Ingredient
|
||||
import net.minecraft.world.level.block.Blocks
|
||||
import net.minecraftforge.common.Tags
|
||||
import net.minecraftforge.common.Tags.Items.COBBLESTONE
|
||||
import ru.dbotthepony.mc.otm.OverdriveThatMatters
|
||||
@ -305,4 +308,23 @@ fun addCraftingTableRecipes(consumer: Consumer<FinishedRecipe>) {
|
||||
.row(MItemTags.PLATE_TRITANIUM, Tags.Items.ENDER_PEARLS, MItemTags.PLATE_TRITANIUM)
|
||||
.rowAC(Tags.Items.GEMS_DIAMOND, Tags.Items.GEMS_DIAMOND)
|
||||
.build(consumer)
|
||||
|
||||
// Напольная плитка
|
||||
for ((color, unrefinedItem) in MRegistry.UNREFINED_FLOOR_TILES.mappedColoredItems) {
|
||||
MatteryRecipe(unrefinedItem, 24)
|
||||
.row(Items.CLAY, Items.SAND, Items.CLAY)
|
||||
.row(Items.SAND, color.tag, Items.SAND)
|
||||
.row(Items.CLAY, Items.SAND, Items.CLAY)
|
||||
.unlockedBy(Items.CLAY)
|
||||
.build(consumer)
|
||||
}
|
||||
|
||||
for ((color, refinedItem) in MRegistry.FLOOR_TILES.mappedColoredItems) {
|
||||
SimpleCookingRecipeBuilder.smelting(
|
||||
Ingredient.of(MRegistry.UNREFINED_FLOOR_TILES.mappedColoredItems[color]!!),
|
||||
refinedItem,
|
||||
0.15f,
|
||||
200
|
||||
).unlockedBy("has_unrefined_block", has(MRegistry.UNREFINED_FLOOR_TILES.mappedColoredItems[color]!!)).save(consumer)
|
||||
}
|
||||
}
|
||||
|
@ -119,6 +119,7 @@ object MBlocks {
|
||||
|
||||
MRegistry.INDUSTRIAL_GLASS.registerBlocks(registry)
|
||||
MRegistry.INDUSTRIAL_GLASS_PANE.registerBlocks(registry)
|
||||
MRegistry.UNREFINED_FLOOR_TILES.registerBlocks(registry)
|
||||
MRegistry.FLOOR_TILES.registerBlocks(registry)
|
||||
MRegistry.VENT.registerBlocks(registry)
|
||||
MRegistry.VENT_ALTERNATIVE.registerBlocks(registry)
|
||||
|
@ -253,6 +253,7 @@ object MItems {
|
||||
init {
|
||||
MRegistry.INDUSTRIAL_GLASS.registerItems(registry)
|
||||
MRegistry.INDUSTRIAL_GLASS_PANE.registerItems(registry)
|
||||
MRegistry.UNREFINED_FLOOR_TILES.registerItems(registry)
|
||||
MRegistry.FLOOR_TILES.registerItems(registry)
|
||||
MRegistry.VENT.registerItems(registry)
|
||||
MRegistry.VENT_ALTERNATIVE.registerItems(registry)
|
||||
|
@ -50,6 +50,7 @@ object MNames {
|
||||
const val CARBON_FIBRE_BLOCK = "carbon_fibre_block"
|
||||
|
||||
const val FLOOR_TILES = "floor_tiles"
|
||||
const val UNREFINED_FLOOR_TILES = "unrefined_floor_tiles"
|
||||
const val VENT = "vent"
|
||||
const val VENT_ALTERNATIVE = "vent_alternative"
|
||||
|
||||
|
@ -129,7 +129,13 @@ object MRegistry {
|
||||
BlockBehaviour.Properties.of(Material.STONE, it.materialColor)
|
||||
.sound(SoundType.STONE)
|
||||
.requiresCorrectToolForDrops()
|
||||
.strength(3f)
|
||||
.strength(2f, 1.5f)
|
||||
})
|
||||
|
||||
val UNREFINED_FLOOR_TILES = ColoredDecorativeBlock.simple(MNames.UNREFINED_FLOOR_TILES, {
|
||||
BlockBehaviour.Properties.of(Material.CLAY, it.materialColor)
|
||||
.sound(SoundType.GRAVEL)
|
||||
.strength(1f, 1f)
|
||||
})
|
||||
|
||||
val INDUSTRIAL_GLASS = DecorativeBlock(MNames.INDUSTRIAL_GLASS, { color ->
|
||||
|
Loading…
Reference in New Issue
Block a user