Detecting right click release or detecting when right click not pressed

Started by Water577 on

Topic category: Help with MCreator software

Last seen on 06:01, 13. Oct 2024
Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detecting right click release or detecting when right click not pressed

So I want to have a player persistent variable telling me when right click not pressed / released. This is for my gun mod, and will make it so the player has to release right click then click again to shoot

Last seen on 02:03, 13. Oct 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedures have the "Player…
Tue, 10/01/2024 - 00:13

Procedures have the "Player rightclick with item" additional trigger you can use.

Last seen on 06:01, 13. Oct 2024
Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean like a way to tell…
Tue, 10/01/2024 - 01:09

I mean like a way to tell when right click not pressed or run a procedure 1 time when right click pressed. When i hold right click  i don't want it to do procedure over and over again.

Last seen on 02:03, 13. Oct 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you make your item …
Tue, 10/01/2024 - 01:55

If you make your item "Useable" (Like bows, shields, foods, or tridents) you could just use "Player uses item" and "Player stops using item".

Last seen on 06:01, 13. Oct 2024
Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When I put the shoot…
Tue, 10/01/2024 - 03:21

When I put the shoot Procedure in the "Player stops using item" or "Player uses item" place it doesn't run the procedure at all.

Last seen on 02:03, 13. Oct 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is your item usable? ("Item…
Tue, 10/01/2024 - 13:42

Is your item usable? ("Item use duration" in "Properties" of your item)

Last seen on 02:03, 13. Oct 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
^ it should be greater than …
Tue, 10/01/2024 - 13:43

^ it should be greater than -1

Last seen on 02:03, 13. Oct 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
^ if you want it to not be…
Tue, 10/01/2024 - 13:44

^ if you want it to not be actually consumed just set it to a very high number

Last seen on 06:01, 13. Oct 2024
Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah the duration is greater…
Tue, 10/01/2024 - 23:20

yeah the duration is greater then -1, the duration is 40, would it have something to do with it being a gecko lib animated item?

Last seen on 02:03, 13. Oct 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh, ummm maybe..? In that…
Tue, 10/01/2024 - 23:22

oh, ummm maybe..? In that case I don't know.. sorry.

Last seen on 06:01, 13. Oct 2024
Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its fine, its not too…
Tue, 10/01/2024 - 23:25

its fine, its not too important.