Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick:
- if player is holding redstone named "&cBandage" with lore "&fRight-Click to heal up||&fShift to cancel healing":
- remove 1 redstone named "&cBandage" with lore "&fRight-Click to heal up||&fShift to cancel healing" from player
- set {bandage.%player%} to true
- set action bar of player to "&cTime: &f4 seconds"
- if {bandage.%player%} is true:
- wait 1 second
- set action bar of player to "&cTime: &f3 seconds"
- if {bandage.%player%} is true:
- wait 1 second
- set action bar of player to "&cTime: &f2 seconds"
- if {bandage.%player%} is true:
- wait 1 second
- set action bar of player to "&cTime: &f1 second"
- if {bandage.%player%} is true:
- wait 1 second
- set action bar of player to "&cTime: &fDone!"
- delete {bandage.%player%}
- wait 1 second
- set action bar of player to ""
- every tick:
- if player is sneaking:
- if {bandage.%loop-player%} is true:
- delete {bandage.%loop-player%}
- set action bar of player to "&cTime: &fCanceled!"
- give 1 redstone named "&cBandage" with lore "&fRight-Click to heal up||&fShift to cancel healing" to loop-player
- if player is walking:
- if {bandage.%loop-player%} is true:
- delete {bandage.%loop-player%}
- set action bar of loop-player to "&cTime: &fCanceled!"
- give 1 redstone named "&cBandage" with lore "&fRight-Click to heal up||&fShift to cancel healing" to loop-player
- on damage:
- if {bandage.%victim%} is true:
- delete {bandage.%victim%}
- set action bar of victim to "&cTime: &fCanceled!"
- give 1 redstone named "&cBandage" with lore "&fRight-Click to heal up||&fShift to cancel healing" to victim
- on chat:
- if message is ".bandage":
- if player is op:
- send "&cBandage:" to player
- send "" to player
- send "&f.bandage give" to player
- send "&f.bandage link" to player
- cancel event
- if message is ".bandage give":
- if player is op:
- give 1 redstone named "&cBandage" with lore "&fRight-Click to heal up||&fShift to cancel healing" to player
- send "&cBandage: &fYou have been given 1 Bandage!" to player
- cancel event
- if message is ".bandage link":
- if player is op:
- send "&cLink: &fhttps://pastebin.com/raw/5Wn3XV6i"
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement