Loot Table Procedures

Started by Khmer on Fri, 05/22/2020 - 19:21

Topic category: Mod ideas exchange

Last seen on 04:46, 20. Jun 2021
Joined May 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Loot Table Procedures
Sat, 05/23/2020 - 19:31 (edited)

   Hi. I'm making a "Realistic Start" mod that makes it to where you need a tool to get wood from trees. I don't know how to do this though, so I have an idea for two new procedure blocks; "If Block Destroyed By Tool," and "Loot Table" The "If Block Destroyed By Tool" block would have two blanks, one for a block, and one for a tool/item. The "Loot Table" block would have a drop-down piece for a loot table that you created, or that's already in the game. Here's an example:

If > block (your choice) destroyed by tool (your choice)

Do > loot table (your choice)

If you could find a way to add this, that would be greatly appreciated.

 

Edit: Also, a "Disable Loot table" block would be nice too. It would work similarly to the "Loot Table" block, but opposite.

Edited by Khmer on Sat, 05/23/2020 - 19:31
Last seen on 21:59, 19. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
This post belongs in the…
Mon, 05/25/2020 - 15:26

This post belongs in the help with modding group

anyway

ImageTop Left is the main procedure (50% chance drop something)

Second left - Drop one item one or two

Third left - 33% chance to drop something

Right - First item has a 50% chance to drop, second and third both have a 25% chance to drop

Remove the spawn gem if you want a chance to not drop an item

It basically asks if a random number from 0 - 1 is higher than 0.5, it means that it will only have a 50% chance to drop.

 

Hope i was helpful

-Fred

Last seen on 04:46, 20. Jun 2021
Joined May 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
   Even though I'm not…
Mon, 05/25/2020 - 17:28

   Even though I'm not trying to make a random chance for something to happen, I can remake this with some adjustments and see if that will work. Thank you very much.

Last seen on 18:42, 7. Dec 2020
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I was just looking around…
Tue, 12/01/2020 - 20:26

I was just looking around for ways to use procedure blocks to roll loot tables and this came up on my search engine, but it is the most helpful thing I've found, and I don't need to set up loot tables!