Custom loot tables are not working on realms.
I wanted to add loot tables to my realms server, but the server just keeps using the standard loot tables no matter what. Tried changing folder locations, downloading, reuploading... Nothing works.
In single player they work fine for me though.
The loot_tables folder is in the following directory:
/Users/Happyness/Library/Application Support/minecraft/saves/tables_test/data
Actual loot_tables folder with all .json files is attached.
Thank you for your help.
Environment
apple mac book pro
Created Issue:
Custom loot tables are not working on realms.
I wanted to add loot tables to my realms server, but the server just keeps using the standard loot tables no matter what. Tried changing folder locations, downloading, reuploading... Nothing works.
In single player they work fine for me though.
I am unable to find any help in the forums.Thank you for your help.
Environment
apple mac book pro
I wanted to add loot tables to my realms server, but the server just keeps using the standard loot tables no matter what. Tried changing folder locations, downloading, reuploading... Nothing works.
In single player they work fine for me though.
I am unable to find any help in the forums.Thank you for your help.
I wanted to add loot tables to my realms server, but the server just keeps using the standard loot tables no matter what. Tried changing folder locations, downloading, reuploading... Nothing works.
In single player they work fine for me though.The loot_tables folder is in the following directory:
/Users/Happyness/Library/Application Support/minecraft/saves/tables_test/data
Actual loot_tables folder with all .json files is attached.Thank you for your help.
How did you try to replace the stock loot tables ? Where did you place the custom loot tables ?
Downloaded Realm folder
Pasted loot_tables Folder to:
Uploaded world to realm.
Inside loot_tables there is the standart minecraft folder and my custom one. The .json files link to the custom one via:
{ "rolls": 1, "entries": [ { "type": "loot_table", "name": "random_loot:mobs_tier_01", "weight": 1 } ] }Works in singleplayer.
Realms does not seem to recognise the .json files at all, because if there was an error, mobs should drop nothing. Instead they drop their normal loot, as they would do in vanilla.
The provided loot table is invalid. You are missing a Pools list.
Please attach the actual loot table you're using, the full filepath directly to the file (including filename), and the command you're using to create the mob if applicable.
Here you go... hope this helps.
The actual path is:
/Users/Happyness/Library/Application Support/minecraft/saves/tables_test/data
There is a pools list, its just to long to copy it all.
Entire loot_tables folder is now attached.
Thanks for your help.
Btw... tested it on a single mob, with a single file... also does not work.
Are the loot tables for the realm inside /data/loot_tables/ or just in /data/? If it's just in /data/, it'll need to be moved deeper into /data/loot_tables/. I can confirm that the tables do work in singleplayer. I personally don't have a realm to test this on, but I can't think of any other situation where they drop normal loot apart from being in the wrong folder.
They are in data/loot_tables.
Maybe it'll get fixed eventually.
I just put a lot of work in it and was excited to test it with some of my friends.
Alright, I went and got a realm and checked it out.
The JSON parser that's used for validating custom loot tables when uploading is stricter than what the game itself uses (likely due to different programming languages, or a different library). The comment lines you have in the tables (such as //mob tier 01) are breaking syntax, so the file isn't actually uploaded, which is why the mobs are dropping normal loot. Any of the multi-line string data you have (such as for the set_tag function) must be on a single line. You were also missing a comma between two pools for the slime.json table.
I've attached a new set of loot tables that should work for you.
In the future, you can use the JSONLint validator, which seems to catch the issues that would appear when uploading that wouldn't be an issue in singleplayer.
Wow, thank you so much!
I thought I had to give up on this.
I will use the validator you've linked and try it out on the server first thing tomorrow.
Seriously... Thank you for giving away some of your time to help me out