#Datapack to replace biomes

1 messages · Page 1 of 1 (latest)

formal pawn
#

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

fallen groveBOT
#

<@&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

desert herald
#

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.

formal pawn
desert herald
#

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

formal pawn
#

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?

desert herald
#

Just find and replace each instance of something like minecraft:river to minecraft:frozen_river and etc.

formal pawn
#

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?

desert herald
#

That's what you asked for, is it not?

#

You want to replace all non-cold biomes with their cold counterparts?

formal pawn
#

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?"

desert herald
#

That's up to you, I'm just telling you how to do what you asked for.

formal pawn
#

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?

desert herald
#

That's entirely subjective

fallen groveBOT
formal pawn
#

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?

desert herald
#

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

formal pawn
#

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

desert herald
#

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

formal pawn
#

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.

formal pawn
#

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

formal pawn
#

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?

fallen groveBOT
# fallen grove <@&1201956957406109788>

<@&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)

fading glen
formal pawn
#

no no, i created the world with the datapack in the folder

tepid osprey
#

What version is this for ?

desert herald
#

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

formal pawn
#

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.

formal pawn
formal pawn
desert herald
#

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

formal pawn
#

so how can i make the overworld to generate only cold biomes? do i have to create another dimension?

desert herald
#

No, I've already told you how 😭

formal pawn
#

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?

formal pawn
#

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!!

desert herald
#

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

desert herald
#

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.

formal pawn
#

oooooh so only the names? okay okay

desert herald
#

Yes.

formal pawn
#

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?

desert herald
#

...

#

Give it a try and find out

formal pawn
#

i just tryied

#

it dint work

#

didnt*

#

i dont understand why this didnt work, i changed every biome name

desert herald
#

You did it wrong

#

Where did you put the file in your data pack?

formal pawn
#

data/minecraft/dimension

#

inside dimension i put the overworld.json

desert herald
#

Should be working fine then.

formal pawn
#

it doesnt , it generate the world the same

desert herald
#

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?

formal pawn
#

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

formal pawn
#

ok i can speak

#

did u check it?

desert herald
#

Not yet

desert herald
formal pawn
#

okidoki

desert herald
#

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?

formal pawn
#

forest, beach, birch forest...

desert herald
#

Have you checked the logs when you start the world?

formal pawn
#

ok i just got it to work!!! thanks you very much xddd i couldnt make it without your help!!

desert herald
#

What changed?

#

Or rather, what fixed it?

formal pawn
#

i didnt write the correct pack_format xd