i have this
on right click:
name of player's tool is "&f&lWool Sword &f&l✪"
if player's held item is arrow:
if {cooldown::%player's uuid%::bed} is greater than now:
cancel event
set {_waited} to difference between {cooldown::%player's uuid%::bed} and now
send "&cTry again in %{_waited}%!"
else:
set {cooldown::%player's uuid%::bed} to 45 seconds from now
name of player's tool is "&f&lWool Sword &f&l✪"
if player's held item is arrow:
if {mana.%player%} is greater than 34:
add -35 to {mana.%player%}
send "&4Used (Deep Sleep)! &b(-35 Mana)" to player
if {cooldown::%player's uuid%::bed} is greater than now:
cancel event
else:
send "&cYou don't have enough mana to do that!" to player
set block above event-location to air
set block above event-location to white bed
wait 10 seconds
message "&cYou Could not sleep in the bed in enough time it has parished."
set block above event-location to air
on right click on white bed:
heal player by 15 hearts
send "&cYou Are Well Rested. Healed 15 Hearts!" to player
set block at event-location to air
on right click:
name of player's tool is "&f&lCooldown Reset"
set {cooldown::%player's uuid%::bed} to 0 seconds from now
what im trying to do is make a bed that you can sleep in to gain health
my problem is that the cooldown and mana dosent cancel it and it says Your bed has perished after you've alr slept in it
on right click:
name of player's tool is "&f&lWool Sword &f&l✪"
if player's held item is arrow:
if {cooldown::%player's uuid%::bed} is greater than now:
cancel event
set {_waited} to difference between {cooldown::%player's uuid%::bed} and now
send "&cTry again in %{_waited}%!"
else:
set {cooldown::%player's uuid%::bed} to 45 seconds from now
name of player's tool is "&f&lWool Sword &f&l✪"
if player's held item is arrow:
if {mana.%player%} is greater than 34:
add -35 to {mana.%player%}
send "&4Used (Deep Sleep)! &b(-35 Mana)" to player
if {cooldown::%player's uuid%::bed} is greater than now:
cancel event
else:
send "&cYou don't have enough mana to do that!" to player
set block above event-location to air
set block above event-location to white bed
wait 10 seconds
message "&cYou Could not sleep in the bed in enough time it has parished."
set block above event-location to air
on right click on white bed:
heal player by 15 hearts
send "&cYou Are Well Rested. Healed 15 Hearts!" to player
set block at event-location to air
on right click:
name of player's tool is "&f&lCooldown Reset"
set {cooldown::%player's uuid%::bed} to 0 seconds from now
what im trying to do is make a bed that you can sleep in to gain health
my problem is that the cooldown and mana dosent cancel it and it says Your bed has perished after you've alr slept in it