#Ender Eye Canceling

7 messages · Page 1 of 1 (latest)

sterile solar
#

I’m wondering if there’s a way to cancel and disable throwing ender eyes, as well as putting them into the end portal. Some structures we have use ender eyes as decoration, and we know people will get them, we want to make sure the end is still locked and they can’t actually open the portal.

Is this possible?

radiant hedge
#

could just replace the end portal block with something else instead

#

using any block swapping mod

sterile solar
#

I’m wanting to avoid having to update the server if I can help it, we have kubejs to disable crafting recipes of eyes regardless but they’re still obtainable through structures

obtuse narwhalBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

sterile solar
#

Still looking for help

prisma cedar
#
// disables ender eye throwing
ItemEvents.rightClicked((event) => {
  const { item } = event;

  if (item.id == "minecraft:ender_eye") event.cancel();
});

// disables ender eye interaction with end portal frames
BlockEvents.rightClicked((event) => {
  const { item, block } = event;

  if (item.id == "minecraft:ender_eye" && block.id == 'minecraft:end_portal_frame') event.cancel();
});