Module versions, beta, and changes by version
Version scheme
All script modules use semantic versions (major.minor.patch with an optional suffix). This number is separate from the Minecraft product version (for example 1.19.60) and goes up when the API surface changes. Modules come in three tracks (Source: ms-learn, creator/Documents/scripting/versioning.md).
| Track | Example | Rule |
|---|---|---|
| stable | 1.1.0 | A finished API. Within the same major, minor and patch are backward compatible. A dependency of 1.3.0 must work even if 1.8.0 fills it in |
| beta | 1.3.0-beta | No compatibility guarantee. Properties and methods can disappear even on a minor bump, and the beta number goes up with each release. The "Beta APIs" experiment must be turned on in the world |
| internal | 1.4.0-internal | Does not work in custom packs and has no support |
Use stable where possible, and a published pack lists the highest version supported at release time as its dependency. A major bump (v2) is a cleanup that breaks backward compatibility, and existing packs that specify 1.x.x will keep being supported to work as they are for a long time (Source: ms-learn, v2-overview.md).
@minecraft/server versions and product versions
This is the official correspondence table (Source: ms-learn, versioning.md). For later versions, follow the community reports summarized in "Changes by version" below.
| Module version | Product version |
|---|---|
| 1.0.0 | 1.19.70 |
| 1.1.0 | 1.19.80 |
| 1.2.0 | 1.20.0 |
| 1.3.0 | 1.20.10 |
| 1.4.0 | 1.20.20 |
| 1.5.0 | 1.20.30 |
| 1.6.0 | 1.20.40 |
| 1.7.0 | 1.20.50 |
| 1.8.0 | 1.20.60 |
| 1.9.0 | 1.20.70 |
| 1.10.0 | 1.20.80 |
| 1.11.0 | 1.21.0 |
| 1.13.0 | 1.21.20 |
| 1.14.0 | 1.21.30 |
| 1.15.0 | 1.21.40 |
| 1.16.0 | 1.21.50 |
| 1.17.0 | 1.21.60 |
Specifying versions in the manifest
"dependencies": [
{ "module_name": "@minecraft/server", "version": "2.4.0" },
{ "module_name": "@minecraft/server-ui", "version": "2.0.0" }
]
To follow the latest beta, use the string "beta" instead of a number.
"dependencies": [
{ "module_name": "@minecraft/server", "version": "beta" }
]
With "beta" you do not need to fix the version on every update, but if the world's Beta APIs experiment is off, the whole script does not load. A pinned specific x.y.z-beta.* version breaks with every game update. If you use a wrong version, the content log prints the list of available versions, so pick from that list.
Installing type definitions
The npm @minecraft/server provides types for stable and beta, and for release and Preview variants. It is types only, so it is not needed to run (Source: ms-learn, creator/Documents/scripting/developer-tools.md).
npm i @minecraft/server
npm i @minecraft/server-ui
npm i @minecraft/server@beta @minecraft/server-ui@beta # beta types
The npm beta tag points to the stable game's beta (2.12.0-beta.1.26.66-stable as of 2026-11-21), not to the Preview beta. Install Preview beta types with the full version string after @, as in npm i @minecraft/server@2.13.0-beta.1.26.70-preview.26 (Source: private research).
APIs changed in v2
If you open your code with the 2.0.0-beta types (npm i @minecraft/server@2.0.0-beta), you can see right away what changed. The changes in the official overview are as follows (Source: ms-learn, v2-overview.md).
Entity.applyKnockbacktakes the horizontal force as aVectorXZand the vertical strength as a separate argument. To convert a V1 direction vector, normalize it and multiply by the old horizontal strength.Dimension.runCommandAsyncwas removed (most were not actually asynchronous). If you need async, usesystem.runJob.- Entity
getComponents/getComponent/hasComponentthrow an exception if the entity is invalid.EntityComponent.getEntityandEntityInventoryComponent.containeralso throw an exception instead of returningundefined. - The
isValid()method of several classes became a read-only propertyisValid. EffectType.getNameandEffect.typeIdalways include theminecraft:prefix.- The
minecraft:airitem was removed (it is still valid as a block). world.afterEvents.worldInitializewas only renamed toworldLoad, andworld.beforeEvents.worldInitializewas replaced bysystem.beforeEvents.startup.
Module versions the client code provides {code}
These are the versions the Windows 1.26.65.1 client registers for each module factory, compared with the official metadata (1.26.50.4). A version object is a global value initialized at boot, and the suffix letters were judged by length (only beta was confirmed down to the letters).
| Module | Provided versions | Difference from metadata |
|---|---|---|
@minecraft/server | 0.1.0, 1.0.0 to 1.19.0, 2.0.0 to 2.11.0, 2.12.0-beta, 2.12.0-internal, 3.0.0-alpha | 2.11.0 is registered as stable without a beta suffix (metadata has 2.11.0-beta). 2.12.0-beta and 3.0.0-alpha are not in metadata |
@minecraft/server-ui | 0.1.0, 1.0.0 to 1.3.0, 2.0.0 to 2.3.0, 2.4.0-beta, 2.4.0-internal, 3.0.0-alpha | 2.3.0 is stable. 2.4.0-beta and 3.0.0-alpha appear to be new |
@minecraft/server-gametest | 0.1.0, 1.0.0-beta (1.0.0-internal, 2.0.0-alpha and 3.0.0-alpha were read only as values, and their mapping is a guess) | metadata has only 1.0.0-beta |
@minecraft/server-net, @minecraft/debug-utilities, @minecraft/diagnostics | 1.0.0-beta each, one version | match |
@minecraft/server-graphics | 1.0.0, 1.1.0-beta (a 1.1.0-internal value also exists) | match (internal added) |
@minecraft/server-admin | 1.0.0-beta {inferred} | match |
@minecraft/common | 1.0.0 to 1.3.0 | match |
@minecraft/client | 1.2.0-beta, one version | no metadata. The ordinary behavior pack engine does not register this module (server-net and admin) |
@minecraft/app-multiplayer-game | this exe has no module factory | no metadata. No path to import it was found in this build |
- The number of
2.12.0-betais computed at startup as the latest stable minor plus 1 withbetaattached.2.12.0-internalis rejected for ordinary packs. - Some
serverclasses read the3.0.0-alphavalue: theDurationclass (constructor,value,isInfinite) that is not in the 2.x metadata,Effect.duration,EffectAddBeforeEvent.duration, the duration argument ofEntity.addEffect, andStartupEvent.getSpawnRulesRegistry. So it is hard to say that3.0.0-alphamirrors the latest 2.x beta as is. The type shapes are{inferred}.3.0.0-alphaloaded without error and without Beta APIs, even in a world with all experiments off.Durationwas present as a function, and the module exported 603 keys, 2 more than the 601 of2.12.0-beta{measured}. 2.12.0-betareads only module-level functions and appears to add no class members{inferred}.- Load measurement: requesting
@minecraft/server2.11.0-betain a world with Beta APIs on printedrequested invalid version [2.11.0-beta] of [@minecraft/server]., thenCurrent [beta] version is [2.12.0-beta].and anAvailable versions:list (0.1.0,1.19.0,2.11.0,2.12.0-beta,3.0.0-alpha). Only part of the versions the code registers appear in the list{measured}.@minecraft/server-admin2.0.0printedrequested invalid version [2.0.0]and the list had only1.0.0-beta{measured}.
The 32 experiment toggle ids {code}
The world experiment toggle id table was read from static initialization code. Short names do not show up in string searches, so the instructions were read directly. The storage format is the Toggles array (each entry has Name and Enabled) under the Experiments object of the level settings, plus the boolean ExperimentsEverToggled.
Seven toggles are visible to users. The display text is from the vanilla sample en_US.lang, and the linked built-in pack rests on the names being the same {inferred}.
| Internal id | Display | Linked built-in pack |
|---|---|---|
upcoming_creator_features | Upcoming Creator Features | none |
gametest | Beta APIs | none |
experimental_creator_cameras | Experimental Creator Camera Features | behavior_packs/experimental_creator_cameras |
villager_trades_rebalance | Villager Trade Rebalancing | behavior_packs/experimental_villager_trade |
voxel_shapes | Experimental Voxel Shape Features | behavior_packs/experimental_vanilla_shapes |
poi | Points of Interest (POI) | experimental_poi (behavior and resource pack) |
y_2026_drop_4 | not in the sample 1.26.50.4 lang | experimental_y_2026_drop_4 (behavior and resource pack) |
gametest is "Beta APIs". The toggle UI key (experimentalGameTest) and the error text "requesting dependency on beta APIs ... the Beta APIs experiment is not enabled" point to the same toggle.
The other 25 are in the table as pairs of an id and a 4-letter abbreviation. What the abbreviations are used for is unknown. There are 32 in total with no duplicate ids.
| id | Abbr. | id | Abbr. |
|---|---|---|---|
caves_and_cliffs | CnC_ | jigsaw_structures | ddjs |
wild_update | wld_ | camera_aim_assist | ecaa |
spectator_mode | spct | y_2025_drop_1 | 25d1 |
vanilla_experiments | VE__ | y_2025_drop_2 | 25d2 |
bundles | bndl | locator_bar | lbar |
data_driven_items | ddi_ | y_2025_drop_3 | 25d3 |
data_driven_biomes | biom | y_2026_drop_1 | 26d1 |
scripting | scpt | furnace_recipe_book | frbk |
experimental_molang_features | mola | custom_projectiles | proj |
next_major_update | sttc | y_2026_drop_2 | 26d2 |
sniffer | snif | y_2026_drop_3 | 26d3 |
updateAnnouncedLive2023 | ul23 | creator_world_clocks | cwcl |
armadillo | arma |
holiday_creator_featuresis neither in the table nor anywhere in the binary strings (noholiday). That fits the statement that Holiday Creator Features were removed.- The key strings for
custom_projectilesandcreator_world_clocks, which have UI names in the sample lang, are not in this exe. Whether they do not appear in the UI in 1.26.65.1 or the keys are assembled is unknown. experimentalDeferredTechnicalPreview("Render Dragon Features for Creators") in the sample lang is not in this table.
What the toggles block was read from error text {code}.
upcoming_creator_features: the horizontal direction of traits, the looting function of loot tables, themin/maxnotation of the blockminecraft:collision_box(format 1.26.60 and above), and the text "experimental creator features are required".voxel_shapes:culling_shapeand collision shapes.gametest: script beta dependencies.- Three offhand-related inventory transactions are rejected with "offhand parity experiment not enabled". Which id this is is unknown.
The way to turn one on is the toggle on the world creation screen, and there is UI text saying it cannot be turned off after the world is created (sample lang). The path for an existing world is options.activateExperimentalGameplay, with text saying a copy is made. No code was found where a manifest (header, modules, capabilities) turns on an experiment. The manifest capability strings are script_eval, editorExtension and raytraced, and an invalid value gives packdiscoveryerror.invalid_capability_value. Whether a world template's level settings contain experiments is unknown. No code was found that ties script (main.js) loading to experiments other than Beta APIs.
Beta and version rules from community notes
The two sections below are practical rules from the community research and a timeline of changes by release.
Verification level marks follow the legend on the wiki home page. The basis of this page is community reports, and they may differ from the official Mojang documentation.
Module versions and beta
"version": "beta": Using"beta"without a number for@minecraft/server,@minecraft/server-uiand so on always resolves to the latest beta. It was added in the Preview and reached the release around 2025-10-28 (1.21.120). Even if an API moves from beta to stable it keeps working, but it can break if the API you use changes."stable"sometimes auto-upgrades but is not reliable.{community confirmed}- Beta APIs experiment toggle: Beta modules/features require the "Beta APIs" experiment on in the world. If it is off, the manifest requires it so the whole script does not load, and the script itself cannot detect this (workaround: a tick.json function raises a score every tick and the script clears it; warn if the value grows). In some cases other experiments such as "Upcoming creator features" and "Experimental creator camera features" also had to be on for main.js to load (no place in the client code ties script loading to these experiments
{code}). On Aternos, turn on Beta APIs under servers > world > options. Most script add-on bundles distributed for servers require Beta APIs, and there is a report that this setting is an obstacle for mobile users{single report}. - Compatibility expectations of stable
{conflict}: There are both opinions that stable scripts do not break on updates and that they can break on updates if a deprecated API is removed. Stable APIs need no experiment toggle. - Marketplace packs cannot use experimental/beta APIs; they use only stabilized APIs such as DDUI.
- Invalid versions (
1.0.0-betaand so on) print "requested invalid version" with a list of available versions to the log (for example server 0.1.0, 1.19.0, 2.6.0, 2.7.0-beta, 3.0.0-alpha; the list for Windows 1.26.65.1 is in "Module versions the client code provides" above). Modules you do not use (gametest and so on) also cause version conflicts, so remove them. - Pairing server / server-ui: A conflict such as
[@minecraft/server] 2.1.0 requested by pack vs 1.3.0 requested by server-ui-bindingsis an incompatible combination. Examples: server 2.1.0 + server-ui 2.0.0, server 2.6.0 + server-ui 1.3.0 (works), server 2.10.0 + server-ui 2.2.0 (26.50), server 2.11.0 + server-ui 2.3.0 (the latest stable of 2026-11). The beta pair is2.12.0-beta.1.26.63-stable+2.4.0-beta.1.26.63-stable(as of 2026-11-16; before that the1.26.60-stablepair). server 2.6.0 + server-ui 1.0.0 conflicts onserver-bindings. - The highest v1 version is 1.19.0, and v2 breaks backward compatibility. Packs that stay on 1.x can use features blocked in 2.x such as writing
EntityScaleComponent.value(see the scale workaround for entity components). 3.0.0-alphamirrors the latest 2.x beta as is (the Windows 1.26.65.1 code hasDurationand other members that are not in the 2.x metadata, so "as is" is hard to assert{code}). Also, 2.x versions are always promoted to the latest internally, so type autocomplete and runtime behavior can differ (developer statement). Around Preview 26.70.26 a developer said changes to howplaySoundworks are under consideration and a 3.0.0 major version is one option{single report}(no schedule).- Education Edition lags a few versions (as of 1.21.130 only server 2.4.0 stable is supported, and beta modules break with every update).
- Old pinned betas (
server 1.13.0-beta,server-ui 1.2.0-beta) do not work on current versions.
Changes by version
- 1.20.80: Dynamic
import()support. - Before 1.21.60 / 2.0:
applyKnockback(x, z, h, v)becameapplyKnockback({x,z}, v). - Preview 1.21.80.22 ~ 1.21.9x: Custom command beta, then stable in 1.21.100 (@minecraft/server 2.1.0).
- 1.21.90 (2.0.0):
@minecraft/server2.0.0 (left beta with the 1.21.90 release or around 1.21.100; reports differ). Changes:worldInitializeremoved (startup/worldLoad),isValid()became a property,runCommandAsyncremoved, component registry moved to startup, permissions (read-only) introduced,Player.isOpremoved,PlayerPermissionLevel(1.21.90.21), item components directly incomponents(format 1.21.90),faceLocationreference changed, item custom component params. Guide:https://learn.microsoft.com/en-us/minecraft/creator/documents/scripting/v2-overview?view=minecraft-bedrock-stable - 1.21.101: The 2048-character limit on scriptevent messages was removed.
- 1.21.110 preview: Reading pack settings (manifest v3 settings) from script and Molang (a report that
getPackSettings()gave{}). - 1.21.114: server 2.2.0 stable (
setLoreRawMessage). 1.21.120: 2.3.0 stable, manifest"version": "beta"supported in the release,getAABB,getGeneratedStructures(beta), light level, loot table manager, inventory/hotbar events and others added. - 1.21.124: 2.3.0 latest stable. 1.21.130 (2025-12-09): server 2.4.0 stable (
getBiomestable),minecraft:cooldown"type": "attack"+swing_duration,minecraft:storage_item. debug-utilities1.0.0-beta.1.21.130-stable. - Preview 26.0 (2025-12):
beforeEvents.entityHurt,entityHealbefore/after,entityItemPickupbefore/after, drop events, world seed, blockonEntity, item cooldown added,WeakRef/FinalizationRegistry(26.0.23), item components require format 1.26.0,TickingAreaManagerbeta,DebugShape.visibleTo. - 2026-02-11: server 2.5.0 stable (1.26.0, beta 2.6.0-beta.1.26.0-stable).
entityHurtbefore usable with Beta APIs. - 26.10 (mid 2026-03): server 2.6.0 stable (
entityHurtbefore stable,setPropertyOverrideForEntity2.6.0), entity drop events stabilized, DDUI (server-ui 2.1.0-beta) usable as beta, custom item cooldown bar fix (26.10.20). - 2026-04-08 preview: Custom dimension API beta. 26.20: server 2.7.0 stable (2026-05), server-net WebSocket (preview 26.20/21),
EntityEnderInventoryComponent(26.20.20),EntityHealCause.TotemOfUndying(26.20.23-24), TextPrimitive changes (26.20.22/26),playerHotbarSelectedSlotChange(2.7.0),isFirstEventappeared in the 2.8.0-beta (1.26.20 preview) documentation. - 26.30: DDUI stable (server-ui 2.1.0), the
new CustomForm(...)constructor, custom dimensions stable (conflicts with a report that they were already listed as stable in the 1.26.20 documentation,{conflict}), server 2.8.0 stable, SoundInstance preview,Player.partyInforemoved, anonUseproblem ofminecraft:interact_buttonitems after 26.20. - 26.40: DDUI images (preview), vanilla pack texture references not possible (~26.40.30), type-only import error, MCPE-240513 (
playSoundbecame a read-only property), SoundInstance, per-pack block DP ~1 KB,carry_over_block_entity_data, server-graphics left beta (2026-08-11 preview), debugger attach problem (26.40~1.26.43),persistentId(~2026-08-04), server 2.9.0 stable (2026-08), closeButton duplicate fix (26.40.20). - 26.50: Block DP (
minecraft:block_entity, format 1.26.50), MCPE-240513 fixed, world clockWorldClock, structure format v2 (26.50.24),DimensionTypesreturns custom dimensions (26.50.26),Camera.addShaketo be stable, split-screen DDUI input fix (preview), server 2.10.0 / server-ui 2.2.0 stable (2026-10). A case after the 26.50 update where a script silently did not load because of a server-ui 2.3.0 dependency (fixed by going down to 2.2.0, together with server 2.10.0). - 26.60: server 2.11.0 / server-ui 2.3.0 stable, a report that DDUI button images are stable,
multiButtonRow(server-ui 2.4.0-beta preview), SimulatedPlayersetSkin(1.26.60-preview.21),vibration_damperhasComponent, a report of block updates reacting to neighbor changes{single report}. The shulker boxItemInventoryComponentline in the changelog was a mistake (Mojang's answer; see the item page below). Community block templates were also updated to the 1.26.60 modules. - 26.70 preview: server 2.12.0-rc / 2.13.0-beta.1.26.70-preview.21~24 (
RecipeCraftingContext.getInputItem), server-ui 2.4.0-rc / 2.5.0-beta (preview.24), virtual container API,BlockContainerOpenedAfterEvent/BlockContainerClosedAfterEvent, a report of an explosion position property{single report}, an entity X rotation snap-back fix (26.70.23,{unverified}), a report thatfindClosestBiomewas renamedcalculateClosestBiomeFromSeed{single report}.CustomCommandResult.messageallows RawMessage. - 27.0.20 preview (2026-12-02): chunk load/unload events. Beta
Entity.getHitboxes(): Hitbox[]reads an entity's hit detection boxes and also returns boxes set byminecraft:custom_hit_test(user test{measured}). Entity gained hand-awaregetItemInHand(),setItemInHand()and aHandenum, and custom component events gained a property that tells the hand (handSlot-style) (exact signatures not checked,{unverified}). The block custom component hooksonPlayerInteractandbeforeOnPlayerPlaceare called only for permutations defined to use them (MCPE-225746).BlockEntityStorageComponent,BlockEntityStorageInfoandItemBlockEntityStorageComponentare stable in@minecraft/server2.13.0. The climbable script component hasspeedModifier.setItemInHandSlotcalled about 5 seconds after spawning an entity is reported not to sync to the client (MCPE-244728,{single report}). No npm types for the new APIs were published on release day. - Module version snapshots (JaylyBot npm tags): 2025-10~11 stable 2.2.0/2.3.0, beta 2.4.0-beta.1.21.120-stable, preview 2.5.0-beta.1.21.130-preview.2x / server-ui 2.0.0, 2.1.0-beta; then 2025-12 stable 2.4.0, beta 2.5.0-beta.1.21.130-stable, preview 2.5.0-rc.1.26.0-preview.25 / 2.6.0-beta.1.26.0-preview.25; then 2026-02 stable 2.5.0, beta 2.6.0-beta.1.26.1-stable, preview 2.6.0-rc.1.26.10-preview.24, 2.7.0-beta.1.26.10-preview.24, server-admin 1.0.0-beta.1.26.0-stable; then 2026-04 stable 2.6.0, beta 2.7.0-beta.1.26.10-stable, preview 2.8.0-beta.1.26.20-preview.20; then 2026-05 stable 2.7.0, beta 2.8.0-beta.1.26.20-stable, preview beta 2.9.0-beta.1.26.30-preview; then 2026-06/07 stable 2.8.0, beta 2.9.0-beta.1.26.3x-stable, preview beta 2.10.0/2.11.0-beta, server-ui 2.1.0 / 2.2.0-beta, server-gametest and server-net 1.0.0-beta.1.26.34-stable; then 2026-08/09 stable 2.9.0, beta 2.10.0-beta.1.26.44-stable, preview 2.10.0-rc.1.26.50-preview.27, 2.11.0-beta.1.26.50-preview.27; then 2026-10 stable 2.10.0 / server-ui 2.2.0; 2026-11 stable 2.11.0, beta 2.12.0-beta.1.26.60-stable (including the 1.26.62-stable variant; 2.12.0-beta.1.26.63-stable as of 2026-11-14), preview 2.12.0-rc / 2.13.0-beta, server-ui 2.3.0 / 2.4.0-beta / 2.5.0-beta (as of 2026-11-16: 2.4.0-beta.1.26.63-stable, Preview 2.4.0-rc.1.26.70-preview.24), server-gametest
1.0.0-beta.1.26.60-stable, math 2.4.1. Recommended stable range (advice of 2026-06-25): server 2.4.0~2.8.0, server-ui 2.0.0/2.1.0. - Recommended combinations by time: 2025-12-09 server 2.3.0 + server-ui 2.0.0, 1.21.120 is 2.4.0-beta, after 26.10 2.6.0 / 2.7.0-beta, for 26.30 2.9.0-beta + server-ui 2.2.0-beta.
| 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 |