Look pls help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

AdenR84

Active Member
Sep 4, 2023
85
0
6
23
i am looking for someone to make me a skript for an arrow named &f&lWool Sword &f&l(star)
when ever you right click it spawns a bed (not breaking/obstructing blocks around it) and it heals you when you right click it random chance 8 9 or 10 hearts
then a white red star fire work goes in the air and the white bed dissapears
 
ok
on right click:
if name of player's tool is "&f&lWool Sword &f&l✪":
if player's held item is arrow:
set {slept::%player's uuid%} to false
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
if {mana.%player%} is greater than 34:
add -35 to {mana.%player%}
send "&4Used (Deep Sleep)! &b(-35 Mana)" to player
set block above event-location to air
set block above event-location to white bed
on right click on white bed:
set {slept::%player's uuid%} to true
heal player by 15 hearts
send "&cYou Are Well Rested. Healed 15 Hearts!" to player
set block at event-location to air
else:
send "&cYou don't have enough mana to do that!" to player
else if name of player's tool is "&f&lCooldown Reset":
set {cooldown::%player's uuid%::bed} to 0 seconds from now
 
wdym proper code formatting
on right click:
if name of player's tool is "&f&lWool Sword &f&l✪":
if player's held item is arrow:
set {slept::%player's uuid%} to false
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
if {mana.%player%} is greater than 34:
add -35 to {mana.%player%}
send "&4Used (Deep Sleep)! &b(-35 Mana)" to player
set block above event-location to air
set block above event-location to white bed
on right click on white bed:
set {slept::%player's uuid%} to true
heal player by 15 hearts
send "&cYou Are Well Rested. Healed 15 Hearts!" to player
set block at event-location to air
else:
send "&cYou don't have enough mana to do that!" to player
else if name of player's tool is "&f&lCooldown Reset":

set {cooldown::%player's uuid%::bed} to 0 seconds from now
 

on right click:
if name of player's tool is "&f&lWool Sword &f&l✪":
if player's held item is arrow:
set {slept::%player's uuid%} to false
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
if {mana.%player%} is greater than 34:
add -35 to {mana.%player%}
send "&4Used (Deep Sleep)! &b(-35 Mana)" to player
set block above event-location to air
set block above event-location to white bed
on right click on white bed:
set {slept::%player's uuid%} to true
heal player by 15 hearts
send "&cYou Are Well Rested. Healed 15 Hearts!" to player
set block at event-location to air
else:
send "&cYou don't have enough mana to do that!" to player
else if name of player's tool is "&f&lCooldown Reset":
set {cooldown::%player's uuid%::bed} to 0 seconds from now
 
brooo

on right click:
if name of player's tool is "&f&lWool Sword &f&l✪":
if player's held item is arrow:
set {slept::%player's uuid%} to false
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
if {mana.%player%} is greater than 34:
add -35 to {mana.%player%}
send "&4Used (Deep Sleep)! &b(-35 Mana)" to player
set block above event-location to air
set block above event-location to white bed
on right click on white bed:
set {slept::%player's uuid%} to true
heal player by 15 hearts
send "&cYou Are Well Rested. Healed 15 Hearts!" to player
set block at event-location to air
else:
send "&cYou don't have enough mana to do that!" to player
else if name of player's tool is "&f&lCooldown Reset":
set {cooldown::%player's uuid%::bed} to 0 seconds from now
/ICODE]