Simulated Magnet Neighbor Filter

Dedicated-server optimization that skips same-body magnet neighbors before constructing movement contexts.

Simulated Magnet Neighbor Filter

A small dedicated-server optimization for Simulated's redstone magnets: skip same-body neighbors before constructing their full movement contexts.

The problem

An assembly with many magnets can spend work preparing nearby magnets that cannot contribute to that assembly's magnetic interaction. This addon addresses that repeated work; it does not claim to fix a crash or guarantee a particular TPS improvement.

Why it happens

The targeted native physical search constructs movement contexts for nearby candidates. The magnet tick then discards candidates belonging to the same Sable body. Preparing those discarded candidates is unnecessary for that physical query.

Scope of the fix

  • Rejects same-body candidates before constructing their full movement contexts in the physical magnet search.
  • Preserves the native search sections, coordinate arithmetic, candidate order and external-body candidates.
  • Keeps the native force calculation, range, frequency, pair bookkeeping and visual-effect paths unchanged.

There is no cross-tick body cache. No server progression, access restrictions, recipes, content or balance changes are included.

Compatibility

  • Minecraft 1.21.1 and Java 21
  • NeoForge 21.1.235
  • Create 6.0.10
  • Create: Aeronautics 1.3.0, providing Simulated 1.3.0
  • Sable 2.0.6

Install on a dedicated server only, alongside the original mods. Clients do not need this addon. Integrated singleplayer is not supported by this release. Install only one copy: the internal mod ID is steamsteel_magnet_neighbor_filter, shared with the original private server build.

The addon checks the exact targeted native class bytes and refuses an unexpected implementation. Later Aeronautics, Simulated, Sable or Create versions are not claimed compatible. Byte comparisons with newer upstream classes are not a compatibility promise. Other addons changing the same magnet methods require their own checks; compatibility with every public particle optimization version is not established.

From Steam & Steel

The addon originated while maintaining Steam & Steel SMP, our custom Minecraft 1.21.1 NeoForge server modpack using Create 6.0.10, Aeronautics 1.3.0 and Sable 2.0.6. It is available independently of the full modpack and does not require SteamSteelCore or its server configuration.

Acknowledgements

Simulated and Aeronautics are by The Simulated Team and The Creators of Aeronautics. The query traversal is adapted from their MIT-licensed code; the full notice is included in both packages. Create and Sable remain the work of their respective developers. No upstream artwork is included.

This is an independent community addon.

Beta / Feedback

This is a beta release. The standalone package has offline native Mixin-application, client-exclusion, fail-closed target, body-lookup and query-parity checks on the exact libraries above. Controlled query tests reproduced the native discarded-context work and preserved external candidates while reducing unnecessary context construction. These checks do not measure a TPS gain.

Live moving, rotated or scaled assemblies, full force integration, the complete modloader lifecycle and gameplay remain unverified. The server-modpack origin does not mean this standalone package has passed a live gameplay test.

If you encounter a crash, an error or unexpected behaviour, please leave a comment with your Minecraft, NeoForge, Create, Aeronautics, Simulated, Sable and addon versions, plus steps to reproduce the problem. We will investigate reported bugs and work on fixes.

License

Our addon code and original project artwork are licensed under BSD 3-Clause. Copyright (c) 2026, DanielBasov (Steam & Steel). Forks, fixes and redistribution are permitted; retain the author attribution, license conditions and disclaimer in source distributions and in the materials accompanying binary distributions. A fork may not imply endorsement by the original author.

The adapted upstream query traversal retains its MIT license and attribution, reproduced in THIRD-PARTY-LICENSES.txt. Original upstream mods and their assets retain their own licenses; their assets are not redistributed here.

Simulated Magnet Neighbor Filter Team

profile avatar
  • 2
    Followers
  • 68
    Projects
  • 4.1K
    Downloads

More from DanielBasovView all