Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /ga <text>:
- permission: ga.admin
- executable by: players
- description: Allows certain aspects of the skript to be utilized
- usage: /ga [enable - disable - noapples - yesapples]
- permission message: You do not have permission to do this!
- trigger:
- if argument 1 is "enable":
- set {ga.use} to true
- broadcast "&7%newline% This server is currently using &c1.9 Golden Apples &7created by &cFrostedWeFall!%newline%"
- if argument 1 is "disable":
- set {ga.use} to false
- message "&71.9 Golden Apples is now &3disabled&7!"
- if argument 1 is "noapples":
- set {ga.craft} to false
- message "&7Eating/Crafting of Golden Apples is now &3disabled&7!"
- if argument 1 is "yesapples":
- set {ga.craft} to true
- message "&7Eating/Crafting of Golden Apples is now &3enabled&7!"
- on eating of enchanted golden apple:
- if {ga.craft} is false:
- cancel event
- message "&c&lYou cannot eat god apples!"
- stop
- if {ga.use} is false:
- stop
- wait 1 tick
- remove regeneration from the player
- remove Absorption from the player
- remove Fire Resistance from the player
- remove resistance from the player
- message "&7You just ate a &31.9 &6God Apple&7!"
- apply regeneration 2 to the player for 20 seconds
- apply Absorption 4 to the player for 120 seconds
- apply Fire Resistance to the player for 300 seconds
- apply resistance to the player for 300 seconds
- on eating of golden apple:
- if {ga.craft} is false:
- cancel event
- message "&c&lYou cannot eat golden apples!"
- stop
- if {ga.use} is false:
- stop
- wait 1 tick
- remove regeneration from the player
- remove Absorption from the player
- apply regeneration to the player for 5 seconds
- apply Absorption to the player for 120 seconds
- on craft of enchanted golden apple:
- if {ga.craft} is false:
- cancel event
- message "&c&lYou cannot craft god apples!"
- on craft of golden apple:
- if {ga.craft} is false:
- cancel event
- message "&c&lYou cannot craft golden apples!"
- on rightclick holding a golden apple:
- if gamemode of player is creative:
- if {ga.craft} is false:
- cancel event
- stop
- if {ga.use} is false:
- stop
- remove regeneration from the player
- remove Absorption from the player
- apply regeneration to the player for 5 seconds
- apply Absorption to the player for 120 seconds
- remove 1 golden apple from player
- on rightclick holding a enchanted golden apple:
- if gamemode of player is creative:
- if {ga.craft} is false:
- cancel event
- stop
- if {ga.use} is false:
- stop
- message "&7You just ate a &31.9 &6God Apple&7!"
- remove regeneration from the player
- remove Absorption from the player
- remove Fire Resistance from the player
- remove resistance from the player
- apply regeneration 2 to the player for 20 seconds
- apply Absorption 4 to the player for 120 seconds
- apply Fire Resistance to the player for 300 seconds
- apply resistance to the player for 300 seconds
- remove 1 enchanted golden apple from player
Advertisement
Add Comment
Please, Sign In to add comment