Overview of Minecraft Script API Modules
wikiEach module serves a specific purpose within the Minecraft scripting environment:
@minecraft/common: Contains basic sources like error classes or interfaces. Can be imported without being explicitly mentioned in dependencies.@minecraft/debug-utilities: (Experimental) Provides debugging tools. Not recommended for public addon releases.@minecraft/server: The core module for server-side scripting. Used to interact with blocks, entities, items, players, and world resources.@minecraft/server-ui: Provides customizable forms to send data and interact with players.@minecraft/server-gametest: (Experimental) Used for testing vanilla experiments and ensuring repeatability. Not intended for general content creators.@minecraft/server-net: (Experimental) Allows web requests (GET, SET, POST, etc.). Only allowed on Bedrock Dedicated Servers.@minecraft/server-admin: (Experimental) Processes JSON admin files to set pack behavior. Only allowed on Bedrock Dedicated Servers.@minecraft/server-editor&@minecraft/server-editor-bindings: Used for editor projects.@minecraft/server-editor-bindingsis undocumented and intended for native functions, while@minecraft/server-editoris a JS-based module.