Script API
This section covers the Script API, centered on @minecraft/server. It runs from the execution model and module versions through events, entity and world APIs, custom commands, storage, server-only modules, debugging and known limits, based on community research from 2025-10 to 2026-12-03 and the official documentation.
Page map
| Page | Contents |
|---|---|
| Script API overview and execution model | Module layout, manifest, TypeScript bundling, initialization order, restricted execution, scheduling, QuickJS runtime |
| Module versions, beta, and changes by version | @minecraft/server version rules, beta dependencies, experiment toggles, changes by release |
| Events and combat | world/system event subscription rules, renamed events, join, interaction, item and combat events |
| Entities, items, and custom components | Entity and Player APIs, custom block and item components, ItemStack and containers |
| World, blocks, dimensions, and effects | Block, chunks, ticking areas, structures, custom dimensions, particles, sounds, camera, debug shapes |
| Custom commands | customCommandRegistry registration, parameters, permission problems and workarounds |
| Dynamic properties and data storage | Dynamic property limits, scoreboards, tags, large-storage patterns |
| server-ui, server-net, server-admin, GameTest | Server forms and DDUI, BDS-only modules, IPC between add-ons, GameTest and Editor |
| Debugging, performance, tools | Content log, /reload, VS Code debugger, profiler, tool list |
| Pattern recipes, known limits, open questions | Common implementation patterns, a table of workarounds by limit, unresolved questions |
The in-game measurement records for this section are in Content and rendering claim measurements.
Reading order
If you are new, read the overview and the module version page first, then go to the API page that matches the feature you want to build (events, entities, world, commands, storage). If you get stuck, look up the symptom in the workaround table on the last page.
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
private-research | Private research (-) | - | 2026-11-13 | |
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |