Hey! I am making a Doctor Who themed modpack and I've been using datapacks to fix compatibility. Let's assume I have a mod that adds the planet Gallifrey as a custom dimension, and the Doctor Who Regeneration mod which alongside other things adds some Time Lord mobs. Is there a way for me to spawn the said mobs in the biome of the custom dimension?
#Making mobs spawn in a dimension
1 messages · Page 1 of 1 (latest)
yes you have to add the mob to the spawn definitions of all biomes in your dimension
this generator may help https://misode.github.io/worldgen/biome/
oh it's a dimension from another existing mod
ooh ok yea that's fine. You can just replace the biome files of said dimension with your own datapack. Have you ever made a datapack before?
yeah, mostly recipes
so I'm guessing I need to make a json file with the same content as what's in the mod
and add mobs spawning?
indeed
you should put that file in the same namespace and subfolders and give it the same name
now you just need to know the original files
I unpacked the jar file with winrar lol
really useful for learning how to make recipes
indeed
everytime I need to learn how a newly introduced json file should be structured, I always look at the vanilla minecraft files https://mcasset.cloud/1.21.11/assets
assuming I'd be adding mobs to the wild endevour and dry lands biomes, what should I do?
Also hoping i structured it correctly lol
if you want the mob to spawn in the whole dimension you should add it to all the biomes in that dimension
biomes are located under data/<namespace>/worldgen/biome
-# depending a little on the minecraft version you use
this is the dimension file and that part basically tells the dimension what biomes it contains
Yea no problem, we all once started there and you're already doing a really good job
oh I see the section where I need to put the mob type for ambient spawning
what is the weight parameter?
once it tries to spawn a mob it looks for all mobs in it's category. The weight value determines what chance that specific mob has to be selected. You can calculate the chance in percentage using current_mob_weight / sum_of_all_weight_values_in_it's_category * 100
so assuming I'd want the Time Lord Guard to spawn more often I'd need it to have a higher weight parameter than a Council Member, right?
exactly
higher weight = more likely to spawn but with the side effect that other all the rest will spawn less likely
me casually forgetting i genuienly have VSC installed and for some reasong using notepad for like 10 minutes 😭
@spare crow I added a piece of code to the datapack to make the mob spawn and it just straight up makes the entire world lag out when stepping into the dimension
like the ms ticks just stops in place
also I can't see any of the mobs actually spawning :c
I think this is like really bad? lol
and it crashes when exiting btw
uugh maybe it's spawning way to many mobs?
try decreasing the weight value
Otherwise it's probably an issue with the mod
anything in your logs?
I made it work by tying the spawning to a structure instead
Well that's the fun part, 80% of what's in the log is actually completely useless and unreadable since minecraft's code is obfuscated (will change soon). What you're basically looking for are keywords that give tips on what's happening