#My script isn't working
1 messages · Page 1 of 1 (latest)
I think your issue is you dont include a script api dependency in your manifest. It seems you're using a 1.x version of the api, so add the following to the dependencies in the manifest:
{
"module_name": "@minecraft/server",
"version": "1.19.0"
}```
Then, add the following to modules, replacing <uuid> with a new uuid:
{
"description": "custom components",
"type": "script",
"uuid": "<uuid>",
"version": [1, 0, 0],
"entry": "scripts/main.js"
}```
added the following, recievied a lot of error msgs
still doesn't work aswell
Can you send what error messages you got?
sure
i work with wsc bc i dont have bride yet
but i will install it
@mint cobalt what do you think
by the looks of it i've done alot wrong
nah i was talking about vsc
oh its straight up not appearing in the resource and behaviour packs area
whoa it just popped up nvm
would it just be easier to inlcude the 'using converts to' component and have it convert to another item entirely?
because i am using this item in a command block minigme type world
I'll take a look at the manifest in depth in a second then. Id say it would be good to have scripts working in case you need complex behavior, and for the eaying effects
Oh, I see the issue with your manifest now
You have both modules in the same object
It should be like this: json { "format_version": 2, "header": { "name": "Bloxy Cola (fx test)", "description": "Bloxy Cola (fx test) Behavior Pack", "uuid": "a5498aed-bfda-dea0-d2d9-ed13d7798b69", "version": [1, 0, 0], "min_engine_version": [1, 20, 0] }, "metadata": { "authors": ["ggZ + Credit to the 'More Apples Addon' for their assets"], "generated_with": { "blockbench_item_wizard": ["1.2.1"] } }, "modules": [ { "description": "Behavior", "version": [1, 0, 0], "uuid": "fba84265-9120-4a05-f5e8-4136de47ba0b", "type": "data" }, { "description": "custom components", "type": "script", "uuid": "50c78602-9279-46d3-b9b6-19561af3300c", "version": [1, 0, 0], "entry": "scripts/main.js" } ], "dependencies": [ { "uuid": "3b9aa348-6e94-5e2e-9dc2-9894757d5d3c", "version": [1, 0, 0], "server_modules": "@minecraft/server", "version": "1.19.0" } ] }
so i got these content log errors?
@mint cobalt
does this mean i might have incorrectly attached parts of my scripts
or is it something else entirely?
Oh wait, sorry, i didnt look at your dependencies
You need to separate them into different objects too
could u show me how to do that?
it would help a ton and if i have an example it boost my overall confidence in doing stuff like this
Yeah, heres a file with that fix. Lmk if its still complaining
{
"format_version": 2,
"header": {
"name": "Bloxy Cola (fx test)",
"description": "Bloxy Cola (fx test) Behavior Pack",
"uuid": "a5498aed-bfda-dea0-d2d9-ed13d7798b69",
"version": [1, 0, 0],
"min_engine_version": [1, 20, 0]
},
"metadata": {
"authors": ["ggZ + Credit to the 'More Apples Addon' for their assets"],
"generated_with": {
"blockbench_item_wizard": ["1.2.1"]
}
},
"modules": [
{
"description": "Behavior",
"version": [1, 0, 0],
"uuid": "fba84265-9120-4a05-f5e8-4136de47ba0b",
"type": "data"
},
{
"description": "custom components",
"type": "script",
"uuid": "50c78602-9279-46d3-b9b6-19561af3300c",
"version": [1, 0, 0],
"entry": "scripts/main.js"
}
],
"dependencies": [
{
"uuid": "3b9aa348-6e94-5e2e-9dc2-9894757d5d3c",
"version": [1, 0, 0]
},
{
"server_modules": "@minecraft/server",
"version": "1.19.0"
}
]
}```
'Missing dependency with ID 'a5498aed-bfda-dea0-d2d9-ed13d7798b69' and version '1.0.0'.'
weird
its just gone now
do i need to include the script & server dependencies in the resource pack as well?
Nope. So, the uuid of the first dependency should match your resource packs uuid, otherwise it will complain