#Module not found "mojang-minecraft.js", can't figure out how to fix it.

1 messages · Page 1 of 1 (latest)

velvet vessel
#

Wtf is mojang-minecraft-js

#

It don't exist, what are you trying to do?

sullen oriole
#

no mention of it in the code

#

i guess not many people get it

#

most of it comes from the manifest

#

but i cant really tell what part of it is wrong.

#

[Scripting][error]-Plugin [PackName - 0.1.0] - [main.js] ran with error: [ReferenceError: Module [mojang-minecraft.js] not found. Native module error or file not found.]

#
    "format_version": 2,
    "header": {
        "description": "idk lol",
        "min_engine_version": [1, 19, 0],
        "name": "PackName",
        "uuid": "cbe6aa73-d1f9-4b2b-a2e3-dda0f37090f3",
        "version": [2, 1, 7]
    },
    "modules": [{
            "description": "Shallow Anti-Cheat, a very reliable AC.",
            "type": "data",
            "uuid": "7cb004b8-88bd-4d9e-929e-aa0d7f7ae2a1",
            "version": [1, 0, 0]
        },
        {
            "description": "Gametest Framework or whatever lol",
            "entry": "scripts/main.js",
            "language": "javascript",
            "type": "script",
            "uuid": "ab31620b-f498-4355-9bea-498922f5940e",
            "version": [0, 1, 0]
        }
    ],
    "dependencies": [{
            "module_name": "@minecraft/server",
            "version": "1.1.0-beta"
        },
        {
              "module_name": "@minecraft/server-gametest",
            "version": "1.0.0-beta"
        }
    ]
}```
velvet fern
#
import { world, system } from "@minecraft/server";
hollow vault
#

lmao

sullen oriole
#

i havent used gametest since like 1.17, and i remember it being "import {world} from "mojang-minecraft"