Quarry Plots, Regeneration of Empty Quarries.

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Daxtillion

Active Member
Jul 29, 2019
12
1
28
Hey All,
So plain and simple. I saw a server that had 'Quarry Plots' just a bunch of 64x64 plots designed to be used to quarry in a specified area of the world (rather than people quarrying where ever they please)
The server i was on managed to do this, but also managed to regenerate all the empty quarry plots once a week. I searched and searched thinking this was a plugin but couldn't find anything. I even tried using both world edit and world guard to try and regen the worlds but only managed to crash the server as they are just too big to regen.
Does anyone know how this can be done?
Cheers.
 
The games region data is broken up into 32 chunk by 32 chunk (or something like that) areas for the purpose of storage on disk.

http://minecraft.gamepedia.com/Region_file_format

This means you can demarcate an area, and simply delete the corresponding ./world/region/r.X.Y.mca file to force it to regen on next load. Each .mca file contains (essentially) a 512x512 area.
 
The games region data is broken up into 32 chunk by 32 chunk (or something like that) areas for the purpose of storage on disk.

http://minecraft.gamepedia.com/Region_file_format

This means you can demarcate an area, and simply delete the corresponding ./world/region/r.X.Y.mca file to force it to regen on next load. Each .mca file contains (essentially) a 512x512 area.
Thanks so much for the reply mate! This sounds feasible i like it! How do i work out which file belongs to where i want the plots?
 
The math is in the linked article.
Basically, to find the file that corresponds to a particlar co-ordinate, take the x & z co-ordinate, and divide them by 512, and cut off the floating point part. - Being sure to subtract 1 if the result is negative.

So, if you are at 700,64,-100:

700/512 = 1.3167... => 1
-100/512 = -0.194... -1 => -1

The file containing this point would be r.1.-1.mca
 
Hey mate,
So i read the link you posted, did the maths, isolated the right file,
I want the quarry plots (as in the boarders i have created to mark out each quarry) to stay in position, My plan was to just copy the right file (which in my case was r.5.0.mca) i made the plots, saved the file and then did a test removing a section, I then replaced the file with the one i saved earlier, however it didnt seem to change anything? the section i removed was still missing?
any insight would be much appreciated.
(you can sort of see what im talking about, looking at the bottom of the map)
http://23.95.27.174:8123/
 
Did you restart the server? Modifying the file while the server is running will probably have undefined results
 
I know this is rather off topic, but thought I would just throw it outthere anyway. It would be a whole lot simpler to just set up a Mystcraft world for people to quarry/go nuts in and then once in a while when need be just delete the dimension file to completely reset the world and start fresh. A lot safer also than messing around with your overworld as well.
 
  • Like
Reactions: Museli and E_DM_B
Did you restart the server? Modifying the file while the server is running will probably have undefined results
Hey Mate,
So i stopped the server.
Did the maths from the co-ords, worked it out to be, 5.-1, Coppied that file (while all plots were untouched)
Started the server, dug out some of the plots as a test,
stoped the server, deleted the 5,-1 from the server and replaced it with the copy from earlier,
started the server, And the dig outs were still there, (aka it hadn't reset :( )
Any other ideas?
(if the rounding of the numbers is to the nearest whole number i did all the maths right)

I know this is rather off topic, but thought I would just throw it outthere anyway. It would be a whole lot simpler to just set up a Mystcraft world for people to quarry/go nuts in and then once in a while when need be just delete the dimension file to completely reset the world and start fresh. A lot safer also than messing around with your overworld as well.

Rhn, Mystcraft is disabled on our server, and as quarries are world anchors effectively i dont want them forcing more dimensions open.
 
Rhn, Mystcraft is disabled on our server, and as quarries are world anchors effectively i dont want them forcing more dimensions open.
Sure, understand that. But you should consider that having one simple dimension(flat dessert for example) created and managed by an OP, will often be much less of a drain on the server than people loading parts of the overworld. This is due to all kinds of things tend to be going on in the overworld due to special biome/terrain generations, mod adding various environmental stuff etc.

And if you as a server owner have Mystcraft activated, it is rather simple to just disable a key item like the bookbinder in the config. That way you will be the only one able to ever create worlds, while the rest of the people can still enjoy stuff like intralinking portals etc.

Honestly IMO, mystcraft(creating worlds etc) should ONLY be used as a OP/moderators tool on a server. But it is a great one at that if used right.