ghzdude / MCRandomizer

Randomizes several aspects of Minecraft!
Other
0 stars 0 forks source link

Crafting Recipe Loot Tables Not Randomizing Properly #17

Open TheVisionaryOne opened 2 weeks ago

TheVisionaryOne commented 2 weeks ago

After messing around with the crafting recipe randomizer for a bit, I encountered a bug where the loot tables only seem to randomize on the first world creation. After that, any new worlds created share the exact same randomized loot table as the first world.

The only current solution to this problem seems to be deleting the "randomizer" folder in config and re-launching the game.

ghzdude commented 1 week ago

the Recipe Randomizer uses a data structure that maps a vanilla item to different item. this data is then saved to saves/world/data/ so that it only runs once.

however, there is a null check when the server starts, functionally requiring a full restart to update the randomizations correctly.

TheVisionaryOne commented 1 day ago

Ah, that's unfortunate. It does seem like the randomizer works as you describe. I'm not entirely sure why it seemed necessary to delete the "randomizer" config folder, but it appears that is no longer necessary. I was able to successfully reset loot tables after simply restarting my game, just like you say. This is a bit tedious, but I suppose it's better than having to delete files before every world creation.

However, after extended testing, I encountered a separate issue, which I have submitted here.

This issue makes world creation impossible after a game restart, conveniently enough...