Bobochop Unbound -1.6.4.zip
What's new
================================================================================
CHANGELOG - PERFORMANCE & RHINO RUNTIME FIXES 1.6.4
================================================================================
[FIXED]
* Server TPS Spikes & Rhino TypeError Loop
- File: kubejs/server_scripts/bobochop_slender_forest_spawns.js
- Fixed high-frequency TypeError in EntityEvents.checkSpawn
("Cannot find function getCategory in object minecraft:bat") caused by
calling .getCategory() directly on KubeJS's string entity type ID.
- Added guarded native lookup via entity.minecraftEntity with fallback to
BuiltInRegistries.ENTITY_TYPE, eliminating ~8,000+ Rhino stacktrace
allocations (~46.9% server thread time in Spark profiler).
- Moved MISC category check after lightweight time/biome early-exit guards.
* Client Dynamic Music Category Lookup Guard
- File: kubejs/client_scripts/bobochop_dynamic_music.js
- Applied defensive categoryNameOf() / registryTypeOf() helpers for horde
and strong-hostile checks (lines 94 & 113) using entity.minecraftEntity
and BuiltInRegistries.ENTITY_TYPE fallback.
[OPTIMIZED]
* Ecosystem Recovery Slicing & Player Tick Throttling
- File: kubejs/server_scripts/realistic_ecosystem_phase1.js
- Increased cooperative generator batch gates from every 16 to every 64
steps (% 16 -> % 64), reducing Rhino CallFrame/yield overhead by ~75%.
- Tightened NATURAL_SLICE_NANOS budget per tick from 750,000 ns (0.75 ms)
to 400,000 ns (0.40 ms).
- File: kubejs/server_scripts/bobochop_sneak_speed.js
- Throttled un-gated PlayerEvents.tick handler to every 5th server tick
(tickCount % 5 === 0), cutting per-tick script invocations by 80%.
[TESTS]
* Updated and expanded Node mock/regression suites (all passing, exit 0):
- scripts/test-realistic-ecosystem-phase1.js
- scripts/test-bobochop-slender-forest-music.js
- Added regression coverage for string-based entity.getType() wrappers,
minecraftEntity resolution, and BuiltInRegistries.ENTITY_TYPE fallbacks.
================================================================================
This mod has no additional files