Skip to content

Feature/full mmdlib port - #4

Merged
dshadowwolf merged 8 commits into
master-1.21.1-neofrom
feature/full-mmdlib-port
Nov 19, 2026
Merged

dshadowwolf merged 8 commits into
master-1.21.1-neofrom
feature/full-mmdlib-port

Conversation

@dshadowwolf

Copy link
Copy Markdown
Collaborator

No description provided.

dshadowwolf and others added 8 commits November 19, 2026 08:43
Require MMDLib 2.0.3, whose composable processors, entity factories and
legacy save migration let the remaining Java machines become XML machines.

- Add ElectricMachineEntity, the block entity of every EA3 XML machine. New
  machines read redstone on every face, so a signal stops them as in 3.0, and
  3.0 saves load their "Energy" key and that redstone behaviour.
- The Electric Arc Furnace and Electric Rock Crusher are XML machines with one
  recipe processor per lane. ElectricSmeltingRecipes (the oven's generator,
  now with a products option) and ElectricCrushingRecipes copy smelting and
  MMDLib crushing recipes at a fixed time and FE per tick.
- MMDLib 2.0.3 lists XML machines in the mod's tab itself, so EA3 no longer
  adds them by hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PumpProcessor, a stored custom processor, keeps the pump's work: extending
the pipe, pumping a bucket per interval and treating large tagged bodies as
infinite. Its tank is a comparator source and its status and depth show as a
screen label from processor state. A Fluid Output Pump moves the tank's
contents, as for the still.

The pipe now retracts itself once the block above is neither the pump nor
more pipe, since an XML machine block has no removal hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- GeneratorProcessor adds each tick's output to the buffer, keeping
  fractions of an FE, and pushes the buffer into neighbours. SolarProcessor,
  HydroProcessor and SteamProcessor supply the output; each generator's
  output or fill is a comparator source.
- BatteryArrayProcessor supplies the array's energy store, backed by the
  batteries' own charge, admits only items with an energy capability and
  discharges to loads at the end of the level tick, as before.
- The electric network recognises a battery array by position, since the
  XML machine's energy capability is MMDLib's view rather than a marker type.
- HydroGeneratorEntity keeps the turbine's client-side spin for its renderer.
- Simple processor variables are client-synced; the pump's per-tick
  cooldown is now server-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LaserTurretProcessor targets, charges and fires as before; its Evil
subclass is the hidden variant, whose XML extends the normal turret.
Placement records the owner and team through MMDLib's placement hook, and
3.0 and 3.1 saves carry their top-level Owner and Team into the
processor's state. LaserTurretEntity keeps the head's client-side aim for
the renderer and drops the target while redstone holds the turret. The
turret's lock and charge are its comparator source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The drill faces all six ways through MMDLib's facing and placement hook,
facing into the block it was placed against. DrillProcessor targets, mines,
exports one item behind and burns what is in its beam; DrillEntity drops
the target while redstone holds the drill and makes the moves along
scaffold after the tick. The beam length is synced processor state for the
renderer, and the model is a casing with on/off end faces as parts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ated base

MMDLib generates block/electric_drill_base for a machine with model parts;
the authored model of that name hid it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GrowthChamberProcessor grows the three lanes, admits only seeds and soils
some growing recipe uses, and pushes harvests into neighbours other than
chambers. GreenhouseControllerProcessor makes greenhouse power, shares it
across the touching cluster and is the comparator source; it admits only
fertilizers. The entities keep the lane state, held harvests and pools
under 3.0's keys, so older chambers keep their growth, and the Control
Unit takes in fertilizer each tick even under redstone, as before.

ItemPush moves items from a machine's group into a neighbour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Docs describe every machine as an MMDLib XML machine (the fabricator
  stays Java on BaseMachine), what each keeps from 3.0 and 3.1 saves, the
  shared upgrades, and the MMDLib limits met on the way.
- Test that new machines and 3.0 saves stop on redstone and that a saved
  redstone setting is kept.
- The pump's powered front uses its "on" texture, as before.
- Add the turret comparator's language keys; drop the ones only the old
  screens used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dshadowwolf
dshadowwolf merged commit 7d75fc5 into master-1.21.1-neo Nov 19, 2026
2 checks passed
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