Random box procedure

Started by Ericcool09 on

Topic category: Help with modding (Java Edition)

Last seen on 21:57, 29. May 2024
Joined Feb 2023

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Random box procedure

Hello, basically my problem is that I am trying to make a box that when you place it, it opens and drops a random object from a list. I have tried a thousand ways to do it and I can't find any solution. I have only been able to make a procedure that more or less works, but I don't like it because I don't understand how to change the percentage in which each object can appear. I don't know if it has been understood correctly, I leave a screenshot so that you understand a little what I am looking for, thank you. (I would also like to be able to add more than 9 items to the list, the problem is that when I do it it doesn't work).