Help! How to prevent off hand from using items!

Started by NextTreeUp on

Topic category: Help with MCreator software

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help! How to prevent off hand from using items!

I'm trying to make a new seed item that can be used to breed chickens. However, for whatever reason vanilla breeding items for chickens will always take priority over my custom one even if the vanilla item is in the offhand! Is there a way to fix this or a plugin that can correct this? Also, it's annoying that there isn't an event trigger the checks if right click on entity with offhand.

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Please I would like to know…
Thu, 03/20/2025 - 03:36

Please I would like to know how even if it involves coding!

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Please anyone?
Sat, 03/22/2025 - 22:55

Please anyone?

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Please, anything would help…
Mon, 03/24/2025 - 04:03

Please, anything would help at this point.

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can check if an item is…
Mon, 03/24/2025 - 05:07

you can check if an item is in the offhand im pretty sure could be wrong but just use that to check if the item is in the offhand and just make the item only do its function if not in the offhand

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh sorry i misread your…
Mon, 03/24/2025 - 05:08

oh sorry i misread your thing however it should still apply

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's the thing if you try…
Tue, 03/25/2025 - 02:04

That's the thing if you try to setup an on right click on entity event trigger, check the item in off hand is equal to the item you don't want to be used, then do cancel event trigger it doesn't cancel the event. But it'll cancel the even if you check for right hand instead. I think it's just a mix up on Mcreator's side forgetting to make a check function for both hands instead of just the right hand. But I do appreciate your help very much Cheese Dealer!

 

Here is an example of how I set it up, maybe I'm just doing something wrong?

Imgur: The magic of the Internet