Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- PP:<dark gray>[<gray>PotentialPerma<dark gray>]
- CC:&3
- S:&7
- command /potentialpermanent [<text>]:
- description: Enables/Disabled 'PotPerma' scenario
- aliases: /potperma, /potentialperma, /potp, /ptp
- permission: potperma.skript
- trigger:
- if arg-1 is set:
- if arg-1 is equal to "on" or "enable" or "start":
- if {potp} is not set:
- set {potp} to true
- loop all players:
- set {potp::%loop-player%} to true
- set {potpHealth::%loop-player%} to 10
- delete {potpPlayer::%loop-player%}
- set loop-player's max health to 10
- apply absorption 5 to loop-player for 1 day
- broadcast "{@PP}{@S} PotentialPerma {@CC}has been &aenabled{@CC}."
- execute player command "/feature off PotionNerfs"
- else if {potp} is set:
- message "{@PP}{@CC}Currently is already &aenabled{@CC}."
- else if arg-1 is equal to "off" or "disable" or "end":
- if {potp} is not set:
- message "{@PP}{@CC}Currently is already &cdisabled{@CC}."
- else if {potp} is set:
- delete {potp}
- loop all players:
- remove absorption from loop-player
- set loop-player's max health to 10
- delete {potp::%loop-player%}
- delete {potpHealth::%loop-player%}
- delete {potpApple::%loop-player%}
- delete {potpPlayer::%loop-player%}
- broadcast "{@PP}{@S} PotentialPerma {@CC}has been &cdisabled{@CC}."
- if arg-1 is not set:
- if {potp} is not set:
- message "{@PP}{@CC}Currently is currently &cdisabled{@CC}."
- else if {potp} is set:
- message "{@PP}{@CC}Currently is currently &aenabled{@CC}."
- on death of player:
- if {potp} is set:
- if {potp::%victim%} is set:
- remove absorption from the player
- set victim's max health to 10
- delete {potp::%victim%}
- delete {potpPlayer::%victim%}
- delete {potpHealth::%victim%}
- delete {potpApple::%player%}
- on consume:
- if {potp} is set:
- if {potp::%player%} is set:
- if event-item is golden apple:
- if {potpApple::%player%} is not set:
- if name of event-item is "<gold>Golden Head":
- cancel event
- remove 1 of the player's tool from the player
- apply saturation 4 to the player for 1 tick
- set {potpApple::%player%} to true
- if player's health is less than {potpHealth::%player%}:
- remove absorption from the player
- set {potpPlayer::%player%} to true
- delete {potp::%player%}
- delete {potpHealth::%player%}
- delete {potpApple::%player%}
- if {potpPlayer::%player%} is not set:
- if {potpHealth::%player%} is not set:
- set {potpHealth::%player%} to player's health
- set {potpHealth::%player%} to {potpHealth::%player%}+4
- set player's max health to {potpHealth::%player%}
- damage the player by 4 hearts
- delete {potpApple::%player%}
- else if {potpHealth::%player%} is set:
- damage the player by 4 hearts
- player's health is equal to {potpHealth::%player%}-4:
- heal player by 4 hearts
- remove absorption from the player
- set {potpPlayer::%player%} to true
- delete {potp::%player%}
- delete {potpHealth::%player%}
- delete {potpApple::%player%}
- stop
- set {potpHealth::%player%} to {potpHealth::%player%}+4
- set player's max health to {potpHealth::%player%}
- player's health is less than {potpHealth::%player%}-4:
- set player's max health to player's health+4
- remove absorption from the player
- set {potpPlayer::%player%} to true
- delete {potp::%player%}
- delete {potpHealth::%player%}
- delete {potpApple::%player%}
- stop
- wait 10 seconds
- delete {potpApple::%player%}
- else:
- cancel event
- remove 1 of the player's tool from the player
- apply regeneration 2 to the player for 5 seconds
- apply saturation 4 to the player for 1 tick
- set {potpApple::%player%} to true
- if player's health is less than {potpHealth::%player%}:
- remove absorption from the player
- set {potpPlayer::%player%} to true
- delete {potp::%player%}
- delete {potpHealth::%player%}
- delete {potpApple::%player%}
- if {potpPlayer::%player%} is not set:
- if {potpHealth::%player%} is not set:
- set {potpHealth::%player%} to player's health
- damage the player by 2 hearts
- set {potpHealth::%player%} to {potpHealth::%player%}+2
- set player's max health to {potpHealth::%player%}
- delete {potpApple::%player%}
- else if {potpHealth::%player%} is set:
- damage the player by 2 hearts
- player's health is equal to {potpHealth::%player%}-2:
- heal player by 2 hearts
- remove absorption from the player
- set {potpPlayer::%player%} to true
- delete {potp::%player%}
- delete {potpHealth::%player%}
- delete {potpApple::%player%}
- stop
- set {potpHealth::%player%} to {potpHealth::%player%}+2
- set player's max health to {potpHealth::%player%}
- player's health is less than {potpHealth::%player%}-2:
- set player's max health to player's health+2
- remove absorption from the player
- set {potpPlayer::%player%} to true
- delete {potp::%player%}
- delete {potpHealth::%player%}
- stop
- wait 5 seconds
- delete {potpApple::%player%}
- else if {potpApple::%player%} is set:
- cancel event
- message "&cCan't eat 2 gapples at once."
- wait 10 seconds
- delete {potpApple::%player%}
- else:
- if event-item is golden apple:
- if {potpApple::%player%} is not set:
- wait 1 tick
- remove absorption from the player
- if {potpApple::%player%} is set:
- cancel event
- message "&cCan't eat 2 gapples at once."
- wait 10 seconds
- delete {potpApple::%player%}
Advertisement
Add Comment
Please, Sign In to add comment