How to make an effect on a cooldown timer - Minecraft Command Block Tutorial

How to make an effect on a cooldown timer - Minecraft Command Block Tutorial

Subscribers:
10,700
Published on ● Video Link: https://www.youtube.com/watch?v=NDjk6R5ZlEs



Minecraft
Game:
Minecraft (2011)
Category:
Tutorial
Duration: 15:05
7,943 views
145


#minecraft #commandblock #cooldown
Lets use the health scoreboard and rendertype and create a skill that only activates when several ticks have passed!


But first some basics how the scoreboard works.


In this tutorial and guide we learn the following:
- How to make an objective
- How to use execute if
- How to make a command block clock
- How to use repeat, chain and impulse command blocks
- How to make conditional and unconditional command blocks
- How to create a skill (minecraft effect) that works on a cooldown

- What is modify scoreboard objective rendertype



Commands used:
Make the intro trackers:
- scoreboard objectives add mineCoal minecraft.mined:minecraft.coal_ore
- scoreboard objectives add myHealth health

Make the clock dummies:
- scoreboard objectives add myCooldown dummy
- scoreboard objectives add myCounter dummy

Set the critical health level (trigger):
- scoreboard objectives add myCritical health
- scoreboard players set [name] myCritical 4

- execute if score [name] myHealth {= [name] myCritical
(replace the { with an angled bracket, I can't use those in youtube descriptions)
- execute if score [name] myCooldown matches 1

Add 1 each tick to myCounter:
- scoreboard players add [name] myCounter 1

Start counting the clock / reset the cooldown:
- scoreboard players set [name] myCooldown 1

Reset cooldown:
- scoreboard players set [name] myCooldown 0

Reset cooldown / restart cooldown timer
- scoreboard players set [name] myCounter 0

Limit the clock:
- execute if score [name] myCounter matches 500
- scoreboard players set [name] myCooldown 0

Check if skill is of cooldown:
- execute if score [name] myCooldown matches 0


Modify Rendertype:
- scoreboard objectives modify myHealth rendertype hearts
- scoreboard objectives modify myHealth rendertype integer

Modify displayname:
- scoreboard objectives modify mineCoal displayname "Coal ore Mined"
- scoreboard objectives modify mineCoal displayname {"text":"Coal ore Mined", "color":"gold"}

Set sidebar / list:
- scoreboard objectives setdisplay sidebar mineCoal
- scoreboard objectives setdisplay list myHealth
- scoreboard objectives setdisplay sidebar myHealth
- scoreboard objectives setdisplay sidebar myCounter
- scoreboard objectives setdisplay sidebar myCritical

Give effect:
- effect give [name] minecraft:instant_health

Set actionbar title:
- title @a actionbar [{"selector":"@p","color":"aqua"},{"text":" used Emergency Potion!","color":"gold"}]


0:00 Scoreboard objectives basics
2:46 Rendertype Health

4:32 Creating a Skill on Cooldown
13:46 Outro


All tutorials are made in the Forgotten Colonies server, read more about it here:
- https://www.forgottencolonies.com/

Check out the entire playlist here:
- https://www.youtube.com/watch?v=x_l5RCVrdlE&list=PLHd3EltAylPSbwBEpmOnOgI--sXhiBtrG


Subscribe! Subscribing is free and helps us grow.

Join our discord:
- https://discord.gg/CDtGd7x

Join this channel to get access to perks:
- https://www.youtube.com/channel/UCxnPA3lQx8rBUzEpdIgzOaA/join







Tags:
Command
Block
Blocks
How to
Guide
Help
Walkthrough
list
remove
add
skill
cool down
cooldown
effect



Other Statistics

Minecraft Statistics For Forgotten Games

Forgotten Games presently has 156,182 views for Minecraft across 41 videos, with His channel uploaded over 1 day worth of Minecraft videos. This makes up 5.16% of the content that Forgotten Games has uploaded to YouTube.