Added Sandstone Path, Chiseled Brick Path, Concrete Path, and Chiseled Gray Terracotta Path

This commit is contained in:
2026-06-07 22:17:16 -04:00
parent 4f5aabf271
commit 51191fa245
12 changed files with 37 additions and 13 deletions
@@ -31,6 +31,15 @@ public class ModBlocks {
public static final RegistrySupplier<Block> BENCH = registerBlock("bench",
() -> new BenchBlock(BlockBehaviour.Properties.of().noOcclusion()));
public static final RegistrySupplier<Block> SANDSTONE_PATH = registerBlock("sandstone_path",
() -> new Block(BlockBehaviour.Properties.of().noOcclusion()));
public static final RegistrySupplier<Block> CHISELED_BRICK_PATH = registerBlock("chiseled_brick_path",
() -> new Block(BlockBehaviour.Properties.of().noOcclusion()));
public static final RegistrySupplier<Block> CONCRETE_PATH = registerBlock("concrete_path",
() -> new Block(BlockBehaviour.Properties.of().noOcclusion()));
public static final RegistrySupplier<Block> LIGHT_GRAY_TERRACOTTA_PATH = registerBlock("light_gray_terracotta_path",
() -> new Block(BlockBehaviour.Properties.of().noOcclusion()));
public static final RegistrySupplier<Block> CHARRED_TERRACOTTA = registerBlock("charred_terracotta",
() -> new Block(BlockBehaviour.Properties.of().noOcclusion()));
@@ -2,17 +2,9 @@ package net.cmr.jurassicrevived.datagen;
import net.cmr.jurassicrevived.block.ModBlocks;
import net.cmr.jurassicrevived.item.ModItems;
import net.minecraft.core.HolderLookup;
import net.minecraft.core.registries.Registries;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.enchantment.Enchantment;
import net.minecraft.world.item.enchantment.Enchantments;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.storage.loot.LootTable;
import net.minecraft.world.level.storage.loot.entries.LootItem;
import net.minecraft.world.level.storage.loot.functions.ApplyBonusCount;
import net.minecraft.world.level.storage.loot.functions.SetItemCountFunction;
import net.minecraft.world.level.storage.loot.providers.number.UniformGenerator;
public class ModBlockLootTableProvider {
@@ -62,6 +54,10 @@ public class ModBlockLootTableProvider {
helper.dropSelf(ModBlocks.ITEM_PIPE.get());
helper.dropSelf(ModBlocks.FLUID_PIPE.get());
helper.dropSelf(ModBlocks.POWER_PIPE.get());
helper.dropSelf(ModBlocks.SANDSTONE_PATH.get());
helper.dropSelf(ModBlocks.CHISELED_BRICK_PATH.get());
helper.dropSelf(ModBlocks.CONCRETE_PATH.get());
helper.dropSelf(ModBlocks.LIGHT_GRAY_TERRACOTTA_PATH.get());
helper.add(ModBlocks.GYPSUM_STONE.get(),
helper.createMultipleOreDrops(ModBlocks.GYPSUM_STONE.get(), ModBlocks.GYPSUM_COBBLESTONE.get().asItem(),1, 1));
@@ -4,13 +4,9 @@ import net.cmr.jurassicrevived.Constants;
import net.cmr.jurassicrevived.block.ModBlocks;
import net.cmr.jurassicrevived.block.custom.FencePoleBlock;
import net.cmr.jurassicrevived.block.custom.FenceWireBlock;
import net.cmr.jurassicrevived.block.custom.PipeBlock;
import net.minecraft.core.Direction;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.block.*;
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
import net.minecraft.world.level.block.state.properties.BooleanProperty;
import net.minecraft.world.level.block.state.properties.EnumProperty;
import java.util.List;
@@ -156,6 +152,10 @@ public class ModBlockStateProvider {
helper.horizontalFacingWithItem(ModBlocks.TRASH_CAN.get());
helper.horizontalFacingWithItem(ModBlocks.BENCH.get());
helper.blockWithItem(ModBlocks.CHARRED_TERRACOTTA.get());
helper.blockWithItem(ModBlocks.SANDSTONE_PATH.get());
helper.blockWithItem(ModBlocks.CHISELED_BRICK_PATH.get());
helper.blockWithItem(ModBlocks.CONCRETE_PATH.get());
helper.blockWithItem(ModBlocks.LIGHT_GRAY_TERRACOTTA_PATH.get());
helper.stairsBlock((StairBlock) ModBlocks.CHARRED_TERRACOTTA_STAIRS.get(), modLoc("block/" + ModBlocks.CHARRED_TERRACOTTA.getId().getPath()));
helper.slabBlock((SlabBlock) ModBlocks.CHARRED_TERRACOTTA_SLAB.get(), modLoc("block/" + ModBlocks.CHARRED_TERRACOTTA.getId().getPath()), modLoc("block/" + ModBlocks.CHARRED_TERRACOTTA.getId().getPath()));
@@ -17,6 +17,10 @@ public class ModBlockTagProvider {
ModBlocks.CAT_PLUSHIE.get(),
ModBlocks.TRASH_CAN.get(),
ModBlocks.BENCH.get(),
ModBlocks.SANDSTONE_PATH.get(),
ModBlocks.CHISELED_BRICK_PATH.get(),
ModBlocks.CONCRETE_PATH.get(),
ModBlocks.LIGHT_GRAY_TERRACOTTA_PATH.get(),
ModBlocks.CHARRED_TERRACOTTA.get(),
ModBlocks.CHARRED_TERRACOTTA_STAIRS.get(),
ModBlocks.CHARRED_TERRACOTTA_SLAB.get(),
@@ -93,6 +93,11 @@ public class ModRecipeProvider {
helper.buildShaped(RecipeCategory.MISC, ModBlocks.FENCE_LIGHT.get(), 1, new String[]{"A", "B"}, 'A', Blocks.GLOWSTONE, 'B', Items.IRON_INGOT);
helper.buildShaped(RecipeCategory.MISC, ModBlocks.LIGHT_POST.get(), 1, new String[]{"A", "B"}, 'A', Blocks.GLOWSTONE, 'B', ModBlocks.GYPSUM_STONE.get());
helper.buildShaped(RecipeCategory.MISC, ModBlocks.SANDSTONE_PATH.get(), 4, new String[]{"AA", "AA"}, 'A', Blocks.SANDSTONE);
helper.buildShaped(RecipeCategory.MISC, ModBlocks.CHISELED_BRICK_PATH.get(), 4, new String[]{"AA", "AA"}, 'A', Blocks.BRICKS);
helper.buildShaped(RecipeCategory.MISC, ModBlocks.CONCRETE_PATH.get(), 4, new String[]{"AA", "AA"}, 'A', Blocks.GRAY_CONCRETE);
helper.buildShaped(RecipeCategory.MISC, ModBlocks.LIGHT_GRAY_TERRACOTTA_PATH.get(), 4, new String[]{"AA", "AA"}, 'A', Blocks.LIGHT_GRAY_TERRACOTTA);
helper.buildShaped(RecipeCategory.MISC, ModItems.TEST_TUBE.get(), 3, new String[]{" A", " B ", "B "}, 'A', Items.IRON_INGOT, 'B', Blocks.GLASS);
helper.buildShaped(RecipeCategory.MISC, ModItems.SYRINGE.get(), 3, new String[]{" A", " B ", "C "}, 'A', Items.IRON_INGOT, 'B', Blocks.GLASS, 'C', Items.IRON_NUGGET);
helper.buildShaped(RecipeCategory.MISC, ModItems.CABLE.get(), 4, new String[]{" BA", "BAB", "AB "}, 'A', Items.COPPER_INGOT, 'B', Items.IRON_NUGGET);
@@ -48,6 +48,11 @@ public class ModCreativeTabs {
output.accept(ModBlocks.TRASH_CAN.get());
output.accept(ModBlocks.BENCH.get());
output.accept(ModBlocks.SANDSTONE_PATH.get());
output.accept(ModBlocks.CHISELED_BRICK_PATH.get());
output.accept(ModBlocks.CONCRETE_PATH.get());
output.accept(ModBlocks.LIGHT_GRAY_TERRACOTTA_PATH.get());
output.accept(ModBlocks.CHARRED_TERRACOTTA.get());
output.accept(ModBlocks.CHARRED_TERRACOTTA_STAIRS.get());
output.accept(ModBlocks.CHARRED_TERRACOTTA_SLAB.get());
@@ -202,6 +202,11 @@
"block.jurassicrevived.smooth_gypsum_stone_slab": "Smooth Gypsum Stone Slab",
"block.jurassicrevived.smooth_gypsum_stone_wall": "Smooth Gypsum Stone Wall",
"block.jurassicrevived.sandstone_path": "Sandstone Path",
"block.jurassicrevived.chiseled_brick_path": "Chiseled Brick Path",
"block.jurassicrevived.concrete_path": "Concrete Path",
"block.jurassicrevived.light_gray_terracotta_path": "Light Gray Terracotta Path",
"block.jurassicrevived.reinforced_stone": "Reinforced Stone",
"block.jurassicrevived.reinforced_stone_bricks": "Reinforced Stone Bricks",
"block.jurassicrevived.chiseled_reinforced_stone": "Chiseled Reinforced Stone",
Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 B