mojira.dev
MCPE-226220

Script API doesn't work in dev mode anymore

Scripting files in development mode (development_behavior_packs and development_resource_packs) do not run at all unless the addon is installed via the regular behavior_packs and resource_packs folders.

Steps to reproduce

  1. Create a behavior pack using the development mode folder (development_behavior_packs)

  2. Add a scripts section in the manifest and write a small script like:

    import { system, world } from '@minecraft/server';
    
    system.runInterval(() => {
    	world.sendMessage('Hello world!');
    }, 40);
  3. Launch the world with the development pack activated

  4. Observe that the script does not execute at all

  5. Now move the same packs into the regular behavior_packs folder (install them like a standard addon)

  6. Relaunch the world and the script works as expected

Expected result

  • The message "Hello world!" is printed in chat every 2 seconds, regardless of whether the addon is installed in dev mode or not

Actual result

  • Script is not run at all unless installed as a regular addon via behavior_packs

Notes

  • This issue began occurring specifically with 1.21.100

  • The world loads, but no error messages are shown

  • This error critically affects addon creators - they must reinstall entire addon for every small script change to see if it works instead of just reloading the world, which significantly slows down development

Linked issues

Comments 1

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Could you please attach an example addon showcasing the issue?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

John

(Unassigned)

Unconfirmed

Windows

11

1.21.100

Retrieved