Repository navigation
Better Combat
Minecraft 1.20.1 / Forge: this page documents that build and its measurements. For the separate 205-control Minecraft 1.21.1 port, see Minecraft 1.21.1 NeoForge.
One control for Better Combat 1.8.6+1.20.1 (Forge) (mod id bettercombat): the two-handed weapon lookups are skipped on every equipment read that is not the offhand. The switch checks the code it would change against the tested build; another build is left untouched with one WARN line (see How the patches are applied).
| Key | Target | Side | Since | Kind | Result |
|---|---|---|---|---|---|
bettercombat_offhand_lookup |
Better Combat 1.8.6+1.20.1-forge | BOTH | 1.0.19 | opt | ~61 → ~6 ns per non-offhand equipment read |
Since: 1.0.19 · Script (1.0.19 and earlier): furious19-bettercombat-PlayerEntityMixin.js (exact fingerprint)
Patched: net.bettercombat.mixin.PlayerEntityMixin, Better Combat's HEAD hook on Player.getItemBySlot (Better Combat 1.8.6+1.20.1-forge)
Mixin (since 1.0.20): OffhandLookupMixin
What upstream did. Better Combat hides the offhand item while a two-handed weapon is held. Its hook runs on every Player.getItemBySlot call, for every slot, and looks up the weapon attributes of both hands first (registry key, map lookup and, for items with NBT, a JSON parse); only then does it check whether the slot is the offhand, the only slot it ever changes.
What the patch does. The hook returns at once for every slot other than the offhand. The offhand path is untouched.
What stays the same. Every equipment read. In the fixture a player holding a two-handed weapon with a shield in the offhand, and one holding a one-handed weapon, read every slot the same with the switch on and off: the shield still hidden behind the two-handed weapon, still visible behind the one-handed one.
Measured. Native full-pack server fixture, 2026-09-28: a non-offhand getItemBySlot call took about 6 ns with the switch on and about 61 ns off (10 million calls each). In the 1.0.19 requalification run (2026-09-29) the non-offhand read took 5.1 ns and the untouched offhand path 47.6 ns. Equipment reads happen on every render and tick path that inspects a player's gear, so this is a small constant saving many times per tick, not a frame-time figure.
Bons and Furious is licensed GPL-3.0-only with upstream notices retained. Target mod names identify compatibility targets and do not imply endorsement; their code, assets and licenses remain their authors' property. All measurements on this wiki are focused method, phase or reproduction measurements from the pack the mod was built for, taken on the historical build named in each entry; they are not whole-game FPS or TPS promises and are not additive.
Bons and Furious
Minecraft 1.20.1 / Forge 1.0.41
- Home
- Installation and configuration
- How the patches are applied
- All controls
- Measurements and caveats
- Whole-modpack benchmark
- Troubleshooting and log messages
- Generation context fixes
- Version history
Compatibility
- Compatibility
- Known conflicts and workarounds
- Tested mod list
- Redundant mods
- Compatibility and target versions
Controls by mod
- Minecraft (69)
- Forge (7)
- Ad Astra (1)
- Alex's Caves (5)
- Alex's Mobs (3)
- Almost Unified (1)
- AmbientSounds (3)
- Aquaculture (1)
- Architectury API (1)
- Ars Nouveau (2)
- Artifacts (1)
- Better Combat (1)
- Bosses of Mass Destruction (1)
- Butterflies (1)
- ChunkSending (1)
- CIT Reforged (1)
- Citadel (2)
- CoFH Core (1)
- Colorwheel (1)
- Cooking for Blockheads (1)
- Create (4)
- Critters and Companions (1)
- Cryptic Foes (2)
- Cucumber (1)
- Curios API (6)
- Distant Horizons (19)
- Dungeons Delight (1)
- Dynamic Trees (2)
- ElysiumAPI (1)
- Embeddium (14)
- Entity Model Features (7)
- Entity Texture Features (1)
- EntityCulling (1)
- FancyMenu (1)
- Farmer's Delight (2)
- FD Bosses (2)
- Fowl Play (2)
- Fusion (2)
- GeckoLib (5)
- Goblins Tyranny (2)
- Hostile Villages (2)
- Ice and Fire (6)
- ImmediatelyFast (3)
- Immersive Engineering (1)
- Jaden's Nether Expansion (2)
- JEI (7)
- Kiwi (1)
- L2 Library (2)
- L_Ender's Cataclysm (12)
- Legendary Monsters (1)
- Lionfish API (4)
- Mekanism (2)
- ModernFix (4)
- Mowzie's Mobs (1)
- Mutant Monsters (1)
- Nether Depths Upgrade (1)
- Occult (1)
- Oculus (14)
- Oh The Biomes We've Gone (1)
- Particular (1)
- Pehkui (1)
- Pipez (2)
- Placebo (1)
- Presence Footsteps (1)
- Radium Re-Reforged (8)
- Rats (1)
- Regions Unexplored (1)
- Relics (2)
- Ribbits (1)
- Ryoamic Lights (2)
- Sake's Structures (1)
- Scorched (1)
- Scuba Gear (1)
- Simply Swords (1)
- SlashBlade: Resharped (1)
- Slice & Dice (1)
- Spawn (4)
- Storage Drawers (2)
- Structure Gel API (1)
- Structurify (3)
- TaCZ (3)
- TerraBlender (2)
- Terramity (1)
- Under the Moon (1)
- Valkyrien Skies (16)
- XercaPaint (1)
- Trackwork model repair
- Living Engineering (moved out in 1.0.20)
Links