Jump to content

Help with skript Gapple Delay


TheBombGut

Recommended Posts

Here you go 🙂

 

 

options:
	Consume Message: &6You ate a gapple!
    You are on a Cooldown: &cYou need to wait before eating that again!
    Cooldown Expired: &aYour gapple cooldown has expired

on consume of golden apple:
	if {GappleCooldown::%player's uuid%} is not set:
    	set {GappleCooldown::%player's uuid%} to true
        send "{@Consume Message}"
        wait 10 seconds
        send "{@Cooldown Expired}"
    else:
    	cancel event
        send "{@You are on a Cooldown}"
Edited by MinecraftMan10132
  • Thanks 1

Discord: MinecraftMan1013#7242

Link to comment
Share on other sites

  • 3 weeks later...

This worked thanks but I did have to do some tweaking. Here's the fixed version.

on consume of golden apple:
    if {GappleCooldown::%player's uuid%} is not set:
        set {GappleCooldown::%player's uuid%} to true
        send "&aYou ate a gapple! Cooldown set to 10 seconds!"
        wait 10 seconds
        send "&aCooldown Expired"
        clear {GappleCooldown::%player's uuid%}
    else:
        cancel event
        send "&cYou are on cooldown!"

 

A m o n g u s i n r e a l l i f e

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...