hellos!!
im having a really bad time programing a datapack this days
First, sorry for my bad english, its not my mother language so i may commit many errors
i've been trying for a few days to program a datapack that replaces all the biomes in the world with their cold counterparts. For example: frozen rivers instead of regular ones, tundras and frozen plains instead of normal plains, etc. I don't have the slightest idea about programming, but with the help of 4 or 5 tutorials and some blogs, I've learned how to create the root folders and stuff.
any idea of how can i do the .json of that? ive just written one, i could send it if its necesary xddd but its really trashy
#Datapack to replace biomes
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
Someone will come and help soon!
💬 While you wait, take this time to provide more context and details.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
Fortunately this isn't really a matter of programming
Simplest way to do this would be to overwrite the vanilla overworld dimension Json file, and then just find-and-replacr every instance of a non-cold biome with the cold one you want there.
You can find the vanilla dimension Json file here. You'll put it in your data pack in data/minecraft/dimension
https://github.com/misode/mcmeta
sorry i cant find the json there but maybe its just because im dumb. Can u guide me throw the web? xddd sorry and thanks u xdddd
When you scroll down to the data link, then you can find it at that same filepath that I told you you'll put your copy
ok i just find it. The thing is, now what do i have to do? do i have to delete the other biomes or do i have to re-write the descripcion of every non-cold biome to set it to a cold biome descripcion?
Just find and replace each instance of something like minecraft:river to minecraft:frozen_river and etc.
ok but if i do that i will end up just with a bunch of same-coded biome, no? how that work? its not the same if i delete the others one? because it will be the same, but with some biomes repeated, no?
That's what you asked for, is it not?
You want to replace all non-cold biomes with their cold counterparts?
yeah yeah, but when i started doing that, i realiced that i where just deleting the others biomes and coping the ones that i wanted, so i just where repating the biomes. So i thought: "its what im doing useful?"
That's up to you, I'm just telling you how to do what you asked for.
ok, thaks a lot for your responce. But now i ask u: is what im doing useful to modify worldgen to only generate that kind of biomes or is just useless work?
That's entirely subjective
🎗️ Is your question resolved?
If your question is resolved, that's great to hear! Make sure to run /resolve or click the Resolve Question button. Otherwise, feel free to continue asking for help! :D
sorry maybe i didn't explain myseft in a good why, my english is a little bit bad. What i was trying to ask is: if i delete in the code the others biomes instead of replaceing them, will that work? but now, i proved by mysef that this metod don't work, but replaceing them neither. So now i ask: how can i do to change wordgen in so the game only gen cold biomes?
Replacing them does work, I already told you how
If you tried it and it didn't work, then you made a mistake and we can try to fix that
sorry for answer 20 days after xdddd i got busy those days. I have the datapack uploaded to a drive folder, can i send you the folder so you can fix it? sorry again for the late reponce xdxd
No
I'm not here to do things for you, I'm here to help you learn to do it yourself. If you're hitting a wall, describe your problem here and what you've tried, and we can work together to get it working
Alright! Thank you so much for the help. The problem is that, honestly, I don't know what I did wrong. I rewrote all the biomes and made them cold. Maybe it's a bit of a messy solution, but it was the only thing I could think of. The thing is, even so, it still doesn't work. I have no idea what it could be because I don't think it's a coding error; I copied the code into a website to check if it was correct, and it said the text was fully compatible with the .json format. I really don't know what it is anymore. I've even started wondering if I'm just making up the code and that this might not be a good way to change the biome values.
also im thinking that maybe i should do another dimension instead of change the overworld. I just want this thing to work so i can play a world in which only cold biomes spawns, i dont care for anything more
Alright! I've managed to get Minecraft to load the datapack, but for some reason, the game doesn't change anything at all. Everything stays the same. No biome changes. What could the error be, and how could I fix it?
<@&1166082198152159386> <@&1202694677766348840>
🙇 Helpers Arise!
Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)
might be because it was generated already before you changed
no no, i created the world with the datapack in the folder
What version is this for ?
You are overwriting the vanilla worldgen files, right?
Same filepath in your data pack?
And in what way did you rewrite them to make them cold? Be specific, provide an example
same filepath
im rewriting all the values except for rarity to avoid generation issues. for example, I take the "ocean" biome, change its name to "cold_ocean", modify all the values like temperature, humidity, etc., but leave the rarity the same. and I do the same for the rest.
1.21.1 i think, the newst one
well i dont know how the generation works, but if i didnt click into generete world, it should be not generated yet
Yeah that's not gonna work if you're not changing the dimension file
It's just gonna modify the actual cold ocean. Then the game is gonna realize the ocean biome is not in your data pack, and use the vanilla one
so how can i make the overworld to generate only cold biomes? do i have to create another dimension?
No, I've already told you how 😭
This right here
sorry if im been dumb. english is not my natural language and also i dont know anything about programing xddddd im trully sorry
the thing is that i dont really understand what i have to do when you say "overwrite"
like, i just did that
do i have to change it in the game or in the datapack? i dont understand it
also, do i have to keep the names or what do i have to do to "rewrite" the overworld dimension file?
ok so i tried to rewrite every biome parameter so, the game only have to change the form of every biome and that didnt work neither
the path that i put it was: data/minecraft/worldgen/dimension/overworld.json
its that ok?
In an hour I have to go back to work, so if someone can help me fix this before I leave, or at least know how to do it, that would be great, thank youuu!!
Change it in the data pack
To overwrite in this context just means to put your altered dimension file inside your data pack, but at the same filepath as the vanilla data pack's dimension file. Which, for the Overworld, is minecraft/dimension/overworld.json
Both?
Don't touch the paramaters
In the Overworld dimension file, wherever you see minecraft:river, just replace it with minecraft:frozen_river. Wherever you see minecraft:plains, replace it with minecraft:snowy_plains, and etc.
oooooh so only the names? okay okay
Yes.
so, what i have to do is: go to the web you told me, copy the overworld json, generate a new .json changing only the biomes names and then, put it in the path you said, no?
one thing, if i do that, all biomes will be the cold ones or only will change the names?
i just tryied
it dint work
didnt*
i dont understand why this didnt work, i changed every biome name
Should be working fine then.
it doesnt , it generate the world the same
Are you starting a new world to test it?
Can you put your dimension file on pastebin or something and send the link so I can double check it?
i cant send you the json file?
thats a drive link
i have to go now, but maybe i can continue speaking in work, depends how many work do i have to do today xdddd
Not yet
And no, I'm on mobile so it's easier to view in a browser
okidoki
Well the file is really long so I can't just like painstakingly check each line, but so far things seem pretty correct. You still have swamps and warm oceans and such, but I see plenty of snowy plains and snowy slopes. What biomes are you seeing that aren't cold?
forest, beach, birch forest...
Have you checked the logs when you start the world?
ok i just got it to work!!! thanks you very much xddd i couldnt make it without your help!!
i didnt write the correct pack_format xd