Incorrect loot table folder placement

Started by Linksvix99 on

Topic category: Troubleshooting, bugs, and solutions

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Incorrect loot table folder placement

When you make a for your mod, you expect access to that loot table to be easily obtained. Unfortunately it needs to be in a specific subfolder of the <namespace>/loot_tables folder, and the name of the subfolder needs to match the type of loot table that is in it (not really, but doing it this way avoids confusion).

What MCreator does is place the loot table file into the loot_tables folder itself, rather than generate a new folder at the path <namespace>/loot_tables/chests, for example. This results in the loot table items being obtainable through the /loot command but not through any other method from my testing

The solution should be simple, at least I believe so - when creating a new loot table, check to make sure the correct subfolder exists in loot_tables. If it does, place the file in the folder. If it doesn't, create a new folder with the correct name with the loot table inside it. And if a folder is empty, delete it to reduce clutter, as it can be remade if it is needed again.

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Never mind, could a…
Sat, 11/07/2020 - 15:18

Never mind, could a moderator please remove this post? It just turns out that I neglected to set the registry properly.