promotional bannermobile promotional banner

ArcadiaTweaks

Server-side Mixin optimizations for BotanyPots large farms. Crop/Soil memoization, tick coalescing, hopper backoff & more — each strategy has its own kill-switch. NeoForge 1.21.1.

File Details

arcadiatweaks-0.1.0.jar

  • R
  • Apr 29, 2026
  • 19.46 KB
  • 8.8K
  • 1.21.1
  • NeoForge

File Name

arcadiatweaks-0.1.0.jar

Supported Versions

  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:arcadiatweaks-1528620:8009529"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

0.1.0 — First release

Module botany — BotanyPots server-side optimizations

Five independent Mixin strategies, each with a dedicated kill-switch in arcadiatweaks-common.toml.

S1 — Crop/Soil matches() memoization (matches_cache_enabled, default: on) Caches the result of the Crop × Soil compatibility check between slot changes. Eliminates 2–3 Ingredient.test() calls per pot per tick. Expected: ~70–85% CPU reduction on getOrInvalidateSoil / getOrInvalidateCrop.

S2 — Tick coalescing (tick_coalescing_enabled + tick_coalescing_n, default: on, N=4) Runs the full pot tick logic once every N game ticks instead of every tick; compensates by multiplying each TickAccumulator delta by N on the real tick so growth speed is unchanged. Default N=4 gives a linear ×4 reduction in tickPot call frequency.

S3 — Hopper export backoff (hopper_backoff_enabled, default: on) Skips the downstream inventory scan for K ticks after a failed export (full chest, no inventory below). Backoff is exponential (min 16 ticks → up to 64 ticks by default) and resets on the first successful export.

A1 — getRequiredGrowthTicks memoization (required_growth_ticks_cache_enabled, default: on) Caches the computed required growth ticks per pot; invalidated on soil/seed/tool change. A bounded TTL (safety_revalidate_period_ticks = 200) caps any staleness to ~10 seconds.

A2 — sendBlockUpdated light flag downgrade (light_flag_downgrade_enabled, default: off) Downgrades block update flags from 3 to 2 when only inventory changed (no light delta), removing unnecessary light engine re-checks. Disabled by default pending broader testing.

Config

Generated on first server start at <server>/config/arcadiatweaks-common.toml. Each strategy can be toggled independently without rebuilding.

Notes

  • BotanyPots is optional: ArcadiaTweaks loads cleanly without it; the botany Mixins simply stay dormant.
  • Server-side only — no client jar needed.
  • Targets BotanyPots 21.1.41 / Bookshelf 21.1.81 / Prickle 21.1.11. Other patch versions of the same minor should be compatible.