Started by
UAPvP
on
Topic category: Troubleshooting, bugs, and solutions
Hi! I am trying to make an anchor mod for void and I encountered a problem.
If I use Block Right click trigger everything works fine, but every click is interaction.
But if I use global trigger right click, there is delay in replace block.
Video of my problem: https://youtu.be/oArNfOwaVmM
Code: https://imgur.com/XtgfFbm
If you have questions let me know.
I would say to then use the built in block right click trigger, though what is your objection for not using it? You mention every click is an interaction, but unless they meet the requirements nothing will happen.
Yes, every click is interaction. This means that I can't place blocks if my cursor is on my custom block, and every click, even without something makes swing animation.
If I'm not mistaken this still happens with the anchor in vanilla, you could just add the conditions that if they are not shifting to let you place blocks and not interact with it. You could shift to not interact with the block to place on it, like all other blocks with interactions.
Anchor doesn't have this problem.
Maybe this happens because global trigger is for both client and server side.
Ok, I found a fix.
Huge Thanks to this guy https://mcreator.net/forum/101814/placed-blocks-flickering-when-involved-random-function
But now my pearl is used every time I charge my anchor, so now I need to work on this