mojira.dev
MC-91329

Loot Tables don't work on servers.

I used the loot table here (http://pastebin.com/raw.php?i=FLsH34DP) On a server, in "<World Name>/data/loot_tables/Mobs/tier/tier_one_mob.json" However summoning a zombie using 'Summon Zombie ~ ~ ~ {DeathLootTable:"Mobs:tier/tier_one_mob"}' drops nothing when killed. I have also tried having the loot_tables folder in the folder the server is ran from as well as in a folder named "data" in the folder the server is ran from.

Comments 10

Please do not mark unreleased versions as affected.
You don't have access to them yet.

--- I am a robot. This action was performed automatically.

What happens when you try it in singleplayer?

It works as expected in my singleplayer world.

It works fine in singleplayer

~ redstonehelper I also tested his loot tables, and I can confirm it works in singleplayer. Any ideas?

Cannot reproduce. Placed the loot table in my singleplayer world, summoned a few zombies with it, killed them and it worked in singleplayer. Summoned a few more, then I put the world on a server. Killed the zombies there, they dropped your custom loot.

What happens when you put a working singleplayer world on a server?

I found the problem, It seems in multiplayer you can not use capital letters in folder/file names but in Single Player you can.

(And I did test & confirm moving the world from single player to multiplayer does not work)

Does this ticket need to be reopened?

I don't think so, it could just be the OS I'm using and if not it'd probably need a new ticket for the real issue anyway.

OK, this is a bit of an outdated report, but I recently ran into the same thing so I thought I'd throw in my two cents where it was relevant.

Now, I didn't check 1.14 because I am unfamiliar with the data structure of the newer versions, hence why I was doing this in 1.12, before the flattening. I did make several loot tables of my own, and I got them working completely in single-player. Now, I have two servers. One hosted on my computer, and another hosted on a server in Montreal.

After copying the loot tables to my Montreal server, I found that it didn't work. At my wits end (because I had spent several hours working on this), I tried on my local server (I just downloaded the world directly and made no changes to it). On my local server, the loot tables worked. Unable to find any flaw with the tables themselves, I found this ticket, and the comments suggested to make it entirely lowercase. I did this, and suddenly the loot tables worked completely on my Montreal server.

Now, I don't know if this is still present in 1.14 or not. All I know is that The Flattening affects a lot of capitalization in nbt structure and such, but what I do know is that there was at some point definitely a persisting bug regarding loot tables and the format that they are read in some situations.

For the record, I run Windows 7, and the server I host my Montreal server on is BisectHosting. I don't think this information will be helpful, but I might as well include as much as I know. If someone were able to test this in 1.14, that would be excellent.

Tron

(Unassigned)

Unconfirmed

Minecraft 15w43c

Retrieved