mojira.dev
MC-312160

use_cooldown component on eye of ender can be bypassed by holding interact

When adding the cool_down item component to an eye of ender, the cooldown will start when the eye is right clicked but the player will continue using the item until they let go. This causes the player to be able to use the item even when they shouldn’t be able to.

I my case I’m working on a datapack that is using the eye of ender for right click detection via an advancement checking if the item is being used.

Item used:

/give @s minecraft:ender_eye[use_cooldown={seconds:4,cooldown_group:"r_click"}] 1

Comments 0

No comments.

Paul-Louis Millot

(Unassigned)

Unconfirmed

26.4 Snapshot 1

Retrieved