Jump to content

[1.16.3] Looting table dropping different items at the same time


Recommended Posts

Posted

Hi,

I'm currently learning how to make mods for minecraft.

To go further than the tutorial that I'm following, I decided to make a loot table with one condition :

  • if the block is broken with a fortune tool, it drops its block item;
  • If not the block breaks into two different items;


I've understood how to create the condition that allows a block to drop one item or another depending on whether the player breaks it with an enchanted tool, but I'm struggling to make a block drop two different item at the same time.
 

If you could help me do that, it would be super nice.

Posted

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Thank for the answer but I don't think you understood my question. I already figured out how to create a condition (I've already looked your link). What i'm looking for is how to make a block drop different items at same time when the player breaks it;
For exemple: the player broke my custom block and it drops a wooden plank and a stick at the same time.
Maybe I can do this with Predicate but if so, I haven't understand how.

Posted
1 hour ago, Trobibot said:

Thank for the answer but I don't think you understood my question. I already figured out how to create a condition (I've already looked your link). What i'm looking for is how to make a block drop different items at same time when the player breaks it;
For exemple: the player broke my custom block and it drops a wooden plank and a stick at the same time.
Maybe I can do this with Predicate but if so, I haven't understand how.

All of the vanilla loot tables use a predicate for silk touch. Its the same thing.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.