Skip to content

Commit

Permalink
feat: add Tubular Flesh block
Browse files Browse the repository at this point in the history
  • Loading branch information
Elenterius committed Aug 11, 2023
1 parent 1c9f8ba commit 86bf486
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ private void addBlockTranslations() {
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.TUBULAR_FLESH_BLOCK, "Tubular Flesh Block", "Fake flesh pipes for everyone.");

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 @@ -143,6 +143,7 @@ protected void addTables() {
dropSelf(ModBlocks.FIBROUS_FLESH.get());
dropSelf(ModBlocks.CHISELED_FLESH.get());
dropSelf(ModBlocks.ORNATE_FLESH.get());
dropSelf(ModBlocks.TUBULAR_FLESH_BLOCK.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 @@ -76,6 +76,7 @@ protected void registerStatesAndModels() {
simpleBlockWithItem(ModBlocks.FIBROUS_FLESH);
simpleBlockWithItem(ModBlocks.CHISELED_FLESH);
axisBlockWithItem(ModBlocks.ORNATE_FLESH);
axisBlockWithItem(ModBlocks.TUBULAR_FLESH_BLOCK);

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 @@ -882,6 +882,13 @@ private void registerBioForgeRecipes(Consumer<FinishedRecipe> consumer) {
.setCategory(ModBioForgeTabs.BLOCKS)
.unlockedBy(ModItems.BONE_FRAGMENTS.get()).save(consumer);

BioForgeRecipeBuilder.create(ModItems.TUBULAR_FLESH_BLOCK.get())
.addIngredient(ModItems.FLESH_BITS.get(), 1)
.addIngredient(ModItems.ELASTIC_FIBERS.get(), 2)
.addIngredient(ModItems.BONE_FRAGMENTS.get(), 1)
.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 @@ -92,6 +92,7 @@ public final class ModBlocks {
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<RotatedPillarBlock> TUBULAR_FLESH_BLOCK = register("tubular_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 @@ -139,6 +139,7 @@ public final class ModItems {
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<ObfuscatedTooltipBlockItem> TUBULAR_FLESH_BLOCK = registerBlockItem(ModBlocks.TUBULAR_FLESH_BLOCK, 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 86bf486

Please sign in to comment.