Make a lucky block or a lucky item

Started by Ro... on

Topic category: Help with modding (Java Edition)

Last seen on 18:02, 29. Sep 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a lucky block or a lucky item

Hi i want to make a item that when u right click, it will give a random item. i saw this forum topic https://mcreator.net/forum/31160/random-rewards

but it was in 2016. what i want to ask is how work and how to use the stacked event. can someone tell how?

Last seen on 04:49, 30. Jul 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try using procedures for the…
Sun, 07/26/2020 - 04:03

Try using procedures for the "When block right clicked" event. You can create a random outcome using them.

Last seen on 21:24, 26. Dec 2022
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this is what I'm setting up…
Sun, 07/26/2020 - 07:46

this is what I'm setting up for my Green Thorns mod. when it runs through it, somethings are rarer drops that others, the last drop in the chain is the most common drop..

https://www.mediafire.com/file/k6ebol9n6f53cfj/randomitemprocedure.ptpl/file

 

randomitems

Last seen on 04:49, 30. Jul 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If it makes it any easier,…
Sun, 07/26/2020 - 12:07

If it makes it any easier, you could play around with the loot table of the block, it saves having to create a procedure for the drops instead

Last seen on 18:02, 29. Sep 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you Kinyoshi!
Sun, 07/26/2020 - 13:16

Thank you Kinyoshi!