Right click procedure happens twice

Started by guardtown4 on Mon, 07/19/2021 - 20:33

Topic category: Help with modding (Java Edition)

Last seen on 00:00, 30. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Right click procedure happens twice
Mon, 07/19/2021 - 20:33

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. 

Last seen on 00:44, 6. Aug 2021
Joined Jun 2020
Points:

User statistics:

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

Show whole procedure

Last seen on 13:15, 9. Sep 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

 

Last seen on 21:51, 20. Aug 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.