-
Bug
-
Resolution: Incomplete
-
None
-
1.17.30
-
None
-
Plausible
-
Windows
All of the modifications/behaviour packs i've created which use javascript files in their "scripts" folder stopped working. The message about running clientside scripts when joining a modded world still shows up but neither clientside nor serverside scripts will be executed. All of the experimental features are active in the world's settings.
Steps to Reproduce:Steps to Reproduce:
1. Create a new behavior pack
a. Create a folder within the game's "behavior_packs" folder with the name of your pack. I called it "scripttest" in this example.
b. Create the file "manifest.json" in your behavior packs root directory.
The code I used for this example:
{ "format_version": 2, "header": { "description": "12345", "name": "Script Test", "uuid": "44dd9e6d-cfaf-4e83-a7eb-a2560dd21c53", "version": [0, 0, 1], "min_engine_version": [1, 14, 0] }, "modules": [ { "description": "Gametest Module", "type": "javascript", "uuid": "375de6b2-4bf0-4709-b07e-210f5948c8ea", "version": [0, 0, 1] } ] }
c. Create the file "index.js" in your behavior pack's sub-directory "scripts".
The code I used for this example:
import { World, Commands } from "Minecraft" World.events.beforeChat.subscribe(msg => { if (msg.message == `scripttest`) { Commands.run(`say Script test successful!`) } })
2. Create a new world within Minecraft
a. Activate the experimental features "Holiday Creator Features", "Additional Modding Capabilities" and "Enable GameTest Framework"
b. Add the new behavior pack to the world from the "Add-Ons" section.
3. Play the world and type "scripttest" in the chat (without quotation marks)
Observed Results: No response, the chat will be displayed is it would be without modifications
Expected Results: Get a response answer from the scripting engine saying "Script test successful!" as it works on the previous release 1.17.11