Randomizer

Started by Logdawg940 on

Topic category: Help with modding (Java Edition)

Last seen on 23:14, 21. Jul 2020
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Randomizer

So I want to make it to where if the player obtains a specific item and shift right clicks with it, it becomes a new item. BUT there is a chance of recieving another item. Like a loot bag where you have a chance of getting a diamond, a emerald, or a gold ingot.

Last seen on 17:49, 25. Mar 2021
Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can do that using…
Tue, 02/26/2019 - 11:41

You can do that using procedures :)

Here is a tutorial:

https://mcreator.net/wiki/procedure-system#wiki-index-3

You can use multiple "if blocks" for checking different values to make multiple rewards.

Bind this procedure to "on item right-clicked on air" trigger of a custom item you made and it will work.

At the moment you can't check if the player is shifting too, but you will be able in the next update.