That topic was discussed a lot there but I still can't find a solution.
I have searched through a lot of topics here and even more links in google but I still can't get how to set up custom loot table.
I have tried to change loot in bonus chest as a training before realizing an initial idea but without success.
I have tried some ways I have found in my searches:
1) set up new loot table on LootTableLoadEvent: chest spawned empty; after some searches I have found that way is kind of deprecated and unwelcome;
2) some answers was like "just put json in right folder"; I have put my json (I will paste it lower) at src\main\resources\data\cupiditas\loot_tables\chests\spawn_bonus_chest.json - that did nothing, the chest was neither empty nor filled with desired items.
3) I guess most proper way to do that is mightly Loot Modification. I have pretty clearely got how to use it with items, but it's not clear for me how to use it with chests and I haven't found any examples with chests.
I would really appreciate if you point me to the right direction.
Thank you in advance!