Jump to content

Recommended Posts

Posted

I've been trying to use a loot table to define the drops for a block, but I'm having trouble reading the loot table. I have confirmed that the ResourceLocation is pointing to the right table, but generateLootForPools is spitting out an empty list. Here is my code:

 

https://pastebin.com/1Hf6nnxC

 

And here's the loot table I'm using:

 

https://pastebin.com/LtFrh9Ra

 

I have a sneaking suspicion that the problem is with the loot context thing, but I have no idea what that is or what it does, even after studying the source code. Is that the problem, or is there something else I'm missing?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.