Help! How to prevent off hand from using items!

Started by NextTreeUp on

Topic category: Help with MCreator software

Active 4 months ago
Joined Jan 2024
Points:
172

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 34
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.

Active 4 months ago
Joined Jan 2024
Points:
172

User statistics:

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

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

Active 4 months ago
Joined Jan 2024
Points:
172

User statistics:

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

Please anyone?

Active 4 months ago
Joined Jan 2024
Points:
172

User statistics:

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

Please, anything would help at this point.

Active 2 months ago
Joined Aug 2024
Points:
151

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 64
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

Active 2 months ago
Joined Aug 2024
Points:
151

User statistics:

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

oh sorry i misread your thing however it should still apply

Active 4 months ago
Joined Jan 2024
Points:
172

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 34
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