Help with right click on block

Started by li77leman3601 on Sat, 05/07/2016 - 16:16

Topic category: Advanced modding

Last seen on 19:57, 7. May 2016
Joined May 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Help with right click on block
Sat, 05/07/2016 - 16:16

What I want to do, is when I right click on a block, I want a random item to appear in the players inventory. Is there a way of doing this? I have found a way of when right clicking, it gives you an item, but if I try to add more, it gives you all of the items when you right click instead of just 1 random one. I hope you guys can help :)

Last seen on 05:46, 18. Jul 2019
Joined Feb 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Don't know if you still need
Thu, 06/09/2016 - 00:58

Don't know if you still need this or not, but for the add item to inventory event under conditions there is a random possibility condition. Just click this and change your percentage for all the items you want, it will only add one item to the inventory per click based on the probability you have the items set for.

Last seen on 14:35, 27. Jun 2019
Joined Dec 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
it is easiest to do it the
Thu, 06/09/2016 - 01:02

it is easiest to do it the way m789306 said, but if it dosn't work you could always make a custom loot table.