Skip to content

Add generators and merger blocks#16

Merged
CoderJoeW merged 4 commits intomainfrom
feature/generators-and-mergers
Mar 14, 2026
Merged

Add generators and merger blocks#16
CoderJoeW merged 4 commits intomainfrom
feature/generators-and-mergers

Conversation

@CoderJoeW
Copy link
Copy Markdown
Owner

Summary

  • Cobblestone Generator: Consumes 2 power + water + lava to produce cobblestone. Atomically checks both fluids before consuming either.
  • Obsidian Generator: Consumes 100 power + water + lava to produce obsidian. Power accumulates over multiple ticks via maxStorage.
  • Power Merger: Pulls power from all non-facing adjacent blocks, stores it for downstream blocks to pull in facing direction.
  • Fluid Merger: Same concept for fluids — pulls from all non-facing sides, outputs in facing direction. All existing fluid consumers (FluidPipe, FluidContainer, LavaGenerator, CobblestoneGenerator, ObsidianGenerator) updated to recognize FluidMerger as a valid source.

Cobblestone generator consumes 2 power + water + lava to produce cobblestone.
Obsidian generator consumes 100 power + water + lava to produce obsidian.
Both atomically check that water and lava are available before consuming either.
Pulls power from all non-facing adjacent blocks and stores it for
downstream blocks to pull from in the facing direction.
Pulls fluid from all non-facing adjacent fluid blocks and holds it for
downstream blocks to pull from in the facing direction. Updated FluidPipe,
FluidContainer, LavaGenerator, CobblestoneGenerator, and ObsidianGenerator
to recognize FluidMerger as a valid fluid source.
Register all four new blocks in Atlas, dialogs, and test factories.
Add YAML block definitions, recipes, and update test counts.
@CoderJoeW CoderJoeW merged commit 6775198 into main Mar 14, 2026
1 check passed
@CoderJoeW CoderJoeW deleted the feature/generators-and-mergers branch March 15, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant