Detecting right click release or detecting when right click not pressed

Started by Water577 on

Topic category: Help with MCreator software

Active 1 week ago
Joined Sep 2024
Points:
53

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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

Active 2 hours ago
Joined Dec 2014
Points:
1078

User statistics:

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

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

Active 1 week ago
Joined Sep 2024
Points:
53

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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.

Active 2 hours ago
Joined Dec 2014
Points:
1078

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 665
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".

Active 1 week ago
Joined Sep 2024
Points:
53

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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.

Active 2 hours ago
Joined Dec 2014
Points:
1078

User statistics:

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

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

Active 2 hours ago
Joined Dec 2014
Points:
1078

User statistics:

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

^ it should be greater than -1

Active 2 hours ago
Joined Dec 2014
Points:
1078

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 665
^ 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

Active 1 week ago
Joined Sep 2024
Points:
53

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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?

Active 2 hours ago
Joined Dec 2014
Points:
1078

User statistics:

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

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

Active 1 week ago
Joined Sep 2024
Points:
53

User statistics:

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

its fine, its not too important.