What did I make?
WorldLoot allows you to spawn structures post-generation in your world.
This can be used for stuff such as random loot drops inside your world that spawn inside generated and new chunks.
Showcase video: https://youtu.be/desu4AxK-B4
What was challenging?
There were a few challenge. One challenge was to find out which classes/methods in the Minecraft source code to use (difficult if there is no documentation online)
Another challenge was that I had to restart the game each time I changed something because mixin reload requires additional setup. I’ve configured mixin hot-swapping somewhere at the end. Additionally I was debugging a problem with the map containing a map because I tried adding 0 maps to a map…. (the debugger showed me that the original map had elements but the other one didn’t)
What am I proud of?
I’m proud of myself not becoming crazy with the difficulties I had especially because of the bug with the map
How to try
- Download latest release from the releases page
- Put the mod inside a Minecraft 26.2 instance (useful guide https://docs.fabricmc.net/players/installing-fabric/)
- Launch Minecraft with the mod
- Configure inside <minecraft_dir>/config/worldloot.json
- Restart the game and test the change
- 5 devlogs
- 11h