Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &7[&6UHC&7] #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
- Difficulty: HARD
- perms: skript.host
- KYS: peace be with you #replaces kys with this message instead try to keep it 16 letters or less
- #=====================
- #
- # The Skript setting, do no touch unless you know what you are doing
- #
- #=====================
- SpecVariable: spec
- variable: uhcsk
- FeatureListName: &3Feature List
- HeartSymbol: ā„
- DoubleArrow: &lā
- SugarHealHorse: 5
- WheatHealHorse: 10
- AppleHealHorse: 15
- GoldenCarrotHealHorse: 20
- GoldenAppleHealHorse: 50
- HayBaleHealHorse: 100
- CurrentVersion: UHCSK_1.7.2_FORK
- function armorStand(loc: location) :: entity:
- spawn an armor stand at {_loc}
- set {_arm} to the last spawned entity
- return {_arm}
- 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 load:
- delete {{@variable}::Temps::*}
- 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"
- loop all players:
- loop-player has permission "{@perms}"
- if text from "https://pastebin.com/raw/n9UyrhTB" does not contain "{@CurrentVersion}":
- send "{@P}{@C} New update found for %script%.sk" to loop-player
- send "{@P}{@C} Download here{@BC}: {@H}https://pastebin.com/raw/n9UyrhTB" to loop-player
- on join:
- player has permission "{@perms}"
- if text from "https://pastebin.com/raw/n9UyrhTB" does not contain "{@CurrentVersion}":
- send "{@P}{@C} New update found for %script%.sk"
- send "{@P}{@C} Download here{@BC}: {@H}https://pastebin.com/raw/n9UyrhTB"
- #================================
- #
- # Feature Menu
- #
- #===============================
- function openFeatureList(p: player):
- set {featurelist::%{_p}%} to true
- open chest with 3 rows named "{@FeatureListName}" to {_p}
- wait 3 ticks
- if {{@variable}::EPD} is not set:
- set slot 0 of {_p}'s current inventory to an ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} 0 {@BC}{@HeartSymbol}"
- else:
- set slot 0 of {_p}'s current inventory to an ender pearl named "{@C}Enderpearl Damage" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::EPD}/10% {@BC}{@HeartSymbol}"
- if {{@variable}::DL} is not set:
- set slot 1 of {_p}'s current inventory to a sea lantern named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- else:
- set slot 1 of {_p}'s current inventory to a sea lantern named "{@C}Death Lightning" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- if {{@variable}::GHeads} is not set:
- set slot 2 of {_p}'s current inventory to a player head named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- else:
- if {{@variable}::GHeadHeal} is not set:
- set slot 2 of {_p}'s current inventory to a player head named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}4{@BC}{@HeartSymbol}"
- else:
- set slot 2 of {_p}'s current inventory to a player head named "{@C}Player Heads" with lore "{@BC}{@DoubleArrow}{@H} Enabled || {@C}Heals: {@H}%{{@variable}::GHeadHeal}/2%{@BC}{@HeartSymbol}"
- if {{@variable}::Absorp} is not set:
- set slot 3 of {_p}'s current inventory to a golden apple named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- else:
- set slot 3 of {_p}'s current inventory to a golden apple named "{@C}Absorption" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- if {{@variable}::AS} is not set:
- set slot 4 of {_p}'s current inventory to an armor stand named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- else:
- set slot 4 of {_p}'s current inventory to an armor stand named "{@C}Death Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- if {{@variable}::AntiiPvP} is not set:
- set slot 5 of {_p}'s current inventory to a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- else:
- set slot 5 of {_p}'s current inventory to a flint and steel named "{@C}Anti iPvP" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- if {{@variable}::FlintRates} is not set:
- set slot 6 of {_p}'s current inventory to a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (10%%)"
- else:
- set slot 6 of {_p}'s current inventory to a flint named "{@C}Flint Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::FlintRates}%%%"
- if {{@variable}::AppleRates} is not set:
- set slot 7 of {_p}'s current inventory to a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} Vanilla (0.55%%) (no shears!)"
- 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"
- set slot 7 of {_p}'s current inventory to a apple named "{@C}Apple Rates" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::AppleRates}%%% || {@BC}{@DoubleArrow}{@H} %{_NS}% || {@BC}{@DoubleArrow}{@H} %{_oa}%"
- if {{@variable}::Bookshelves} is not set:
- set slot 8 of {_p}'s current inventory to a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- else:
- set slot 8 of {_p}'s current inventory to a bookshelf named "{@C}Bookshelves" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- if {{@variable}::Horses} is not set:
- set slot 9 of {_p}'s current inventory to a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- else:
- set slot 9 of {_p}'s current inventory to a saddle named "{@C}Horses" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- if {{@variable}::HorseArmor} is not set:
- set slot 10 of {_p}'s current inventory to a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- else:
- set slot 10 of {_p}'s current inventory to a diamond horse armor named "{@C}Horse Armor" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- if {{@variable}::HorseHeal} is not set:
- set slot 11 of {_p}'s current inventory to a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Not nerfed"
- else if {{@variable}::HorseHeal} is less than or equal to 0:
- set slot 11 of {_p}'s current inventory to a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- 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}"
- set slot 11 of {_p}'s current inventory to a bread named "{@C}Horse Healing" with lore "{@BC}{@DoubleArrow}{@H} %{{@variable}::HorseHeal}%%% as effective || %{_Sugar}% || %{_Whe}% || %{_App}% || %{_Gcar}% || %{_Gapp}% || %{_HB}%"
- #====================
- # Nether
- #====================
- if {{@variable}::NP} is not set:
- set slot 12 of {_p}'s current inventory to a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- else:
- set slot 12 of {_p}'s current inventory to a nether quartz item named "{@C}Nether" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- if {{@variable}::GD} is not set:
- set slot 13 of {_p}'s current inventory to a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Normal"
- else if {{@variable}::GD} is "gi":
- set slot 13 of {_p}'s current inventory to a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Ingot"
- else if {{@variable}::GD} is "gn":
- set slot 13 of {_p}'s current inventory to a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Nugget"
- else if {{@variable}::GD} is "gb":
- set slot 13 of {_p}'s current inventory to a ghast tear named "{@C}Ghast Drops" with lore "{@BC}{@DoubleArrow}{@H} Gold Block"
- if {{@variable}::NoGlow} is not set:
- set slot 14 of {_p}'s current inventory to a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- else:
- set slot 14 of {_p}'s current inventory to a glowstone block named "{@C}Glowstone" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- if {{@variable}::GlistMelon} is not set:
- set slot 15 of {_p}'s current inventory to a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- else:
- set slot 15 of {_p}'s current inventory to a glistering melon named "{@C}Hard Melon Recipe" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- if {{@variable}::AntiTrap} is not set:
- set slot 16 of {_p}'s current inventory to a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- else:
- set slot 16 of {_p}'s current inventory to a lava bucket named "{@C}Anti Portal Trapping" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- if {{@variable}::BrewingStands} is not set:
- set slot 17 of {_p}'s current inventory to a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- else:
- set slot 17 of {_p}'s current inventory to a brewing stand item named "{@C}Brewing Stands" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- if {{@variable}::StrPots} is not set:
- set slot 18 of {_p}'s current inventory to a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- else:
- set slot 18 of {_p}'s current inventory to a blaze powder named "{@C}Blaze Powder (Str Pots)" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- if {{@variable}::QuartzXP} is not set:
- set slot 19 of {_p}'s current inventory to a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- else:
- set slot 19 of {_p}'s current inventory to a nether quartz ore named "{@C}Quartz XP Nerf" with lore "{@BC}{@DoubleArrow}{@H} Enabled (1/2 of Vanilla XP)"
- if {{@variable}::SplashPots} is not set:
- set slot 20 of {_p}'s current inventory to a splash potion of speed named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Enabled"
- else:
- set slot 20 of {_p}'s current inventory to a splash potion of speed named "{@C}Splash Potions" with lore "{@BC}{@DoubleArrow}{@H} Disabled"
- on inventory click:
- {featurelist::%player%} is set
- cancel event
- on inventory close:
- delete {featurelist::%player%}
- #====================================
- #
- # Main /feature command
- #
- #====================================
- command /feature [<text>] [<text>] [<text>]:
- trigger:
- if arg-1 is not set:
- if command sender has permission "{@perms}":
- send "{@P}{@C} /feature list {@H}- view settings"
- send "{@P}{@C} /feature set {@H}<option> [value]"
- else:
- make command sender execute command "/feature list"
- stop
- if arg-1 is "list":
- openFeatureList(command sender)
- stop
- #======================================
- #
- # Setting Features
- #
- #======================================
- if arg-1 is "set":
- if command sender does not have permission "{@perms}":
- send "{@E}{@C} No permission."
- stop
- if arg-2 is not set:
- make command sender execute command "/feature set help"
- stop
- if arg-2 is "help":
- send "{@P}{@H} Toggle Options:"
- send "{@C} deathlightning, deathstands, heads, natregen"
- send "{@C} horses, horsearmor, glowstone, melon"
- send "{@C} antitrap, brewing, strpots, godapples"
- send "{@C} bookshelves, absorption, ipvp, nether"
- send "{@C} quartzxp, splash, shears, oakonly"
- send "{@P}{@H} Value Options:"
- send "{@C} epd <0-100> {@H}- Enderpearl dmg (half hearts)"
- send "{@C} headheal <amount> {@H}- Head heal (half hearts)"
- send "{@C} horseheal <0-250> {@H}- Horse heal %%"
- send "{@C} flint <0-100> {@H}- Flint rate %%"
- send "{@C} apple <0-100> {@H}- Apple rate %%"
- send "{@C} ghast <normal/nugget/ingot/block>"
- stop
- #=========================================
- #
- # Non-Toggleable Options
- #
- #=========================================
- if arg-2 is "epd":
- if arg-3 is not set:
- send "{@P}{@C} /feature set epd {@H}<0-100>"
- stop
- set {_val} to "%arg-3%" parsed as integer
- if {_val} is not set:
- send "{@E}{@C} Must be a number."
- stop
- if {_val} <= 0:
- delete {{@variable}::EPD}
- send "{@P}{@H} EPD{@C} set to {@H}0 {@BC}{@HeartSymbol}"
- else:
- if {_val} > 100:
- set {_val} to 100
- set {{@variable}::EPD} to {_val}
- send "{@P}{@H} EPD{@C} set to {@H}%{_val}/10% {@BC}{@HeartSymbol}"
- stop
- if arg-2 is "headheal":
- if arg-3 is not set:
- send "{@P}{@C} /feature set headheal {@H}<half hearts>"
- stop
- set {_val} to "%arg-3%" parsed as integer
- if {_val} is not set:
- send "{@E}{@C} Must be a number."
- stop
- set {{@variable}::GHeadHeal} to {_val}
- send "{@P}{@H} Head Heal{@C} set to {@H}%{_val}/2% {@BC}{@HeartSymbol}"
- stop
- if arg-2 is "horseheal":
- if arg-3 is not set:
- send "{@P}{@C} /feature set horseheal {@H}<0-250>"
- stop
- set {_val} to "%arg-3%" parsed as integer
- if {_val} is not set:
- send "{@E}{@C} Must be a number."
- stop
- if {_val} > 250:
- set {_val} to 250
- set {{@variable}::HorseHeal} to {_val}
- if {_val} <= 0:
- send "{@P}{@H} Horse Healing{@C} {@H}Disabled"
- else:
- send "{@P}{@H} Horse Healing{@C} set to {@H}%{_val}%%%"
- stop
- if arg-2 is "flint":
- if arg-3 is not set:
- send "{@P}{@C} /feature set flint {@H}<0-100>"
- stop
- set {_val} to "%arg-3%" parsed as number
- if {_val} is not set:
- send "{@E}{@C} Must be a number."
- stop
- if {_val} <= 0:
- delete {{@variable}::FlintRates}
- send "{@P}{@H} Flint Rates{@C} set to {@H}Vanilla (10%%)"
- else:
- if {_val} > 100:
- set {_val} to 100
- set {{@variable}::FlintRates} to {_val}
- send "{@P}{@H} Flint Rates{@C} set to {@H}%{_val}%%%"
- stop
- if arg-2 is "apple":
- if arg-3 is not set:
- send "{@P}{@C} /feature set apple {@H}<0-100>"
- stop
- set {_val} to "%arg-3%" parsed as number
- if {_val} is not set:
- send "{@E}{@C} Must be a number."
- stop
- if {_val} <= 0:
- delete {{@variable}::AppleRates}
- delete {{@variable}::NoShears}
- delete {{@variable}::OakOnly}
- send "{@P}{@H} Apple Rates{@C} set to {@H}Vanilla"
- else:
- if {_val} > 100:
- set {_val} to 100
- set {{@variable}::AppleRates} to {_val}
- send "{@P}{@H} Apple Rates{@C} set to {@H}%{_val}%%%"
- stop
- if arg-2 is "ghast":
- if arg-3 is "normal":
- delete {{@variable}::GD}
- send "{@P}{@H} Ghast Drops{@C} set to {@H}Normal"
- else if arg-3 is "nugget":
- set {{@variable}::GD} to "gn"
- send "{@P}{@H} Ghast Drops{@C} set to {@H}Gold Nugget"
- else if arg-3 is "ingot":
- set {{@variable}::GD} to "gi"
- send "{@P}{@H} Ghast Drops{@C} set to {@H}Gold Ingot"
- else if arg-3 is "block":
- set {{@variable}::GD} to "gb"
- send "{@P}{@H} Ghast Drops{@C} set to {@H}Gold Block"
- else:
- send "{@P}{@C} /feature set ghast {@H}<normal/nugget/ingot/block>"
- stop
- #============================================
- #
- # Toggle Options
- #
- #============================================
- if arg-2 is "deathlightning" or "dl":
- if arg-3 is not set:
- if {{@variable}::DL} is not set:
- set {{@variable}::DL} to true
- send "{@P}{@H} Death Lightning{@C} {@H}Enabled"
- else:
- delete {{@variable}::DL}
- send "{@P}{@H} Death Lightning{@C} {@H}Disabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::DL} is not set:
- set {{@variable}::DL} to true
- send "{@P}{@H} Death Lightning{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Death Lightning is already enabled. {@H}/feature set dl on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::DL} is set:
- delete {{@variable}::DL}
- send "{@P}{@H} Death Lightning{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Death Lightning is already disabled. {@H}/feature set dl on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::DL} is not set:
- set {{@variable}::DL} to true
- send "{@P}{@H} Death Lightning{@C} {@H}Enabled"
- else:
- delete {{@variable}::DL}
- send "{@P}{@H} Death Lightning{@C} {@H}Disabled"
- else:
- send "{@H}/feature set dl on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "deathstands" or "ds":
- if arg-3 is not set:
- if {{@variable}::AS} is not set:
- set {{@variable}::AS} to true
- send "{@P}{@H} Death Stands{@C} {@H}Enabled"
- else:
- delete {{@variable}::AS}
- send "{@P}{@H} Death Stands{@C} {@H}Disabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::AS} is not set:
- set {{@variable}::AS} to true
- send "{@P}{@H} Death Stands{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Death Stands is already enabled. {@H}/feature set ds on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::AS} is set:
- delete {{@variable}::AS}
- send "{@P}{@H} Death Stands{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Death Stands is already disabled. {@H}/feature set ds on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::AS} is not set:
- set {{@variable}::AS} to true
- send "{@P}{@H} Death Stands{@C} {@H}Enabled"
- else:
- delete {{@variable}::AS}
- send "{@P}{@H} Death Stands{@C} {@H}Disabled"
- else:
- send "{@H}/feature set ds on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "heads":
- if arg-3 is not set:
- if {{@variable}::GHeads} is not set:
- set {{@variable}::GHeads} to true
- send "{@P}{@H} Golden Heads{@C} {@H}Enabled"
- else:
- delete {{@variable}::GHeads}
- delete {{@variable}::GHeadHeal}
- send "{@P}{@H} Golden Heads{@C} {@H}Disabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::GHeads} is not set:
- set {{@variable}::GHeads} to true
- send "{@P}{@H} Golden Heads{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Golden Heads is already enabled. {@H}/feature set heads on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::GHeads} is set:
- delete {{@variable}::GHeads}
- delete {{@variable}::GHeadHeal}
- send "{@P}{@H} Golden Heads{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Golden Heads is already disabled. {@H}/feature set heads on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::GHeads} is not set:
- set {{@variable}::GHeads} to true
- send "{@P}{@H} Golden Heads{@C} {@H}Enabled"
- else:
- delete {{@variable}::GHeads}
- delete {{@variable}::GHeadHeal}
- send "{@P}{@H} Golden Heads{@C} {@H}Disabled"
- else:
- send "{@H}/feature set heads on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "natregen" or "nr":
- if arg-3 is not set:
- if {{@variable}::NR} is not set:
- set {{@variable}::NR} to true
- send "{@P}{@H} Natural Regeneration{@C} {@H}Enabled"
- else:
- delete {{@variable}::NR}
- send "{@P}{@H} Natural Regeneration{@C} {@H}Disabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::NR} is not set:
- set {{@variable}::NR} to true
- send "{@P}{@H} Natural Regeneration{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Natural Regeneration is already enabled. {@H}/feature set nr on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::NR} is set:
- delete {{@variable}::NR}
- send "{@P}{@H} Natural Regeneration{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Natural Regeneration is already disabled. {@H}/feature set nr on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::NR} is not set:
- set {{@variable}::NR} to true
- send "{@P}{@H} Natural Regeneration{@C} {@H}Enabled"
- else:
- delete {{@variable}::NR}
- send "{@P}{@H} Natural Regeneration{@C} {@H}Disabled"
- else:
- send "{@H}/feature set nr on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "horses":
- if arg-3 is not set:
- if {{@variable}::Horses} is not set:
- set {{@variable}::Horses} to true
- send "{@P}{@H} Horses{@C} {@H}Enabled"
- else:
- delete {{@variable}::Horses}
- send "{@P}{@H} Horses{@C} {@H}Disabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::Horses} is not set:
- set {{@variable}::Horses} to true
- send "{@P}{@H} Horses{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Horses is already enabled. {@H}/feature set horses on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::Horses} is set:
- delete {{@variable}::Horses}
- send "{@P}{@H} Horses{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Horses is already disabled. {@H}/feature set horses on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::Horses} is not set:
- set {{@variable}::Horses} to true
- send "{@P}{@H} Horses{@C} {@H}Enabled"
- else:
- delete {{@variable}::Horses}
- send "{@P}{@H} Horses{@C} {@H}Disabled"
- else:
- send "{@H}/feature set horses on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "horsearmor" or "ha":
- if arg-3 is not set:
- if {{@variable}::HorseArmor} is not set:
- set {{@variable}::HorseArmor} to true
- send "{@P}{@H} Horse Armor{@C} {@H}Disabled"
- else:
- delete {{@variable}::HorseArmor}
- send "{@P}{@H} Horse Armor{@C} {@H}Enabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::HorseArmor} is set:
- delete {{@variable}::HorseArmor}
- send "{@P}{@H} Horse Armor{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Horse Armor is already enabled. {@H}/feature set ha on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::HorseArmor} is not set:
- set {{@variable}::HorseArmor} to true
- send "{@P}{@H} Horse Armor{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Horse Armor is already disabled. {@H}/feature set ha on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::HorseArmor} is not set:
- set {{@variable}::HorseArmor} to true
- send "{@P}{@H} Horse Armor{@C} {@H}Disabled"
- else:
- delete {{@variable}::HorseArmor}
- send "{@P}{@H} Horse Armor{@C} {@H}Enabled"
- else:
- send "{@H}/feature set ha on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "glowstone" or "glow":
- if arg-3 is not set:
- if {{@variable}::NoGlow} is not set:
- set {{@variable}::NoGlow} to true
- send "{@P}{@H} Glowstone{@C} {@H}Disabled"
- else:
- delete {{@variable}::NoGlow}
- send "{@P}{@H} Glowstone{@C} {@H}Enabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::NoGlow} is set:
- delete {{@variable}::NoGlow}
- send "{@P}{@H} Glowstone{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Glowstone is already enabled. {@H}/feature set glow on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::NoGlow} is not set:
- set {{@variable}::NoGlow} to true
- send "{@P}{@H} Glowstone{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Glowstone is already disabled. {@H}/feature set glow on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::NoGlow} is not set:
- set {{@variable}::NoGlow} to true
- send "{@P}{@H} Glowstone{@C} {@H}Disabled"
- else:
- delete {{@variable}::NoGlow}
- send "{@P}{@H} Glowstone{@C} {@H}Enabled"
- else:
- send "{@H}/feature set glow on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "melon":
- if arg-3 is not set:
- if {{@variable}::GlistMelon} is not set:
- set {{@variable}::GlistMelon} to true
- send "{@P}{@H} Hard Melon Recipe{@C} {@H}Enabled"
- else:
- delete {{@variable}::GlistMelon}
- send "{@P}{@H} Hard Melon Recipe{@C} {@H}Disabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::GlistMelon} is not set:
- set {{@variable}::GlistMelon} to true
- send "{@P}{@H} Hard Melon Recipe{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Hard Melon Recipe is already enabled. {@H}/feature set melon on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::GlistMelon} is set:
- delete {{@variable}::GlistMelon}
- send "{@P}{@H} Hard Melon Recipe{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Hard Melon Recipe is already disabled. {@H}/feature set melon on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::GlistMelon} is not set:
- set {{@variable}::GlistMelon} to true
- send "{@P}{@H} Hard Melon Recipe{@C} {@H}Enabled"
- else:
- delete {{@variable}::GlistMelon}
- send "{@P}{@H} Hard Melon Recipe{@C} {@H}Disabled"
- else:
- send "{@H}/feature set melon on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "antitrap" or "at":
- if arg-3 is not set:
- if {{@variable}::AntiTrap} is not set:
- set {{@variable}::AntiTrap} to true
- send "{@P}{@H} Anti Portal Trapping{@C} {@H}Enabled"
- else:
- delete {{@variable}::AntiTrap}
- send "{@P}{@H} Anti Portal Trapping{@C} {@H}Disabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::AntiTrap} is not set:
- set {{@variable}::AntiTrap} to true
- send "{@P}{@H} Anti Portal Trapping{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Anti Portal Trapping is already enabled. {@H}/feature set at on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::AntiTrap} is set:
- delete {{@variable}::AntiTrap}
- send "{@P}{@H} Anti Portal Trapping{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Anti Portal Trapping is already disabled. {@H}/feature set at on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::AntiTrap} is not set:
- set {{@variable}::AntiTrap} to true
- send "{@P}{@H} Anti Portal Trapping{@C} {@H}Enabled"
- else:
- delete {{@variable}::AntiTrap}
- send "{@P}{@H} Anti Portal Trapping{@C} {@H}Disabled"
- else:
- send "{@H}/feature set at on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "brewing":
- if arg-3 is not set:
- if {{@variable}::BrewingStands} is not set:
- set {{@variable}::BrewingStands} to true
- send "{@P}{@H} Brewing Stands{@C} {@H}Disabled"
- else:
- delete {{@variable}::BrewingStands}
- send "{@P}{@H} Brewing Stands{@C} {@H}Enabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::BrewingStands} is set:
- delete {{@variable}::BrewingStands}
- send "{@P}{@H} Brewing Stands{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Brewing Stands is already enabled. {@H}/feature set brewing on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::BrewingStands} is not set:
- set {{@variable}::BrewingStands} to true
- send "{@P}{@H} Brewing Stands{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Brewing Stands is already disabled. {@H}/feature set brewing on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::BrewingStands} is not set:
- set {{@variable}::BrewingStands} to true
- send "{@P}{@H} Brewing Stands{@C} {@H}Disabled"
- else:
- delete {{@variable}::BrewingStands}
- send "{@P}{@H} Brewing Stands{@C} {@H}Enabled"
- else:
- send "{@H}/feature set brewing on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "strpots":
- if arg-3 is not set:
- if {{@variable}::StrPots} is not set:
- set {{@variable}::StrPots} to true
- send "{@P}{@H} Strength Pots{@C} {@H}Disabled"
- else:
- delete {{@variable}::StrPots}
- send "{@P}{@H} Strength Pots{@C} {@H}Enabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::StrPots} is set:
- delete {{@variable}::StrPots}
- send "{@P}{@H} Strength Pots{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Strength Pots is already enabled. {@H}/feature set strpots on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::StrPots} is not set:
- set {{@variable}::StrPots} to true
- send "{@P}{@H} Strength Pots{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Strength Pots is already disabled. {@H}/feature set strpots on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::StrPots} is not set:
- set {{@variable}::StrPots} to true
- send "{@P}{@H} Strength Pots{@C} {@H}Disabled"
- else:
- delete {{@variable}::StrPots}
- send "{@P}{@H} Strength Pots{@C} {@H}Enabled"
- else:
- send "{@H}/feature set strpots on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "godapples" or "ga":
- if arg-3 is not set:
- if {{@variable}::GodApp} is not set:
- set {{@variable}::GodApp} to true
- send "{@P}{@H} God Apples{@C} {@H}Disabled"
- else:
- delete {{@variable}::GodApp}
- send "{@P}{@H} God Apples{@C} {@H}Enabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::GodApp} is set:
- delete {{@variable}::GodApp}
- send "{@P}{@H} God Apples{@C} {@H}Enabled"
- else:
- send "{@E}{@C}God Apples is already enabled. {@H}/feature set ga on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::GodApp} is not set:
- set {{@variable}::GodApp} to true
- send "{@P}{@H} God Apples{@C} {@H}Disabled"
- else:
- send "{@E}{@C}God Apples is already disabled. {@H}/feature set ga on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::GodApp} is not set:
- set {{@variable}::GodApp} to true
- send "{@P}{@H} God Apples{@C} {@H}Disabled"
- else:
- delete {{@variable}::GodApp}
- send "{@P}{@H} God Apples{@C} {@H}Enabled"
- else:
- send "{@H}/feature set ga on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "bookshelves" or "bs":
- if arg-3 is not set:
- if {{@variable}::Bookshelves} is not set:
- set {{@variable}::Bookshelves} to true
- send "{@P}{@H} Bookshelves{@C} {@H}Disabled"
- else:
- delete {{@variable}::Bookshelves}
- send "{@P}{@H} Bookshelves{@C} {@H}Enabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::Bookshelves} is set:
- delete {{@variable}::Bookshelves}
- send "{@P}{@H} Bookshelves{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Bookshelves is already enabled. {@H}/feature set bs on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::Bookshelves} is not set:
- set {{@variable}::Bookshelves} to true
- send "{@P}{@H} Bookshelves{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Bookshelves is already disabled. {@H}/feature set bs on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::Bookshelves} is not set:
- set {{@variable}::Bookshelves} to true
- send "{@P}{@H} Bookshelves{@C} {@H}Disabled"
- else:
- delete {{@variable}::Bookshelves}
- send "{@P}{@H} Bookshelves{@C} {@H}Enabled"
- else:
- send "{@H}/feature set bs on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "absorption":
- if arg-3 is not set:
- if {{@variable}::Absorp} is not set:
- set {{@variable}::Absorp} to true
- send "{@P}{@H} Absorption{@C} {@H}Enabled"
- else:
- delete {{@variable}::Absorp}
- send "{@P}{@H} Absorption{@C} {@H}Disabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::Absorp} is not set:
- set {{@variable}::Absorp} to true
- send "{@P}{@H} Absorption{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Absorption is already enabled. {@H}/feature set absorption on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::Absorp} is set:
- delete {{@variable}::Absorp}
- send "{@P}{@H} Absorption{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Absorption is already disabled. {@H}/feature set absorption on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::Absorp} is not set:
- set {{@variable}::Absorp} to true
- send "{@P}{@H} Absorption{@C} {@H}Enabled"
- else:
- delete {{@variable}::Absorp}
- send "{@P}{@H} Absorption{@C} {@H}Disabled"
- else:
- send "{@H}/feature set absorption on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "ipvp":
- if arg-3 is not set:
- if {{@variable}::AntiiPvP} is not set:
- set {{@variable}::AntiiPvP} to true
- send "{@P}{@H} Anti iPvP{@C} {@H}Enabled"
- else:
- delete {{@variable}::AntiiPvP}
- send "{@P}{@H} Anti iPvP{@C} {@H}Disabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::AntiiPvP} is not set:
- set {{@variable}::AntiiPvP} to true
- send "{@P}{@H} Anti iPvP{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Anti iPvP is already enabled. {@H}/feature set ipvp on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::AntiiPvP} is set:
- delete {{@variable}::AntiiPvP}
- send "{@P}{@H} Anti iPvP{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Anti iPvP is already disabled. {@H}/feature set ipvp on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::AntiiPvP} is not set:
- set {{@variable}::AntiiPvP} to true
- send "{@P}{@H} Anti iPvP{@C} {@H}Enabled"
- else:
- delete {{@variable}::AntiiPvP}
- send "{@P}{@H} Anti iPvP{@C} {@H}Disabled"
- else:
- send "{@H}/feature set ipvp on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "nether":
- if arg-3 is not set:
- if {{@variable}::NP} is not set:
- set {{@variable}::NP} to true
- send "{@P}{@H} Nether{@C} {@H}Disabled"
- else:
- delete {{@variable}::NP}
- send "{@P}{@H} Nether{@C} {@H}Enabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::NP} is set:
- delete {{@variable}::NP}
- send "{@P}{@H} Nether{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Nether is already enabled. {@H}/feature set nether on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::NP} is not set:
- set {{@variable}::NP} to true
- send "{@P}{@H} Nether{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Nether is already disabled. {@H}/feature set nether on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::NP} is not set:
- set {{@variable}::NP} to true
- send "{@P}{@H} Nether{@C} {@H}Disabled"
- else:
- delete {{@variable}::NP}
- send "{@P}{@H} Nether{@C} {@H}Enabled"
- else:
- send "{@H}/feature set nether on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "quartzxp" or "qxp":
- if arg-3 is not set:
- if {{@variable}::QuartzXP} is not set:
- set {{@variable}::QuartzXP} to true
- send "{@P}{@H} Quartz XP Nerf{@C} {@H}Enabled"
- else:
- delete {{@variable}::QuartzXP}
- send "{@P}{@H} Quartz XP Nerf{@C} {@H}Disabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::QuartzXP} is not set:
- set {{@variable}::QuartzXP} to true
- send "{@P}{@H} Quartz XP Nerf{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Quartz XP Nerf is already enabled. {@H}/feature set qxp on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::QuartzXP} is set:
- delete {{@variable}::QuartzXP}
- send "{@P}{@H} Quartz XP Nerf{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Quartz XP Nerf is already disabled. {@H}/feature set qxp on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::QuartzXP} is not set:
- set {{@variable}::QuartzXP} to true
- send "{@P}{@H} Quartz XP Nerf{@C} {@H}Enabled"
- else:
- delete {{@variable}::QuartzXP}
- send "{@P}{@H} Quartz XP Nerf{@C} {@H}Disabled"
- else:
- send "{@H}/feature set qxp on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "splash":
- if arg-3 is not set:
- if {{@variable}::SplashPots} is not set:
- set {{@variable}::SplashPots} to true
- send "{@P}{@H} Splash Potions{@C} {@H}Disabled"
- else:
- delete {{@variable}::SplashPots}
- send "{@P}{@H} Splash Potions{@C} {@H}Enabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::SplashPots} is set:
- delete {{@variable}::SplashPots}
- send "{@P}{@H} Splash Potions{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Splash Potions is already enabled. {@H}/feature set splash on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::SplashPots} is not set:
- set {{@variable}::SplashPots} to true
- send "{@P}{@H} Splash Potions{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Splash Potions is already disabled. {@H}/feature set splash on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::SplashPots} is not set:
- set {{@variable}::SplashPots} to true
- send "{@P}{@H} Splash Potions{@C} {@H}Disabled"
- else:
- delete {{@variable}::SplashPots}
- send "{@P}{@H} Splash Potions{@C} {@H}Enabled"
- else:
- send "{@H}/feature set splash on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "shears":
- if arg-3 is not set:
- if {{@variable}::NoShears} is not set:
- set {{@variable}::NoShears} to true
- send "{@P}{@H} Shears{@C} {@H}Disabled"
- else:
- delete {{@variable}::NoShears}
- send "{@P}{@H} Shears{@C} {@H}Enabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::NoShears} is set:
- delete {{@variable}::NoShears}
- send "{@P}{@H} Shears{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Shears is already enabled. {@H}/feature set shears on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::NoShears} is not set:
- set {{@variable}::NoShears} to true
- send "{@P}{@H} Shears{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Shears is already disabled. {@H}/feature set shears on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::NoShears} is not set:
- set {{@variable}::NoShears} to true
- send "{@P}{@H} Shears{@C} {@H}Disabled"
- else:
- delete {{@variable}::NoShears}
- send "{@P}{@H} Shears{@C} {@H}Enabled"
- else:
- send "{@H}/feature set shears on&7/{@H}off&7/{@H}toggle"
- stop
- if arg-2 is "oakonly":
- if arg-3 is not set:
- if {{@variable}::OakOnly} is not set:
- set {{@variable}::OakOnly} to true
- send "{@P}{@H} Oak Only Apples{@C} {@H}Enabled"
- else:
- delete {{@variable}::OakOnly}
- send "{@P}{@H} Oak Only Apples{@C} {@H}Disabled"
- else if arg-3 is "on" or "enable":
- if {{@variable}::OakOnly} is not set:
- set {{@variable}::OakOnly} to true
- send "{@P}{@H} Oak Only Apples{@C} {@H}Enabled"
- else:
- send "{@E}{@C}Oak Only Apples is already enabled. {@H}/feature set oakonly on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "off" or "disable":
- if {{@variable}::OakOnly} is set:
- delete {{@variable}::OakOnly}
- send "{@P}{@H} Oak Only Apples{@C} {@H}Disabled"
- else:
- send "{@E}{@C}Oak Only Apples is already disabled. {@H}/feature set oakonly on&7/{@H}off&7/{@H}toggle"
- else if arg-3 is "toggle" or "t":
- if {{@variable}::OakOnly} is not set:
- set {{@variable}::OakOnly} to true
- send "{@P}{@H} Oak Only Apples{@C} {@H}Enabled"
- else:
- delete {{@variable}::OakOnly}
- send "{@P}{@H} Oak Only Apples{@C} {@H}Disabled"
- else:
- send "{@H}/feature set oakonly on&7/{@H}off&7/{@H}toggle"
- stop
- #============================================
- #
- # Errors
- #
- #============================================
- send "{@E}{@C} Unknown option. {@H}/feature set help"
- stop
- if command sender has permission "{@perms}":
- send "{@E}{@C}{@H} /feature &elist&7/&eset"
- else:
- send "{@E}{@C}{@H} /feature list"
- on tab completer for "/feature":
- if player has permission "{@perms}":
- add "set" to completions
- add "list" to completions
- on chat:
- replace all "kys" with "{@KYS}" in message
- #============================================
- #
- # Hosting Commands
- #
- #============================================
- command /spec [<player>]:
- permission: {@specperms}
- trigger:
- if arg-1 is not set:
- set {_target} to command sender
- if {{@SpecVariable}::%{_target}%} is set:
- send "{@E}{@C} You are already spectating {@H}/unspec"
- stop
- set {{@SpecVariable}::%{_target}%} to true
- set {_target}'s gamemode to spectator
- send "{@P} &fYou are now spectating." to {_target}
- else:
- set {_target} to arg-1
- if {{@SpecVariable}::%{_target}%} is set:
- send "{@E}{@C} %{_target}% is already spectating {@H}/unspec %{_target}%"
- stop
- set {{@SpecVariable}::%{_target}%} to true
- set {_target}'s gamemode to spectator
- send "{@P} &f%{_target}% is now spectating." to {_target}
- send "{@P} &f%{_target}% is now spectating." to command sender
- command /unspec [<player>]:
- permission: {@specperms}
- trigger:
- if arg-1 is not set:
- set {_target} to command sender
- if {{@SpecVariable}::%{_target}%} is not set:
- send "{@E}{@C} You are not spectating {@H}/spec"
- stop
- delete {{@SpecVariable}::%{_target}%}
- set {_target}'s gamemode to survival
- send "{@P} &fYou are no longer spectating." to command sender
- stop
- else:
- set {_target} to arg-1
- if {{@SpecVariable}::%{_target}%} is not set:
- send "{@E}{@C} %{_target}% is not spectating {@H}/spec %{_target}%"
- stop
- delete {{@SpecVariable}::%{_target}%}
- set {_target}'s gamemode to survival
- send "{@P} &f%{_target}% is no longer spectating." to {_target}
- send "{@P} &f%{_target}% is no longer spectating." to command sender
- command /heal [<offlineplayer>]:
- usage: /heal [<player>]
- permission: {@perms}
- 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: {@perms}
- 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: {@perms}
- 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: {@perms}
- 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: {@perms}
- trigger:
- broadcast "{@P}{@H} Everyone's{@C} inventory has been cleared."
- clear the inventory of all players
- command /setlevel [<int>]:
- permission: {@perms}
- 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: {@perms}
- 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
- #==================
- # KNOWN BUG
- # after scatter freeze does not work unless you /freeze, /freeze
- # fix 1 add a world checker
- #==================
- on any movement:
- {{@variable}::Freeze} is set
- set {_w} to world of player
- set {_y} to y coordinate of player
- set {_loc} to location of player
- wait 20 ticks
- {_y} is less than y coordinate of player
- set {_w2} to world of player
- {_w2} is {_w}
- 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
- 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)
- #============================================
- #
- # Alt Detection
- #
- #============================================
- 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
- loop all players:
- loop-player has permission "{@perms}"
- send "{@P}{@C} Players who logged in under {@H}%player%'s{@C} IP:" to loop-player
- send "{@P}{@H} %{_alts::*}%" to loop-player
- command /findalt [<text>]:
- permission: {@perms}
- 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::*}%"
- #============================================
- #
- # Hosting Preferences
- #
- #============================================
- 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: {@perms}
- 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
- permission: {@perms}
- 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")
- #============================================
- #
- # UHC Variables
- #
- #============================================
- 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 10 ticks
- updateTab(player)
- 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 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 10 ticks
- 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 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 10 ticks
- updateTab(victim)
- 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 10 ticks
- 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!"
Advertisement
Add Comment
Please, Sign In to add comment