on sneak toggle:
name of player's tool is "&dʙᴏɴᴇ ʙʟᴀᴅᴇ":
player has player's tool on cooldown:
stop
else:
set item cooldown of player's tool for player to 180 seconds
make player execute command "manatest"
send actionbar "&b-150 Mana"
wait 180 seconds
send actionbar "&dʙᴏɴᴇ ʙʟᴀᴅᴇ: &bᴍᴀɴᴀ ʜᴀs ʙᴇᴇɴ ʀᴇғɪʟʟᴇᴅ, ᴀʙɪʟɪᴛʏ ᴄᴀɴ ʙᴇ ᴜsᴇᴅ"
execute console command "manatest reset %player%"
name of player's tool is "&dʙᴏɴᴇ ʙʟᴀᴅᴇ":
player has player's tool on cooldown:
stop
else:
set item cooldown of player's tool for player to 180 seconds
make player execute command "manatest"
send actionbar "&b-150 Mana"
wait 180 seconds
send actionbar "&dʙᴏɴᴇ ʙʟᴀᴅᴇ: &bᴍᴀɴᴀ ʜᴀs ʙᴇᴇɴ ʀᴇғɪʟʟᴇᴅ, ᴀʙɪʟɪᴛʏ ᴄᴀɴ ʙᴇ ᴜsᴇᴅ"
execute console command "manatest reset %player%"