Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &a[&6UHC&a] #Main Prefix
- C: &f #Main Color
- H: &a #Text Highlight Color
- BC: &4 #Highlight Color 2 (for stuff like double arrows, etc)
- E: &c[ERROR]
- ExcludedWorld: spawn #World where some events don't happen
- SpecVariable: spec
- SatFix: true
- Difficulty: HARD
- #DONT TOUCH UNLESS YOU KNOW WHAT YOUR DOING#
- variable: uhcsk
- FeatureListName: &3Feature List
- FeatureConfigName: &7Feature Config
- HeartSymbol: ?
- DoubleArrow: &l?
- KYS: I love You So much and Good Game to you what a great UHC
- CurrentVersion: UHCSK1.6
- SugarHealHorse: 5
- WheatHealHorse: 10
- AppleHealHorse: 15
- GoldenCarrotHealHorse: 20
- GoldenAppleHealHorse: 50
- HayBaleHealHorse: 100
- function armorStand(loc: location) :: entity:
- spawn an armor stand at {_loc}
- set {_arm} to the last spawned entity
- return {_arm}
- function formatBack(p: player):
- format slot 8 of {_p} with a clock named "{@BC}{@DoubleArrow}{@C} Back" to close then run "needthisforgui openconfig %{_p}%"
- function particlesAround(p:entity, n: int, t: text):
- set {_g} to "particle %{_t}%" parsed as a particleenum
- loop {_n}*2 times:
- 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 in front and 1.5 above and 1 left {_p} with data 0
- 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 in front and 1.5 above and 1 right {_p} with data 0
- 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 in front and 1.5 above and 0.5 left {_p} with data 0
- 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 in front and 1.5 above and 0.5 right {_p} with data 0
- 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 behind and 1.5 above and 1 left {_p} with data 0
- 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 behind and 1.5 above and 1 right {_p} with data 0
- 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 behind and 1.5 above and 0.5 left {_p} with data 0
- 1.8 spawn 1 of {_g}:0 offset by 0, 0, 0 at location 0.3 behind and 1.5 above and 0.5 right {_p} with data 0
- wait 10 ticks
- function updateTab(p: player):
- "%{{@variable}::Temps::%{_p}%}%" is not "%floor({_p}'s health*10)%"
- set {{@variable}::Temps::%{_p}%} to floor({_p}'s health*10)
- command "/scoreboard players set %{_p}% Health %floor({_p}'s health*10)%"
- command "/scoreboard players set %{_p}% HealthTab %floor({_p}'s health*10)%"
- on skript unload:
- delete {{@variable}::Temps::*}
- command /feature [<text>]:
- trigger:
- if arg-1 is "config":
- if command sender does not have permission "skript.op":
- command sender command "/feature list"
- stop trigger
- open chest with 3 rows named "{@FeatureConfigName}" to command sender
- wait 1 tic
- if {{@variable}::EPD} is not set:
- format slot 0 of command sender with a ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} 0 {@BC}{@HeartSymbol}" to close then run "needthisforgui epearlgui %command sender%"
- else:
- format slot 0 of command sender with a ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}" to close then run "needthisforgui epearlgui %command sender%"
- if {{@variable}::DL} is not set:
- format slot 1 of command sender with ("169" parsed as item) named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui deathl %command sender%"
- else:
- format slot 1 of command sender with ("169" parsed as item) named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui deathl %command sender%"
- if {{@variable}::GD} is not set:
- format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Normal" to close then run "needthisforgui ghastgui %command sender%"
- else if {{@variable}::GD} is "gi":
- format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Ingot" to close then run "needthisforgui ghastgui %command sender%"
- else if {{@variable}::GD} is "gn":
- format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Nugget" to close then run "needthisforgui ghastgui %command sender%"
- else if {{@variable}::GD} is "gb":
- format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Block" to close then run "needthisforgui ghastgui %command sender%"
- if {{@variable}::AS} is not set:
- format slot 3 of command sender with ("416" parsed as item) named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui asgui %command sender%"
- else:
- format slot 3 of command sender with ("416" parsed as item) named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui asgui %command sender%"
- if {{@variable}::GHeads} is not set:
- format slot 4 of command sender with a player head named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui headsgui %command sender%"
- else:
- if {{@variable}::GHeadHeal} is not set:
- format slot 4 of command sender with 8 player heads named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}4{@BC}{@HeartSymbol}" to close then run "needthisforgui headsgui %command sender%"
- else:
- format slot 4 of command sender with (({{@variable}::GHeadHeal}) of player head) named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}%{{@variable}::GHeadHeal}/2%{@BC}{@HeartSymbol}" to close then run "needthisforgui headsgui %command sender%"
- if {{@variable}::NR} is not set:
- format slot 5 of command sender with a mushroom stew named "{@C}Natural Regeneration" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui nrgui %command sender%"
- else:
- format slot 5 of command sender with a mushroom stew named "{@C}Natural Regeneration" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui nrgui %command sender%"
- if {{@variable}::Horses} is not set:
- format slot 6 of command sender with a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui horseridegui %command sender%"
- else:
- format slot 6 of command sender with a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui horseridegui %command sender%"
- if {{@variable}::HorseHeal} is not set:
- format slot 7 of command sender with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Not nerfed" to close then run "needthisforgui horsehealgui %command sender%"
- else if {{@variable}::HorseHeal} is less than or equal to 0:
- format slot 7 of command sender with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui horsehealgui %command sender%"
- else:
- set {_Sugar} to "{@BC}{@DoubleArrow}{@C} Sugar:{@H} %{@SugarHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_Whe} to "{@BC}{@DoubleArrow}{@C} Wheat:{@H} %{@WheatHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_App} to "{@BC}{@DoubleArrow}{@C} Apple:{@H} %{@AppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_Gapp} to "{@BC}{@DoubleArrow}{@C} Golden Apple:{@H} %{@GoldenAppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_Gcar} to "{@BC}{@DoubleArrow}{@C} Golden Carrot:{@H} %{@GoldenCarrotHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_HB} to "{@BC}{@DoubleArrow}{@C} Hay Bale:{@H} %{@HayBaleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- format slot 7 of command sender with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::HorseHeal}%%% as effective || %{_Sugar}% || %{_Whe}% || %{_App}% || %{_Gcar}% || %{_Gapp}% || %{_HB}%" to close then run "needthisforgui horsehealgui %command sender%"
- if {{@variable}::HorseArmor} is not set:
- format slot 8 of command sender with a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui horsearmorgui %command sender%"
- else:
- format slot 8 of command sender with a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui horsearmorgui %command sender%"
- if {{@variable}::NoGlow} is not set:
- format slot 9 of command sender with a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui glowgui %command sender%"
- else:
- format slot 9 of command sender with a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui glowgui %command sender%"
- if {{@variable}::GlistMelon} is not set:
- format slot 10 of command sender with a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui melongui %command sender%"
- else:
- format slot 10 of command sender with a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui melongui %command sender%"
- if {{@variable}::AntiTrap} is not set:
- format slot 11 of command sender with a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui trapgui %command sender%"
- else:
- format slot 11 of command sender with a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui trapgui %command sender%"
- if {{@variable}::BrewingStands} is not set:
- format slot 12 of command sender with a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui brewgui %command sender%"
- else:
- format slot 12 of command sender with a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui brewgui %command sender%"
- if {{@variable}::StrPots} is not set:
- format slot 13 of command sender with a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui strgui %command sender%"
- else:
- format slot 13 of command sender with a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui strgui %command sender%"
- if {{@variable}::GodApp} is not set:
- format slot 14 of command sender with a enchanted golden apple named "{@C}God Apples" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui godgui %command sender%"
- else:
- format slot 14 of command sender with a enchanted golden apple named "{@C}God Apples" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui godgui %command sender%"
- if {{@variable}::Bookshelves} is not set:
- format slot 15 of command sender with a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui bookgui %command sender%"
- else:
- format slot 15 of command sender with a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui bookgui %command sender%"
- if {{@variable}::Absorp} is not set:
- format slot 16 of command sender with a golden apple item named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui absorpgui %command sender%"
- else:
- format slot 16 of command sender with a golden apple item named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui absorpgui %command sender%"
- if {{@variable}::FlintRates} is not set:
- format slot 17 of command sender with a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (10%%)" to close then run "needthisforgui flintgui %command sender%"
- else:
- format slot 17 of command sender with a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::FlintRates}%%%" to close then run "needthisforgui flintgui %command sender%"
- if {{@variable}::AppleRates} is not set:
- format slot 18 of command sender with a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (0.55%%) (no shears!)" to close then run "needthisforgui applegui %command sender%"
- else:
- if {{@variable}::OakOnly} is set:
- set {_oa} to "Oak and Dark Oak trees only drop apples"
- else:
- set {_oa} to "All trees drop apples"
- if {{@variable}::NoShears} is set:
- set {_NS} to "Shears don't work"
- else:
- set {_NS} to "Shears will work"
- format slot 18 of command sender with a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::AppleRates}%%% || {@BC}{@DoubleArrow}{@H} %{_NS}% || {@BC}{@DoubleArrow}{@H} %{_oa}%" to close then run "needthisforgui applegui %command sender%"
- if {{@variable}::AntiiPvP} is not set:
- format slot 19 of command sender with a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui iPvPgui %command sender%"
- else:
- format slot 19 of command sender with a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui iPvPgui %command sender%"
- if {{@variable}::NP} is not set:
- format slot 20 of command sender with a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui nethergui %command sender%"
- else:
- format slot 20 of command sender with a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui nethergui %command sender%"
- if {{@variable}::QuartzXP} is not set:
- format slot 21 of command sender with a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui xpgui %command sender%"
- else:
- format slot 21 of command sender with a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Enabled (1/2 of Vanilla XP)" to close then run "needthisforgui xpgui %command sender%"
- if {{@variable}::SplashPots} is not set:
- format slot 22 of command sender with (a potion of:16395 with no nbt) named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to close then run "needthisforgui splashgui %command sender%"
- else:
- format slot 22 of command sender with (a potion of:16395 with no nbt) named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to close then run "needthisforgui splashgui %command sender%"
- else if arg-1 is "list":
- if command sender has permission "skript.op":
- command sender command "/feature config"
- stop trigger
- open chest with 3 rows named "{@FeatureListName}" to command sender
- wait 1 tick
- if {{@variable}::EPD} is not set:
- format slot 0 of command sender with a ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} 0 {@BC}{@HeartSymbol}" to be unstealable
- else:
- format slot 0 of command sender with a ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}" to be unstealable
- if {{@variable}::DL} is not set:
- format slot 1 of command sender with ("169" parsed as item) named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 1 of command sender with ("169" parsed as item) named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- if {{@variable}::GD} is not set:
- format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Normal" to be unstealable
- else if {{@variable}::GD} is "gi":
- format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Ingot" to be unstealable
- else if {{@variable}::GD} is "gn":
- format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Nugget" to be unstealable
- else if {{@variable}::GD} is "gb":
- format slot 2 of command sender with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Block" to be unstealable
- if {{@variable}::AS} is not set:
- format slot 3 of command sender with ("416" parsed as item) named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 3 of command sender with ("416" parsed as item) named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- if {{@variable}::GHeads} is not set:
- format slot 4 of command sender with a player head named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- if {{@variable}::GHeadHeal} is not set:
- format slot 4 of command sender with 8 player heads named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}4{@BC}{@HeartSymbol}" to be unstealable
- else:
- format slot 4 of command sender with (({{@variable}::GHeadHeal}) of player head) named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}%{{@variable}::GHeadHeal}/2%{@BC}{@HeartSymbol}" to be unstealable
- if {{@variable}::NR} is not set:
- format slot 5 of command sender with a mushroom stew named "{@C}Natural Regeneration" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 5 of command sender with a mushroom stew named "{@C}Natural Regeneration" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- if {{@variable}::Horses} is not set:
- format slot 6 of command sender with a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 6 of command sender with a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- if {{@variable}::HorseHeal} is not set:
- format slot 7 of command sender with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Not nerfed" to be unstealable
- else if {{@variable}::HorseHeal} is less than or equal to 0:
- format slot 7 of command sender with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- set {_Sugar} to "{@BC}{@DoubleArrow}{@C} Sugar:{@H} %{@SugarHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_Whe} to "{@BC}{@DoubleArrow}{@C} Wheat:{@H} %{@WheatHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_App} to "{@BC}{@DoubleArrow}{@C} Apple:{@H} %{@AppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_Gapp} to "{@BC}{@DoubleArrow}{@C} Golden Apple:{@H} %{@GoldenAppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_Gcar} to "{@BC}{@DoubleArrow}{@C} Golden Carrot:{@H} %{@GoldenCarrotHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_HB} to "{@BC}{@DoubleArrow}{@C} Hay Bale:{@H} %{@HayBaleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- format slot 7 of command sender with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::HorseHeal}%%% as effective || %{_Sugar}% || %{_Whe}% || %{_App}% || %{_Gcar}% || %{_Gapp}% || %{_HB}%" to be unstealable
- if {{@variable}::HorseArmor} is not set:
- format slot 8 of command sender with a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 8 of command sender with a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- if {{@variable}::NoGlow} is not set:
- format slot 9 of command sender with a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 9 of command sender with a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- if {{@variable}::GlistMelon} is not set:
- format slot 10 of command sender with a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 10 of command sender with a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- if {{@variable}::AntiTrap} is not set:
- format slot 11 of command sender with a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 11 of command sender with a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- if {{@variable}::BrewingStands} is not set:
- format slot 12 of command sender with a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 12 of command sender with a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- if {{@variable}::StrPots} is not set:
- format slot 13 of command sender with a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 13 of command sender with a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- if {{@variable}::GodApp} is not set:
- format slot 14 of command sender with a enchanted golden apple named "{@C}God Apples" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 14 of command sender with a enchanted golden apple named "{@C}God Apples" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- if {{@variable}::Bookshelves} is not set:
- format slot 15 of command sender with a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 15 of command sender with a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- if {{@variable}::Absorp} is not set:
- format slot 16 of command sender with a golden apple item named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 16 of command sender with a golden apple item named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- if {{@variable}::FlintRates} is not set:
- format slot 17 of command sender with a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (10%%)" to be unstealable
- else:
- format slot 17 of command sender with a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::FlintRates}%%%" to be unstealable
- if {{@variable}::AppleRates} is not set:
- format slot 18 of command sender with a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (0.55%%) (no shears!)" to be unstealable
- else:
- if {{@variable}::OakOnly} is set:
- set {_oa} to "Oak and Dark Oak trees only drop apples"
- else:
- set {_oa} to "All trees drop apples"
- if {{@variable}::NoShears} is set:
- set {_NS} to "Shears don't work"
- else:
- set {_NS} to "Shears will work"
- format slot 18 of command sender with a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::AppleRates}%%% || {@BC}{@DoubleArrow}{@H} %{_NS}% || {@BC}{@DoubleArrow}{@H} %{_oa}%" to be unstealable
- if {{@variable}::AntiiPvP} is not set:
- format slot 19 of command sender with a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 19 of command sender with a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- if {{@variable}::NP} is not set:
- format slot 20 of command sender with a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 20 of command sender with a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- if {{@variable}::QuartzXP} is not set:
- format slot 21 of command sender with a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 21 of command sender with a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Enabled (1/2 of Vanilla XP)" to be unstealable
- if {{@variable}::SplashPots} is not set:
- format slot 22 of command sender with (a potion of:16395 with no nbt) named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 22 of command sender with (a potion of:16395 with no nbt) named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- if command sender has permission "skript.op":
- send "{@E}{@C}{@H} /feature list:config"
- else:
- send "{@E}{@C}{@H} /feature list"
- on chat:
- replace all "kys" with "{@KYS}" in message
- command /ping [<player>]:
- aliases: /ms
- trigger:
- if arg-1 is not set:
- send "{@P}{@C} Your ping:{@H} %command sender's ping%ms"
- else:
- send "{@P}{@C} %arg-1%'s ping:{@H} %arg-1's ping%ms"
- command /setlevel [<int>]:
- permission: skript.op
- aliases: /setxp
- trigger:
- if arg-1 is not set:
- send "{@E}{@C} Provide a level number!"
- else:
- set level of all players to arg-1
- set level progress of all players to 0
- broadcast "{@P}{@H} %command sender%{@C} set everyone's level to {@H}%arg-1%"
- command /freeze:
- permission: skript.op
- trigger:
- if {{@variable}::Freeze} is not set:
- broadcast "{@P}{@C} All players now {@H}frozen"
- set {{@variable}::Freeze} to true
- loop all players:
- {{@SpecVariable}::%loop-player%} is not set
- set loop-player's gamemode to adventure
- set loop-player's walk speed to 0
- #set the freeze state of player to true
- else:
- broadcast "{@P}{@C} All players are no longer {@H}frozen"
- delete {{@variable}::Freeze}
- loop all players:
- {{@SpecVariable}::%loop-player%} is not set
- #set the freeze state of loop-player to false
- set loop-player's gamemode to survival
- set loop-player's walk speed to 0.2
- on any movement:
- {{@variable}::Freeze} is set
- set {_y} to y coordinate of player
- set {_loc} to location of player
- wait 1 tick
- {_y} is less than y coordinate of player
- teleport player to {_loc}
- on join:
- if {{@variable}::Freeze} is set:
- # set the freeze state of player to true
- set player's gamemode to adventure
- set player's walk speed to 0
- else:
- # set the freeze state of player to false
- set player's gamemode to survival
- set player's walk speed to 0.2
- every 20 ticks:
- loop all players:
- if {{@variable}::Freeze} is set:
- {{@SpecVariable}::%loop-player%} is not set
- particlesAround(loop-player, 1, "portal")
- if loop-player's gamemode is not adventure:
- set loop-player's gamemode to adventure
- set loop-player's walk speed to 0
- #if loop-player's freeze state is false:
- if {{@variable}::HorseArmor} is set:
- loop all items in loop-player's inventory:
- "%loop-item's id%" is "417", "418" or "419":
- set loop-item to air
- send "{@E}{@C} Horse armor is {@H}DISABLED!" to loop-player
- if {{@variable}::GHeads} is set:
- loop all items in loop-player's inventory:
- if "%name of loop-item%" is "&6Golden Head":
- set {_r} to a random integer between 1 and 9
- set name of loop-item to "&%{_r}%%name of loop-item%"
- set {_r} to a random integer between 1 and 9
- set name of loop-item to "&%{_r}%%name of loop-item%"
- set {_r} to a random integer between 1 and 9
- set name of loop-item to "&%{_r}%%name of loop-item%"
- set {_r} to a random integer between 1 and 9
- set name of loop-item to "&%{_r}%%name of loop-item%"
- set name of loop-item to "%colored name of loop-item%"
- updateTab(loop-player)
- on tab completer for "/feature":
- if player has permission "skript.op":
- add "config" to completions
- add "list" to completions
- command /needthisforgui [<text>] [<player>]:
- executable by: console
- trigger:
- if arg-1 is "epearlgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- if {{@variable}::EPD} is not set:
- format slot 0 of arg-2 with a ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} 0 {@BC}{@HeartSymbol}" to be unstealable
- else:
- format slot 0 of arg-2 with a ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}" to be unstealable
- format slot 1 of arg-2 with a green wool named "{@H}-0.1{@BC}{@HeartSymbol}{@C} damage" with lore "{@C}for Enderpearls" to run "needthisforgui epearlminus %arg-2%"
- format slot 2 of arg-2 with a red wool named "{@H}+0.1{@BC}{@HeartSymbol}{@C} damage" with lore "{@C}for Enderpearls" to run "needthisforgui epearladd %arg-2%"
- format slot 3 of arg-2 with a redstone block named "{@H}Reset{@C} damage" with lore "{@C}for Enderpearls" to run "needthisforgui epearlreset %arg-2%"
- formatBack(arg-2)
- else if arg-1 is "epearladd":
- if {{@variable}::EPD} is not set:
- set {{@variable}::EPD} to 1
- send arg-2 title "{@H}Added{@C} 0.1 {@BC}{@HeartSymbol}{@C} to damage" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}"
- wait 1 second
- command "/needthisforgui epearlgui %arg-2%"
- else if {{@variable}::EPD} is greater than or equal to 100:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}10 {@BC}{@HeartSymbol}!" for 1 second
- wait 1 second
- command "/needthisforgui epearlgui %arg-2%"
- else:
- add 1 to {{@variable}::EPD}
- close arg-2's inventory
- send arg-2 title "{@H}Added{@C} 0.1 {@BC}{@HeartSymbol}{@C} to damage" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}" for 1 second
- wait 1 second
- command "/needthisforgui epearlgui %arg-2%"
- else if arg-1 is "epearlminus":
- if {{@variable}::EPD} is not set:
- set {{@variable}::EPD} to 0
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0 {@BC}{@HeartSymbol}!" for 1 second
- wait 1 second
- command "/needthisforgui epearlgui %arg-2%"
- else if {{@variable}::EPD} is less than or equal to 0:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0 {@BC}{@HeartSymbol}!" for 1 second
- wait 1 second
- command "/needthisforgui epearlgui %arg-2%"
- else:
- remove 1 from {{@variable}::EPD}
- close arg-2's inventory
- send arg-2 title "{@H}Removed{@C} 0.1 {@BC}{@HeartSymbol}{@C} from damage" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}" for 1 second
- wait 1 second
- command "/needthisforgui epearlgui %arg-2%"
- else if arg-1 is "epearlreset":
- delete {{@variable}::EPD}
- close arg-2's inventory
- send arg-2 title "{@H}Reset{@C} ender pearl damage" with subtitle "{@BC}{@DoubleArrow}{@C} Now 0 {@BC}{@HeartSymbol}" for 1 second
- wait 1 second
- command "/needthisforgui epearlgui %arg-2%"
- else if arg-1 is "deathl":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- if {{@variable}::DL} is not set:
- format slot 0 of arg-2 with ("169" parsed as item) named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 0 of arg-2 with ("169" parsed as item) named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Death Lightning" to run "needthisforgui dl %arg-2%"
- formatBack(arg-2)
- else if arg-1 is "asgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- if {{@variable}::AS} is not set:
- format slot 0 of arg-2 with ("416" parsed as item) named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 0 of arg-2 with ("416" parsed as item) named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Death Stands" to run "needthisforgui tds %arg-2%"
- formatBack(arg-2)
- else if arg-1 is "dl":
- if {{@variable}::DL} is not set:
- set {{@variable}::DL} to true
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Death Lightning" for 1 second
- wait 1 second
- command "/needthisforgui deathl %arg-2%"
- else:
- delete {{@variable}::DL}
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Death Lightning" for 1 second
- wait 1 second
- command "/needthisforgui deathl %arg-2%"
- else if arg-1 is "tds":
- if {{@variable}::AS} is not set:
- set {{@variable}::AS} to true
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Death Stands" for 1 second
- wait 1 second
- command "/needthisforgui asgui %arg-2%"
- else:
- delete {{@variable}::AS}
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Death Stands" for 1 second
- wait 1 second
- command "/needthisforgui asgui %arg-2%"
- else if arg-1 is "nrgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Natural Regeneration" to run "needthisforgui tnr %arg-2%"
- if {{@variable}::NR} is not set:
- format slot 0 of arg-2 with a mushroom stew named "{@C}Natural Regeneration" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 0 of arg-2 with a mushroom stew named "{@C}Natural Regeneration" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "tnr":
- if {{@variable}::NR} is not set:
- set {{@variable}::NR} to true
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Natural Regeneration" for 1 second
- wait 1 second
- command "/needthisforgui nrgui %arg-2%"
- else:
- delete {{@variable}::NR}
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Natural Regeneration" for 1 second
- wait 1 second
- command "/needthisforgui nrgui %arg-2%"
- else if arg-1 is "horsehealgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- if {{@variable}::HorseHeal} is not set:
- format slot 0 of arg-2 with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Not nerfed" to be unstealable
- else if {{@variable}::HorseHeal} is less than or equal to 0:
- format slot 0 of arg-2 with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- set {_Sugar} to "{@BC}{@DoubleArrow}{@C} Sugar:{@H} %{@SugarHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_Whe} to "{@BC}{@DoubleArrow}{@C} Wheat:{@H} %{@WheatHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_App} to "{@BC}{@DoubleArrow}{@C} Apple:{@H} %{@AppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_Gapp} to "{@BC}{@DoubleArrow}{@C} Golden Apple:{@H} %{@GoldenAppleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_Gcar} to "{@BC}{@DoubleArrow}{@C} Golden Carrot:{@H} %{@GoldenCarrotHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- set {_HB} to "{@BC}{@DoubleArrow}{@C} Hay Bale:{@H} %{@HayBaleHealHorse}*({{@variable}::HorseHeal}/1000)% {@BC}{@HeartSymbol}"
- format slot 0 of arg-2 with a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::HorseHeal}%%% as effective || %{_Sugar}% || %{_Whe}% || %{_App}% || %{_Gcar}% || %{_Gapp}% || %{_HB}%" to be unstealable
- format slot 1 of arg-2 with a green wool named "{@H}-25%%{@BC}{@HeartSymbol}{@C} effectiveness" with lore "{@C}for Horse Healing" to run "needthisforgui hhm %arg-2%"
- format slot 2 of arg-2 with a red wool named "{@H}+25%%{@BC}{@HeartSymbol}{@C} damage" with lore "{@C}for Horse Healing" to run "needthisforgui hha %arg-2%"
- format slot 3 of arg-2 with a redstone block named "{@H}Reset{@C} effectiveness" with lore "{@C}for Horse Healing" to run "needthisforgui hhr %arg-2%"
- formatBack(arg-2)
- else if arg-1 is "hha":
- if {{@variable}::HorseHeal} is not set:
- set {{@variable}::HorseHeal} to 125
- close arg-2's inventory
- send arg-2 title "{@H}Added{@C} 25%% effectiveness" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::HorseHeal}%%% as effective"
- wait 1 second
- command "/needthisforgui horsehealgui %arg-2%"
- else if {{@variable}::HorseHeal} is greater than or equal to 250:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}250%% effectiveness!" for 1 second
- wait 1 second
- command "/needthisforgui horsehealgui %arg-2%"
- else:
- add 25 to {{@variable}::HorseHeal}
- close arg-2's inventory
- send arg-2 title "{@H}Added{@C} 25%% effectiveness" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::HorseHeal}%%% as effective"
- wait 1 second
- command "/needthisforgui horsehealgui %arg-2%"
- else if arg-1 is "hhm":
- if {{@variable}::HorseHeal} is not set:
- set {{@variable}::HorseHeal} to 75
- close arg-2's inventory
- send arg-2 title "{@H}Removed{@C} 25%% effectiveness" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::HorseHeal}%%% as effective"
- wait 1 second
- command "/needthisforgui horsehealgui %arg-2%"
- else if {{@variable}::HorseHeal} is less than or equal to 0:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0%% effectiveness!" for 1 second
- wait 1 second
- command "/needthisforgui horsehealgui %arg-2%"
- else:
- remove 25 from {{@variable}::HorseHeal}
- close arg-2's inventory
- send arg-2 title "{@H}Removed{@C} 25%% effectiveness" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::HorseHeal}%%% as effective"
- wait 1 second
- command "/needthisforgui horsehealgui %arg-2%"
- else if arg-1 is "hhr":
- delete {{@variable}::HorseHeal}
- close arg-2's inventory
- send arg-2 title "{@H}Reset{@C} Horse Healing" with subtitle "{@BC}{@DoubleArrow}{@C} Now Vanilla" for 1 second
- wait 1 second
- command "/needthisforgui horsehealgui %arg-2%"
- else if arg-1 is "horseridegui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Horse Riding" to run "needthisforgui thr %arg-2%"
- if {{@variable}::Horses} is not set:
- format slot 0 of arg-2 with a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 0 of arg-2 with a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "thr":
- if {{@variable}::Horses} is not set:
- set {{@variable}::Horses} to true
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Horse Riding" for 1 second
- wait 1 second
- command "/needthisforgui horseridegui %arg-2%"
- else:
- delete {{@variable}::Horses}
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Horse Riding" for 1 second
- wait 1 second
- command "/needthisforgui horseridegui %arg-2%"
- else if arg-1 is "gdi":
- close arg-2's inventory
- send arg-2 title "{@H}Successfully{@C} changed ghast drop" with subtitle "{@C}to a {@H}gold ingot" for 1 second
- wait 1 second
- command "/needthisforgui ghastgui %arg-2%"
- set {{@variable}::GD} to "gi"
- else if arg-1 is "gdn":
- send arg-2 title "{@H}Successfully{@C} changed ghast drop" with subtitle "{@C}to a {@H}gold nugget" for 1 second
- close arg-2's inventory
- wait 1 second
- set {{@variable}::GD} to "gn"
- command "/needthisforgui ghastgui %arg-2%"
- else if arg-1 is "gdb":
- close arg-2's inventory
- send arg-2 title "{@H}Successfully{@C} changed ghast drop" with subtitle "{@C}to a {@H}gold block" for 1 second
- wait 1 second
- set {{@variable}::GD} to "gb"
- command "/needthisforgui ghastgui %arg-2%"
- else if arg-1 is "gr":
- close arg-2's inventory
- send arg-2 title "{@H}Successfully{@C} changed ghast drop" with subtitle "{@C}to {@H}vanilla" for 1 second
- wait 1 second
- delete {{@variable}::GD}
- command "/needthisforgui ghastgui %arg-2%"
- else if arg-1 is "ghastgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- if {{@variable}::GD} is not set:
- format slot 0 of arg-2 with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Normal" to be unstealable
- else if {{@variable}::GD} is "gi":
- format slot 0 of arg-2 with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Ingot" to be unstealable
- else if {{@variable}::GD} is "gn":
- format slot 0 of arg-2 with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Nugget" to be unstealable
- else if {{@variable}::GD} is "gb":
- format slot 0 of arg-2 with a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Block" to be unstealable
- format slot 1 of arg-2 with a redstone block named "{@C}Reset Drops" to run "needthisforgui gr %arg-2%"
- format slot 2 of arg-2 with a gold nugget named "{@C}Drop Gold Nugget" to run "needthisforgui gdn %arg-2%"
- format slot 3 of arg-2 with a gold ingot named "{@C}Drop Gold Ingot" to run "needthisforgui gdi %arg-2%"
- format slot 4 of arg-2 with a gold block named "{@C}Drop Gold Block" to run "needthisforgui gdb %arg-2%"
- formatBack(arg-2)
- else if arg-1 is "headsgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- if {{@variable}::GHeads} is not set:
- format slot 0 of arg-2 with a player head named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- if {{@variable}::GHeadHeal} is not set:
- format slot 0 of arg-2 with 8 player heads named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}4{@BC}{@HeartSymbol}" to be unstealable
- else:
- format slot 0 of arg-2 with (({{@variable}::GHeadHeal}) of player head) named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}%{{@variable}::GHeadHeal}/2%{@BC}{@HeartSymbol}" to be unstealable
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Player Heads" to run "needthisforgui toghead %arg-2%"
- format slot 2 of arg-2 with a green wool named "{@H}+0.5 {@BC}{@HeartSymbol}" with lore "{@C}to healing amount" to run "needthisforgui addhead %arg-2%"
- format slot 3 of arg-2 with a red wool named "{@H}-0.5 {@BC}{@HeartSymbol}" with lore "{@C}to healing amount" to run "needthisforgui remhead %arg-2%"
- formatBack(arg-2)
- else if arg-1 is "toghead":
- if {{@variable}::GHeads} is not set:
- set {{@variable}::GHeads} to true
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Golden Heads" with subtitle "" for 1 second
- wait 1 second
- command "/needthisforgui headsgui %arg-2%"
- else:
- delete {{@variable}::GHeads}
- delete {{@variable}::GHeadHeal}
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Golden Heads" with subtitle "" for 1 second
- wait 1 second
- command "/needthisforgui headsgui %arg-2%"
- else if arg-1 is "addhead":
- if {{@variable}::GHeadHeal} is not set:
- set {{@variable}::GHeadHeal} to 9
- close arg-2's inventory
- send arg-2 title "{@H}Added{@C} 0.5 {@BC}{@HeartSymbol}" with subtitle "{@BC}{@DoubleArrow}{@C} Now heals %{{@variable}::GHeadHeal}/2% {@BC}{@HeartSymbol}"
- wait 1 second
- command "/needthisforgui headsgui %arg-2%"
- else:
- add 1 to {{@variable}::GHeadHeal}
- close arg-2's inventory
- send arg-2 title "{@H}Added{@C} 0.5 {@BC}{@HeartSymbol}" with subtitle "{@BC}{@DoubleArrow}{@C} Now heals %{{@variable}::GHeadHeal}/2% {@BC}{@HeartSymbol}"
- wait 1 second
- command "/needthisforgui headsgui %arg-2%"
- else if arg-1 is "remhead":
- if {{@variable}::GHeadHeal} is not set:
- set {{@variable}::GHeadHeal} to 7
- close arg-2's inventory
- send arg-2 title "{@H}Removed{@C} 0.5 {@BC}{@HeartSymbol}" with subtitle "{@BC}{@DoubleArrow}{@C} Now heals %{{@variable}::GHeadHeal}/2% {@BC}{@HeartSymbol}"
- wait 1 second
- command "/needthisforgui headsgui %arg-2%"
- else:
- remove 1 from {{@variable}::GHeadHeal}
- close arg-2's inventory
- send arg-2 title "{@H}Removed{@C} 0.5 {@BC}{@HeartSymbol}" with subtitle "{@BC}{@DoubleArrow}{@C} Now heals %{{@variable}::GHeadHeal}/2% {@BC}{@HeartSymbol}"
- wait 1 second
- command "/needthisforgui headsgui %arg-2%"
- else if arg-1 is "horsearmorgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Horse Armor" to run "needthisforgui tha %arg-2%"
- if {{@variable}::HorseArmor} is not set:
- format slot 0 of arg-2 with a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 0 of arg-2 with a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "tha":
- if {{@variable}::HorseArmor} is not set:
- set {{@variable}::HorseArmor} to true
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Horse Armor" for 1 second
- wait 1 second
- command "/needthisforgui horsearmorgui %arg-2%"
- else:
- delete {{@variable}::HorseArmor}
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Horse Armor" for 1 second
- wait 1 second
- command "/needthisforgui horsearmorgui %arg-2%"
- else if arg-1 is "glowgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Glowstone" to run "needthisforgui tg %arg-2%"
- if {{@variable}::NoGlow} is not set:
- format slot 0 of arg-2 with a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 0 of arg-2 with a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "tg":
- if {{@variable}::NoGlow} is not set:
- set {{@variable}::NoGlow} to true
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Glowstone" for 1 second
- wait 1 second
- command "/needthisforgui glowgui %arg-2%"
- else:
- delete {{@variable}::NoGlow}
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Glowstone" for 1 second
- wait 1 second
- command "/needthisforgui glowgui %arg-2%"
- else if arg-1 is "splashgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Splash Potions" to run "needthisforgui tsp %arg-2%"
- if {{@variable}::SplashPots} is not set:
- format slot 0 of arg-2 with (a potion of:16395 with no nbt) named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 0 of arg-2 with (a potion of:16395 with no nbt) named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "tsp":
- if {{@variable}::SplashPots} is not set:
- set {{@variable}::SplashPots} to true
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Splash Potions" for 1 second
- wait 1 second
- command "/needthisforgui splashgui %arg-2%"
- else:
- delete {{@variable}::SplashPots}
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Splash Potions" for 1 second
- wait 1 second
- command "/needthisforgui splashgui %arg-2%"
- else if arg-1 is "trapgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Anti Portal Trapping" to run "needthisforgui tpt %arg-2%"
- if {{@variable}::AntiTrap} is not set:
- format slot 0 of arg-2 with a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 0 of arg-2 with a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "tpt":
- if {{@variable}::AntiTrap} is not set:
- set {{@variable}::AntiTrap} to true
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Anti Portal Trapping" for 1 second
- wait 1 second
- command "/needthisforgui trapgui %arg-2%"
- else:
- delete {{@variable}::AntiTrap}
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Anti Portal Trapping" for 1 second
- wait 1 second
- command "/needthisforgui trapgui %arg-2%"
- else if arg-1 is "brewgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Brewing Stands" to run "needthisforgui tbs %arg-2%"
- if {{@variable}::BrewingStands} is not set:
- format slot 0 of arg-2 with a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 0 of arg-2 with a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "tbs":
- if {{@variable}::BrewingStands} is not set:
- set {{@variable}::BrewingStands} to true
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Brewing Stands" for 1 second
- wait 1 second
- command "/needthisforgui brewgui %arg-2%"
- else:
- delete {{@variable}::BrewingStands}
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Brewing Stands" for 1 second
- wait 1 second
- command "/needthisforgui brewgui %arg-2%"
- else if arg-1 is "strgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Blaze Powder (Str Pots)" to run "needthisforgui tbp %arg-2%"
- if {{@variable}::StrPots} is not set:
- format slot 0 of arg-2 with a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 0 of arg-2 with a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "tbp":
- if {{@variable}::StrPots} is not set:
- set {{@variable}::StrPots} to true
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Blaze Powder (Str Pots)" for 1 second
- wait 1 second
- command "/needthisforgui strgui %arg-2%"
- else:
- delete {{@variable}::StrPots}
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Blaze Powder (Str Pots)" for 1 second
- wait 1 second
- command "/needthisforgui strgui %arg-2%"
- else if arg-1 is "godgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} God Apples" to run "needthisforgui tga %arg-2%"
- if {{@variable}::GodApp} is not set:
- format slot 0 of arg-2 with a enchanted golden apple named "{@C}God Apples" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 0 of arg-2 with a enchanted golden apple named "{@C}God Apples" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "tga":
- if {{@variable}::GodApp} is not set:
- set {{@variable}::GodApp} to true
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} God Apples" for 1 second
- wait 1 second
- command "/needthisforgui godgui %arg-2%"
- else:
- delete {{@variable}::GodApp}
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} God Apples" for 1 second
- wait 1 second
- command "/needthisforgui godgui %arg-2%"
- else if arg-1 is "bookgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Bookshelves" to run "needthisforgui tb %arg-2%"
- if {{@variable}::Bookshelves} is not set:
- format slot 0 of arg-2 with a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 0 of arg-2 with a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "tb":
- if {{@variable}::Bookshelves} is not set:
- set {{@variable}::Bookshelves} to true
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Bookshelves" for 1 second
- wait 1 second
- command "/needthisforgui bookgui %arg-2%"
- else:
- delete {{@variable}::Bookshelves}
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Bookshelves" for 1 second
- wait 1 second
- command "/needthisforgui bookgui %arg-2%"
- else if arg-1 is "melongui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Hard Melon Recipe" to run "needthisforgui tm %arg-2%"
- if {{@variable}::GlistMelon} is not set:
- format slot 0 of arg-2 with a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 0 of arg-2 with a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "tm":
- if {{@variable}::GlistMelon} is not set:
- set {{@variable}::GlistMelon} to true
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Hard Melon Recipe" for 1 second
- wait 1 second
- command "/needthisforgui melongui %arg-2%"
- else:
- delete {{@variable}::GlistMelon}
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Hard Melon Recipe" for 1 second
- wait 1 second
- command "/needthisforgui melongui %arg-2%"
- else if arg-1 is "absorpgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Absorption" to run "needthisforgui tab %arg-2%"
- if {{@variable}::Absorp} is not set:
- format slot 0 of arg-2 with a golden apple item named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 0 of arg-2 with a golden apple item named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "tab":
- if {{@variable}::Absorp} is not set:
- set {{@variable}::Absorp} to true
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Absorption" for 1 second
- wait 1 second
- command "/needthisforgui absorpgui %arg-2%"
- else:
- delete {{@variable}::Absorp}
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Absorption" for 1 second
- wait 1 second
- command "/needthisforgui absorpgui %arg-2%"
- else if arg-1 is "ipvpgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Anti iPvP" to run "needthisforgui tan %arg-2%"
- if {{@variable}::AntiiPvP} is not set:
- format slot 0 of arg-2 with a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 0 of arg-2 with a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "tan":
- if {{@variable}::AntiiPvP} is not set:
- set {{@variable}::AntiiPvP} to true
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Anti iPvP" for 1 second
- wait 1 second
- command "/needthisforgui ipvpgui %arg-2%"
- else:
- delete {{@variable}::AntiiPvP}
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Anti iPvP" for 1 second
- wait 1 second
- command "/needthisforgui ipvpgui %arg-2%"
- else if arg-1 is "nethergui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Nether" to run "needthisforgui tn %arg-2%"
- if {{@variable}::NP} is not set:
- format slot 0 of arg-2 with a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Enabled" to be unstealable
- else:
- format slot 0 of arg-2 with a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "tn":
- if {{@variable}::NP} is not set:
- set {{@variable}::NP} to true
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Nether" for 1 second
- wait 1 second
- command "/needthisforgui nethergui %arg-2%"
- else:
- delete {{@variable}::NP}
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Nether" for 1 second
- wait 1 second
- command "/needthisforgui nethergui %arg-2%"
- else if arg-1 is "xpgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- format slot 1 of arg-2 with a redstone block named "{@H}Toggle{@C} Quartz XP Nerf" to run "needthisforgui txpn %arg-2%"
- if {{@variable}::QuartzXP} is not set:
- format slot 0 of arg-2 with a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Disabled" to be unstealable
- else:
- format slot 0 of arg-2 with a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Enabled (1/2 of Vanilla XP)" to be unstealable
- formatBack(arg-2)
- else if arg-1 is "txpn":
- if {{@variable}::QuartzXP} is not set:
- set {{@variable}::QuartzXP} to true
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Quartz XP Nerf" for 1 second
- wait 1 second
- command "/needthisforgui xpgui %arg-2%"
- else:
- delete {{@variable}::QuartzXP}
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Quartz XP Nerf" for 1 second
- wait 1 second
- command "/needthisforgui xpgui %arg-2%"
- else if arg-1 is "flintgui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- formatBack(arg-2)
- if {{@variable}::FlintRates} is not set:
- format slot 0 of arg-2 with a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla" to be unstealable
- else:
- format slot 0 of arg-2 with a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::FlintRates}%%%" to be unstealable
- format slot 1 of arg-2 with a redstone block named "{@C}Reset Flint Rates" to run "needthisforgui rfr %arg-2%"
- format slot 2 of arg-2 with a green wool named "{@C}+0.5%% Rates" to run "needthisforgui add05flint %arg-2%"
- format slot 3 of arg-2 with a green wool named "{@C}+1%% Rates" to run "needthisforgui add1flint %arg-2%"
- format slot 4 of arg-2 with a green wool named "{@C}+10%% Rates" to run "needthisforgui add10flint %arg-2%"
- format slot 5 of arg-2 with a red wool named "{@C}-0.5%% Rates" to run "needthisforgui rem05flint %arg-2%"
- format slot 6 of arg-2 with a red wool named "{@C}-1%% Rates" to run "needthisforgui rem1flint %arg-2%"
- format slot 7 of arg-2 with a red wool named "{@C}-10%% Rates" to run "needthisforgui rem10flint %arg-2%"
- else if arg-1 is "applegui":
- wait 4 ticks
- open chest with 1 row named "{@FeatureConfigName}" to arg-2
- wait 1 tick
- formatBack(arg-2)
- if {{@variable}::AppleRates} is not set:
- format slot 0 of arg-2 with a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (0.55%%) (no shears!)" to be unstealable
- else:
- if {{@variable}::OakOnly} is set:
- set {_oa} to "Oak and Dark Oak trees only drop apples"
- else:
- set {_oa} to "All trees drop apples"
- if {{@variable}::NoShears} is set:
- set {_NS} to "Shears don't work"
- else:
- set {_NS} to "Shears will work"
- format slot 0 of arg-2 with a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::AppleRates}%%% || {@BC}{@DoubleArrow}{@H} %{_NS}% || {@BC}{@DoubleArrow}{@H} %{_oa}%" to be unstealable
- format slot 1 of arg-2 with a redstone block named "{@C}Reset Apple Rates" to run "needthisforgui rar %arg-2%"
- format slot 2 of arg-2 with a green wool named "{@C}+0.5%% Rates" to run "needthisforgui add05apple %arg-2%"
- format slot 3 of arg-2 with a green wool named "{@C}+5%% Rates" to run "needthisforgui add5apple %arg-2%"
- format slot 4 of arg-2 with a red wool named "{@C}-0.5%% Rates" to run "needthisforgui rem05apple %arg-2%"
- format slot 5 of arg-2 with a red wool named "{@C}-5%% Rates" to run "needthisforgui rem5apple %arg-2%"
- format slot 6 of arg-2 with shears named "{@C}Toggle Shears" to run "needthisforgui togshears %arg-2%"
- format slot 7 of arg-2 with oak wood block named "{@C}Toggle Oak Only" to run "needthisforgui togoakonly %arg-2%"
- else if arg-1 is "rar":
- delete {{@variable}::AppleRates}
- delete {{@variable}::NoShears}
- delete {{@variable}::OakOnly}
- close arg-2's inventory
- send arg-2 title "{@H}Reset{@C} apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now Vanilla (0.55%%)" for 1 second
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else if arg-1 is "togshears":
- if {{@variable}::NoShears} is not set:
- set {{@variable}::NoShears} to true
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Shears" with subtitle "" for 1 second
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else:
- delete {{@variable}::NoShears}
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Shears" with subtitle "" for 1 second
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else if arg-1 is "togoakonly":
- if {{@variable}::OakOnly} is not set:
- set {{@variable}::OakOnly} to true
- close arg-2's inventory
- send arg-2 title "{@H}Enabled{@C} Oak Only Apples" with subtitle "" for 1 second
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else:
- delete {{@variable}::OakOnly}
- close arg-2's inventory
- send arg-2 title "{@H}Disabled{@C} Oak Only Apples" with subtitle "" for 1 second
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else if arg-1 is "rem5apple":
- if {{@variable}::AppleRates} is not set:
- close arg-2's inventory
- set {{@variable}::AppleRates} to 0
- send arg-2 title "{@H}Removed{@C} 5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else if {{@variable}::AppleRates} is less than or equal to 0:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0%%!" for 1 second
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else:
- remove 5 from {{@variable}::AppleRates}
- if {{@variable}::AppleRates} is less than 0:
- set {{@variable}::AppleRates} to 0
- close arg-2's inventory
- send arg-2 title "{@H}Removed{@C} 5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else if arg-1 is "add5apple":
- if {{@variable}::AppleRates} is not set:
- close arg-2's inventory
- set {{@variable}::AppleRates} to 5.05
- send arg-2 title "{@H}Added{@C} 5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else if {{@variable}::AppleRates} is greater than or equal to 100:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}100%%!" for 1 second
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else:
- add 5 to {{@variable}::AppleRates}
- if {{@variable}::AppleRates} is more than 100:
- set {{@variable}::AppleRates} to 100
- close arg-2's inventory
- send arg-2 title "{@H}Added{@C} 5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else if arg-1 is "rem05apple":
- if {{@variable}::AppleRates} is not set:
- close arg-2's inventory
- set {{@variable}::AppleRates} to 0.05
- send arg-2 title "{@H}Removed{@C} 0.5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else if {{@variable}::AppleRates} is less than or equal to 0:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0%%!" for 1 second
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else:
- remove 0.5 from {{@variable}::AppleRates}
- if {{@variable}::AppleRates} is less than 0:
- set {{@variable}::AppleRates} to 0
- close arg-2's inventory
- send arg-2 title "{@H}Removed{@C} 0.5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else if arg-1 is "add05apple":
- if {{@variable}::AppleRates} is not set:
- close arg-2's inventory
- set {{@variable}::AppleRates} to 1.05
- send arg-2 title "{@H}Added{@C} 0.5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else if {{@variable}::AppleRates} is greater than or equal to 100:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}100%%!" for 1 second
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else:
- add 0.5 to {{@variable}::AppleRates}
- if {{@variable}::AppleRates} is more than 100:
- set {{@variable}::AppleRates} to 100
- close arg-2's inventory
- send arg-2 title "{@H}Added{@C} 0.5%% to apple rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::AppleRates}%%%"
- wait 1 second
- command "/needthisforgui applegui %arg-2%"
- else if arg-1 is "add10flint":
- if {{@variable}::FlintRates} is not set:
- close arg-2's inventory
- set {{@variable}::FlintRates} to 20
- send arg-2 title "{@H}Added{@C} 10%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else if {{@variable}::FlintRates} is greater than or equal to 100:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}100%%!" for 1 second
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else:
- add 10 to {{@variable}::FlintRates}
- if {{@variable}::FlintRates} is more than 100:
- set {{@variable}::FlintRates} to 100
- close arg-2's inventory
- send arg-2 title "{@H}Added{@C} 10%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else if arg-1 is "rem10flint":
- if {{@variable}::FlintRates} is not set:
- close arg-2's inventory
- set {{@variable}::FlintRates} to 0
- send arg-2 title "{@H}Removed{@C} 10%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else if ({{@variable}::FlintRates}) is less than or equal to 0:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0%%!" for 1 second
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else:
- remove 10 from {{@variable}::FlintRates}
- if {{@variable}::FlintRates} is less than 0:
- set {{@variable}::FlintRates} to 0
- close arg-2's inventory
- send arg-2 title "{@H}Removed{@C} 10%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else if arg-1 is "add05flint":
- if {{@variable}::FlintRates} is not set:
- close arg-2's inventory
- set {{@variable}::FlintRates} to 10.5
- send arg-2 title "{@H}Added{@C} 0.5%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else if {{@variable}::FlintRates} is greater than or equal to 100:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}100%%!" for 1 second
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else:
- add 0.5 to {{@variable}::FlintRates}
- if {{@variable}::FlintRates} is more than 100:
- set {{@variable}::FlintRates} to 100
- close arg-2's inventory
- send arg-2 title "{@H}Added{@C} 0.5%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else if arg-1 is "add1flint":
- if {{@variable}::FlintRates} is not set:
- close arg-2's inventory
- set {{@variable}::FlintRates} to 11
- send arg-2 title "{@H}Added{@C} 1%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else if {{@variable}::FlintRates} is greater than or equal to 100:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}over" with subtitle "{@C}100%%!" for 1 second
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else:
- add 1 to {{@variable}::FlintRates}
- if {{@variable}::FlintRates} is more than 100:
- set {{@variable}::FlintRates} to 100
- close arg-2's inventory
- send arg-2 title "{@H}Added{@C} 1%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else if arg-1 is "rem1flint":
- if {{@variable}::FlintRates} is not set:
- close arg-2's inventory
- set {{@variable}::FlintRates} to 9
- send arg-2 title "{@H}Removed{@C} 1%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else if {{@variable}::FlintRates} is less than or equal to 0:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0%%!" for 1 second
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else:
- remove 1 from {{@variable}::FlintRates}
- if {{@variable}::FlintRates} is less than 0:
- set {{@variable}::FlintRates} to 0
- close arg-2's inventory
- send arg-2 title "{@H}Removed{@C} 1%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else if arg-1 is "rem05flint":
- if {{@variable}::FlintRates} is not set:
- close arg-2's inventory
- set {{@variable}::FlintRates} to 9.5
- send arg-2 title "{@H}Removed{@C} 0.5%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else if {{@variable}::FlintRates} is less than or equal to 0:
- close arg-2's inventory
- send arg-2 title "{@E}{@C} Can't go {@H}under" with subtitle "{@C}0%%!" for 1 second
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else:
- remove 0.5 from {{@variable}::FlintRates}
- if {{@variable}::FlintRates} is less than 0:
- set {{@variable}::FlintRates} to 0
- close arg-2's inventory
- send arg-2 title "{@H}Removed{@C} 0.5%% to flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now %{{@variable}::FlintRates}%%%"
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else if arg-1 is "rfr":
- delete {{@variable}::FlintRates}
- close arg-2's inventory
- send arg-2 title "{@H}Reset{@C} flint rates" with subtitle "{@BC}{@DoubleArrow}{@C} Now Vanilla (10%%)" for 1 second
- wait 1 second
- command "/needthisforgui flintgui %arg-2%"
- else if arg-1 is "openconfig":
- close arg-2's inventory
- wait 5 ticks
- arg-2 command "/feature config"
- on shoot:
- world is not "{@ExcludedWorld}"
- "%projectile%" is "thrown potion"
- {{@variable}::SplashPots} is set
- cancel the event
- send "{@E}{@C} Splash Potions are {@H}DISABLED!" to shooter
- on rightclick on chest:
- {{@variable}::HorseArmor} is set
- loop all items in inventory of event-block:
- if loop-item's id is 417, 418 or 419:
- set loop-item to air
- on break of chest:
- {{@variable}::HorseArmor} is set
- loop all items in inventory of event-block:
- if loop-item's id is 417, 418 or 419:
- set loop-item to air
- on death of a ghast:
- {{@variable}::GD} is set
- clear drops
- if {{@variable}::GD} is "gn":
- drop a gold nugget at location of victim
- else if {{@variable}::GD} is "gi":
- drop a gold ingot at location of victim
- else if {{@variable}::GD} is "gb":
- drop a gold block at location of victim
- on death of a player:
- set {_w} to world of victim
- {_w} is not "{@ExcludedWorld}"
- if {{@variable}::DL} is true:
- strike lightning effect at the victim
- loop all players:
- "%world of loop-player%" is not {_w}
- command "/playsound ambient.weather.thunder %loop-player% ~ ~ ~ 1 1 1"
- if {{@variable}::AS} is true:
- set {_a} to armorStand(location at victim)
- if {{@variable}::GHeads} is true:
- equip {_a} with victim's skull
- if victim's leggings is not air:
- set {_vp} to victim's leggings
- if victim's chestplate is not air:
- set {_vc} to victim's chestplate
- if victim's boots is not air:
- set {_vb} to victim's boots
- if {_vc} is set:
- equip {_a} with victim's chestplate
- remove victim's chestplate from the drops
- if {_vp} is set:
- equip {_a} with victim's leggings
- remove victim's leggings from the drops
- if {_vb} is set:
- equip {_a} with victim's boots
- remove victim's boots from the drops
- else:
- if victim's helmet is not air:
- set {_vh} to victim's helmet
- if victim's leggings is not air:
- set {_vp} to victim's leggings
- if victim's chestplate is not air:
- set {_vc} to victim's chestplate
- if victim's boots is not air:
- set {_vb} to victim's boots
- if {_vh} is set:
- equip {_a} with victim's helmet
- remove victim's helmet from the drops
- if {_vc} is set:
- equip {_a} with victim's chestplate
- remove victim's chestplate from the drops
- if {_vp} is set:
- equip {_a} with victim's leggings
- remove victim's leggings from the drops
- if {_vb} is set:
- equip {_a} with victim's boots
- remove victim's boots from the drops
- else:
- {{@variable}::GHeads} is true
- drop victim's skull at location of victim
- on heal:
- if {{@variable}::NR} is not set:
- event-entity is a player
- heal reason is satiated
- cancel the event
- wait 1 tick
- updateTab(player)
- function saveVar(p: player, var: text):
- if {{@variable}::%{_var}%} is set:
- set {{@variable}::Hosting::%{_p}%::%{_var}%} to {{@variable}::%{_var}%}
- send "{@P}{@C} SAVED {@H}[->]{@C} %{_var}% {@H}[->]{@C} %{_p}%" to {_p}
- function loadVar(p: player, var: text):
- if {{@variable}::Hosting::%{_p}%::%{_var}%} is set:
- set {{@variable}::%{_var}%} to ({{@variable}::Hosting::%{_p}%::%{_var}%})
- else:
- delete {{@variable}::%{_var}%}
- send "{@P}{@C} LOADED {@H}[->]{@C} %{_var}% {@H}[->]{@C} %{_p}%" to {_p}
- command /savehostingpreferences:
- aliases: /saveconfig, /savehosting, /savepreferences
- permission: skript.op
- trigger:
- delete {{@variable}::Hosting::%command sender%::*}
- saveVar(command sender, "EPD")
- saveVar(command sender, "GD")
- saveVar(command sender, "AS")
- saveVar(command sender, "GHeads")
- saveVar(command sender, "GHeadHeal")
- saveVar(command sender, "NR")
- saveVar(command sender, "Horses")
- saveVar(command sender, "HorseHeal")
- saveVar(command sender, "HorseArmor")
- saveVar(command sender, "NoGlow")
- saveVar(command sender, "AntiTrap")
- saveVar(command sender, "BrewingStands")
- saveVar(command sender, "Bookshelves")
- saveVar(command sender, "GodApp")
- saveVar(command sender, "StrPots")
- saveVar(command sender, "Absorp")
- saveVar(command sender, "FlintRates")
- saveVar(command sender, "OakOnly")
- saveVar(command sender, "NoShears")
- saveVar(command sender, "AppleRates")
- saveVar(command sender, "AntiiPvP")
- saveVar(command sender, "NP")
- saveVar(command sender, "QuartzXP")
- saveVar(command sender, "GlistMelon")
- saveVar(command sender, "SplashPots")
- command /loadhostingpreferences:
- aliases: /loadconfig, /loadhosting, /loadprefernces
- trigger:
- loadVar(command sender, "EPD")
- loadVar(command sender, "GD")
- loadVar(command sender, "AS")
- loadVar(command sender, "GHeads")
- loadVar(command sender, "GHeadHeal")
- loadVar(command sender, "NR")
- loadVar(command sender, "Horses")
- loadVar(command sender, "HorseHeal")
- loadVar(command sender, "HorseArmor")
- loadVar(command sender, "NoGlow")
- loadVar(command sender, "AntiTrap")
- loadVar(command sender, "BrewingStands")
- loadVar(command sender, "Bookshelves")
- loadVar(command sender, "GodApp")
- loadVar(command sender, "StrPots")
- loadVar(command sender, "Absorp")
- loadVar(command sender, "FlintRates")
- loadVar(command sender, "OakOnly")
- loadVar(command sender, "NoShears")
- loadVar(command sender, "AppleRates")
- loadVar(command sender, "AntiiPvP")
- loadVar(command sender, "NP")
- loadVar(command sender, "QuartzXP")
- loadVar(command sender, "GlistMelon")
- loadVar(command sender, "SplashPots")
- on hunger meter change:
- {@SatFix} is true
- wait 1 tick
- set player's saturation level to (player's saturation level*2.5)
- on rightclick on a horse holding sugar, wheat, apple, golden apple, hay block or golden carrot:
- {{@variable}::HorseHeal} is set
- cancel the event
- if {{@variable}::HorseHeal} is 0:
- send "{@E}{@C} Horse Healing is {@H}DISABLED!" to event-player
- stop trigger
- if player's tool is a sugar:
- remove (1 of (event-player's tool)) from event-player's tool
- heal event-entity by {@SugarHealHorse}*({{@variable}::HorseHeal}/1000)
- else if player's tool is a wheat:
- remove (1 of (event-player's tool)) from event-player's tool
- heal event-entity by {@WheatHealHorse}*({{@variable}::HorseHeal}/1000)
- else if player's tool is a apple:
- remove (1 of (event-player's tool)) from event-player's tool
- heal event-entity by {@AppleHealHorse}*({{@variable}::HorseHeal}/1000)
- else if player's tool is a golden apple:
- remove (1 of (event-player's tool)) from event-player's tool
- heal event-entity by {@GoldenAppleHealHorse}*({{@variable}::HorseHeal}/1000)
- else if player's tool is a golden carrot:
- remove (1 of (event-player's tool)) from event-player's tool
- heal event-entity by {@GoldenCarrotHealHorse}*({{@variable}::HorseHeal}/1000)
- else if player's tool is a hay block:
- remove (1 of (event-player's tool)) from event-player's tool
- heal event-entity by {@HayBaleHealHorse}*({{@variable}::HorseHeal}/1000)
- command /horsehealamounts:
- trigger:
- if {{@variable}::HorseHeal} is not set:
- set {_t} to 0.1
- else:
- set {_t} to ({{@variable}::HorseHeal}/1000)
- send "{@P}{@C} Sugar:{@H} %{@SugarHealHorse}*{_t}% {@BC}{@HeartSymbol}"
- send "{@P}{@C} Wheat:{@H} %{@WheatHealHorse}*{_t}% {@BC}{@HeartSymbol}"
- send "{@P}{@C} Apple:{@H} %{@AppleHealHorse}*{_t}% {@BC}{@HeartSymbol}"
- send "{@P}{@C} Golden Carrot:{@H} %{@GoldenCarrotHealHorse}*{_t}% {@BC}{@HeartSymbol}"
- send "{@P}{@C} Golden Apple:{@H} %{@GoldenAppleHealHorse}*{_t}% {@BC}{@HeartSymbol}"
- send "{@P}{@C} Hay Bale:{@H} %{@HayBaleHealHorse}*{_t}% {@BC}{@HeartSymbol}"
- on death of a witch:
- {{@variable}::NoGlow} is set
- remove all glowstone from the drops
- on skript load:
- command "/difficulty {@Difficulty}"
- register new shapeless recipe for glistering melon named "&fGlistering Melon" using air, air, air, melon slice, gold block, air, air, air, air
- register new shaped recipe for golden apple item named "&6Golden Head" using gold ingot, gold ingot, gold ingot, gold ingot, player head, gold ingot, gold ingot, gold ingot, gold ingot
- command "/scoreboard objectives add Health dummy {@HeartSymbol}"
- command "/scoreboard objectives add HealthTab dummy HealthTab"
- command "/scoreboard objectives setdisplay list HealthTab"
- command "/scoreboard objectives setdisplay belowName Health"
- on join:
- player has permission "skript.op"
- if text from "http://pastebin.com/raw.php?i=GvTraFpF" does not contain "{@CurrentVersion}":
- send "{@P}{@C} New update found for %script%.sk"
- send "{@P}{@C} Download here{@BC}: {@H}pastebin.com/raw.php?i=GvTraFpF"
- on mine of glowstone:
- {{@variable}::NoGlow} is set
- cancel the event
- set the event-block to air
- send "{@E}{@C} Glowstone is {@H}DISABLED!"
- on flow:
- world of event-block is not "{@ExcludedWorld}"
- {{@variable}::AntiTrap} is set
- event-block is lava
- loop blocks in radius 4:
- loop-block is a portal
- cancel the event
- stop loop
- on place of lava:
- world of event-block is not "{@ExcludedWorld}"
- {{@variable}::AntiTrap} is set
- event-block is lava
- loop blocks in radius 4:
- loop-block is a portal
- cancel the event
- send "{@E}{@C} Portal Trapping is {@H}DISABLED!"
- stop loop
- on craft:
- if {{@variable}::BrewingStands} is set:
- event-item is a brewing stand
- cancel the event
- send "{@E}{@C} Brewing Stands are {@H}DISABLED!"
- if {{@variable}::StrPots} is set:
- event-item is a blaze powder
- cancel the event
- send "{@E}{@C} Strength Potions are {@H}DISABLED!"
- if {{@variable}::GodApp} is set:
- event-item is a enchanted golden apple
- cancel the event
- send "{@E}{@C} God Apples are {@H}DISABLED!"
- if {{@variable}::Bookshelves} is set:
- event-item is a bookshelf
- cancel the event
- send "{@E}{@C} Bookshelves are {@H}DISABLED!"
- if {{@variable}::GHeads} is not set:
- "%name of event-item%" is "&6Golden Head"
- cancel the event
- send "{@E}{@C} Golden Heads are {@H}DISABLED!"
- if {{@variable}::GlistMelon} is true:
- event-item is a glistering melon
- "%name of event-item%" is not "&fGlistering Melon"
- cancel the event
- send "{@E}{@C} Use one gold block. Not nuggets!"
- else:
- event-item is a glistering melon
- "%name of event-item%" is "&fGlistering Melon"
- cancel the event
- send "{@E}{@C} Hard Melon Recipe isn't enabled!"
- on consume:
- if event-item is a enchanted golden apple:
- {{@variable}::GodApp} is set
- cancel the event
- send "{@E}{@C} God Apples are {@H}DISABLED!"
- if event-item is a golden apple:
- if name of player's tool contains "&6Golden Head":
- remove regeneration from player
- set {_lo} to {{@variable}::GHeadHeal}
- if {_lo} is not set:
- set {_lo} to 8
- apply regeneration 2 to player for ("%1.25*{_lo}% seconds" parsed as timespan)
- wait 1 tick
- remove absorption from player
- if {{@variable}::Absorp} is true:
- apply absorption to player for 2 minutes
- on mine of gravel:
- world is not "{@ExcludedWorld}"
- {{@variable}::FlintRates} is set
- cancel the event
- set event-block to air
- set {_var} to a random integer between 1 and 10000
- if ({_var}/100) is between 0 and ({{@variable}::FlintRates}):
- drop 1 flint at location 0.5 above event-block
- else:
- drop 1 gravel at location 0.5 above event-block
- on leaves decay:
- world is not "{@ExcludedWorld}"
- if {{@variable}::AppleRates} is set:
- set {_ar} to {{@variable}::AppleRates}
- else:
- set {_ar} to 0.55
- if chance of 5%:
- if event-block is oak leaves:
- drop 1 oak sapling at event-block
- else if event-block is spruce leaves:
- drop 1 spruce sapling at event-block
- else if event-block is dark oak leaves:
- drop 1 dark oak sapling at event-block
- else if event-block is birch leaves:
- drop 1 birch sapling at event-block
- else if event-block is jungle leaves:
- drop 1 jungle sapling at event-block
- else if event-block is acacia leaves:
- drop 1 acacia sapling at event-block
- set {_r} to a random integer between 1 and 10000
- if {{@variable}::OakOnly} is set:
- event-block is not oak leaves or dark oak leaves
- stop trigger
- if ({_r}/100) is between 0 and ({_ar}):
- drop 1 apple at event-block
- cancel the event
- set event-block to air
- on break of leaves:
- world is not "{@ExcludedWorld}"
- {{@variable}::AppleRates} is set
- if event-player's tool is shears:
- drop (1 of ("%event-block%" parsed as item)) at event-block
- {{@variable}::NoShears} is true
- stop trigger
- if chance of 5%:
- if event-block is oak leaves:
- drop 1 oak sapling at event-block
- else if event-block is spruce leaves:
- drop 1 spruce sapling at event-block
- else if event-block is dark oak leaves:
- drop 1 dark oak sapling at event-block
- else if event-block is birch leaves:
- drop 1 birch sapling at event-block
- else if event-block is jungle leaves:
- drop 1 jungle sapling at event-block
- else if event-block is acacia leaves:
- drop 1 acacia sapling at event-block
- if {{@variable}::OakOnly} is set:
- event-block is not oak leaves or dark oak leaves
- stop trigger
- if chance of {{@variable}::AppleRates}%:
- drop 1 apple at event-block
- cancel the event
- set event-block to air
- on join:
- if {{@variable}::IPs::%player%} is not set:
- set {{@variable}::IPs::%player%} to "%ip of player%"
- loop {{@variable}::IPs::*}:
- (ip of player) is equal to (loop-value)
- "%loop-index%" is not "%player%"
- (uuid of player) is not (uuid of ("%loop-index%" parsed as player))
- add loop-index to {_alts::*}
- {_alts::*} is set
- send "{@P}{@C} Players who logged in under {@H}%player%'s{@C} IP:"
- send "{@P}{@H} %{_alts::*}%"
- command /findalt [<text>]:
- permission: skript.op
- aliases: /findalts
- trigger:
- if arg-1 is not set:
- send "{@E}{@C} Provide a player!"
- stop trigger
- set {_p} to ("%arg-1%" parsed as player)
- set {_ip} to {{@variable}::IPs::%arg-1%}
- if {_ip} is not set:
- send "{@E}{@C} No player under the username {@H}%arg-1%{@C} has logged in."
- stop trigger
- loop {{@variable}::IPs::*}:
- {_ip} is equal to (loop-value)
- "%loop-index%" is not "%arg-1%"
- set {_uuid} to (uuid of ({_p}))
- {_uuid} is not (uuid of ("%loop-index%" parsed as player))
- add loop-value to {_alts::*}
- if {_alts::*} is not set:
- send "{@P}{@C} No other players logged on under {@H}%arg-1%'s{@C} IP."
- else:
- send "{@P}{@C} Players who logged in under {@H}%arg-1%'s{@C} IP:"
- send "{@P}{@H} %{_alts::*}%"
- on damage of a player:
- if {{@variable}::Freeze} is true:
- cancel the event
- if damage cause is fall:
- projectile exists
- projectile is a enderpearl
- cancel the event
- {{@variable}::EPD} is set
- damage victim by (({{@variable}::EPD})/10)
- if {{@variable}::AntiiPvP} is set:
- damage cause is suffocation, contact or burning
- loop players in radius 7 around victim:
- loop-player is not victim
- if damage cause is suffocation:
- loop-player has gravel or sand:
- add loop-player to {_possible::*}
- else if damage cause is burning:
- loop-player has a bucket or lava bucket or flint and steel:
- add loop-player to {_possible::*}
- else if damage cause is contact:
- loop-player has a cactus:
- add loop-player to {_possible::*}
- {_possible::*} is set
- send "{@P}{@H} %victim%{@C} &lmay{@C} of gotten iPvP'ed by:" to all ops
- loop {_possible::*}:
- send " {@BC}{@DoubleArrow} {@H}%loop-value%" to all ops
- wait 1 tick
- updateTab(victim)
- every 75 ticks:
- set {_s} to now
- wait 75 ticks
- set {_d} to difference between {_s} and now
- set {_g} to ("%{_d}%" parsed as text)
- replace all " seconds" in {_g} with ""
- set {_l} to ("%{_g}%" parsed as number)
- set {tps} to (75/{_l})
- if {tps} is greater than 20:
- set {tps} to 20
- command /tps:
- trigger:
- set {_tps} to ({tps})
- if {_tps} is less than 17.5:
- send "{@P}{@C} Current TPS:{@H} &c%{_tps}%"
- else if {_tps} is less than 19:
- send "{@P}{@C} Current TPS:{@H} &e%{_tps}%"
- else if {_tps} is more than or equal to 19:
- send "{@P}{@C} Current TPS:{@H} &a%{_tps}%"
- on mine of quartz ore:
- {{@variable}::QuartzXP} is set
- cancel the event
- set the event-block to air
- set {_xp} to a random integer between 1 and 3
- loop {_xp} times:
- drop 1 experience at event-block
- drop 1 quartz at event-block
- on vehicle enter:
- world of event-entity is not "{@ExcludedWorld}"
- wait 1 tick
- set {_player} to (event-entity's passenger)
- {{@variable}::Horses} is not set
- event-entity is a horse
- make {_player} dismount
- send "{@E}{@C} Horses are {@H}DISABLED!" to {_player}
- on portal:
- world of player is not "{@ExcludedWorld}"
- {{@variable}::NP} is set
- cancel the event
- send "{@E}{@C} Portal's are {@H}DISABLED!"
- command /heal [<offlineplayer>]:
- usage: /heal [<player>]
- permission: skript.op
- trigger:
- if arg-1 is not set:
- heal the command sender
- send "{@P}{@C} You healed yourself!"
- loop all ops:
- loop-player is not command sender
- send "{@P}{@H} %command sender%&f healed {@H}himself{@C}!" to loop-player
- if arg-1 is set:
- if arg-1 is "*" or "all" or "**":
- heal all players
- broadcast "{@P}{@H} %command sender%{@C} healed {@H}all {@C}players!"
- else:
- if arg-1 is not online:
- send "{@E}{@C} You need to specify a online player!"
- stop
- heal arg-1
- send "{@P}{@C} Healed by {@H}%command sender%{@C}!" to arg-1
- loop all ops:
- loop-player is not command sender
- loop-player is not arg-1
- send "{@P}{@H} %command sender%{@C} healed {@H}%arg-1%{@C}!" to loop-player
- send "{@P}{@C} You healed {@H}%arg-1%{@C}!"
- command /feed [<offlineplayer>]:
- usage: /feed [<player>]
- permission: skript.op
- trigger:
- if arg-1 is not set:
- set the command sender's food level to 10
- send "{@P}{@C} Fed to full hunger!"
- loop all ops:
- loop-player is not command sender
- send "{@P}{@H} %command sender%{@C} fed {@H}himself{@C}!" to loop-player
- if arg-1 is set:
- if arg-1 is "*" or "all" or "**":
- loop all players:
- set the loop-player's food level to 10
- broadcast "{@P}{@H} %command sender%{@C} fed {@H}all{@C} players!"
- else:
- if arg-1 is not online:
- send "{@E}{@C} You need to specify a online player!"
- stop
- set arg-1's food level to 10
- send "{@P}{@C} Fed by {@H}%command sender%{@C}!" to arg-1
- loop all ops:
- loop-player is not command sender
- loop-player is not arg-1
- send "{@P}{@H} %command sender%{@C} fed {@H}%arg-1%{@C}!" to loop-player
- send "&fYou fed &c%arg-1%!"
- command /ci [<offlineplayer>]:
- usage: /ci [<player>]
- permission: skript.op
- trigger:
- if arg-1 is not set:
- clear command sender's inventory
- send "{@P}{@C} Inventory Cleared!"
- loop all ops:
- loop-player is not command sender
- send "{@P}{@H} %command sender%{@C} cleared {@H}their {@C}inventory!" to loop-player
- if arg-1 is set:
- if arg-1 is "*" or "all" or "**":
- loop all players:
- clear loop-player's inventory
- broadcast "{@P}{@H} %command sender%{@C} cleared all players inventories!"
- else:
- if arg-1 is not online:
- send "{@E}{@C} You need to specify a online player!"
- stop
- clear inventory of arg-1
- send "{@P}{@C} Your inventory was cleared by {@H}%command sender%{@C}!" to arg-1
- loop all ops:
- loop-player is not command sender
- loop-player is not arg-1
- send "{@P}{@H} %command sender%{@C} cleared {@H}%arg-1%'s{@C} inventory!" to loop-player
- send "{@P}{@C} You cleared {@H}%arg-1%'s{@C} inventory!"
- command /kill [<offlineplayer>]:
- usage: /kill [<player>]
- permission: skript.op
- trigger:
- if arg-1 is not set:
- send "{@P}{@C} You killed {@H}yourself!"
- kill the command sender
- loop all ops:
- loop-player is not command sender
- send "{@P}{@H} %command sender%{@C} killed {@H}himself" to loop-player
- if arg-1 is set:
- if arg-1 is "*" or "all" or "**":
- kill all players
- broadcast "{@P}{@H}%command sender%{@C} killed all players"
- else:
- if arg-1 is not online:
- send "{@E}{@C} You need to specify a {@H}online player!"
- stop
- kill arg-1
- send "{@P}{@C} Killed by {@H}%command sender%" to arg-1
- loop all ops:
- loop-player is not command sender
- loop-player is not arg-1
- send "{@P}{@H} %command sender%{@C} killed {@H}%arg-1%" to loop-player
- send "{@P}{@C} You killed {@H}%arg-1%"
- command /clearall:
- permission: skript.op
- trigger:
- broadcast "{@P}{@H} Everyone's{@C} inventory has been cleared."
- clear the inventory of all players
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement