This repository was archived by the owner on Jun 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Click Detection
Michael Weatherby edited this page Dec 30, 2019
·
11 revisions
In order to activate click detection, give your custom item the nbt tag du_click_detect:Xb (ie. give @s stick{du_click_detect:1b}), where X is the level of detection (see bellow). Whenever The player left or right clicks, they are given the tag du_left_click or du_right_click respectively.
1b: Uses 1 villager. Most basic detection with the best performance, but doesn't always work when moving.
3b: Uses 3 villagers. Mostly works when moving, but looking around very fast can miss.
5b: Uses 5 villagers. Almost always works.