Removal of vanilla structures

Started by Tazgirl on

Topic category: Help with modding (Java Edition)

Last seen on 16:05, 6. May 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Removal of vanilla structures

I'm working on an overhaul mod and I wanted to remove the generation of all vanilla structures for balance reasons. I know it's not possible with procedures but does anyone have any java code that does this?

Last seen on 20:43, 20. Aug 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Vanilla structures are…
Wed, 01/17/2024 - 13:03

Vanilla structures are pretty hard coded into the game- it may be possible, but you're right, definitely requires custom code. I've been trying to find a better way of doing this for my own structures mod, but it's complex enough I sorta just decided to advise people to disable vanilla structures when creating a new world. If you know of any other mods or datapacks that do this, you could try looking at their github repositories to see if you can figure out how they did it.

Though heads up, the built-in 'disable vanilla structures' option does not actually disable all structures- you can remove world-feature type structures, (dungeons, desert wells, strongholds, etc.) using a datapack, or by adding a 'minecraft' data file to your mod's src and putting the overriden NBT files in there. This method doesn't seem to work on non-feature structues, but if you wanted to disable or replace all the trees for some reason...