Projectile Restriction without amo, Cooldown

Started by JediWarriorCat on

Topic category: Help with MCreator software

Joined Mar 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Projectile Restriction without amo, Cooldown

Hey, so I’m working on a mod that aims to add a bunch of Star Wars related features into survival Minecraft, and right now I’m working on Blasters. I want to make it so that unlike bows and crossbows, you don’t need a separate item in your inventory to fire them, but rather you can fire them a certain amount before they need to cool down. This seems like something I’d implement with a procedure that checks if a number variable is less than a certain number, and if it does the projectile fires, but if not then it stops to cool down. Then if it does fire, it adds onto that number variable. While this is my first mod with MCreator, I’ve done some basic coding work on Scratch and a class back in high school. I’m mainly struggling with finding which procedure blocks to use and how to use them. I’m on the latest version of MCreator, 2025.3

Joined Mar 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi! What you want to use…
Tue, 03/24/2026 - 14:37

Hi! What you want to use here is a simple data counter. You likely want it to use Item data for it to work best.
You would add something like this on your item right click use:

Procedure

This example does basically what you said:
- Count a variable, in this case ammoUsed
- If the variable reaches 10,  the item enters cooldown (MC vanilla cooldown, which prevents right click interactions of the item) and also sets ammoUsed back to 0

Hope this helps!
I am also trying to start a help oriented discord for MCreator if you want to join, link below 


https://discord.gg/9aVhh2VN