Right click on block without placing the item in hand

Started by MinerMew on

Topic category: Help with modding (Java Edition)

Last seen on 17:36, 3. Feb 2024
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Right click on block without placing the item in hand

I'm making a mod where you can breed flowers by right-clicking them with another flower in hand. So, when you right-click a red flower with a yellow flower, you get an orange flower, and so on.

I want to integrate flowers that are already in vanilla into the mod, and I have the right-click working on them to get a new flower, but when I right-click on them it places a flower next to the block as I get the hybrid flower. For example, when I right-click a red rose bush with a modded yellow rose bush, a yellow rose gets placed in front of me, the yellow rose in my inventory is gone, and I ALSO have a new orange rose in my inventory.

This doesn't happen with the modded flowers, only vanilla ones. I'm wondering how to stop flowers from being placed if they are consumed in the breeding process.

Last seen on 00:49, 21. Apr 2024
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
THANK YOU KLEMEN YOU JUST…
Sat, 03/09/2024 - 15:09

THANK YOU KLEMEN YOU JUST SAVED MY LIFE