Bedrock Script API Project
Datapacks
Manifest and JavaScript for the Bedrock Script APILearn more
Create Bedrock Script API: manifest, stable @minecraft/server, welcome to entry and timer message. McPack and JavaScript.
My game select version
We'll remember in this browser and set up where your version is available. Open link settings are more important than this choice; the Vicki versions do not change.
How to use
- Step 1
Import .mcpack to Minecraft Bedrock 1.21.90+ and turn on the world ' s behavior package. Edit scripts/main.js from the applied source for your mechanics.
What you need to know
- Import .mcpack to Minecraft Bedrock 1.21.90+ and turn on the world ' s behavior package. Edit scripts/main.js from the applied source for your mechanics.
- A stable @minecraft/serv 2.0, script module and entry point scripts/main.js are used. The greeting runs via playerSpawn, and the timer runs through system.runInterval.
- Beta APIs are not required for the example. The interval is specified by game ticks; If the tick frequency is low, the actual time between messages will increase.
Frequently asked questions
What's included in the Bedrock Script API Starter Project?
Create Bedrock Script API: manifest, stable @minecraft/server, welcome to entry and timer message. McPack and JavaScript.
How to run JavaScript from the generated package?
Import .mcpack to Minecraft Bedrock 1.21.90+ and turn on the world ' s behavior package. Edit scripts/main.js from the applied source for your mechanics.
Are experimental Beta APIs needed for the example script?
Beta APIs are not required for the example. The interval is specified by game ticks; If the tick frequency is low, the actual time between messages will increase.
