Cancel Ender Eye Event

Started by Username101 on

Topic category: Help with modding (Java Edition)

Last seen on 21:15, 12. Apr 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Cancel Ender Eye Event
Thu, 01/05/2023 - 15:59 (edited)

Hi, I'm trying to create a procedure that cancels the eye of ender throwing event but the closest I've been to succeeding is with this: https://imgur.com/a/vXSDmbC

and the problem with this piece of code is that it doesn't work with the off-hand it only triggers when the eyer of ender is thrown from the main hand.

I've also tried with the "Entity Spawns" global trigger but couldn't find a way to detect when an eye has spawned. Any advice?

Edited by Username101 on Thu, 01/05/2023 - 15:59
Last seen on 22:05, 24. Apr 2024
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I made a procedure despawns…
Sun, 01/08/2023 - 04:21

I made a procedure despawns the eye when rightclicked. Now, it does remove the item still, you could just add 1 in inventory when rightclicking or something to fix that. Here is the procedure:

I also tried to cancel the rightclick but i could not figure it out, it must be that it is hardcoded because its active is so unique.

Anyways hope it helped.