With the addition of the hit_block component in Enchantment components, I think having a function to detect a right click would also be useful. This function could be useful in creating Enchantments that tweak the existing world without truly changing it. An example would be an enchantment that, upon right clicking a chest, sets it into a locked state. When holding the tool, this would override the normal function of opening a chest. This could also be applied to blocks without right click functionality, such as an enchantment that "unstrips" a log or stem block. Being able to detect a right click with any item could also be useful in some redstone instances, as currently it requires very specific items.
Please sign in to leave a comment.
1 Comments