Make a lucky block or a lucky item

Started by R... on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 days ago
Joined Mar 2020
Points:
1183

User statistics:

  • Modifications: 6
  • Forum topics: 71
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 260
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?

Active 9 months ago
Joined Apr 2020
Points:
708

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 56
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.

Active 2 years ago
Joined Dec 2017
Points:
1043

User statistics:

  • Modifications: 7
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 322
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

Active 9 months ago
Joined Apr 2020
Points:
708

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 56
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

Active 2 days ago
Joined Mar 2020
Points:
1183

User statistics:

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

Thank you Kinyoshi!