Detecting underground bases

mrmodern

New member
I was considering creating a (private) server with a rule: "no underground bases". It is probably self explanatory, why such rule would enhance gameplay.

However, I have encounter a small problem... How do I enforce it? Are heat generating objects (such as forges, campfires) encoded somewhere in plain text in server save files? Or is it binary? In principle, I could write a small script, that would regularly scan save files and look for such objects and their coordinates, and if it finds forge somewhere underground, I could then take action. Unfortunately, I am not yet acquaintanced with how objects are encoded in save files. Any help on that?

 
Only way I can think of offhand is to mod the server so that surface ores are more prevalent, and give stone blocks the properties of bedrock. (Don't forget to comment out the recipe to make stone.)

Even if you could come up with a script to scan, there is no definitive way to recognize what is "underground" by looking at the coordinates.

 
Back
Top