McJtyMods / InControl

Be In Control of Mob Spawns and others
MIT License
45 stars 16 forks source link

Changing the chance of spawning mobs from a certain mod #443

Closed Killer-xz closed 5 days ago

Killer-xz commented 3 weeks ago

Hello dear developer, I don't know if you remember me or not, but I'm the person who wrote to you asking for help to make a code to reduce the chance of spawning mobs. So, I abandoned it for a long time because I gave up and spent a lot of time trying to figure it all out, today I decided to come back. But I'm having a problem in the code again, I've read your wiki, watched almost every possible guide on YouTube, and still I'm getting some kind of error flying out. Please help me to fix my code, I will be very grateful.

Version 1.16.5

Code: [ { "dimension": 0, "mob": [ { "mob": "kimetsunoyaiba:kokushibo", "weight": 10, "mingroupcount": 1, "maxgroupcount": 1 } ] } ]

McJty commented 3 weeks ago

"dimension": 0 is not a valid dimension. You are looking at the wrong wiki. The dimension is something like "minecraft:overworld".

Also what file did you put that in?

You are also mixing things. If you want to put that in spawn.json then you shouldn't use weight, mingroupcount, etc because those are for spawner.json

Killer-xz commented 2 weeks ago

I put it all in spawn.json, it turns out to change the chance of spawning a mob, you need to write it all in spawner.json?

McJty commented 2 weeks ago

See the wiki for syntax. spawner.json and spawn.json work differently. There are examples on the wiki for both.

If you want to REDUCE spawns you have to do that in spawn.json If you want to ADD spawns you have to do that in spawner.json (but with totally different syntax)

Killer-xz commented 2 weeks ago

Ok, I get your point, but I'm a little unclear in terms of adding and reducing appearances, for example I have a situation where I need to reduce appearances not in chunk, but in terms of chance of appearance to make a strong mob more rare, in this case I don't understand where I should write

McJty commented 2 weeks ago

If it is 'reduce' then it is spawn.json. It's as simple as that

Killer-xz commented 2 weeks ago

Ok then what conditions should I use in spawn.json to reduce the chance of spawning mobs, you said I don't need to use weight etc in spawn.json

McJty commented 2 weeks ago

There are various possible conditions. It all depends on what you need:

The wiki has a list and also lots of examples. Also I recommend my discord (link on wiki). It's easier to help there

Killer-xz commented 2 weeks ago

Ok, I will try it today and I will also go to Discord, thank you, and also please tell me where to write to you for help in Discord

McJty commented 2 weeks ago

Just go to my channel. There is an incontrol room

Killer-xz commented 2 weeks ago

Ok, thanks