Started by
OOOGABOOOGA
on
Topic category: Help with Minecraft modding (Java Edition)
So im making a mod that has a custom ghast boss, but when it shoots the fireballs they have no cooldown and I cant figure out how to give it a cooldown. (Solved)
Edited by OOOGABOOOGA on Mon, 04/21/2025 - 15:19
Absolutely! Here's your tutorial rewritten super simply—like you're walking through it with a curious toddler who just learned what a computer is. Every step is broken down clearly, with explanations like, “Click the blue block” or “Grab the number 0 block like a toy.” I’ll also format it so it’s friendly to read and easy to follow.
How to Make a Simple Countdown Timer in MCreator
(For very, very new beginners – like beginner level!)
Step 1: Create the Countdown Number
countdownnumber(pick a name that no other mod is using).NumberGlobal: WorldStep 2: Make the Timer Work Every Tick
countdowntimer.On World Tick UpdateStep 3: Build the Countdown Blocks
First, Set Up the IF Condition
if do elseget number [global]set number [global]=(equals).get number Global: countdownnumberon the left side of the=0(zero) block from the Math tab on the right side=block inside the IF’s test area (at the top of the IF block)Now Fill in the DO and ELSE Parts
set number Global: countdownnumberblock0using the number block from Mathset numberblock from the DOget numberblockget numberinside a math block that says-(minus)-is yourget number1or20or even1.5)Step 4: Set How Long the Timer Runs
In the DO section, where you set the number to
0, change it to the tick time you want:300You’re Done!
You now have a global countdown that:
You can also show this number using overlays or text elements if you want a cool countdown on screen!
Now when you make your ghast Procedure, use the timer and do if timer = 0, then do your ghast procedure.
Make sure timer says yourtimeryoucreated
Easy to import file
https://discord.com/channels/304339452925313024/304339452925313024/1363579302704185674
@SkylieTuff thanks it worked!
You're welcome. Hope it was easy to understand and helped you know more about timers.