Links
Tags
Creators
Details
Licensed MIT
Published 2 months ago
Updated 4 months ago
All versions
1.2.3
Beta
Api Bridge 1.2.34 months ago 14
Compatibility
Minecraft: Java Edition
1.21.9–1.21.11
Platform
Fabric
Supported environments
Client-side
Server-side
Changes
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.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:2YXzNo1j:54sIPboT"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:2YXzNo1j:54sIPboT"
}

