Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant add two modids #478

Open
Ultraraptor4 opened this issue Jan 26, 2025 · 7 comments
Open

Cant add two modids #478

Ultraraptor4 opened this issue Jan 26, 2025 · 7 comments

Comments

@Ultraraptor4
Copy link

using this config script in spawn.json
[
{
"result": "deny",
"mod": "graveyard",
"dimension": "minecraft:overworld"
},
{
"result": "deny",
"mod": "iceandfire",
"dimension": "minecraft:overworld"
}
]

and it doesnt work. when i use one mod id it works, but not both, have i typed it wrong?

@McJty
Copy link
Collaborator

McJty commented Jan 26, 2025

What do you mean by 'doesn't work'? There are so many ways something can fail. Also what version?

@Ultraraptor4
Copy link
Author

mod mods continue to show when i type /incontrol list
on 1.20.1
individually they work, but when i attempt to combine them is where it fails

@McJty
Copy link
Collaborator

McJty commented Jan 26, 2025

Try adding "when": "onjoin" to both rules
Also individual or together doesn't make a difference

@Ultraraptor4
Copy link
Author

both: [
{
"result": "deny",
"mod": "iceandfire",
"dimension": "minecraft:overworld"
},
{
"result": "deny",
"mod": "graveyard",
"dimension": "minecraft:overworld"
}
]

single:
[
{
"result": "deny",
"mod": "iceandfire",
"dimension": "minecraft:overworld"
}
]

@McJty
Copy link
Collaborator

McJty commented Jan 26, 2025

Did you try my suggestion?

@Ultraraptor4
Copy link
Author

Ultraraptor4 commented Jan 26, 2025

[
{
"result": "deny",
"mod": "iceandfire",
"when": "onjoin",
"dimension": "minecraft:overworld"
},
{
"result": "deny",
"mod": "graveyard",
"when": "onjoin",
"dimension": "minecraft:overworld"
}
]

like this?

@Ultraraptor4
Copy link
Author

thank you, it worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants