Global trigger "Player right clicks block" adds delay to replace block.

Started by UAPvP on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 15:52, 18. Feb 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Global trigger "Player right clicks block" adds delay to replace block.

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.

 

Last seen on 02:05, 23. Apr 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I would say to then use the…
Sun, 01/28/2024 - 02:16

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.


 

Last seen on 15:52, 18. Feb 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You mention every click is…
Sun, 01/28/2024 - 10:40

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. 
 

 

 

Last seen on 02:05, 23. Apr 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If I'm not mistaken this…
Sun, 01/28/2024 - 20:22

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.

Last seen on 15:52, 18. Feb 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Anchor doesn't have this…
Sun, 01/28/2024 - 21:20

Anchor doesn't have this problem.
Maybe this happens because global trigger is for both client and server side.