Detect What Item a Block is Right Clicked With

Started by Apollo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect What Item a Block is Right Clicked With

For my mod I have a block that you can right click with any item, it consumes that item and then there is a chance you get two of that item back. However I can't seem to get the block to detect what item I am right-clicking. Help is appreciated. 

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can go to player and…
Wed, 10/23/2024 - 12:43

You can go to player and select actions and there will be one to remove (amount) of (item) from player's inventory

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
player procedures*  
Wed, 10/23/2024 - 12:44

player procedures*

 

Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When block is right clicked…
Wed, 10/23/2024 - 17:10

When block is right clicked if random chance grow item in main hand by one else shrink item in main hand by 1