Skip to content

Commit

Permalink
feat: add Ornate Flesh block
Browse files Browse the repository at this point in the history
  • Loading branch information
Elenterius committed Aug 11, 2023
1 parent 963e93e commit 1c9f8ba
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ private void addBlockTranslations() {
addBlock(ModBlocks.FLESH_PILLAR, "Flesh Pillar", "A Pillar made of bones and flesh.");
addBlock(ModBlocks.FIBROUS_FLESH, "Fibrous Flesh Block", "A unusual block flesh made from the innards of someone.");
addBlock(ModBlocks.CHISELED_FLESH, "Chiseled Flesh Block", "A regal block of flesh... I'm most delighted");
addBlock(ModBlocks.ORNATE_FLESH, "Ornamental Flesh Block", "A set of regal teeth and flesh.");

addBlock(ModBlocks.FLESH_FENCE, "Flesh Fence", "Fence made of bones and flesh...");
addBlock(ModBlocks.FLESH_FENCE_GATE, "Flesh Fence Gate", "Fence gate made of bones and flesh...");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ protected void addTables() {
dropSelf(ModBlocks.FLESH_PILLAR.get());
dropSelf(ModBlocks.FIBROUS_FLESH.get());
dropSelf(ModBlocks.CHISELED_FLESH.get());
dropSelf(ModBlocks.ORNATE_FLESH.get());

dropSelf(ModBlocks.PRIMAL_FLESH.get());
add(ModBlocks.PRIMAL_FLESH_SLAB.get(), ModBlockLoot::createDirectionalSlabTable);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ protected void registerStatesAndModels() {
axisBlockWithItem(ModBlocks.FLESH_PILLAR);
simpleBlockWithItem(ModBlocks.FIBROUS_FLESH);
simpleBlockWithItem(ModBlocks.CHISELED_FLESH);
axisBlockWithItem(ModBlocks.ORNATE_FLESH);

simpleBlockWithItem(ModBlocks.PRIMAL_FLESH);
directionalSlabBlockWithItem(ModBlocks.PRIMAL_FLESH_SLAB, ModBlocks.PRIMAL_FLESH);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,12 @@ private void registerBioForgeRecipes(Consumer<FinishedRecipe> consumer) {
.setCategory(ModBioForgeTabs.BLOCKS)
.unlockedBy(ModItems.BONE_FRAGMENTS.get()).save(consumer);

BioForgeRecipeBuilder.create(ModItems.ORNATE_FLESH_BLOCK.get())
.addIngredient(ModItems.FLESH_BITS.get(), 2)
.addIngredient(ModItems.BONE_FRAGMENTS.get(), 4)
.setCategory(ModBioForgeTabs.BLOCKS)
.unlockedBy(ModItems.BONE_FRAGMENTS.get()).save(consumer);

BioForgeRecipeBuilder.create(ModItems.FLESH_PILLAR.get())
.addIngredient(ModItems.FLESH_BITS.get(), 2)
.addIngredient(ModItems.BONE_FRAGMENTS.get(), 2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public final class ModBlocks {
public static final RegistryObject<RotatedPillarBlock> FLESH_PILLAR = register("flesh_pillar", RotatedPillarBlock::new);
public static final RegistryObject<FleshBlock> FIBROUS_FLESH = register("fibrous_flesh", FleshBlock::new);
public static final RegistryObject<FleshBlock> CHISELED_FLESH = register("chiseled_flesh", FleshBlock::new);
public static final RegistryObject<RotatedPillarBlock> ORNATE_FLESH = register("ornate_flesh", RotatedPillarBlock::new);

public static final RegistryObject<FleshBlock> PRIMAL_FLESH = register("primal_flesh", FleshBlock::new);
public static final RegistryObject<StairBlock> PRIMAL_FLESH_STAIRS = registerStairs(PRIMAL_FLESH, StairBlock::new);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public final class ModItems {
public static final RegistryObject<ObfuscatedTooltipBlockItem> FLESH_PILLAR = registerBlockItem(ModBlocks.FLESH_PILLAR, ObfuscatedTooltipBlockItem::new);
public static final RegistryObject<ObfuscatedTooltipBlockItem> FIBROUS_FLESH_BLOCK = registerBlockItem(ModBlocks.FIBROUS_FLESH, ObfuscatedTooltipBlockItem::new);
public static final RegistryObject<ObfuscatedTooltipBlockItem> CHISELED_FLESH_BLOCK = registerBlockItem(ModBlocks.CHISELED_FLESH, ObfuscatedTooltipBlockItem::new);
public static final RegistryObject<ObfuscatedTooltipBlockItem> ORNATE_FLESH_BLOCK = registerBlockItem(ModBlocks.ORNATE_FLESH, ObfuscatedTooltipBlockItem::new);

public static final RegistryObject<SimpleBlockItem> PRIMAL_FLESH_BLOCK = registerSimpleBlockItem(ModBlocks.PRIMAL_FLESH);
public static final RegistryObject<SimpleBlockItem> PRIMAL_FLESH_SLAB = registerSimpleBlockItem(ModBlocks.PRIMAL_FLESH_SLAB);
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1c9f8ba

Please sign in to comment.