Item in hand procedures

Started by Spicato on Thu, 03/25/2021 - 20:43

Topic category: Help with modding (Java Edition)

Last seen on 17:37, 1. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Item in hand procedures
Thu, 03/25/2021 - 20:43

I would like to recreate the flint sharpening mechanism from Sevtech: Ages where a player can left click on a stone block using a piece of flint and have a chance to receive a sharpened flint piece in return.  

 

The logic I'm wanting to use is essentially as follows:

when player left clicks a stone block while a flint piece is in hand

     100% chance to shrink flint piece item stack by 1

     10% chance to spawn sharpened flint piece where player clicked

 

 

I cant seem to figure out how that would look in the procedures menu and would love some help!

Last seen on 03:10, 21. May 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hello Spicato have a look at…
Fri, 03/26/2021 - 02:31

Hello Spicato

have a look at this screenshot > Here <

Last seen on 17:37, 1. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank you! This is perfect…
Fri, 03/26/2021 - 14:39

Thank you! This is perfect. Im proud to say I was closer than I thought haha