See how you can get started and create a new project that uses TypeScript -- which compiles into JavaScript that Minecraft understands -- to create new gameplay styles in Minecraft. Starting from an empty project, you'll see how you can layer in additional facets and challenges of gameplay.
Links:
Minecraft Creator Tools: https://mctools.dev
NodeJS and NPM Tools: https://nodejs.org
Building Gameplay Article: https://learn.microsoft.com/minecraft/creator/documents/scriptinggettingstarted
TypeScript Starter: https://github.com/microsoft/minecraft-scripting-samples/tree/main/ts-starter
Completed TypeScript Cotta Game: https://github.com/microsoft/minecraft-scripting-samples/tree/main/ts-starter-complete-cotta