Right click procedure happens twice

Started by guardtown4 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Right click procedure happens twice

I made a procedure that triggers when you right click on air with an item. However, the item's procedure is happening twice. Please help.

https://imgur.com/At7ZXsT

It's strange because the procedure plays sounds twice but doesn't send the chat message twice. I'm pretty sure it's some weird stuff with server/client sides. 

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Show whole procedure
Tue, 07/20/2021 - 18:53

Show whole procedure

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
  Looks to me that your…
Wed, 07/21/2021 - 08:14

 

Looks to me that your blocks above the "If/do" flow are misplaced and you have random vars. One of them is set to 30%. This procedure will not work 100% of the time.

 

 Order should be,

 If/do block in flow

 your Var - I dont think you need vars in this situation

AND block

Then your "set item in hand" block

etc

 

This is just one way of doing it. If your going to use vars. I highly suggest watching tutorials.

 

GL

Chew

 

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can also use the: "Is…
Thu, 07/29/2021 - 03:03

You can also use the: "Is provided world remove (client side)" in procedure.

Use this to make procedure only run when client side.