Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- EssenceItem: cyan stained glass pane named "&aEssence Generator"
- AngelEssenceItem: white stained glass pane named "&bAngel &aEssence Generator"
- TeslaItem: oak wood fence named "&bTesla Tower"
- ShopItem: crafting table named "&c&lBuy Items"
- SelectTool: stick named "&aSelect Towers/Generators"
- UpgradeItem: arrow named "&bUpgrade selected tower"
- UnselectTool: Barrier named "&aUnselect tower"
- DeleteItem: red stained glass pane named "&C&LDelete tower (You will get the tower back)"
- SellItem: sunflower named "&c&lSell tower (WARNING: You will lose all coins inside of the tower)"
- Item::Archer: Skeleton Spawn Egg # Change archer to another other troop if you want, Use any SPAWN EGG
- Troop::Skeleton: "Archer" # Change Skeleton to whatever the archer item is.
- Item::Barbarian: Blaze Spawn Egg
- Troop::Blaze: "Barbarian"
- command getitems:
- trigger:
- give player 1 of {@EssenceItem}
- give player 1 of {@AngelEssenceItem}
- give player 1 of {@TeslaItem}
- give player 1 of {@ShopItem}
- give player 1 of {@SelectTool}
- on chat:
- if {basedeletechat::%player's uuid%} is set:
- if {basedeletechat::%player's uuid%} was less than 2 minutes ago:
- delete {basedeletechat::%player's uuid%}
- if message contains "Yes" or "yes":
- cancel event
- delete {base::%player's uuid%}
- else:
- on join:
- if {maxstructures::EssenceGen::%player's uuid%} is not set:
- set {maxstructures::EssenceGen::%player's uuid%} to 2
- if {maxstructures::AngelEssenceGen::%player's uuid%} is not set:
- set {maxstructures::AngelEssenceGen::%player's uuid%} to 2
- if {maxstructures::TeslaTower::%player's uuid%} is not set:
- set {maxstructures::TeslaTower::%player's uuid%} to 1
- set metadata tag "ClanGUI" of player to a chest inventory with 4 rows named "%player%'s Clan Menu"
- set slots (all integers from 0 to 9, 17, 18, and all integers from 26 to 35) of metadata tag "ClanGUI" of player to gray stained glass pane named ""
- set slot 13 of metadata tag "ClanGUI" of player to a ender pearl named "<Yellow>Teleport to your base!" if {base::%player's uuid%} is set
- set slot 13 of metadata tag "ClanGUI" of player to a clock named "<Green>Make a base." if {base::%player's uuid%} is set
- set slot 21 of metadata tag "ClanGUI" of player to a sign named "<Cyan>Join teams for wars!" if {team::%player's uuid%} is not set
- set slot 21 of metadata tag "ClanGUI" of player to a sign named "<Cyan>View your team." if {team::%player's uuid%} is set
- set slot 22 of metadata tag "ClanGUI" of player to a redstone block named "<red><bold>Delete your base"
- set slot 23 of metadata tag "ClanGUI" of player to a diamond block named "<lime>View leaderboards"
- on right click:
- if player's tool is {@ShopItem}:
- open metadata tag "Shop" of ("GUIS" parsed as a offline player)
- else if player's tool is {@SelectTool}:
- set {_loc} to player's location
- subtract 50 from the y coordinate of {_loc}
- loop {placed::structures::%player's uuid%::*}:
- loop ({placed::structures::%player's uuid%::%loop-index%} times:
- loop all blocks within {%loop-index-1%::%loop-number%::%player's uuid%::corner::1} and {%loop-index-1%::%loop-number%::%player's uuid%::corner::2}:
- if loop-value-3 is {_loc}:
- set {_d} to {EssenceGen::%loop-number%::%player's uuid%::center}
- if {_d} is true:
- clear player's inventory
- set slot 1 of player's inventory to 1 of {@UpgradeItem}
- kill {currentlyselected::%player's uuid%}
- summon a zombie at {_loc}
- make last spawned zombie invisible
- add "noGravity:1b" to nbt of last spawned zombie
- apply potion of glowing to the last spanwed zombie for 999 days
- set {currentlyselected::%player's uuid%} to last spawned zombie
- set {selectedbuilding::%player's uuid%} to last spawned zombie
- else:
- send "<red>You are not standing over something to select!"
- else if player's tool is {@EssenceItem}:
- if {placed::structures::%player's uuid%::EssenceGen} < {maxstructures::EssenceGen::%player's uuid%} ? 2:
- set {_loc} to player's location
- subtract 50 from the y coordinate of {_loc}
- loop {placed::structures::%player's uuid%::*}:
- loop all blocks within {%loop-index%::%player's uuid%::corner::1} and {%loop-index%::%player's uuid%::corner::2}:
- if loop-value-2 is {_loc}:
- set {_d} to true
- if {_d} is not set:
- remove 1 of player's tool from player's tool
- cancel event
- if player is not op:
- op player
- execute player command "setblock ~ ~-50 ~ structure_block[mode=load]{name:""Essence"",author:""BeanyDoesStuff_"",rotation:""NONE"",mirror:""NONE"",mode:""LOAD"",ignoreEntities:0b} replace"
- execute player command "setblock ~ ~-50 ~1 redstone_torch replace"
- deop player
- else:
- execute player command "setblock ~ ~-50 ~ structure_block[mode=load]{name:""Essence"",author:""BeanyDoesStuff_"",rotation:""NONE"",mirror:""NONE"",mode:""LOAD"",ignoreEntities:0b} replace"
- execute player command "setblock ~ ~-50 ~1 redstone_torch replace"
- set {_corner1} to {_loc}
- add 6 to the x coordinate of {_corner1}
- add 6 to the z coordinate of {_corner1}
- set {_corner2} to {_loc}
- subtract 6 from the x coordinate of {_corner2}
- subtract 6 from the z coordinate of {_corner2}
- add 1 to {placed::structures::%player's uuid%::EssenceGen}
- set {EssenceGen::%{placed::structures::%player's uuid%::EssenceGen}%::%player's uuid%::center} to {_loc}
- set {EssenceGen::%{placed::structures::%player's uuid%::EssenceGen}%::%player's uuid%::corner::1} to {_corner1}
- set {EssenceGen::%{placed::structures::%player's uuid%::EssenceGen}%::%player's uuid%::corner::2} to {_corner2}
- else:
- send "There is already a building at this location!"
- else:
- send "<red>You have the maximum amount of Essence buildings placed! <gray>(<green>%{maxstructures::EssenceGen::%player's uuid%}%<gray>)"
- command /raid <text = start>:
- trigger:
- if arg is "start":
- if {raiding::%Player's uuid%} is not set:
- if {troops::%player's uuid%::*} is set:
- if {coins::%player's uuid%} >= 250:
- remove 250 from player's balance
- send formatted "Your explorer has found a raid! You have been automatically teleported to the raid. <command:/raid accept><cyan>Click here to raid this base<reset> or <command:/raid><blue>Click here to search again"
- set {atraid::%player's uuid%} to (random value from all offline players)
- teleport player to {base::%({atraid::%player's uuid%} parsed as a offline player)'s uuid%}
- else:
- send "<red>You have to pay your explorers to search for a raid."
- else:
- send "<red>Are you going to win the raid with your fists? Train some troops and try again."
- else:
- send "<red>Error: You are already raiding a player! <gray>(<green>%{raiding::%player's uuid%}%<gray>)"
- else if arg is "accept":
- set {raiding::%player's uuid%} to {atraid::%player's uuid%}
- delete {atraid::%player's uuid%}
- loop {troops::%player's uuid%::*}:
- set {_d::*} to loop-value split at "|"
- give player {_d::2} of {@item::%{_d::1}%}
- delete {troops::%player's uuid%::*}
- send "<green>Successfully started raiding %{raiding::%player's uuid%}%<green>."
- send "<red>You are being raided by %player%<red>! <cyan>Go to your base to watch the raid"
- on disconnect:
- delete metadata tag "ClanGUI" of player
- on inventory click:
- if name of event-inventory contains "%player%'s Clan Menu":
- cancel event
- if event-item is an ender pearl:
- else if event-item is a clock:
- else if event-item is a redstone block:
- else if event-item is a sign:
- if uncolored event-item's name is "Join others in wars!":
- open metadata tag "AllTeams" of ("Teams" parsed as a offline player) to player
- if uncolored event-item's name is "View your team.":
- open metadata tag "TeamGUI" of ("%{team::%player's uuid%}%" parsed as a offline player) to player
- else if event-item is a diamond block:
- open metadata tag "Choose Board" of ("GUIS" parsed as a offline player) to player
- else if name of event-inventory contains "Leaderboards":
- cancel event
- if event-item is a gold ingot:
- if uncolored name of event-item is "Top Coins":
- open metadata tag "Coins" of ("GUIS" parsed as a offline player) to player
- else if event-item is a ghast tear:
- if uncolored name of event-item is "Top Essence":
- command /setup:
- permission: *
- trigger:
- set metadata tag "Choose Board" of ("GUIS" parsed as a offline player) to a chest inventory with 4 rows named "Leaderboards"
- set slot 12 of metadata tag "Choose Board" of ("GUIS" parsed as a offline player) to a gold ingot named "<gold>Top Coins" # Selector for coins leaderboard
- set slot 14 of metadata tag "Choose Board" of ("GUIS" parsed as a offline player) to a ghast tear named "<blue?Top Essence" # Selector for coins leaderboard
- set slot 22 of metadata tag "Choose Board" of ("GUIS" parsed as a offline player) to a clock named "<pink>Top Time Played" # Selector for time played leaderboard
- set metadata tag "AllTeams" of ("Teams" parsed as a offline player) to a chest inventory with 6 rows named "All teams"
- set slot 53 of metadata tag "AllTeams" of ("Teams" parsed as a offline player) to a arrow named "<green>Next page"
- set slot 45 of metadata tag "AllTeams" of ("Teams" parsed as a offline player) to a barrier named "<dark gray>Close menu"
- set metadata tag "Coins" of ("GUIS" parsed as a offline player) to a chest inventory with 3 rows named "Top 10 coins"
- if metadata tag "Coins" of ("GUIS" parsed as a offline player) is set:
- if metadata tag "AllTeams" of ("Teams" parsed as a offline player) is set:
- if metadata tag "Choose Board" of ("GUIS" parsed as a offline player) is set:
- if metadata tag "Essence" of ("GUIS" parsed as a offline player) is set:
- broadcast "&aServer Successfully Setup. &b(Will automatically work on start)"
- on skript load:
- wait 10 seconds
- execute console command "/setup"
- command /team <text = help> <text>:
- trigger:
- if arg-1 is "help":
- send formatted "", "<green>Team Help", "<green><suggest command:/team create (name)><tooltip:Click here to create>Create your own team<reset> /team create (name)", "<green><suggest command:/team invite (name)><tooltip:Click here to invite>Invite others to your team<reset> /team create (name)", "<green><suggest command:/team join (name)><tooltip:Click to join>Join other teams<reset> /team join (name)", "<green><command:/team list><tooltip:Click to open list>List all teams.<reset>/team list", and ""
- else if arg-1 is "create":
- if {team::%player's uuid%} is not set:
- if {teams::list::*} contains lowercase arg-2:
- send "<Red>This name is already taken. Please try again"
- else:
- if (length of arg-2) <= 16
- if arg-2 is alphanumerical:
- send "<green>Creating your team..."
- add arg-2 to {teams::list::*}
- set {team::%arg-2%::leader} to player
- add player to {team::%arg-2%::members::*}
- set {team::%player's uuid%} to arg-2
- send "<green>Successfully created your team!" if {teams::list::*} contains arg-2
- send "<red>An unknown error occured while creating your team. Try again later." if {teams::list::*} doesn't contain arg-2
- else:
- send "<red>Your team name may only have letters and numbers. Try again"
- else:
- send "<red>Your team name can be no longer than 16 letters"
- else:
- send "<red>You are already in a team! <gray>(<cyan>%{team::%player's uuid%}%<gray>)"
- else if arg-1 is "settings":
- if metadata tag "settings" of ({team::%Player's uuid%} parsed as a offline player) is not set:
- set metadata tag "settings" of ({team::%player's uuid%} parsed as a offline player) to a
- open metadata tag "settings" of ({team::%player's uuid%} parsed as a offline player) to player
- else if arg-1 is "invite":
- if {team::%player's uuid%} is set:
- if arg-2 parsed as a online player is set:
- if {team::%{team::%player's uuid%}%::leader} is player or if {team::%{team::%player's uuid%}%::%{team::%{team::%player's uuid%}%::invitesettings}%::*} contains player:
- else:
- send "<Red>You do not have valid permission to invite people to your team"
- else:
- send "<red>You can't invite a offline player (Or a player who was never joined)."
- else:
- "<red>You are not on a team."
- command /clan <text = gui>:
- trigger:
- if arg is "help":
- send formatted "", "<green>Clan Help", "<green><command:/clan><tooltip:Click here to open>Open the gui for clans<reset> /clan gui", "<green><command:/clan go><tooltip:Go to your base>Base teleport<reset> /clan go", "<green><suggest command:/clan delete><tooltip:Delete your base and clan>Delete your base.<reset> /clan delete", "<green><suggest command:/clan create><tooltip:Create a base>Create your base!<reset> /clan create", and ""
- else if arg is "gui" or "GUI":
- open metadata tag "ClanGUI" of player to player
- else if arg is "go":
- teleport player to {clanbase::%player's uuid%}
- else if arg is "delete":
- send "&cAre you sure you wish to delete your base? Type ""Yes"" or ""yes"" in chat to confirm"
- set {basedeletechat::%player's uuid%} to true
- command /troops <text = help> [<text>] [<player>] [<integer>]:
- permission: troops.admin
- trigger:
- if arg-1 is "help":
- send formatted "", "<green>Troops Admin Help Menu", "<green>Give troops to players <pink><suggest command:/troops give (troop) (player) (amount)>Click here", "<lime>Remove troops from players <red><suggest command:/troops remove (troop) (player) (amount)>Click here", "<Green>Clear all of a player's toops <pink><suggest command:/troops clear (player)>Click here", and ""
- else if arg-1 is "give":
- else if arg-1 is "take" or "remove":
- else if arg-1 is "clear" or "reset":
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement