Repository navigation
Conversation
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
force-pushed
the
1.21.11-new-turrets
branch
from
November 26, 2026 23:49
a2b06b8 to
20947b1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #324 ("New Turrets 4.1") on 1.21.11 (Fabric + NeoForge), on OpenModularCore 2.3.0 (tagged):
effectStrengthblocks per tick (default 0.8): horizontal, with a small lift on a push; a pull stops 1 block from the turret.effectStrengthenergy 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.effectStrengthin every turret section (and inaddon_turrets); the item tooltip and Jade show an "Effect" line; the three turrets turn instantly, have no range falloff and ignore Scatter Shot.TurretStats.Builder.effectStrength(…),TurretType.Builder.playersOnly()andskipsTargetsWithoutEnergy()(docs/turret-api.md).docs/id-mapping.md, changelog; the wiki pages are updated (marked as next release).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 aTestBatterywith energy per loader.Checked:
chiseledBuildon 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 theomlibpointer to OMLib's merged commit before merging.Not checked in a game client yet (effects, models, tooltip, Jade).
🤖 Generated with Claude Code