Is there a way to raise water by 3 layers/blocks every 3 minutes? So I'm working on this map where water will rise 3 blocks every 3 minutes or 1block/minute. Is it possible??? If yes can you please help out?
For a small area that you know is loaded what webrosc said is easy.
fill <x1> <y1> <z1> <x2> <y2> <z2> minecraft:water replace minecraft:air
but you can only do a volume of 32767 blocks in one command, so an area of 104x104 for 3 blocks high or 181x181 if you do 1 layer at a time.
It would be relatively easy to increase the area a bit by adding more command blocks.
There's still the problem of whether all the chunks are loaded, if you're using 1.14 or later you should be able to use the forceload command to keep a whole area loaded but you need to consider lag of course, and I can't find info on how large an area can be forceloaded.
If you don't mind having some or most of the water under the surface be flowing you can cheat a bit by centering the x and z coordinates on the players position, using whatever the desired water height currently is as the y coordinate.
execute at @p run fill ~-50 <y> ~-50 ~50 <y> ~50 minecraft:water replace minecraft:air
That way the command block would constantly be adjusting the water level around the player as they moved around. If they moved fast enough they might be able to outrun the water and find themselves in a dry area with water above them that hasn't had time to reach ground level yet. That could be fixed by chaining command blocks so you added water at say, every 10 layers up to the desired height.
I see people doing fantastically complicated things with scoreboards so I'm sure it's easy to increase a variable by 3 each time but it might as well be black magic as far as I'm concerned.
What I personally would try in order to cut down on the number of command blocks needed would be to have an invulnerable named mob floating in the water and use coordinates relative to their position.
Something like:
execute at @e[name=George] run fill <x1> ~1 <z1> <x2> ~3 <z2> minecraft:water replace minecraft:air
Or the height based on their position and the X and Z based on the players position, though I don't really know how to mix and match like that.
If you have a naturally generated world with caves you might need to double up on the command blocks to replace cave air with water as well as ordinary air (unless you wanted caves to be safe spaces.)
--
Another problem/feature with caves would be if you're only adding water at the top around the player then if they move to a new area then caves wouldn't be filled with water.
I did that before (november 2019). And this is pretty complicated.
If you wanted this to get some hundred thousands of Youtube subs (which is why this is asked 90% of time), just get rid of this idea, it requires some good knowledge...
Here's the link to the thread where I posted my system (an 1.14 downloadable datapack). This thread is in french so you'd need some translation skills/google
As you can see on the following pictures, you can change the water level of the whole world, and even set whatever block you want.
I used a chunk generator system so level changes constantly occur in a 5x5 chunk radius from player. That way, the whole world is affected.
If I remember well, you can adjust the level up and down any time you want. It uses scoreboards.
HOWEVER, having experienced it myself, I can tell this is funny 5 minutes, and you get bored. Not to mention countless issues : generation lag, block replacement, suffocation,...
In fact, I'm pretty sure I had way much more fun building this pack than testing it. It's just "wow I can change level" then goodbye.
This could be made on 1.16 as well as 1.14.
However, well... you're better not hope I'd make an update...
I'm starting to get away from minecraft. 1.16 reached my computer limit, loading screens are now way too long, and I did not learn 1.16 command / datapack world generation improvements.
In fact, I'm going to get seriously into music... you can even listen to some of my stuff on my youtube chanel
I got into chiptune music composition.
You can listen to them on my Youtube channel : https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Is there a way to raise water by 3 layers/blocks every 3 minutes? So I'm working on this map where water will rise 3 blocks every 3 minutes or 1block/minute. Is it possible??? If yes can you please help out?
Thank you!
How large an area are we talking about?
For a small area that you know is loaded what webrosc said is easy.
fill <x1> <y1> <z1> <x2> <y2> <z2> minecraft:water replace minecraft:air
but you can only do a volume of 32767 blocks in one command, so an area of 104x104 for 3 blocks high or 181x181 if you do 1 layer at a time.
It would be relatively easy to increase the area a bit by adding more command blocks.
There's still the problem of whether all the chunks are loaded, if you're using 1.14 or later you should be able to use the forceload command to keep a whole area loaded but you need to consider lag of course, and I can't find info on how large an area can be forceloaded.
If you don't mind having some or most of the water under the surface be flowing you can cheat a bit by centering the x and z coordinates on the players position, using whatever the desired water height currently is as the y coordinate.
execute at @p run fill ~-50 <y> ~-50 ~50 <y> ~50 minecraft:water replace minecraft:air
That way the command block would constantly be adjusting the water level around the player as they moved around. If they moved fast enough they might be able to outrun the water and find themselves in a dry area with water above them that hasn't had time to reach ground level yet. That could be fixed by chaining command blocks so you added water at say, every 10 layers up to the desired height.
I see people doing fantastically complicated things with scoreboards so I'm sure it's easy to increase a variable by 3 each time but it might as well be black magic as far as I'm concerned.
What I personally would try in order to cut down on the number of command blocks needed would be to have an invulnerable named mob floating in the water and use coordinates relative to their position.
Something like:
execute at @e[name=George] run fill <x1> ~1 <z1> <x2> ~3 <z2> minecraft:water replace minecraft:air
Or the height based on their position and the X and Z based on the players position, though I don't really know how to mix and match like that.
If you have a naturally generated world with caves you might need to double up on the command blocks to replace cave air with water as well as ordinary air (unless you wanted caves to be safe spaces.)
--
Another problem/feature with caves would be if you're only adding water at the top around the player then if they move to a new area then caves wouldn't be filled with water.
Just testing.
I did that before (november 2019). And this is pretty complicated.
If you wanted this to get some hundred thousands of Youtube subs (which is why this is asked 90% of time), just get rid of this idea, it requires some good knowledge...
Here's the link to the thread where I posted my system (an 1.14 downloadable datapack). This thread is in french so you'd need some translation skills/google
https://minecraft.fr/forum/threads/world-filler-datapack-1-14-la-survie-r%C3%A9invent%C3%A9e-oui-encore.256032/
As you can see on the following pictures, you can change the water level of the whole world, and even set whatever block you want.
I used a chunk generator system so level changes constantly occur in a 5x5 chunk radius from player. That way, the whole world is affected.
If I remember well, you can adjust the level up and down any time you want. It uses scoreboards.
HOWEVER, having experienced it myself, I can tell this is funny 5 minutes, and you get bored. Not to mention countless issues : generation lag, block replacement, suffocation,...
In fact, I'm pretty sure I had way much more fun building this pack than testing it. It's just "wow I can change level" then goodbye.
This could be made on 1.16 as well as 1.14.
However, well... you're better not hope I'd make an update...
I'm starting to get away from minecraft. 1.16 reached my computer limit, loading screens are now way too long, and I did not learn 1.16 command / datapack world generation improvements.
In fact, I'm going to get seriously into music... you can even listen to some of my stuff on my youtube chanel
I got into chiptune music composition.
You can listen to them on my Youtube channel :
https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).