Addon API
VoiceCraft.Addon exposes a script-driven McApi layer that is much wider than just vcbind.
This page is aimed at addon and world developers.
High-level API surface
The addon-side API exposes:
- connection lifecycle
- packet send / receive
- entity creation and destruction
- world ID, position, rotation, mute, deafen, and bitmask updates
- effect updates
- audio-received events
High-level events
From the current API layer:
OnConnectedOnDisconnectedOnPlayerBindOnPlayerUnbindOnPacket
VoiceCraft v1.6.1 expands this event-driven path with broadcasted events used by the addon packages, so world scripts can react to connection, binding, and packet activity without custom polling.
Script events used by the system include:
voicecraft:onConnectedvoicecraft:onDisconnectedvoicecraft:onPlayerBindvoicecraft:onPlayerUnbindvoicecraft:onPacketvoicecraft:sendPacket
Packet-level coverage
Current exposed packet events include categories such as:
- login / logout / ping
- accept / deny / reset responses
- entity create / destroy
- title / description / name updates
- mute / deafen / server mute / server deafen
- talk / listen / effect bitmask
- position / rotation / world ID
- cave factor / muffle factor
- effect updates
- audio received
This makes the addon API useful not only for stock worlds, but also for custom game modes.
Common customization ideas
- auto-binding by team, role, or tag
- custom bind UI
- custom effect presets per biome or area
- region-based world ID remapping
- staff moderation tools through server UI forms
- scripted NPC or fake-entity voice logic
Basic integration model
Typical addon logic:
- connect to VoiceCraft transport
- authenticate
- create or discover entities
- bind players
- update world ID / position / rotation on tick or event
- react to packet-level updates
Important implementation notes
McWssmode depends on command tunnel throughput- effect toggles are encoded through bitmasks
- packet-level automation should be tested carefully on real Bedrock builds
- keep addon packages aligned with the VoiceCraft release when depending on broadcasted events or in-game voice icons
Recommended practice
- start from
Basicif you need a working reference - switch to
Core.McHttporCore.McWsswhen building a custom experience - keep your world automation thin at first, then expand packet hooks gradually