API Bridge 1.2.3 для Minecraft 1.21.11 (Fabric)
Это не последняя версия. Последняя для 1.21.11 · Fabric — 1.3.0Открыть 1.3.0 →
Тестовая версия — возможны ошибки.
Файлы · 1
Что изменилось
v1.2.3 — RLE Depth-Map + Sparse Inventory
Enhancements
viewport_blocksnow uses RLE compression — Previously 288 ints (144 flat [depth, blockId] pairs). Now consecutive identical rays are merged into runs:[[count, depth, blockId], ...]. Typical scene: ~40-60% fewer tokens vs. flat format. Empty state returns[].inventory.slotsnow sparse — Previously 41 fixed[item_id, count]entries (82 ints + JSON overhead). Now only non-empty slots are included, each as[slot_index, item_id, count]. Empty state returns[]. Early-game saving: ~6-15 token vs 165.
v1.2.2 — Depth-Map with Surface Block IDs
Enhancements
viewport_blocksnow returns[depth, blockId]pairs — Previously a flat depth-only array (144 ints). Now each of the 144 rays produces two values: depth (1–32 = distance to nearest solid) and the numeric block ID of that surface block (0 if clear). Total 288 ints.- AI can now distinguish stone vs. dirt vs. water at each ray without a separate API call.
Bug Fixes
- Fixed stride in viewport_blocks doc — Index formula corrected from
depth * 288todepth * 144(each depth layer has 16×9 = 144 cells, not 288). viewport_entitiesno longer pads empty slots — Removed 16-slot fixed-size padding. Returns only actual visible entities (0–16 elements).
v1.2.1 — Registry Endpoints + Bug Fixes
New Features
Registry Dump Endpoints — Two new runtime endpoints for resolving numeric IDs:
GET /api/registry/entities— Dumpsid → "minecraft:name"fromBuiltInRegistries.ENTITY_TYPEGET /api/registry/items— Dumpsid → "minecraft:name"fromBuiltInRegistries.ITEM- AI agents can call these once per session for accurate ID lookup, eliminating hardcoded tables.
Bug Fixes
world.timeclamping — Observation now returnsdayTime % 24000(range 0–24000) as documented, instead of raw tick value. FixesObservationProvider.java:143.viewport_entitiesFOV filtering — Entities are now filtered by the player's actual field of view (frustum cone). Previously all entities within 48 blocks were included regardless of direction. FixesObservationProvider.java:363-371.- Entity ID table in docs — Both
OBSERVATION_SCHEMA.mdandAI_AGENT_GUIDE.mdentity type ID tables updated to match the real Minecraft 1.21.11 registry order (fromBuiltInRegistries.ENTITY_TYPE). - API.md doc updates — Added documentation for registry endpoints; updated
viewport_entitiesdescription to clarify frustum filtering.