Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Skrypt - Overalls ( Kombinezon )
- variables:
- {hev::status} = true
- {hev::%player%} = false
- {hev::health::%player%} = false
- {hev::battery::%player%} = 0
- options:
- # Nazwa kombinezonu (HEV)
- hev_Name: &6Kombinezon HEV
- # Minimalny poziom serc - Aby leczylo
- minimumLevelOfHearts: 1.5
- # Gui - /overalls
- permission: overalls.hev.all
- permission send: &cYou do not have special permission!
- rows: 3
- name_GUI: &6Ustawienia kombinezonu &cHEV
- # Ogolne:
- tag: &8[&6Overalls]
- command /overalls [<text>]:
- permission: {@permission}
- permission send: {@permission send}
- description: Kombinezony HEV! Pomagają podczas walki.
- trigger:
- if argument 1 isn't set:
- if {hev::status} is true:
- if {hev::%player%} is true:
- if {hev::health::%player%} is set:
- open chest with {@rows} rows named "{@name_GUI}" to the player
- format slot 0 of player with 1 of paper named "&4Informacje" with lore "&7-||&7- &6Kombinezon HEV pomaga podczas walki kiedy jestes podczas walki ;)||&7- &cMiedzy innymi leczy graczy przy minimalnej ilosci serc" to be unstealable
- format slot 1 of player with 1 of redstone named "&cUleczanie" with lore "&6Status: &7%{hev::health::%player%}%" to run [execute player command "overalls heal"]
- format slot 2 of player with 1 of diamond chestplate named "&3Podladuj kombinezon" with lore "&aBateria: %{hev::battery::%player%}%" to run [execute player command "Overalls charge"]
- stop trigger
- else:
- send "{@tag} &cNie masz ustawionego leczenia..."
- stop trigger
- else:
- send "{@tag} &cMasz wylaczony kombinezon."
- stop trigger
- else:
- send "{@tag} &cKombinezony sa wylaczone ;("
- stop trigger
- if argument 1 is "heal":
- if {hev::health::%player%} is true:
- set {hev::health::%player%} to false
- send "{@tag} &cWylaczono uleczanie"
- stop trigger
- else:
- set {hev::health::%player%} to true
- send "{@tag} &aWlaczono uleczanie"
- stop trigger
- if argument 1 is "charge":
- if {hev::battery::%player%} < 50:
- if {hev::charge::%player%} is false:
- set {hev::charge::%player%} to true
- send "{@tag} &6Ladowanie!"
- stop trigger
- else:
- send "{@tag} &cKombinezon jest w trakcie ladowania!"
- stop trigger
- else:
- send "{@tag} &cJeszcze nie masz ponizej 50% bateri!"
- stop trigger
- every 3 seconds:
- loop all players:
- {hev::charge::%player%} is true:
- {hev::battery::%player%} < 100:
- add 1 to {hev::battery::%loop-player%}
- {hev::battery::%loop-player%} = 100:
- send "{@tag} &aTwoj kombinezon juz naladowany w 100%"
- set {hev::charge::%loop-player%} to false
- stop trigger
- stop trigger
- stop trigger
- stop trigger
- stop
- on damage of player:
- if {hev::%victim%} is set:
- if {hev::health::%victim%} is true:
- if victim's heart = {@minimumLevelOfHearts}:
- if player's chestplate is diamond chestplate named {@hev_name}:
- heal the victim
- set {_x} to a random integer between 1 and 9
- subtract {_x} from {hev::battery::%victim%}
- stop
- stop
- stop
- stop
- command /hevGiven:
- permission: hev.give
- trigger:
- add diamond chestplate named {@hev_name} to the player
- send "&aOtrzymales HEV!"
- stop
Add Comment
Please, Sign In to add comment