Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /-\_/-\ /-\_/-\
- # \ / Potential Permanent by Shell_Guy_ \ /
- # \ _ / \ _ /
- variables:
- {ptpon} = false
- command /ptp <text>:
- permission: skript.op
- usage: /ptp <on/off>
- trigger:
- if arg 1 is "on":
- {ptpon} is true:
- message "Potential Permanent is already on!"
- else:
- broadcast "&l&6Potential Permanent is now on"
- apply absorption 5 to all players for 999 days
- set the maximum health of all players to 10
- set {ptpon} to true
- execute console command "feature off PotionNerfs"
- loop all players:
- remove player from {absorptionleft::*}
- if arg 1 is "off":
- {ptpon} is false:
- message "Potential Permanent is allready off!"
- else:
- broadcast "&l&6Potential Permanent is now off"
- remove absorption from all players
- set the maximum health of all players to 10
- set {ptpon} to false
- on consume of golden apple:
- {ptpon} is true:
- cancel event
- subtract golden apple from player
- if {absorptionleft::*} does not contain player:
- player's health is less than 9.9:
- apply regeneration 2 to player for 5 seconds
- add player to {absorptionleft::*}
- remove absorption from player
- stop
- set {Healthadd} to the player's health
- set {Healthadd} to {Healthadd} + 2
- apply regeneration 2 to player for 5 seconds
- damage player by 2 hearts
- set {Healthadd} to {Healthadd} - 4
- player's health is equal to {Healthadd}:
- apply regeneration 2 to player for 5 seconds
- add player to {absorptionleft::*}
- remove absorption from player
- stop
- player's health is less than {Healthadd}:
- apply regeneration 2 to player for 5 seconds
- add player to {absorptionleft::*}
- remove absorption from player
- stop
- set {Healthadd} to {Healthadd} + 4
- {Healthadd} is less than 19.9:
- set the maximum health of player to {Healthadd}
- {Healthadd} is more than 20.1:
- set the maximum health of player to 20
- add player to {absorptionleft::*}
- remove absorption from player
- {Healthadd} is 20:
- set the maximum health of player to 20
- add player to {absorptionleft::*}
- remove absorption from player
- wait 5 seconds
- player's health is less than {Healthadd}:
- add player to {absorptionleft::*}
- remove absorption from player
- set {Healthminus} to player's health
- set maximum health of player to {Healthminus}
- stop
- else:
- apply regeneration 2 to player for 5 seconds
Advertisement
Add Comment
Please, Sign In to add comment