Datapack Utils

Datapack Utils

2k Downloads

Left click detection slow

HappyHippo77 opened this issue · 2 comments

commented

Not sure if this is fixable or not, but trying to detect left clicks is slower than I would like it to be. There is a delay of I would guess around half a second (Maybe 10 ticks?) where you can't left click after doing it already. For normal, single-click detecting this is fine, but I'm trying to create a kind of combination-based system, with a mixture of different left and right clicks. Right clicking is fine, but the same can't be said for left clicking.

commented

Left clicking works by punching a villager. When an entity is attacked, it gains 10 ticks of invulnerability and can't be attacked again in that time. As far as I know, there is no way to prevent this.

commented