Hello everybody! I've currently got a Terraria mod in development that I'm looking to improve. It scans the world into set "chunks" and is capable of providing information on a chunk by chunk basis. It is currently capable of providing this information about chunks:

  • It's depth (with smart true surface finding)
  • Presence of spreadable evil blocks (with modded support)
  • If any structures are present (finnicky but mostly accurate)
  • If any liquid is present
  • If any team has claimed said chunk (for a future use in another mod)

It is also capable of grouping these chunks into specific zones that can be interacted with, and the zones have some smart features to give them a cleaner shape. You can see in the images I have the border overlays turned on where specific colors can tell you specific information about what's inside of it. I've got a few ideas for other mods to build off of this, such as a team chunk claim mod, a Civilization style map overlay that can tell you some information on the world map, and potentially even a mod that can dynamically generate a containment wall around Evil zones that can accurately and intelligently contain spreading evil blocks in a way that doesn't require turning off of their spread entirely. I'd love any questions, suggestions, comments, critiques, or anything else anyone has to say about this to make this the best it can be. I am still new to mod development, but this has been a fun project so far and I plan on making the whole thing open source so anyone else could utilize it. Thank you for reading!

Image 1 shows chunk borders on as well as the UI to show you the information from that chunk. Image 2 shows the chunk borders on the world map. Image 3 shows the zone borders on the world map.

by OfflineThreat

1 Comment