When item used, replace with a random item out of selection

Started by Madam_meow on

Topic category: Help with modding (Java Edition)

Last seen on 16:28, 20. Oct 2017
Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When item used, replace with a random item out of selection

Hello! So I am new to using MCreator to make Minecraft mods, and I can't figure out how to do something...

I would like to create an item which which when right clicked while held will turn in to a different item. That different item will be randomized from a selection(like how you can get different items in fishing in vanilla Minecraft with different rarity probabilities)

How do I do this? I'm presuming it's in the 'item event' menu, but I don't know what to do from there...

Last seen on 18:36, 5. Feb 2022
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use conditions to
Fri, 09/15/2017 - 21:40

You can use conditions to make it randomise the item you get. Set it to randomPossibility[50%​] ​and set the chances of getting that item. You may need to set more events and conditions so that you do not get more than 1 item at a time.

Last seen on 16:28, 20. Oct 2017
Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:You can use conditions to
Sat, 09/16/2017 - 15:06

@#1 thanks, I know how to do the probabilities thing, but I can't figure out the item issue... You're right, that if it were random probability I could end up getting multiple items, I don't know how to set up conditions to solve that.