Skip to content

Commit

Permalink
feat(flesh-mound): add bloomlight block as flesh type replacement of …
Browse files Browse the repository at this point in the history
…shroomlight in mounds
  • Loading branch information
Elenterius committed Nov 29, 2023
1 parent 593f9c9 commit bdfa12f
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ private void addBlockTranslations() {
addBlock(ModBlocks.YELLOW_BIO_LANTERN, "Yellow Bio-Lantern", "A bioluminescent light source that is energy-efficient and environmentally friendly.");
addBlock(ModBlocks.BLUE_BIO_LANTERN, "Blue Bio-Lantern", "A bioluminescent light source. This one is blue!");
addBlock(ModBlocks.PRIMORDIAL_BIO_LANTERN, "Primordial Bio-Lantern", "A primal light source. This one is magenta!");
addBlock(ModBlocks.BLOOMLIGHT, "Bloomlight", "A malignant light source. This one is magenta as well!");
addBlock(ModBlocks.TENDON_CHAIN, "Tendon Chain", "A chain made of tendons.");
addBlock(ModBlocks.VIAL_HOLDER, "Vial Holder", "Display and organize your serums.");
addBlock(ModBlocks.IMPERMEABLE_MEMBRANE, "Impermeable Membrane", "Gelatinous-like membrane reinforced with elastic fibers.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ protected void addTables() {
dropSelf(ModBlocks.FLESH_LADDER.get());
dropSelf(ModBlocks.YELLOW_BIO_LANTERN.get());
dropSelf(ModBlocks.PRIMORDIAL_BIO_LANTERN.get());
dropSelf(ModBlocks.BLOOMLIGHT.get());
dropSelf(ModBlocks.BLUE_BIO_LANTERN.get());
dropSelf(ModBlocks.TENDON_CHAIN.get());
dropSelf(ModBlocks.VIAL_HOLDER.get());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ protected void registerStatesAndModels() {
bioLantern(ModBlocks.YELLOW_BIO_LANTERN);
bioLantern(ModBlocks.BLUE_BIO_LANTERN);
bioLantern(ModBlocks.PRIMORDIAL_BIO_LANTERN);
simpleBlockWithItem(ModBlocks.BLOOMLIGHT);
tendonChain(ModBlocks.TENDON_CHAIN);
vialHolder(ModBlocks.VIAL_HOLDER);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,13 @@ private void registerDecomposingRecipes(Consumer<FinishedRecipe> consumer) {
DecomposerRecipeBuilder.create().setIngredient(ModItems.TOXIN_GLAND).addOutput(ModItems.TOXIN_EXTRACT.get(), 2, 5).addOutput(ModItems.FLESH_BITS.get(), 2, 3).addOutput(ModItems.ELASTIC_FIBERS.get(), 1, 3).unlockedBy(ModItems.TOXIN_GLAND).save(consumer);
DecomposerRecipeBuilder.create().setIngredient(ModItems.VOLATILE_GLAND).addOutput(ModItems.VOLATILE_FLUID.get(), 2, 5).addOutput(ModItems.FLESH_BITS.get(), 2, 3).addOutput(ModItems.ELASTIC_FIBERS.get(), 1, 3).unlockedBy(ModItems.VOLATILE_GLAND).save(consumer);

DecomposerRecipeBuilder.create().setIngredient(ModItems.BLOOMLIGHT)
.addOutput(ModItems.BIO_LUMENS.get(), 5, 9)
.addOutput(ModItems.ORGANIC_MATTER.get(), 2, 3)
.addOutput(ModItems.EXOTIC_DUST.get(), 0, 3)
.addOutput(ModItems.BILE.get(), 1, 2)
.unlockedBy(Items.SHROOMLIGHT).save(consumer);

//Special
DecomposerRecipeBuilder.create().setIngredient(ModItems.LIVING_FLESH)
.addOutput(ModItems.FLESH_BITS.get(), 3, 6)
Expand Down
2 changes: 2 additions & 0 deletions src/generated/resources/assets/biomancy/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@
"block.biomancy.bio_lantern_blue.tooltip": "A bioluminescent light source. This one is blue!",
"block.biomancy.primordial_bio_lantern": "Primordial Bio-Lantern",
"block.biomancy.primordial_bio_lantern.tooltip": "A primal light source. This one is magenta!",
"block.biomancy.bloomlight": "Bloomlight",
"block.biomancy.bloomlight.tooltip": "A malignant light source. This one is magenta as well!",
"block.biomancy.tendon_chain": "Tendon Chain",
"block.biomancy.tendon_chain.tooltip": "A chain made of tendons.",
"block.biomancy.vial_holder": "Vial Holder",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ else if (PrimordialEcosystem.FULL_FLESH_BLOCKS.contains(stateRelative.getBlock()
BlockState stateBelow2 = level.getBlockState(posBelow2);

if (axisDirection == Direction.UP && PrimordialEcosystem.FULL_FLESH_BLOCKS.contains(stateBelow2.getBlock()) && LevelUtil.getMaxBrightness(level, pos) < 5) {
return level.setBlock(posRelative, Blocks.SHROOMLIGHT.defaultBlockState(), Block.UPDATE_CLIENTS);
return level.setBlock(posRelative, ModBlocks.BLOOMLIGHT.get().defaultBlockState(), Block.UPDATE_CLIENTS);
}

posRelative = posBelow2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public final class ModBlocks {
public static final RegistryObject<FleshLanternBlock> YELLOW_BIO_LANTERN = register("bio_lantern_yellow", properties -> new FleshLanternBlock(properties.sound(SoundType.SHROOMLIGHT).lightLevel(x -> 15).noOcclusion()));
public static final RegistryObject<FleshLanternBlock> BLUE_BIO_LANTERN = register("bio_lantern_blue", properties -> new FleshLanternBlock(properties.sound(SoundType.SHROOMLIGHT).lightLevel(x -> 15).noOcclusion()));
public static final RegistryObject<FleshLanternBlock> PRIMORDIAL_BIO_LANTERN = register("primordial_bio_lantern", properties -> new FleshLanternBlock(properties.sound(SoundType.SHROOMLIGHT).lightLevel(x -> 15).noOcclusion()));
public static final RegistryObject<Block> BLOOMLIGHT = register("bloomlight", properties -> new Block(properties.sound(SoundType.SHROOMLIGHT).lightLevel(x -> 15)));
public static final RegistryObject<FleshChainBlock> TENDON_CHAIN = register("tendon_chain", properties -> new FleshChainBlock(properties.noOcclusion()));
public static final RegistryObject<VialHolderBlock> VIAL_HOLDER = register("vial_holder", VialHolderBlock::new);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ public final class ModItems {
public static final RegistryObject<SimpleBlockItem> YELLOW_BIO_LANTERN = registerSimpleBlockItem(ModBlocks.YELLOW_BIO_LANTERN);
public static final RegistryObject<SimpleBlockItem> BLUE_BIO_LANTERN = registerSimpleBlockItem(ModBlocks.BLUE_BIO_LANTERN);
public static final RegistryObject<ObfuscatedTooltipBlockItem> PRIMORDIAL_BIO_LANTERN = registerBlockItem(ModBlocks.PRIMORDIAL_BIO_LANTERN, ObfuscatedTooltipBlockItem::new);
public static final RegistryObject<ObfuscatedTooltipBlockItem> BLOOMLIGHT = registerBlockItem(ModBlocks.BLOOMLIGHT, ObfuscatedTooltipBlockItem::new);
public static final RegistryObject<FleshChainBlockItem> TENDON_CHAIN = registerBlockItem(ModBlocks.TENDON_CHAIN, FleshChainBlockItem::new);
public static final RegistryObject<SimpleBlockItem> VIAL_HOLDER = registerSimpleBlockItem(ModBlocks.VIAL_HOLDER);

Expand Down
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 bdfa12f

Please sign in to comment.