Skip to content

Repelling, tractor and energy drain turrets (1.21.11, #324) - #611

Open
Keridos wants to merge 3 commits into
1.21.11from
1.21.11-new-turrets
Open

Keridos wants to merge 3 commits into
1.21.11from
1.21.11-new-turrets

Conversation

@Keridos

@Keridos Keridos commented Nov 22, 2026

Copy link
Copy Markdown
Member

Issue #324 ("New Turrets 4.1") on 1.21.11 (Fabric + NeoForge), on OpenModularCore 2.3.0 (tagged):

  • Repelling Turret (tier 3) pushes, Tractor Turret (tier 3) pulls its target once per shot, at effectStrength blocks per tick (default 0.8): horizontal, with a small lift on a push; a pull stops 1 block from the turret.
  • Energy Drain Turret (tier 5) destroys up to effectStrength energy per shot (default 10000) from a player's armour, then main hand, then offhand; it targets only players who carry such energy, never mobs, and a player holding the ownership wand is fired at but not drained.
  • Config effectStrength in every turret section (and in addon_turrets); the item tooltip and Jade show an "Effect" line; the three turrets turn instantly, have no range falloff and ignore Scatter Shot.
  • Turret API: TurretStats.Builder.effectStrength(…), TurretType.Builder.playersOnly() and skipsTargetsWithoutEnergy() (docs/turret-api.md).
  • Placeholders until the art exists (listed in New Turrets 4.1 #324): the slowing, teleporter and arc turrets' models, copies of their textures, stand-in sounds; stats and recipes are first values (tuning with Recipe Reworks #595, heat with Heat System #590).
  • Lang in all six languages; README, docs/id-mapping.md, changelog; the wiki pages are updated (marked as next release).
  • Game tests (EffectTurretGameTests): push, pull, drain of armour and held items, a player without energy skipped, a mob never targeted, a wand holder spared; the test mod has a TestBattery with energy per loader.

Checked: chiseledBuild on both nodes, with the local core and with the JitPack core (game tests Fabric 125, NeoForge 124, all passed).
Needs the OMLib PR of 1.21.11 first (Energy.itemEnergy); move the omlib pointer to OMLib's merged commit before merging.
Not checked in a game client yet (effects, models, tooltip, Jade).

🤖 Generated with Claude Code

Keridos and others added 3 commits November 27, 2026 00:41
Three effect turrets on OpenModularCore 2.3.0 (local core until the tag):
- Repelling (tier 3) pushes, Tractor (tier 3) pulls its target, once per
  shot, at effectStrength blocks per tick (TurretMath.impulse).
- Energy Drain (tier 5) destroys up to effectStrength RF from a player's
  armour, main hand and offhand (OMLib Energy.itemEnergy); it targets only
  players who carry such energy.
- effectStrength config key per turret, tooltip and Jade line.
- Placeholder models, textures, sounds and recipes (art and sounds listed
  in the issue for a human; recipes to be reworked with #595).
- Game tests with a test battery (Team Reborn Energy compile-only for the
  Fabric game test mod, NeoForge ItemAccessEnergyHandler).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The energy drain turret never targets a mob, even a hostile one holding a
charged battery while the base attacks mobs (energyDrainTurretIgnoresMobs),
and spares a player holding the ownership wand: targeted and fired at, but
the charged helmet keeps its energy (energyDrainTurretSparesWandHolder).
The drain test now requires the helmet to be drained, since armour goes first.

The test battery is wearable on the head: NeoForge 1.21.11 lets an armour
slot take back only an item that fits it, so the helmet battery's energy
could not be drained there and the old test passed through the main hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Keridos
Keridos force-pushed the 1.21.11-new-turrets branch from a2b06b8 to 20947b1 Compare November 26, 2026 23:49
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