Detecting right click release or detecting when right click not pressed

Started by Water577 on

Topic category: Help with MCreator software

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

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.

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.

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".

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.

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)

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

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

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?

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.

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.