How to Generate Random Loot in Chest EFFICIENT

Started by marcell123455 on Thu, 08/08/2019 - 10:19

Topic category: Help with modding

Last seen on 14:57, 14. May 2020
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
How to Generate Random Loot in Chest EFFICIENT
Thu, 08/08/2019 - 10:21 (edited)

Hi I am tying to create random loot in chests. I created these procedures, they work but they also crash the game sometimes and are very inefficient. Has anyone a idea how to fix this, or create a completely new way to get random loot in chests?

When a "Spawnerblock" is placed this will be executet on update tick:

https://imgur.com/2OX2UXS

NormallootCount is 6

https://imgur.com/2OleKHR

than comes the final generation

https://imgur.com/PIXc55S

 

 

THANKS :)

Edited by marcell123455 on Thu, 08/08/2019 - 10:21
Last seen on 18:57, 1. Jun 2020
Joined Aug 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Fir the moment, we can’t…
Wed, 10/16/2019 - 00:38

Fir the moment, we can’t make loot tables, but it’s plannified.

Last seen on 20:25, 8. May 2020
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Make your loot table in…
Wed, 10/16/2019 - 09:45

Make your loot table in procedures using this method: https://www.youtube.com/watch?v=aA04iEQAdMs

Here, you can see a complete vanilla chest loot table: https://www.youtube.com/watch?v=oGYHO4wpLGw&t=70s

Read the pinned comment on the second video.