Multi-version contract
Public declarations are the same for all clients: the plugin describes semantic hardness, tools, textures and associations.
On this page
Overview
Public declarations are the same for all clients: the plugin describes semantic hardness, tools, textures and associations. They contain no protocol numbers, runtime/network IDs, packet DTOs or version-specific component maps.
semantic declarations
→ one normalized snapshot
→ per-enabled-protocol lowering
→ complete host-owned protocol projections
→ atomic publication
→ session pinning
Resolved defaults are not computed separately for each protocol. Omitted hardness, for example, gets one mining profile before lowering; client component encoding and server mining use the same resolved value. Runtime IDs and palettes can differ across versions; plugins do not store or compare them.
Current typed support
The current lowering explicitly supports 898, 1001, 2168, 2169 and 2193. Support for 2169 is explicit and codec-tested, not inferred. Other versions appearing in the overall runtime registry do not automatically gain typed Content lowering support.
The administrator selects client protocols:
bedrock:
protocols: [898, 1001, 2168, 2169, 2193]
Omission preserves the complete default provider, rather than only these five IDs. A server with typed definitions and no explicit selection can therefore receive ErrUnsupportedFeature for an older enabled protocol. This is the strict contract: the host does not silently exclude versions, substitute the latest representation or hide a feature.
Runtime provider selection validates IDs against the actual registered codec provider, rejects invalid/duplicate selections and filters Get and handshake Resolve. An allowlist does not make an unknown codec supported or change the advertised MOTD version automatically. MOTD configuration and real negotiation are separate settings.
Failure policy
If any enabled protocol cannot represent a required typed feature, startup validation fails before clients are admitted. The diagnostic identifies the content ID, feature and protocol. An empty typed snapshot alone does not restrict legacy server protocols.
Degraded representation, feature negotiation and automatic protocol skipping are not implemented. Geometry/material/hardness errors are not hidden behind fallbacks. If required hardness cannot fit the positive finite float32 client mining representation, lowering returns an unsupported-feature error; explicit zero stays zero.
Typed runtime uses its committed session projection for bootstrap content, inventory/equipment/drop/creative item representation, the combined palette, updates and block effects. Legacy diagnostic/env paths are not instructions for typed plugin authors. An ordinary typed module needs no NUCLEUS_SEND_CUSTOM_BLOCKS_* switches.
Stability and limits
A semantic ID is more stable than a client ID, but registry additions can change allocation and palette ordering between server startups. Do not persist runtime IDs as plugin identity. Removing content from a persisted world requires a separate migration policy; this API does not promise hot world migration.
Using the same declaration on several protocols means the same intent/gameplay association and a supported projection. It does not promise byte-identical packets or pixel-identical rendering. Automated checks of actual ItemComponent, StartGame and CreativeContent codecs, plus vanilla/custom palette mappings, are in lower_test.go, content_publication_test.go, published_content_test.go.
Release acceptance requires real clients on the selected versions. Resource-backed consumer tests verify real-pack validation and server gameplay, but do not launch Minecraft.
Documentation source
Snapshot from Pulce 4fc8a1bb. This page is generated from committed Markdown; code examples are preserved unchanged.