Gameplay APIs
Bedriox exposes gameplay through small, authoritative capabilities. A player snapshot can send presentation and request player actions; a world handle reads or changes that loaded world; inventory and entity controllers own their specific mutations.
Choose the area you are changing:
- Players for messages, displays, teleportation, effects, experience, game mode, permissions, and player inventory access.
- Worlds and blocks for loaded worlds, positions, blocks, weather, and particles.
- Inventory and items for stacks, hotbars, armor, offhand, and containers.
- Crafting for shaped or shapeless recipe registration and craft events.
- Entities for snapshots, generation-bound controllers, spawning, and custom mobs.
- Custom NBT for bounded structured item data.
- Gameplay patterns for combining commands, events, scheduled work, and cleanup into a complete feature.
Always resolve a fresh player, world, inventory, or controller after asynchronous work. A disconnected session, unloaded world, or stale entity generation fails closed instead of mutating a replacement object.
