From 2f0f9bad25077b5945f1405e764871d482830129 Mon Sep 17 00:00:00 2001 From: ismooch Date: Mon, 21 Apr 2014 01:33:00 -0500 Subject: [PATCH 01/14] Making Chances.. Will Revert --- Obam-General/autohub.sk | 10 - Obam-General/exclusive.sk | 3 - Obam-General/hubconfig.sk | 96 -- Obam-General/pinfo.sk | 102 -- Obam-General/who.sk | 16 - Obam-Survival/disenchant.sk | 29 - Obam-Survival/heal.sk | 43 - Obam-Testing/abstain.sk | 127 --- Obam-Testing/aliases-english.sk | 1690 ------------------------------- Obam-Testing/broadcast.sk | 4 - Obam-Testing/effect.sk | 138 --- Obam-Testing/modbridge.sk | 13 - Obam-Testing/schat2.sk | 187 ---- Obam-Testing/schatbridge.sk | 18 - Obam-Testing/tellchat.sk | 45 - Obam-Testing/tma.sk | 350 ------- Obam-Testing/wtfronts.sk | 598 ----------- 17 files changed, 3469 deletions(-) delete mode 100644 Obam-General/autohub.sk delete mode 100644 Obam-General/exclusive.sk delete mode 100644 Obam-General/hubconfig.sk delete mode 100644 Obam-General/pinfo.sk delete mode 100644 Obam-General/who.sk delete mode 100644 Obam-Survival/disenchant.sk delete mode 100644 Obam-Survival/heal.sk delete mode 100644 Obam-Testing/abstain.sk delete mode 100644 Obam-Testing/aliases-english.sk delete mode 100644 Obam-Testing/broadcast.sk delete mode 100644 Obam-Testing/effect.sk delete mode 100644 Obam-Testing/modbridge.sk delete mode 100644 Obam-Testing/schat2.sk delete mode 100644 Obam-Testing/schatbridge.sk delete mode 100644 Obam-Testing/tellchat.sk delete mode 100644 Obam-Testing/tma.sk delete mode 100644 Obam-Testing/wtfronts.sk diff --git a/Obam-General/autohub.sk b/Obam-General/autohub.sk deleted file mode 100644 index 3b93d28..0000000 --- a/Obam-General/autohub.sk +++ /dev/null @@ -1,10 +0,0 @@ -on join: - set {_hold} to difference between {db_time.join.%player%} and now - {_hold} is more than 15 minutes: - - set {db_time.join.%player%} to now - make player execute command "/hub" - -on disconnect: - set {db_time.join.%player%} to now - \ No newline at end of file diff --git a/Obam-General/exclusive.sk b/Obam-General/exclusive.sk deleted file mode 100644 index e758c42..0000000 --- a/Obam-General/exclusive.sk +++ /dev/null @@ -1,3 +0,0 @@ -on connect: - player does not have permission "obam.supporter" - kick the player due to "&cThis beta is for Supporters only!" \ No newline at end of file diff --git a/Obam-General/hubconfig.sk b/Obam-General/hubconfig.sk deleted file mode 100644 index 6d9bf1a..0000000 --- a/Obam-General/hubconfig.sk +++ /dev/null @@ -1,96 +0,0 @@ -options: - help: named item stack from "book;&6&lOBAM&fCraft &3Guide;&7Right click with this book to learn the ins||&7and out of OBAM" - worlds: named item stack from "ender pearl;&3Game Worlds;&7Right click with this to check the current Game Worlds!" - fly: named item stack from "feather;&3Fly!;&7Right click with this feather to fly in the hub!" - skyblock: i;grass;n;&6Skyblock;l;&7Try our Skyblock world with custom challenges and ||&7Villager trading!;c;sudo %player% worlds skyblock - fronts: i;cobblestone;n;&6Fronts;l;&7Our Special flavour of Survival with immediate||&7land claiming!;c;sudo %player% worlds survival - wtfronts: i;magma cream;n;&6WTFronts;l;&cBETA TESTING|| ||&7Extreme Survival with extreme payoffs!;c;sudo %player% worlds wtf - kitpvp: i;blaze rod;n;&6Kit PVP;l;&7Play OBAM's KitPvP with new original kits!;c;sudo %player% worlds kit - - - -on join: - execute console command "/mv tp %player% Death-hub" - clear player's inventory - give player {@help} - give player {@worlds} - give player {@fly} - -on shoot: - world is "Death-hub" - shooter's tool is ender pearl - cancel event - -on right click: - player's tool is {@help}: - make player execute command "/help" - player's tool is {@worlds}: - cancel event - make player execute command "/worlds" - player's tool is {@fly}: - {fly.hub.%player%} is not set: - set {fly.hub.%player%} to true - allow player to fly - send "&aYou can fly!" - stop - {fly.hub.%player%} is true: - set {fly.hub.%player%} to false - disallow player to fly - send "&cYou can no longer fly!" - stop - {fly.hub.%player%} is false: - set {fly.hub.%player%} to true - allow player to fly - send "&aYou can fly!" - stop - - -on drop: - world is "Death-hub": - cancel event - - -command /worlds []: - permission: obam.free - trigger: - world is "Death-hub" - argument is not set: - - send "&aBringing up menu..." - - show "s;1;{@skyblock};s;2;{@kitpvp};s;3;{@fronts};s;4;{@wtfronts}" with 1 row named "&7Worlds" to player - - argument is "survival": - - make player execute command "/transfer survival" - - argument is "wtf": - - make player execute command "/transfer curtain" - - argument is "skyblock": - - execute console command "mv tp %player% skyworld" - - argument is "kit": - - execute console command "mv tp %player% kitpvpkillingfields" - -every second: - - loop all players: - {fly.hub.%loop-player%} is true: - loop-player's world is not "Death-hub": - disallow loop-player to fly - set {fly.hub.%loop-player%} to false - loop-player's world is "Death-hub": - allow loop-player to fly - - -command /transfer []: - trigger: - world is "Death-hub" - connect player to "%argument%" - - - \ No newline at end of file diff --git a/Obam-General/pinfo.sk b/Obam-General/pinfo.sk deleted file mode 100644 index df10560..0000000 --- a/Obam-General/pinfo.sk +++ /dev/null @@ -1,102 +0,0 @@ -variables: - {db_dayset.2} = 0 - -on join: - {db_count.start.%player%.2} is not set: - set {db_count.start.%player%.2} to {db_dayset} - set {db_current.server.%player%} to "&eWTF" - -on disconnect: - clear {db_current.server.%player%} - set {db_lastseen.%player%} to "%now% on &eWTF" - clear {db_color.%player%} - player has permission "obam.admin": - set {db_color.%player%} to "&d%player%" - {db_color.%player%} is not set: - player has permission "obam.mod": - set {db_color.%player%} to "&2%player%" - {db_color.%player%} is not set: - player has permission "obam.ultimate": - set {db_color.%player%} to "&6%player%" - {db_color.%player%} is not set: - player has permission "obam.supporter": - set {db_color.%player%} to "&b%player%" - {db_color.%player%} is not set: - set {db_color.%player%} to "&f%player%" - - - - -command /playerinfo []: - description: Find out information about you - aliases: /p, /info, /player, /pinfo - executable by: players - trigger: - - argument is not set: - player has permission "obam.admin": - set {_name} to "&d%player%" - {_name} is not set: - player has permission "obam.mod": - set {_name} to "&2%player%" - {_name} is not set: - player has permission "obam.ultimate": - set {_name} to "&6%player%" - {_name} is not set: - player has permission "obam.supporter": - set {_name} to "&b%player%" - {_name} is not set: - set {_name} to "&f%player%" - message "&aPlayer: %{_name}%" - set {_days} to {db_dayset} - {db_count.start.%player%} - {_days} is less than 2: - {_days} is 1: - message "&aYou are &e%{_days}% &aday old." - stop - {_days} is less than 1: - message "&aThis is your first day." - stop - message "&aYou are &e%{_days}% &adays old." - argument is set: - argument has not played before: - message "&e%argument% &chas not played on this server before." - stop - - argument has permission "obam.admin": - set {_name} to "&d%argument%" - {_name} is not set: - argument has permission "obam.mod": - set {_name} to "&2%argument%" - {_name} is not set: - argument has permission "obam.ultimate": - set {_name} to "&6%argument%" - {_name} is not set: - argument has permission "obam.supporter": - set {_name} to "&&b%argument%" - {_name} is not set: - set {_name} to "&f%argument%" - argument is not online: - {db_current.server.%argument%} is not set: - set {_name} to "&7%argument% &7&o(Offline)" - {db_color.%argument%} is set: - set {_name} to {db_color.%argument%} - set {_lastseen} to "&aLast seen:&e%{db_lastseen.%argument%}%" - {db_current.server.%argument%} is set: - {db_color.%argument%} is set: - set {_name} to {db_color.%argument%} - set {_current.connect} to "&aCurrently connected to %{db_current.server.%argument%}%" - - message "&aPlayer: %{_name}%" - {_lastseen} is set: - send {_lastseen} - {_current.connect} is set: - send {_current.connect} - set {_days} to {db_dayset} - {db_count.start.%argument%} - {_days} is less than 2: - {_days} is 1: - message "&aThey are &e%{_days}% &aday old." - stop - {_days} is less than 1: - message "%{_name}% &ais &e1&a day old" - stop - message "&aThey are &e%{_days}% &adays old." \ No newline at end of file diff --git a/Obam-General/who.sk b/Obam-General/who.sk deleted file mode 100644 index 3672c18..0000000 --- a/Obam-General/who.sk +++ /dev/null @@ -1,16 +0,0 @@ -every 10 seconds: - clear {db_fronts.who.2::*} - loop all players: - add loop-player to {db_fronts.who.2::*} - - -command /who: - trigger: - - loop all players: - add loop-player to {_cur.list::*} - clear {db_fronts.who.2::*} - set {db_fronts.who.2::*} to {_cur.list::*} - send "&eHub:&a%{db_hub.who::*}%" - send "&eWTF:&a%{db_wtf.who::*}%" - send "&eFronts:&a%{_cur.list::*}%" \ No newline at end of file diff --git a/Obam-Survival/disenchant.sk b/Obam-Survival/disenchant.sk deleted file mode 100644 index b0a7941..0000000 --- a/Obam-Survival/disenchant.sk +++ /dev/null @@ -1,29 +0,0 @@ -command /unenchant: - executable by: players - permission: obam.free - aliases: /disenchant - trigger: - player's tool is enchanted - player's tool is not a sword or axe or pickaxe or shovel or bow or helmet or chestplate or leggings or boots: - message "&cYou may only disenchant Armour, Weapons or Tools!" to player - stop - - - set {_bal} to player's balance - {_bal} is less than 200: - send "&cYou do not have enough tickets to do this!" to player - stop - player's level is less than 15: - - send "&cYou must have at least 15 levels to do this!" to player - stop - disenchant player's tool - - reduce the player's level by 15 - - remove 200 from player's balance - send "&6&lThe Gods have taken their gifts back!" to player - send "&aYou have used &e200 Tickets&a to disenchant this tool" to player - send "&aYou have &e%player's balance%&a remaining" to player - log "%player%^%{_bal}%^DEDUCT^200^%player's balance%^DISENCHANT FEE" to "tickets/disenchant.log" - stop diff --git a/Obam-Survival/heal.sk b/Obam-Survival/heal.sk deleted file mode 100644 index dc0ee0a..0000000 --- a/Obam-Survival/heal.sk +++ /dev/null @@ -1,43 +0,0 @@ -variables: - {heal.%player%} = false - - - - - - -command /heal: - executable by: players - permission: obam.free - trigger: - {heal.%player%} is not set: - set {heal.%player%} to now - add 13 hours to {heal.%player%} - - set {_check} to difference between {heal.%player%} and now - {_check} is less than 12 hours: - set {_check} to difference between {heal.%player%} and now - set {_hold} to difference between now and now - add 12 hours to {_hold} - subtract {_check} from {_hold} - send "&cYou must wait at least &e%{_hold}% &cto use this command!" - stop - {abstain.%player%} is false: - send "&cOnly abstaining players can use this feature!" - stop - {abstian.%player%} is "wait pvp" or "wait abstain": - send "&cYou can not use this feature in transition!" - stop - {abstain.%player%} is true: - - set {_bal} to player's balance - {_bal} is less than 2000: - send "&cYou do not have enough tickets to do this!" to player - stop - - remove 2000 from player's balance - set {heal.%player%} to now - send "&aYou have been healed" to player - set player's health to 10 - send "&aYou have &e%player's balance%&a remaining" to player - stop diff --git a/Obam-Testing/abstain.sk b/Obam-Testing/abstain.sk deleted file mode 100644 index df5f898..0000000 --- a/Obam-Testing/abstain.sk +++ /dev/null @@ -1,127 +0,0 @@ -variables: - {abstain.%player%} = false - - - -command /abstain []: - permission: obam.free - trigger: - - argument is not set: - send " " - send " &aYour Abstain status is currently &e%{abstain.%player%}%&a, you can change this by doing &e/abstain confirm&a. " - send " " - send "&aThis change will cost &e2500 Tickets&a." - send " " - set {abst.confirm.%player%} to now - stop - player has permission "obam.admin": - {abstain.%player%} is false: - set {abstain.%player%} to true - - send "&aYour Abstain status is now &e%{abstain.%player%}%" - stop - - {abstain.%player%} is true: - set {abstain.%player%} to false - send "&aYour Abstain status is now &e%{abstain.%player%}%" - stop - - stop - - argument is "confirm" or "c": - set {_hold} to difference between now and {abst.confirm.%player%} - {_hold} is greater than 30 seconds: - send "&cYou must do &e/abstain&a before doing the confirm command" - stop - - {abstain.%player%} is not set: - set {abstain.%player%} to false - {abstain.%player%} is false: - set {_bal} to player's balance - {_bal} is less than 2500: - send "&cYou do not have enough tickets to perform this operation" - stop - remove 2500 from player's balance - set {abstain.%player%} to "wait abstain" - set {abstain.%player%.time} to now - send "&aYou have abstained from PvP. You will lose access to some features. You have paid a toll of &e2500 Tickets&a." - send "&aIt can take up to &e2 hours&a for your abstain feature to take affect." - send "&aYou know have &e%player's balance%&a." - stop - {abstain.%player%} is true: - set {_bal} to player's balance - {_bal} is less than 2500: - send "&cYou do not have enough tickets to perform this operation" - stop - remove 2500 from player's balance - set {abstain.%player%} to "wait pvp" - set {abstain.%player%.time} to now - send "&aYou are engaging in PvP. You will be susceptible to PvP fights. You have paid a toll of &e2500 Tickets&a." - send "&aIt can take up to &e2 Hours&a for your PvP entering process to take affect." - send "&aYou now have &e%player's balance%&a." - stop - - {abstain.%player%} is "wait pvp": - send "&cYou already have an Abstain process waiting. It can take up to 2 hours for this change to take an effect" - stop - {abstain.%player%} is "wait abstain": - send "&cYou already have an Abstain process waiting. It can take up to 2 hours for this change to take an effect" - stop - -on damage: - victim is a player - attacker is a player - {abstain.%victim%} is true: - cancel event - {abstain.%attacker%} is true: - send "&cYou can not engage in PvP while abstaining!" - cancel event - -every 1 hour: - loop all players: - {abstain.%loop-player%} is "wait pvp": - set {_hold} to difference between {abstain.%loop-player%.time} and now - {_hold} is more than 1 hour - set {abstain.%loop-player%} to false - execute console command "perms player %loop-player% set nametags.color.blue false" - execute console command "perms player %loop-player% set nametags.color.red" - send "&aYou are now able to PvP!" to loop-player - {abstain.%loop-player%} is "wait abstain": - set {_hold} to difference between {abstain.%loop-player%.time} and now - {_hold} is more than 1 hour - set {abstain.%loop-player%} to true - execute console command "perms player %loop-player% set nametags.color.red false" - execute console command "perms player %loop-player% set nametags.color.blue" - send "&aYou are now abstaining from PvP!" to loop-player - -on connect: - player is "ISMOOCH": - stop - {abstain.%player%} is true: - player does not have permission "nametags.color.blue": - execute console command "perms player %player% set nametags.color.blue" - player has permission "nametags.color.red": - execute console command "perms player %player% set nametags.color.red false" - {abstain.%player%} is false: - player does not have permission "nametags.color.red": - execute console command "perms player %player% set nametags.color.red" - player has permission "nametags.color.blue": - execute console command "perms player %player% set nametags.color.blue false" - {abstain.%player%} is "wait pvp": - set {_hold} to difference between {abstain.%player%.time} and now - {_hold} is more than 1 hour: - set {abstain.%player%} to false - send "&aYou can now PvP!" - execute console command "perms player %player% set nametags.color.blue false" - execute console command "perms player %player% set nametags.color.red" - stop - - {abstain.%player%} is "wait abstain": - set {_hold} to difference between {abstain.%player%.time} and now - {_hold} is more than 1 hour: - set {abstain.%player%} to true - send "&aYou are now abstaining from PvP!" - execute console command "perms player %player% set nametags.color.red false" - execute console command "perms player %player% set nametags.color.blue" - stop \ No newline at end of file diff --git a/Obam-Testing/aliases-english.sk b/Obam-Testing/aliases-english.sk deleted file mode 100644 index f07edb1..0000000 --- a/Obam-Testing/aliases-english.sk +++ /dev/null @@ -1,1690 +0,0 @@ - -# ====== Aliases ====== -# In this file you can create aliases. An alias is a name for a block or an item, or a collection of such. -# There are hundreds of predefined aliases, so you don't usually need to care about this file. -# -# An alias is nothing more than a mapping from a name to one or more item/block types. -# e.g: 'torch = 50' creates the alias 'torch' and maps it to 50, the ID of a torch. -# So now every time you need a torch you can write torch instead of 50, which is much more intuitive. -# You can make an alias match multiple types by separating them with a comma, e.g. 'water = 8, 9'. -# You can also include data values, e.g. 'orange wool = 35:1'. Data Values can be a range, -# e.g. 'wet farmland = 60:1-8' (60:0 is dry farmland) -# -# == Advanced == -# As different languages have different ways of forming plurals of words you have to define the plurals of all aliases yourself. -# This is done by adding the plural ending after a ¦ character, e.g. 'log¦s = 17'. -# If the singular and plural have different endings each, use two ¦ characters, e.g. 'bookshel¦f¦ves = 47'. -# If you want to pluralize a word within the alias, use another ¦ character, e.g.. 'bucket¦¦s¦ of water' ('¦¦s¦' means: no singular ending, plural ending 's'). -# These plurals are both used by Skript when displaying items, e.g. 2 logs will be displayed as '2 logs', -# while 1 log will be displayed as '1 log', but are also used when parsing, i.e. you can write '1 log' or '2 logs' and both is understood. -# Aliases should also have a gender, which can be defined by adding '@' after the alias, e.g. 'emerald¦s @an' ('@a' can be omitted as it's the default). -# - English genders are 'a' and 'an', and German genders are 'n', 'm', and 'f' (these are all defined in the respectile language file). -# All languages can use the special genders 'x' and '-' for plural and no gender respectively, e.g. 'leaves @x' or 'air @-'. -# -# Sometimes you want to make a part of an alias optional, e.g. in 'wooden door', -# which is also sometimes called 'wood door', the 'en' can be made optional. -# This can be done by putting the optional part into square brackets ([]): -# wood[en] door = 64 # creates 2 aliases: 'wood door = 64' and 'wooden door = 64' -# -# Some blocks/items have different names, like the slab which is also called step. -# In this case you can simple write something like this: -# (step|slab) = 44 # creates two aliases, 'slab' and 'step', of which both are mapped to '44' -# stone (step|slab) = 44:0 # creates 'stone slab' and 'stone step' mapped to '44:0' -# wood[en] (step|slab) = 44:2 # creates four aliases -# -# Some blocks and items share some different appearances, e.g. wood, saplings and leaves all differ only in their tree type. -# Usually you would have to create the aliases 'birch wood', 'birch sapling', 'redwood wood', 'redwood sapling' etc. -# But this can be shortened by using variations: -# {tree type}: # name of the variation -# regular = :0 # list values here. these have the same syntax as aliases, i.e. they can have ids and data/data ranges, -# redwood = :1 # but you usally only need the data, which is done by typing a colon with no id in front of it. -# birch = :2 -# {tree type} wood = 17 # this is resolved to: wood = 17, regular wood = 17:0, redwood wood = 17:1 and birch wood = 17:2 -# sapling of {tree type} tree = 6 # you can put a variation anywhere in an alias, it doesn't need to be at the beginning. -# {tree type} leaves = 18 -# -# please note that 'wood = 17' is also resolved for '{tree type} wood = 17'. This is usually what you want. -# This does not work with variations where ids are varied and not only data values. There you -# have to add a '{default}' to the variation, which is treated like all other values in the variation -# but without adding it's name to the alias. For examples see 'huge mushrooms' or 'doors'. -# -# If an item has a block with a different ID you should add another two aliases called 'x item' and 'x block', e.g. -# cauldron block = 118 -# cauldron item = 380 -# cauldron = 118, 380 -# This way if you 'give a cauldron to the player' the player will not actually be given the items of the 'cauldron' alias, -# but the items of the 'cauldron item' alias, causing the player to always recieve the correct cauldron item. -# The same applies to setting blocks, though it usually doesn't matter as items are ignored when setting blocks. -# It does matter for e.g. water though: -# water = 8, 9 -# water block = 9 -# The 'water block' alias only lists the water source block, while the 'water' alias also lists the flowing water block. -# Setting a block to 'water' will thus always place a water source, while checking 'block is water' will work for both -# stationary and flowing water blocks. -# -# If you want to use something else than 'item' and 'block', simply modify the options below: -# - -# optional suffixes that can be appended to an alias's name and Skript will still understand it, -# e.g. if you only define an alias 'cake', this will allow users to use 'cake block' and 'cake item' as well. -# These are also used to determine the block and item variants of an alias (see above) And should include singular and plural. -item = item¦s -block = block¦s - - - - -# List of alias groups. Only groups listed here are allowed below, -# but you can easily define your own by adding it to this list. -# The groups will be loaded in this order, -# e.g. if 'custom aliases' is loaded after 'default aliases' you can use all default aliases to define your own aliases. -aliases = default aliases, collections, custom aliases - - - - - -custom aliases: - # === Custom Aliases === - # I recommend putting your own aliases here. - # You do not have to create an alias if you intend to use it in only one script, - # but you can put it at the beginning of the script like this: - # aliases: - # admin blocks = bedrock, TNT, 52, 56 - # wand = blaze rod - # This also has the advantage that your script can be used by other people without having to add the aliases to their config. - # - # - # If you want to edit a default alias, you should copy & paste it here to edit it. - # This will make it easier for you if you choose to update Minecraft and more blocks & items are added, in which case - # you can then simply download the updated config and copy & paste this section into it. - # - # The default aliases are loaded before these, so you can use them here. - # You can also override them by creating an alias with the same name. - - #example: shorten names - # ss = sandstone - # llb = lapis lazuli block - # ms = monster spawner - #etc. - -collections: - # === Collections === - - # all ores - ore¦s = coal ore, iron ore, gold ore, diamond ore, lapis ore, any redstone ore - # fuels, i.e. items which can be burned in the furnace - fuel¦s = lava bucket, blaze rod, any coal, planks, log, huge mushroom, workbench, fence, wooden stairs, trapdoor, sapling, stick, chest, locked chest, jukebox, note block - # note: the above aliases are used in 'furnace automatisation.cfg' - - # all food which can be eaten by rightclicking, i.e. doesn't include cake. - food¦s = any apple, mushroom soup, bread, any porkchop, any fish, cookie, melon slice, any beef, any chicken, rotten flesh, any carrot, any potato, pumpkin pie - # the same list but without raw food & rotten flesh - healthy food¦s = any apple, mushroom soup, bread, cooked porkchop, cooked fish, cookie, melon slice, steak, cooked chicken, any carrot, potato, baked potato, pumpkin pie - - # all vehicles, i.e. all minecarts and the boat - vehicle¦s = any minecart, boat - - # all plants. By default this does not include pumpkins and melons, but their stems. - plant¦s = leaves, any tall grass, dead bush, any flower, any mushroom, lily pad, vines, melon stem, pumpkin stem, nether wart - - -default aliases: - # === Default Aliases === - - # -- special -- - anything @- = : # ':' matches any ID. You should only use this together with a {variation} that includes a {default} value. - # (':' means ':') - something @- = : - everything @- = * # '*' is actually the same as 'every :', but 'every' can't be used in aliases. Thus I made this small hack - # to allow the definition of an 'everything' alias, but please note that '*' cannot be used anywhere else. - - - # ====== Blocks ====== - - # -- air -- - air @- = 0 - nothing @- = 0 - none @- = 0 - empty @- = 0 - [empty] (hand|fist)¦s = 0 - bare (hand|fist)¦s = 0 - - - # -- stone -- - stone¦s = 1 - smooth stone = 1 - - - # -- grass -- - grass = 2 - grass block = 2 - - - # -- dirt -- - dirt = 3 - - - # -- cobblestone -- - cobble[stone] = 4 - mossy cobble[stone] = 48 - - - # -- planks & saplings: see wood - - - # -- bedrock -- - bedrock = 7 - - - # -- water & lava -- - water = 8, 9 - water (item|block)¦s = 9 - stationary water = 9 - water source = 9 - flowing water = 8 # change to '8:0-7' if you want to exclude falling water - falling water = 8:8 - moving water = 8 - - lava = 10, 11 - lava (item|block)¦s = 11 - stationary lava = 11 - lava source = 11 - flowing lava = 10 # change to '10:0-7' if you want to exclude falling lava - falling lava = 10:8 - moving lava = 10 - - - # -- sand & gravel-- - sand = 12 - gravel = 13 - - - # -- ores & precious blocks -- - gold ore¦s = 14 - gold block¦s = 41 - block¦¦s¦ of gold = 41 - - iron ore¦s @an = 15 - iron block¦s @an = 42 - block¦¦s¦ of iron = 42 - - coal ore¦s = 16 - - lapis [lazuli] ore¦s = 21 - lapis [lazuli] block¦s = 22 - - # redstone ore: see redstone - - diamond ore¦s = 56 - diamond block¦s = 57 - block¦¦s¦ of diamond = 57 - - emerald ore¦s @an = 129 - emerald block¦s @an = 133 - block¦¦s¦ of emerald = 133 - packed ice = 174 - - - # -- wood, leaves, saplings & planks -- - {tree type}: # also used for wooden slabs - {default} = :0-15 - (normal|regular|oak) = :0, :4, :8, :12 - (pine|redwood|fir|spruce) = :1, :5, :9, :13 - birch = :2, :6, :10, :14 - jungle = :3, :7, :11, :15 - - {log direction}: - {default} = :0-3 - vertical = :0-3 - east-west = :4-7 - west-east = :4-7 - south-north = :8-11 - north-south = :8-11 - horizontal = :4-11 - rotated = :4-11 - full[[ ]block] = :12-15 - any = :0-15 - {log direction no default}: - vertical = :0-3 - east-west = :4-7 - west-east = :4-7 - south-north = :8-11 - north-south = :8-11 - horizontal = :4-11 - rotated = :4-11 - full[[ ]block] = :12-15 - any = :0-15 - - {log direction no default} {tree type} (log¦s|wood) = 17 - {log direction} {tree type} (log|wood) (item¦s|block¦s) = 17 - {tree type} leaves = 18 - {tree type} permanent leaves = 18:4-7, 18:12-15 - {tree type} sapling¦s = 6:0-3 - {tree type} plank¦s = 5:0-3 - {tree type} wood[en] plank¦s = 5:0-3 - - - # -- sponge -- - sponge¦s = 19 - - - # -- glass -- - glass = 20 - glass pane¦s = 102 - thin glass = 102 - window¦s = 102 - window glass = 102 - - - # -- lapis lazuli -- - # lapis ore & block: see ores & blocks - # lapis lazuli: see dyes - - - # -- dispenser -- - dispenser¦s = 23 - - - # -- sandstone -- - sand[ ]stone¦s = 24 - - - # -- note block -- - note block¦s = 25 - - - # -- bed -- - {bed occupied}: - occupied = :4-7, :12-15 - (free|empty) = :0-3, :8-11 - {bed part}: - (head|top) = :8-15 - (foot|bottom) = :0-7 - {bed occupied} bed [block] {bed part} = 26 - bed¦s = 26, 355 - bed block¦s = 26 - bed item¦s = 355 - - - # -- minecart rails -- - {minerail}: - straight = :0-5 - straight flat = :0-1 - flat straight = :0-1 - curved = :6-9 - flat = :0-1, :6-9 - inclined = :2-5 - {minerail straight}: - flat = :0-1, :8-9 - inclined = :2-5, :10-13 - # normal rail - [any] {minerail} [minecart] (rail|track)[s] = 27, 28, 66 - {minerail} [minecart] (rail|track)[s] (item|block) = 66 - # powered rail - {minerail straight} powered [minecart] (rail|track) = 27 - {minerail straight} [minecart] booster¦s = 27 - {minerail straight} [minecart] booster (rail|track)¦s = 27 - {minerail straight} powered [minecart] (rail|track)¦ on¦s on = powered rail:8-15 - {minerail straight} powered [minecart] (rail|track)¦ off¦s off = powered rail:0-7 - {minerail straight} active powered [minecart] (rail|track)¦s = powered rail:8-15 - {minerail straight} inactive powered [minecart] (rail|track)¦s = powered rail:0-7 - {minerail straight} [minecart] booster¦ on¦s on = powered rail:8-15 - {minerail straight} [minecart] booster¦ off¦s off = powered rail:0-7 - {minerail straight} [minecart] booster (rail|track)¦ on¦s on = powered rail:8-15 - {minerail straight} [minecart] booster (rail|track)¦ off¦s off = powered rail:0-7 - {minerail straight} (active|powered) [minecart] booster¦s = powered rail:8-15 - {minerail straight} (inactive|unpowered) [minecart] booster¦s = powered rail:0-7 - {minerail straight} (active|powered) [minecart] booster (rail|track)¦s = powered rail:8-15 - {minerail straight} (inactive|unpowered) [minecart] booster (rail|track)¦s = powered rail:0-7 - # detector rail - {minerail straight} detector [minecart] (rail|track)¦s = 28 - {minerail straight} detector [minecart] (rail|track)¦ on¦s on = detector rail:8-15 - {minerail straight} detector [minecart] (rail|track)¦ off¦s off = detector rail:0-7 - {minerail straight} active detector [minecart] (rail|track)¦s = detector rail:8-15 - {minerail straight} inactive detector [minecart] (rail|track)¦s = detector rail:0-7 - # activator rail - {minerail straight} activator [minecart] (rail|track)¦s = 157 - - - # -- sticky piston: see redstone - - - # -- cobweb -- - cobweb¦s = 30 - - - # -- vegetation -- - - # saplings & leaves: see wood - - any tall grass = 31:1-2 - dead grass = 31:0 - tall grass = 31:1 - long grass = 31:1 - fern¦s = 31:2 - - dead shrub¦s = 32 - dead bush¦es = 32 - - dandelion¦s = 37 - yellow flower¦s = 37 - rose¦s = 38 - red rose¦s = 38 - red flower¦s = 38 - flower¦s = 37, 38 - - mushroom¦s = 39, 40 - brown mushroom¦s = 39 - red mushroom¦s = 40 - - {huge mushroom type}: - {default} = 99, 100 - brown = 99 - red = 100 - huge {huge mushroom type} mushroom¦s = : - huge {huge mushroom type} mushroom stem¦s = :10 - huge {huge mushroom type} mushroom cap¦s = :1-9 #0 is not a real cap piece - - pumpkin¦s = 86 - jack-o-lantern¦s = 91 - glowing pumpkin¦s = 91 - pumpkin stem¦s = 104 - pumpkin seeds = 361 - pumpkin pie¦s = 400 - - melon¦s = 103 - melon block¦s = 103 - melon slice¦s = 360 - melon stem¦s = 105 - melon seeds = 362 - - vines = 106 - # the amount of vines here refers to the number of vines on the sides of the vine block. - # the top vine is always present if there's a solid block above the vines or the data is 0. - no vine[s] = 106:0 - single vine = 106:1, 106:2, 106:4, 106:8 - double vine[s] = 106:3, 106:5, 106:9, 106:6, 106:10, 106:12 - triple vine[s] = 106:7, 106:11, 106:13, 106:14 - quadruple vine[s] = 106:15 - - lily pad¦s = 111 - - nether wart¦s = 115, 372 - nether wart block¦s = 115 - nether wart item¦s = 372 - ripe nether wart¦s = 115:3 - freshly planted nether wart¦s = 115:0 - - cocoa = 127 - cocoa plant¦s = 127 - (freshly planted|small) cocoa [plant¦s] = 127:0-3 - medium cocoa [plant¦s] = 127:4-7 - (ripe|big|large) cocoa [plant¦s] = 127:8-11 - - {flower pot}: - (empty|nothing) = :0 - (rose|red flower) = :1 - (dandelion|yellow flower) = :2 - flower = :1-2 - (normal|regular|oak) sapling = :3 - (pine|redwood|fir|spruce) sapling = :4 - birch sapling = :5 - jungle [tree] sapling = :6 - sapling = :3-6 - red mushroom = :7 - brown mushroom = :8 - mushroom = :7-8 - cactus = :9 - dead bush = :10 - fern = :11 - {flower pot} flower pot¦s = 140 - {flower pot} flower pot block¦s = 140 - flower pot (holding|containing|with) [a[n]] {flower pot} = 140 - flower pot item¦s = 390 - flower pot¦s = 140, 390 - - carrot plant¦s = 141 - carrot[s] block¦s = 141 - carrot[s] [item¦s] = 391 - golden carrot¦s = 396 - any carrot[s] [item¦s] = 391, 396 - carrot¦ on a stick¦s on sticks = 398 - - potato plant¦s = 142 - potato[es] block¦s = 142 - potato¦es = 392 - potato[es] item¦s = 392 - baked potato¦es = 393 - poisonous potato¦es = 394 - any potato¦es = 392, 393, 394 - - - # -- pistons: see redstone - - - # -- wool, carpets and dyes -- - # note: it's not possible to make a {colour} variation, as dye and wool colour data values are different. - {wool}: # also used for stained clay - any = :0-15 - white = :0 - orange = :1 - magenta = :2 - light blue = :3 - yellow = :4 - light green = :5 - pink = :6 - gray = :7 - light gray = :8 - cyan = :9 - purple = :10 - blue = :11 - brown = :12 - [dark] green = :13 - red = :14 - black = :15 - {wool} wool = 35:0-15 - {wool} (carpet|rug)¦s = 171:0-15 - - dye¦s = 351:0-15 - white dye¦s = 351:15 - bone[ ]meal¦s = 351:15 - orange dye¦s = 351:14 - magenta dye¦s = 351:13 - light blue dye¦s = 351:12 - yellow dye¦s = 351:11 - dandelion yellow [dye¦s] = 351:11 - light green dye¦s = 351:10 - pink dye¦s = 351:9 - gray dye¦s = 351:8 - light gray dye¦s = 351:7 - cyan dye¦s = 351:6 - purple dye¦s = 351:5 - blue dye¦s = 351:4 - lapis [lazuli¦s] = 351:4 - cocoa beans = 351:3 - brown dye¦s = 351:3 - [dark] green dye¦s = 351:2 - cactus green [dye¦s] = 351:2 - red dye¦s = 351:1 - rose red = 351:1 - black dye¦s = 351:0 - ink sack¦s = 351:0 - - - # -- block 36 -- - block 36 = 36 - block moved by piston = 36 - moving block¦s = 36 - - - # -- flowers & mushrooms: see vegetation - - - # -- iron & gold block: see ores & blocks - - - # -- single & double steps / slabs -- - {any slab}: - {default} = 44, 126 - single = 44, 126 - double = 43, 125 - {stone slab}: - {default} = 44 - single = 44 - double = 43 - {wooden slab}: - {default} = 126 - single = 126 - double = 125 - - {slab facing}: - {default} = :0-7 - regular = :0-7 - default = :0-7 - upside-down = :8-15 - any = :0-15 - {slab facing no default}: - regular = :0-7 - default = :0-7 - upside-down = :8-15 - any = :0-15 - - {stone slab type}: - {default} = :0-1, :3-5, :8-9, :11-13 - any = :0-1, :3-5, :8-9, :11-13 - stone = :0, :8 - sandstone = :1, :9 - cobble[stone] = :3, :11 - brick = :4, :12 - stone brick[s]) = :5, :13 - {stone slab type no default}: - any = :0-1, :3-5, :8-9, :11-13 - stone = :0, :8 - sandstone = :1, :9 - cobble[stone] = :3, :11 - brick = :4, :12 - stone brick[s]) = :5, :13 - - # variation {tree type}: see wood - {slab facing no default} {stone slab} {stone slab type no default} (step|slab)¦s = : - {slab facing} {stone slab} {stone slab type} (step|slab) (block|item)¦s = : - {slab facing no default} {wooden slab} {tree type} [wood[en]] (step|slab)¦s = :0-3, :8-11 - {slab facing} {wooden slab} {tree type} (step|slab) (block|item)¦s = : - {slab facing no default} {any slab} (step|slab)¦s = : - {slab facing} {any slab} (step|slab) (block|item)¦s = : - - - # -- bricks & clay -- - [clay] brick¦s = 45, 336 - [clay] brick[s] = 45 - [clay] brick[s] = 336 - - {wool} [stained] [hard[ened]] clay = 159 - - clay = 82, 337 - clay = 82 - clay = 337 - clay ball¦s = 337 - - hard[ened] clay = 172 - - - # -- TNT -- - TNT¦s = 46 - dynamite = 46 - - - # -- bookshelf -- - bookshel¦f¦ves = 47 - - - # -- mossy cobblestone: see cobblestone - - - # -- obsidian -- - obsidian = 49 - - - # -- torch -- - {torch}: #also used for redstone torches - ground = :5 - floor = :5 - wall = :1-4 - {torch} torch¦es = 50 - - - # -- fire -- - fire¦s = 51 - (eternal|infinite) fire¦s = 51:15 #never tested this myself - finite fire¦s = 51:0-14 - (new|fresh) fire¦s = 51:0 - - - # -- monster spawner -- - monster spawner¦s = 52 - mob spawner¦s = 52 - - - # -- stairs -- - {stairs}: - {default} = 53, 134, 135, 136, 67, 108, 109, 114, 128, 156 - (oak|regular|normal) [wood] = 53 - (spruce|fir|redwood|pine) [wood] = 134 - birch [wood] = 135 - jungle [wood] = 136 - [any] wood[en] = 53, 134, 135, 136 - cobble[stone] = 67 - [clay] brick[s] = 108 - stone brick[s] = 109 - nether [brick[s]] = 114 - sand[ ]stone = 128 - [nether] quarz = 156 - {stairs direction}: - {default} = :0-3 - any = :0-7 - upside-down = :4-7 - {stairs direction no default}: - any = :0-7 - upside-down = :4-7 - - {stairs direction no default} {stairs} stair[s] = : - {stairs direction} {stairs} stair[s] (block|item)¦s = : - - - # -- chest -- - chest¦s = 54 - ender chest¦s = 130 - trapped chest¦s = 146 - - - # -- redstone wire: see redstone - - - # -- diamond ore & block: see ores & blocks - - - # -- crafting table -- - crafting table¦s = 58 - workbench¦es = 58 - - - # -- crops / wheat -- - crops = 59 - wheat block¦s = 59 - wheat item¦s = 296 - wheat = 59, 296 - [wheat] seeds = 295 - freshly planted (crops|wheat) = 59:0 - ripe (crops|wheat) = 59:7 - - - # -- farmland/soil -- - (farmland|soil) = 60 - dry (farmland|soil) = 60:0 - wet (farmland|soil) = 60:1-8 - - - # -- furnace -- - furnace¦s = 61, 62 - (burning|lighted|lit) furnace¦s = 62 - furnace¦ on¦s on = 62 - (non-burning|unlighted|unlit|extinguished) furnace¦s = 61 - furnace¦ off¦s off = 61 - - - # -- signs -- - sign post¦s = 63 - wall sign¦s = 68 - sign block¦s = 63, 68 - sign item¦s = 323 - sign¦s = 63, 68, 323 - - - # -- doors, trapdoors and fence gates -- - # I currently discourage from creating aliases like 'open door' or doors with specific facings - # as any 'block is ' condition will fail if you click the wrong part of the door. - # 'set to door:1' will correctly place an open door though. - {doortype}: - {default} = 64, 71 - wood[en] = 64 - iron = 71 - {doorhalf}: - top¦s = :8-9 - bottom¦s = :0-7 - {doortype} door [block] {doorhalf} = : - {doortype} door block¦s = : - wood[en] door item¦s = 324 - wood[en] door¦s = 324, 64 - iron door item¦s = 330 - iron door¦s = 330, 71 - door item¦s = 330, 324 - door¦s = 330, 71, 324, 64 - - trapdoor¦s = 96 - open[ed] trapdoor¦s = 96:4-7 - closed trapdoor¦s = 96:0-3 - - fence gate¦s = 107 - open[ed] fence gate¦s = 107:4-7 - closed fence gate¦s = 107:0-3 - - - # -- ladder -- - ladder¦s = 65 - - - # -- rails: see minecart rails - - - # -- coblestone stairs: see stairs - - - # -- redstone -- - [redstone] wire¦s = 55 - [redstone] wire¦ on¦s on = 55:1-15 - [redstone] wire¦ off¦s off = 55:0 - powered [redstone] wire¦s = redstone wire on - unpowered [redstone] wire¦s = redstone wire off - active [redstone] wire¦s = redstone wire on - inactive [redstone] wire¦s = redstone wire off - - redstone ore¦s = 73, 74 - (active|glowing) redstone ore¦s = 74 - (inactive|non-glowing) redstone ore¦s = 73 - redstone ore¦ on¦s on = 74 - redstone ore¦ off¦s off = 73 - - # variation {torch}: see torch - {torch} redstone torch¦es = 75, 76 - {torch} redstone torch¦ on¦es on = 76 - active {torch} redstone torch¦es = 76 - {torch} redstone torch¦ off¦es off = 75 - inactive {torch} redstone torch¦es = 75 - - {diodedelay}: - 1-tick[-delay] = :0-3 - 2-tick[-delay] = :4-7 - 3-tick[-delay] = :8-11 - 4-tick[-delay] = :12-15 - {diodedelay} [redstone] (repeater|diode)[ block]¦s = 93, 94 - [redstone] (repeater|diode) item¦s = 356 - [redstone] (repeater|diode)¦s = 356, 93, 94 - {diodedelay} [redstone] (repeater|diode)[ block]¦ on¦s on = 94 - {diodedelay} [redstone] (repeater|diode)[ block]¦ off¦s off = 93 - (active|powered) {diodedelay} [redstone] (repeater|diode)[ block]¦s = 94 - (inactive|unpowered) {diodedelay} [redstone] (repeater|diode)[ block]¦s = 93 - - {lever position}: - wall = :1-4, :9-12 - ground = :5-6, :13-14 - floor = :5-6, :13-14 - {lever position} lever¦s = 69 - {lever position} lever¦ on¦s on = 69:8-15 - (pulled|thrown|active) {lever position} lever¦s = 69:8-15 - {lever position} lever¦ off¦s off = 69:0-7 - (unpulled|unthrown|inactive) {lever position} lever¦s = 69:0-7 - - {button}: - {default} = 77, 143 - stone = 77 - wood[en] = 143 - {button} button¦s = : - {button} button¦ on¦s on = :8-15 - pressed {button} button¦s = :8-15 - active {button} button¦s = :8-15 - {button} button¦ off¦s off = :0-7 - unpressed {button} button¦s = :0-7 - inactive {button} button¦s = :0-7 - - {pressure plate}: - {default} = 70, 72, 147, 148 - wood[en] = 72 - stone = 70 - gold[en] = 147 - iron = 148 - {pressure plate} [pressure] plate¦s = : - (pressed|active) {pressure plate} [pressure] plate¦s = :1 - (unpressed|inactive) {pressure plate} [pressure] plate¦s = :0 - {weighted pressure plate}: - {default} = 147, 148 - gold[en] = 147 - light = 147 - iron = 148 - heavy = 148 - {weighted pressure plate} weighted [pressure] plate¦s = : - (pressed|active) {weighted pressure plate} weighted [pressure] plate¦s = :1 - (unpressed|inactive) {weighted pressure plate} weighted [pressure] plate¦s = :0 - - piston base¦s = 33 - sticky piston base¦s = 29 - any piston base¦s = 33, 29 - # - piston extension¦s = 34:0-5 - sticky piston extension¦s = 34:8-13 - any piston extension¦s = 34 - # - piston¦s = piston base, piston extension - piston (item|block)¦s = piston base - sticky piston¦s = sticky piston base, sticky piston extension - sticky piston (item|block)¦s = sticky piston base - any piston¦s = 29, 33, 34 - # - extended piston base¦s = 33:8-13 - extended sticky piston base¦s = 29:8-13 - any extended piston base¦s = extended piston base, extended sticky piston base - # - extended piston¦s = extended piston base, piston extension - extended sticky piston¦s = extended sticky piston base, sticky piston extension - any extended piston¦s = any extended piston base, any piston extension - # - retracted piston¦s = 33:0-5 - retracted sticky piston¦s = 29:0-5 - any retracted piston¦s = retracted piston, retracted sticky piston - - redstone lamp¦s = 123, 124 - (inactive|unpowered|unlit) restone lamp¦s = 123 - restone lamp¦ off¦s off = 123 - (active|glowing|powered|lit) redstone lamp¦s = 124 - redstone lamp¦ on¦s on = 124 - - redstone comparator¦s = 149, 150 - redstone comparator block¦s = 149 - redstone comparator item¦s = 404 - (inactive|unpowered) redstone comparator¦s = 149 - (active|powered) redstone comparator¦s = 150 - - daylight sensor¦s = 151 - - redstone block¦s = 152 - block¦¦s¦ of redstone = 152 - - hopper¦s = 154 - - dropper¦s = 158 - - - # -- snow & ice -- - snow layer¦s = 78 - ice [block¦s] @an = 79 - snow [block¦s] = 80 - - - # -- cactus -- - cact¦us¦i = 81 - cactuses = 81 - - - # -- clay block: see bricks -- - - - # -- sugar cane -- - [sugar] cane¦s = 83, 338 - [sugar] cane block¦s = 83 - [sugar] cane item¦s = 338 - - - # -- jukebox -- - jukebox¦es = 84 - - - # -- fence -- - fence¦s = 85 - - - # -- pumpkin & lack-o-lantern: see vegetation - - - # -- nether stuff -- - netherrack¦s = 87 - soul[ ]sand¦s = 88 - glowstone¦s = 89 - [nether] portal¦s = 90 - - - # -- cake -- - cake¦s = 92, 354 - cake block¦s = 92 - cake item¦s = 354 - - - # -- redstone repeater: see redstone - - - # -- locked chest -- - locked chest¦s = 95 - - - # -- trapdoor: see doors - - - # -- hidden silverfish -- - silverfish block¦s = 97:0-2 - hidden silverfish¦es = 97:0-2 - [hidden] [smooth] stone silverfish¦es = 97:0 - [hidden] cobble[stone] silverfish¦es = 97:1 - [hidden] stone brick[s] silverfish¦es = 97:2 - - - # -- stone bricks -- - stone brick¦s = 98:0-3 - stone brick¦s = 98:0-3 - stone brick[s] (item|block)¦s = 98:0 - smooth [stone] brick¦s = 98:0 - mossy [stone] brick¦s = 98:1 - cracked [stone] brick¦s = 98:2 - (circle|fancy|decorated) [stone] brick¦s = 98:3 - - - # -- huge mushrooms: see vegetation - - - # -- iron bars -- - [iron] bars @x = 101 - - - # -- glass pane: see glass - - - # -- melon, stems & vines: see vegetation - - - # -- fence gate: see doors - - - # -- brick & stone brick stairs: see stairs - - - # -- mycelium -- - mycelium = 110 - mushroom (floor|ground|grass) = 110 - - - # -- lily pad: see vegetation - - - # -- nether brick stuff -- - nether brick¦s = 112, 405 - nether brick block¦s = 112 - nether brick item¦s = 405 - nether [brick[s]] fence¦s = 113 - # nether brick stairs: see stairs - - - # -- nether wart: see vegetation - - - # -- enchantment table -- - enchantment table¦s = 116 - - - # -- brewing stand -- - brewing stand¦s = 117, 379 - brewing stand block¦s = 117 - brewing stand item¦s = 379 - empty brewing stand¦s @an = 117:0 - full brewing stand¦s = 117:7 - - - # -- cauldron -- - cauldron¦s = 118, 380 - cauldron block¦s = 118 - cauldron item¦s = 380 - empty cauldron¦s @an = 118:0 - full cauldron¦s = 118:3 - - - # -- End stuff -- - end[er] portal¦s @an = 119 - - end[er] portal frame¦s @an = 120 - empty end[er] portal frame¦s @an = 120:0-3 - filled end[er] portal frame¦s = 120:4-7 - end[er] stone¦s @an = 121 - - dragon egg¦s = 122 - ender[ ]dragon egg¦s @an = 122 - - - # -- redstone lamp: see redstone - - - # -- emerald ore/block: see ores - - - # -- ender chest: see chest - - - # -- tripwire & hook - tripwire¦s = 132 - [tripwire] hook¦s = 131 - - - # -- wooden stairs: see stairs - - - # -- command block -- - command block¦s = 137 - - - # -- beacon -- - beacon¦s = 138 - - - # -- cobblestone walls -- - cobble[stone] wall¦s = 139:0-1 - cobble[stone] wall (item|block)¦s = 139:0 - (normal|regular) cobble[stone] wall¦s = 139:0 - moss[y] cobble[stone] wall¦s = 139:1 - - - # -- flower pot, carrots, potatoes: see vegetation -- - - - # -- wooden button: see redstone -- - - - # -- mob head -- - {mob head direction}: - floor = :1 - wall = :2-5 - {mob head type}: - skeleton = :0 - wither skeleton = :1 - zombie = :2 - (human|player) = :3 - creeper = :4 - {mob head type} [mob] head[ item]¦s = 397 - {mob head direction} [mob] head[ block]¦s = 144 - [mob] head¦s = 144, 397 - - - # -- anvil -- - {anvil}: - (regular|complete) @a = :0-1 - undamaged @an = :0-1 - [slightly] damaged @a = :4-5 - (very|heavily|severely) damaged @a = :8-9 - {anvil} anvil¦s @an = 145 - - - # -- trapped chest: see chest - - - # -- weighted pressure plates, redstone comparator, daylight sensor, redstone block: see redstone - - - # -- nether quarz ore, quarz block -- - [nether] quartz ore = 153 - {quartz block}: - (normal|regular) = :0 - chiseled = :1 - pillar = :2-3 - vertical pillar = :2 - horizontal pillar = :3-4 - ns pillas = :3 - ew pillar = :4 - {quartz block} [nether] quartz = 155 - {quartz block} [nether] quartz block¦s = 155 - pillar [nether] quartz (block|item) = 155:2 - [nether] quartz = 155, 406 - [nether] quartz item¦s = 406 - # quarz stairs: see stairs - - - # -- hopper: see redstone - - - # -- activator rail: see rails - - - # -- dropper: see redstone - - - # -- stained clay: see clay - - - # -- hay block -- - (hay|wheat) block¦s = 170 - block¦¦s¦ of (hay|wheat) = 170 - - - # -- carpet: see wool - - - # -- hardened clay: see clay - - - # -- block of coal: see coal - - - - - - - - # ====== Items ====== - - # -- flint and steel -- - flint and steel¦s = 259 - flint'n'steel¦s = 259 - - - # -- apples -- - apple¦s = 260, 322:0-1 - apple¦s @an = 260 - red apple¦s = 260 - golden apple¦s = 322:0-1 - golden apple item¦s = 322:0 - enchanted golden apple¦s @an = 322:1 - - - # -- bow & arrow -- - bow¦s = 261 - arrow¦s = 262 - - - # -- coal -- - coal = 263:0-1 - charcoal = 263:1 - coal = 263:0, 173 - coal = 263:0 - coal = 173 - block¦¦s¦ of coal = 173 - - - # -- diamond & ingots -- - diamond¦s = 264 - iron (ingot|bar)¦s @an = 265 - gold[en] (ingot|bar)¦s = 266 - ingot¦s @an = 265, 266 - - - # -- tools -- - sword¦s = 267, 268, 272, 276, 283 - pick[axe]¦s = 270, 274, 257, 278, 285 - axe¦s @an = 271, 275, 258, 279, 286 - shovel¦s = 269, 273, 256, 277, 284 - spade¦s = shovel - hoe¦s = 290, 291, 292, 293, 294 - - wood[en] tool¦s = 268, 269, 270, 271, 290 - stone tool¦s = 272, 273, 274, 275, 291 - iron tool¦s @an = 256, 257, 258, 267, 292 - diamond tool¦s = 276, 277, 278, 279, 293 - gold[en] tool¦s = 283, 284, 285, 286, 294 - - wood[en] sword¦s = 268 - wood[en] (shovel|spade)¦s = 269 - wood[en] pick[axe]¦s = 270 - wood[en] axe¦s = 271 - wood[en] hoe¦s = 290 - - stone sword¦s = 272 - stone (shovel|spade)¦s = 273 - stone pick[axe]¦s = 274 - stone axe¦s = 275 - stone hoe¦s = 291 - - iron sword¦s @an = 267 - iron (shovel|spade)¦s @an = 256 - iron pick[axe]¦s @an = 257 - iron axe¦s @an = 258 - iron hoe¦s @an = 292 - - diamond sword¦s = 276 - diamond (shovel|spade)¦s = 277 - diamond pick[axe]¦s = 278 - diamond axe¦s = 279 - diamond hoe¦s = 293 - - gold[en] sword¦s = 283 - gold[en] (shovel|spade)¦s = 284 - gold[en] pick[axe]¦s = 285 - gold[en] axe¦s = 286 - gold[en] hoe¦s = 294 - - - # -- stick -- - stick¦s = 280 - - - # -- bowl & stew -- - bowl¦s = 281 - empty bowl¦s @an = 281 - [mushroom] (stew|soup)¦s = 282 - - - # -- string -- - string¦s = 287 - - - # -- feather -- - feather¦s = 288 - - - # -- gunpowder -- - gunpowder = 289 - sulphur = 289 - - - # -- wheat & seeds: see crops / wheat - bread¦s = 297 - - - # -- armour -- - helmet¦s = 298, 302, 306, 310, 314 - chestplate¦s = 299, 303, 307, 311, 315 - leg[ging]s @x = 300, 304, 308, 312, 316 - boots @x = 301, 305, 309, 313, 317 - - leather armo[u]r¦s = 298, 299, 300, 301 - chain[mail] armo[u]r¦s = 302, 303, 304, 305 - iron armo[u]r¦s = 306, 307, 308, 309 - diamond armo[u]r¦s = 310, 311, 312, 313 - gold armo[u]r¦s = 314, 315, 316, 317 - - leather (cap|helmet)¦s = 298 - leather (tunic|chest[plate])¦s = 299 - leather (pants|leg[ging]s) @x = 300 - leather boots @x = 301 - - chain[mail] helmet¦s = 302 - chain[mail] chestplate¦s = 303 - chain[mail] leggings @x = 304 - chain[mail] boots @x = 305 - - iron helmet¦s @an = 306 - iron chest[plate]¦s @an = 307 - iron leg[ging]s @x = 308 - iron boots @x = 309 - - diamond helmet¦s = 310 - diamond chest[plate]¦s = 311 - diamond leg[ging]s @x = 312 - diamond boots @x = 313 - - gold[en] helmet¦s = 314 - gold[en] chest[plate]¦s = 315 - gold[en] leg[ging]s @x = 316 - gold[en] boots @x = 317 - - - # -- flint -- - flint¦s = 318 - - - # -- porkchop -- - [] pork[chop]¦s = 319, 320 - pork[chop] item¦s = 319 - raw pork[chop]¦s = 319 - (cooked|grilled) pork[chop]¦s = 320 - - - # -- painting -- - painting¦s = 321 - painting item¦s = 321 - - - # -- golden apple: see apples - - - # sign: see signs - - - # wooden door: see doors - - - # -- buckets -- - [empty] bucket¦s = 325 - water bucket¦s = 326 - bucket¦¦s¦ of water = 326 - lava bucket¦s = 327 - bucket¦¦s¦ of lava = 327 - milk [bucket¦s] = 335 - bucket¦¦s¦ of milk = 335 - - - # -- minecarts -- - [] minecart¦s = 328, 342, 343 - minecart item¦s = 328 - storage minecart¦s = 342 - minecart¦¦s¦ with chest = 342 - powered minecart¦s = 343 - minecart¦¦s¦ with furnace = 343 - minecart¦¦s¦ with TNT = 407 - minecart¦¦s¦ with hopper = 408 - - - # -- saddle -- - saddle¦s = 329 - - - # -- iron door: see doors - - - # -- redstone dust -- - redstone = 331 - redstone dust = 331 - - - # -- snowball -- - snowball¦s = 332 - - - # -- boat -- - boat¦s = 333 - - - # -- leather -- - leather = 334 - - - # -- milk: see buckets - - - # -- clay & clay brick: see bricks -- - - - # -- sugar cane: see sugar cane block - - - # -- paper & books -- - paper = 339 - book¦s = 340 - book¦¦s¦ (and|with) quill = 386 - written book¦s = 387 - - - # -- slimeball -- - slime[ball¦s] = 341 - - - # minecart with chest/furnace: see minecarts - - - # -- [chicken] egg -- - egg¦s @an = 344 - chicken egg¦s = 344 - - - # -- compass -- - compass¦es = 345 - - - # -- fishing rod -- - fishing rod¦s = 346 - - - # -- clock -- - clock¦s = 347 - - - # -- glowstone dust -- - glowstone dust = 348 - - - # -- fish -- - [] fish¦es = 349, 350 - fish item¦s = 349 - raw fish¦es = 349 - cooked fish¦es = 350 - - - # -- dyes: see wool & dyes - - - # -- bone -- - bone¦s = 352 - - - # -- sugar -- - sugar = 353 - - - # -- cake: see cake block - - - # -- bed: see bed block - - - # -- redstone repeater: see redstone - - - # -- cookie -- - cookie¦s = 357 - - - # -- map -- - map¦s = 358 - map¦s = 358:0-32767 - empty map¦s @an = 395 - # You can get a specific map with map:#, e.g. map:0 for map_0 (the first map crafted) - # (The maximum map number is 65536, but Skript currently only supports numbers up to 32767) - - - # -- shears -- - shears = 359 - - - # -- melon slice, pumpkin seeds & melon seeds: see vegetation - - - # -- beef -- - [] beef = 363, 364 - beef item¦s = 363, 364 - [raw] beef = 363 - steak¦s = 364 - cooked beef = 364 - - - # -- chicken -- - [] chicken¦s = 365, 366 - chicken item¦s = 365 - raw chicken¦s = 365 - cooked chicken¦s = 366 - - - # -- rotten flesh -- - rotten flesh = 367 - - - # -- ender pearl -- - ender pearl¦s @an = 368 - - - # -- blaze rod -- - blaze rod¦s = 369 - - - # -- ghast tear -- - ghast tear¦s = 370 - - - # -- gold nugget -- - gold nugget¦s = 371 - - - # -- nether wart: see vegetation - - - # -- potions & bottles -- - [glass] bottle¦s = 374 - vial¦s = 374 - water bottle¦s = 373:0 - bottle¦¦s¦ of water = 373:0 - - awkward potion¦s @an = 373:16 - - {splash potion}: - {default} = :0-16383 - non-splash = :0-16383 - splash = :16384-32767 - {splash potion no default}: - non-splash = :0-16383 - splash = :16384-32767 - - {extended potion}: - {default} = :0-63, :16384-16447 - unextended @an = :0-63, :16384-16447 - non-extended = :0-63, :16384-16447 - extended @an = :64-127, :16448-16511 - {extended potion no default}: - unextended @an = :0-63, :16384-16447 - non-extended = :0-63, :16384-16447 - extended @an = :64-127, :16448-16511 - - {potion tier}: - {default} = :0-31, :64-95, :16384-16415, :16448-16479 - (1|I) = :0-31, :64-95, :16384-16415, :16448-16479 - (2|II) = :32-63, :96-127, :16416-16447, :16480-16511 - {potion tier no default}: - (1|I) = :0-31, :64-95, :16384-16415, :16448-16479 - (2|II) = :32-63, :96-127, :16416-16447, :16480-16511 - - {potion effect}: - Regeneration = :1, :33, :65, :97, :16385, :16417, :16449, :16481 - (Swiftness|Speed) = :2, :34, :66, :98, :16386, :16418, :16450, :16482 - Fire Resistance = :3, :35, :67, :99, :16387, :16419, :16451, :16483 - Poison = :4, :36, :68, :100, :16388, :16420, :16452, :16484 - (Healing|[Instant] Health) = :5, :53, :69, :101, :16389, :16421, :16453, :16485 - Night Vision = :6, :38, :70, :102, :16390, :16422, :16454, :16486 - Weakness = :8, :40, :72, :104, :16392, :16424, :16456, :16488 - Strength = :9, :41, :73, :105, :16393, :16425, :16457, :16489 - Slowness = :10, :42, :74, :106, :16394, :16426, :16458, :16490 - (Harming|[Instant] Damage) = :12, :44, :76, :108, :16396, :16428, :16460, :16492 - Invisibility = :14, :46, :78, :110, :16398, :16430, :16462, :16494 - - {extended potion no default} {splash potion no default} potion¦¦s¦ [of {potion effect} {potion tier no default}] = 373 - {extended potion} {splash potion} potion¦¦s¦ [of {potion effect} {potion tier}] item = 373 - {extended potion no default} {splash potion no default} {potion effect} potion¦¦s¦ {potion tier no default} = 373 - {extended potion} {splash potion} {potion effect} potion {potion tier} item¦s = 373 - - - # -- spider eye & fermented spider eye -- - spider eye¦s = 375 - fermented spider eye¦s = 376 - - - # -- blaze powder -- - blaze powder = 377 - - - # -- magma cream -- - magma cream¦s = 378 - - - # -- eye of ender -- - eye¦¦s¦ of ender @an = 381 - - - # -- glistering melon -- - glistering melon¦s = 382 - - - # -- spawn egg -- - {entity type}: - experience orb @an = :2 - xp orb = :2 - TNT = :20 - minecart = :40 # < MC 1.5 - boat = :41 - minecart = :42 - minecart with chest = :43 - minecart with furnace = :44 - minecart with TNT = :45 - minecart with hopper = :46 - minecart with spawner = :47 - creeper = :50 - skeleton = :51 - spider = :52 - giant = :53 - zombie = :54 - slime = :55 - ghast = :56 - zombie pigman = :57 - pig[ ]zombie = :57 - enderman @an = :58 - cave spider = :59 - silverfish = :60 - blaze = :61 - magma cube = :62 - ender dragon @an = :63 - wither = :64 - witch = :66 - bat = :65 - pig = :90 - sheep = :91 - cow = :92 - chicken = :93 - squid = :94 - wolf = :95 - mooshroom = :96 - snow golem = :97 - ocelot @an = :98 - iron golem @an = :99 - horse = :100 - villager = :120 - ender crystal = :200 - - {entity type} spawn egg¦s = 383 - random spawn egg¦s = 383:50-52, 383:54-62, 383:65-66, 383:90-96, 383:98, 383:100, 383:120 # only working eggs - - - # -- bottle o' enchanting -- - bottle¦¦s¦ (o'|of) enchanting = 384 - (xp|exp[erience]) bottle¦s @an = 384 - - - # -- fire charge -- - fire charge¦s = 385 - - - # -- book and quill, written book: see book - - - # -- emerald -- - emerald¦s = 388 - - - # -- item frame -- - item frame¦s = 389 - - - # -- flower pot: see vegetation -- - - - # -- carrot, potatoes: see vegetation -- - - - # -- empty map: see map -- - - - # -- golden carrot: see vegetation -- - - - # -- mob head: see mob head block -- - - - # -- carrot on a stick: see vegetation -- - - - # -- nether star -- - nether star¦s = 399 - - - # -- pumpkin pie: see vegetation -- - - - # -- Fireworks -- - firework rocket¦s = 401 - firework star¦s = 402 - - - # -- Enchanted Book -- - enchanted book¦s @an = 403 - - - # -- redstone comparator: see redstone - - - # -- nether brick item: see nether brick stuff - - - # -- nether quarz: see nether quarz block - - - # -- minecart with TNT/hopper: see minecarts - - - # -- horse armour -- - iron horse armo[u]r¦s = 417 - gold horse armo[u]r¦s = 418 - diamond horse armo[u]r¦s = 419 - - - # -- lead -- - lead¦s = 420 - - - # -- name tag -- - name tag¦s = 421 - - - # -- music discs -- - music disc¦s = 2256, 2257, 2258, 2259, 2260, 2261, 2262, 2263, 2264, 2265, 2266, 2267 - record¦s = music disc - gold [music] disc¦s = 2256 - 13-disc¦s = 2256 - green [music] disc¦s = 2257 - cat [music] disc¦s = 2257 - blocks [music] disc¦s = 2258 - chirp [music] disc¦s = 2259 - far [music] disc¦s = 2260 - mall [music] disc¦s = 2261 - mellohi [music] disc¦s = 2262 - stal [music] disc¦s = 2263 - strad [music] disc¦s = 2264 - ward [music] disc¦s = 2265 - 11-disc¦s = 2266 - wait [music] disc¦s = 2267 diff --git a/Obam-Testing/broadcast.sk b/Obam-Testing/broadcast.sk deleted file mode 100644 index 593d015..0000000 --- a/Obam-Testing/broadcast.sk +++ /dev/null @@ -1,4 +0,0 @@ -command /broadcast : - permission: obam.admin - trigger: - broadcast argument \ No newline at end of file diff --git a/Obam-Testing/effect.sk b/Obam-Testing/effect.sk deleted file mode 100644 index a66a2d6..0000000 --- a/Obam-Testing/effect.sk +++ /dev/null @@ -1,138 +0,0 @@ -command /effect [] [] []: - permission: obam.admin - trigger: - - argument 1 is not set: - send "1 ... hugeexplosion" - send "2 ... largeexplode" - send "3 ... bubble" - send "4 ... suspended" - send "5 ... depthsuspend" - send "6 ... townaura" - send "7 ... crit" - send "8 ... magicCrit" - send "9 ... smoke" - send "10 ... mobSpell" - send "11 ... mobSpellAmbient" - send "12 ... instantSpellAmbient" - send "13 ... witchMagic" - send "14 ... note" - send "15 ... portal" - send "16 ... enchantmenttable" - send "17 ... explode" - send "18 ... flame" - send "19 ... lava" - send "20 ... footstep" - send "21 ... splash" - send "22 ... largesmoke" - send "23 ... cloud" - send "24 ... reddust" - send "25 ... snowballpoof" - send "26 ... dripWater" - send "27 ... dripLava" - send "28 ... snowshovel" - send "29 ... slime" - send "30 ... heart" - send "31 ... angryVillager" - send "32 ... happyVillager" - send "33 ... redust?" - - argument 1 is set: - argument 1 is 1: - set {_effect} to "hugeexplosion" - argument 1 is 2: - set {_effect} to "largeexplod" - argument 1 is 3: - set {_effect} to "bubble" - argument 1 is 4: - set {_effect} to "suspended" - argument 1 is 5: - set {_effect} to "depthsuspend" - argument 1 is 6: - set {_effect} to "townaura" - argument 1 is 7: - set {_effect} to "crit" - argument 1 is 8: - set {_effect} to "magicCrit" - argument 1 is 9: - set {_effect} to "smoke" - argument 1 is 10: - set {_effect} to "mobSpell" - argument 1 is 11: - set {_effect} to "mobSpellAmbient" - argument 1 is 12: - set {_effect} to "isntantSpellAmbient" - argument 1 is 13: - set {_effect} to "witchMagic" - argument 1 is 14: - set {_effect} to "note" - argument 1 is 15: - set {_effect} to "portal" - argument 1 is 16: - set {_effect} to "enchantmenttable" - argument 1 is 17: - set {_effect} to "explode" - argument 1 is 18: - set {_effect} to "flame" - argument 1 is 19: - set {_effect} to "lava" - argument 1 is 20: - set {_effect} to "footstep" - argument 1 is 21: - set {_effect} to "splash" - argument 1 is 22: - set {_effect} to "largesmoke" - argument 1 is 23: - set {_effect} to "cloud" - argument 1 is 24: - set {_effect} to "reddust" - argument 1 is 25: - set {_effect} to "snowballpoof" - argument 1 is 26: - set {_effect} to "dripWater" - argument 1 is 27: - set {_effect} to "dripLava" - argument 1 is 28: - set {_effect} to "snowshovel" - argument 1 is 29: - set {_effect} to "slime" - argument 1 is 30: - set {_effect} to "heart" - argument 1 is 31: - set {_effect} to "angryVillager" - argument 1 is 32: - set {_effect} to "happyVillager" - argument 1 is 33: - set {_loc} to block above player's head - play argument 2 of effect "blockcrack_152_0" with data argument 3 at location of player - stop - - set {_location} to block above player - - play argument 2 of effect {_effect} with data argument 3 at {_location} - -command /lighton: - permission: obam.admin - trigger: - {light.%player%} is not set: - set {light.%player%} to false - {light.%player%} is false: - set {light.%player%} to true - send "&aLights on" - stop - {light.%player%} is true: - set {light.%player%} to false - send "&cLights off" - make player see {light.%player%.lastblock} as {light.%player%.lastblock} - clear {light.%player%.lastblock} - loop {light.%player%::*}: - make player see loop-value as loop-value - stop - -every 3 seconds: - loop all players: - {light.%loop-player%} is true: - set {_loc} to location of player - make loop-player see block below loop-player as torch - wait 2.8 seconds - make loop-player see block below loop-player as torch \ No newline at end of file diff --git a/Obam-Testing/modbridge.sk b/Obam-Testing/modbridge.sk deleted file mode 100644 index da3ae18..0000000 --- a/Obam-Testing/modbridge.sk +++ /dev/null @@ -1,13 +0,0 @@ -command /modpush : - trigger: - forward command "/modcatch %argument%" to console -command /modcatch : - permission: obam.admin - trigger: - - wait 1 tick - broadcast "Mod Command" - loop all players: - {db_channel.staff::%loop-player%} is set: - - send argument to loop-player \ No newline at end of file diff --git a/Obam-Testing/schat2.sk b/Obam-Testing/schat2.sk deleted file mode 100644 index 2af594a..0000000 --- a/Obam-Testing/schat2.sk +++ /dev/null @@ -1,187 +0,0 @@ -options: - p: &c[W] - - - -on join: - {db_global.%player%} is not set: - set {db_global.%player%} to true - {db_global.%player%} is true: - set {db_channel.global::%player%} to player - set {db_channel.%player%} to "global" - player does not have permission "obam.supporter": - delete {db_channel.supporter::%player%} - player does not have permission "obam.mod": - delete {db_channel.supporter::%player%} - {db_channel.sup.%player%} is not set: - player has permission "obam.supporter" - set {db_channel.sup.%player%} to true - {db_channel.sup.%player%} is true: - set {db_channel.supporter::%player%} to player - {db_channel.staff.%player%} is not set: - player has permission "obam.mod" - set {db_channel.staff.%player%} to player - {db_channel.staff.%player%} is true: - set {db_channel.supporter::%player%} to player - -on chat: - cancel event - player is "IcecreamCow" or "Electric_Hamster" or "ISMOOCH": - - set {_pre} to "{@p} &d[A] %player%" - {_pre} is not set: - player has permission "obam.mod": - set {_pre} to "{@p} &2[M] %player%" - {_pre} is not set: - player has permission "obam.ultimate": - set {_pre} to "{@p} &6[^] %player%" - {_pre} is not set: - player has permission "obam.plus": - set {_pre} to "{@p} &b[+] %player%" - {_pre} is not set: - set {_pre} to "{@p} %player%" - player is "BruSwain": - set {_pre} to "{@p} &6[^] %player%" - - {db_channel.%player%} is "staff": - player does not have permission "obam.mod": - set {db_channel.%player%} to "global" - delete {db_channel.staff::%player%} - {db_channel.%player%} is "staff": - loop {db_channel.staff::*}: - clear {_player} - - set {_player} to loop-index parsed as player - set message to "&2%message%" - set {_message} to "%{_pre}%&2: %message%" - - send "%{_message}%" to {_player} - - execute console command "/modpush %{_pre}%&2: %message%" - - - {db_channel.%player%} is "supporter": - player does not have permission "obam.supporter": - set {db_channel.%player%} to "global" - delete {db_channel.supporter::%player%} - {db_channel.%player%} is "supporter": - loop {db_channel.supporter::*}: - clear {_player} - set {_player} to loop-index parsed as player - set message to "&b%message%" - set {_message} to "%{_pre}%&b: %message%" - - send "%{_message}%" to {_player} - - execute console command "/supporterpush %{_message}%" - - - stop - - {db_channel.%player%} is "global": - loop {db_channel.global::*}: - clear {_player} - set {_player} to loop-index parsed as player - - send "%{_pre}%&f: %message%" to {_player} - - - execute console command "globalpush %{_pre}%&f: %message%" - - stop - - - - -command /chat [] []: - permission: obam.free - aliases: c, ch - trigger: - - argument 1 is "m" or "mod": - player does not have permission "obam.mod": - send "&cYou dont have permission to do this!" - stop - set {db_channel.%player%} to "staff" - send "&aYou are now chatting in the &2Mod&a channel!" - stop - argument 1 is "s" or "supporter": - player does not have permission "obam.supporter": - send "&cYou dont have permission to do this!" - stop - set {db_channel.%player%} to "supporter" - send "&aYou are now chatting in the &bSupporter&a channel!" - - argument 1 is "g" or "global": - set {db_channel.%player%} to "global" - send "&aYou are now chatting in the &fGlobal&a channel!" - - argument 1 is "l" or "leave": - argument 2 is not set: - send "&cPlease specify a channel: &e/chat leave " - stop - argument 2 is "mod" or "m": - send "&cYou can not leave the staff chat silly" - stop - argument 2 is "s" or "supporter": - send "&cYou are now leaving the &bSupporter&c chat!" - delete {db_channel.supporter::%player%} - stop - argument 2 is "g" or "global": - send "&cYou are now leaving the &fGlobal&c chat!" - delete {db_channel.global::%player%} - stop - argument 1 is "j" or "join": - argument 2 is not set: - send "&cPlease specify a channel: &e/chat join " - stop - argument 2 is "mod" or "m": - player does not have permission "obam.mod": - send "&cYou do not have permission to do this!" - stop - {db_channel.staff::%player%} is set: - send "&cYou are already in this channel!" - send "&cIf you believe this is an error, please report it!" - stop - set {db_channel.staff::%player%} to player - set {db_channel.%player%} to "staff" - send "&aYou are now in the &2Mod&a channel!" - stop - - argument 2 is "s" or "supporter": - player does not have permission "obam.supporter": - send "&cYou do not have permission to do this!" - stop - {db_channel.supporter::%player%} is set: - send "&cYou are already in this channel!" - send "&cIf you believe this is an error, please report it!" - stop - set {db_channel.supporter::%player%} to player - set {db_channel.%player%} to "supporter" - send "&aYou are now in the &bSupporter&a channel!" - stop - - argument 2 is "g" or "global": - {db_channel.global::%player%} is set: - send "&cYou are already in this channel!" - send "&cIf you believe this is an error, please report it!" - stop - set {db_channel.global::%player%} to player - set {db_channel.%player%} to "global" - send "&aYou are now in the &fGlobal&a channel!" - - argument 1 is "who": - argument 2 is not set: - loop {db_channel.%{db_channel.%player%}%::*}: - send "%loop-index%" - - - - - - - - - - - \ No newline at end of file diff --git a/Obam-Testing/schatbridge.sk b/Obam-Testing/schatbridge.sk deleted file mode 100644 index 7c8c184..0000000 --- a/Obam-Testing/schatbridge.sk +++ /dev/null @@ -1,18 +0,0 @@ - - - - -command /globalpush : - permission: obam.admin - trigger: - forward command "globalcatch %argument%" to console -command /globalcatch : - permission: obam.admin - trigger: - - loop {db_channel.global::*}: - clear {_player} - set {_player} to loop-index parsed as player - send argument to {_player} - - stop \ No newline at end of file diff --git a/Obam-Testing/tellchat.sk b/Obam-Testing/tellchat.sk deleted file mode 100644 index d35e3b5..0000000 --- a/Obam-Testing/tellchat.sk +++ /dev/null @@ -1,45 +0,0 @@ -command /msg [] []: - permission: obam.free - aliases: @ - trigger: - argument 1 is set: - argument 1 is player: - send "&cWhy would you talk to yourself? Are you crazy!?!?!" to player - stop - argument 2 is not set: - send "&dYou have started a conversation with &e%argument 1%" to player - set {message.%player%} to argument 1 - argument 2 is set: - send "&d%player%&l ⇉ &r&d%argument 1%: %argument 2%" to argument 1 - send "&d%player%&l ⇉ &r&d%argument 1%: %argument 2%" to player - set {reply.%argument 1%} to player - - argument 1 is not set: - {message.%player%} is not set: - send "&cYou are not in a private conversation!" to player - {message.%player%} is set: - send "&aYou have left your conversation." to player - clear {message.%player%} - - -on chat: - {message.%player%} is set: - cancel event - send "&d%player%&l ⇉ &r&d%{message.%player%}%: %message%" to {message.%player%} - send "&d%player%&l ⇉ &r&d%{message.%player%}%: %message%" to player - set {reply.%{message.%player%}%} to player - -command /reply : - permission: obam.free - aliases: /r, @@ - trigger: - {reply.%player%} is not set: - send "&cYou have no one to reply to!" to player - stop - argument 1 is not set: - send "&cYou can not reply with nothing!" - stop - send "&d%player%&l ⇉ &r&d%{reply.%player%}%: %argument%" to {reply.%player%} - send "&d%player%&l ⇉ &r&d%{reply.%player%}%: %argument%" to player - - \ No newline at end of file diff --git a/Obam-Testing/tma.sk b/Obam-Testing/tma.sk deleted file mode 100644 index 8c0a934..0000000 --- a/Obam-Testing/tma.sk +++ /dev/null @@ -1,350 +0,0 @@ - - -on script load: - clear {tma.spawns::*} - add creeper to {tma.spawns::*} - add witch to {tma.spawns::*} - add zombie to {tma.spawns::*} - add skeleton to {tma.spawns::*} - add zombie pigman to {tma.spawns::*} - add cave spider to {tma.spawns::*} - add magma cube to {tma.spawns::*} - add blaze to {tma.spawns::*} - - - -command /tma [] [] []: - permission: obam.admin - trigger: - world is not "TMA": - send "&cYou are not in the right world to do this" - stop - - argument 1 is not set: - - send "&a=================================" - send "&6 OBAMCraft " - send "&6 TMA " - send "&a=================================" - send " " - send "&e/tma addspawn " - send "&7Add your current location to the spawn list for that team" - send " " - send "&e/tma listspawn " - send "&7List the current spawn locations for a specified team" - send " " - send "&e/tma delspawn " - send "&7Deleted specified spawn location" - send " " - send "&e/tma addteam " - send "&7Add a team to the list of teams" - send " " - send "&e/tma listteam" - send "&7List the current teams" - send " " - send "&e/tma delteam " - send "&7Delete the selected team from the team list" - send " " - send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" - stop - - argument 1 is "help": - argument 2 is not set: - - send "&a=================================" - send "&6 OBAMCraft " - send "&6 TMA " - send "&a=================================" - send " " - send "&e/tma addspawn " - send "&7Add your current location to the spawn list for that team" - send " " - send "&e/tma listspawn " - send "&7List the current spawn locations for a specified team" - send " " - send "&e/tma delspawn " - send "&7Deleted specified spawn location" - send " " - send "&e/tma addteam " - send "&7Add a team to the list of teams" - send " " - send "&e/tma listteam" - send "&7List the current teams" - send " " - send "&e/tma delteam " - send "&7Delete the selected team from the team list" - send " " - send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" - stop - argument 2 is "1": - send "&a=================================" - send "&6 OBAMCraft " - send "&6 TMA " - send "&a=================================" - send " " - send "&e/tma addspawn " - send "&7Add your current location to the spawn list for that team" - send " " - send "&e/tma listspawn " - send "&7List the current spawn locations for a specified team" - send " " - send "&e/tma delspawn " - send "&7Deleted specified spawn location" - send " " - send "&e/tma addteam " - send "&7Add a team to the list of teams" - send " " - send "&e/tma listteam" - send "&7List the current teams" - send " " - send "&e/tma delteam " - send "&7Delete the selected team from the team list" - send " " - send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" - stop - - argument 2 is "2": - send "&a=================================" - send "&6 OBAMCraft " - send "&6 TMA " - send "&a=================================" - send " " - send "&e/tma spawnwave " - send "&7Spawns a wave, at wave number listed" - send " " - send "&e/tma help " - send "&7List this help menu at specified page number" - send " " - send "&e/tma begin" - send "&7Begin a TMA game(not live yet)" - send " " - send "&e/tma activeadd " - send "&7Add a team to the active list" - send " " - send "&e/tma activelist" - send "&7List all active teams" - send " " - send "&e/tma activedel " - send "&7Remove a team from the active list" - send " " - send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" - stop - - - argument 1 is "addspawn": - argument 2 is not set: - send "&cYou must select a team: &e/tma addspawn " - stop - {tma.teams::%argument 2%} is not set: - send "&cThis is not a valid team!" - send "&cPlease do &e/tma teamlist&c for a list of available teams." - stop - add location of player to {tma.%argument 2%.spawn::*} - send "&e%location of player% &a is added to &e%argument 2%'s&a spawn list" - - argument 1 is "listspawn": - argument 2 is not set: - send "&cYou must select a team: &e/tma listspawn " - stop - {tma.teams::%argument 2%} is not set: - send "&cThis is not a valid team!" - send "&cPlease do &e/tma teamlist&c for a list of available teams." - loop {tma.%argument 2%.spawn::*}: - {_loop.count} is not set: - set {_loop.count} to 0 - add 1 to {_loop.count} - send "%loop-index%.....%loop-value%" - - argument 1 is "delspawn": - argument 2 is not set: - send "&cYou must select a team: &e/tma delspawn " - stop - argument 3 is not set: - send "&cYou must select a point: &e/tma delspawn %argument 2% " - stop - {tma.teams::%argument 2%} is not set: - send "&cThis is not a valid team!" - send "&cPlease do &e/tma teamlist&c for a list of available teams." - {tma.%argument 2%.spawn::%argument 3%} is not set: - send "&c%argument 3% is not a point in team %argument 2%" - send "&cPlease use &e/tma listspawn %argument 2%&a to find the available points" - stop - - send "&cDeleteing &e%{tma.%argument 2%.spawn::%argument 3%}% &ain &e%argument 2%&a..." - delete {tma.%argument 2%.spawn::%argument 3%} - {tma.%argument 2%.spawn::%argument 3%} is set: - send "&cAn error occurred" - stop - send "&aDeleted!" - - argument 1 is "addteam": - argument 2 is not set: - send "&cPlease specify a team: &e/tma addteam " - stop - set {tma.teams::%argument 2%} to true - send "&e%argument 2%&a added successfully to Teams!" - - argument 1 is "listteam": - loop {tma.teams::*}: - send "%loop-index%" - - argument 1 is "delteam": - argument 2 is not set: - send "&cPlease specify a team: &e/tma delteam " - stop - {tma.teams::%argument 2%} is not set: - send "&cThis team does not exist!" - send "&cPlease use &e/tma listteam&a for a list of teams" - stop - - send "&cDeleteing &e%argument 2%&c..." - delete {tma.teams::%argument 2%} - {tma.teams::%argument 2%} is set: - send "&cAn error occurred" - stop - send "&aDelted!" - - argument 1 is "spawnwave": - argument 2 is not set: - send "&cPlease select a number: &e/tma spawnwave " - stop - {active.tma.teams::*} is empty: - send "&cThere are no active teams: &e/tma activeadd &c to add" - stop - execute console command "tmawave %argument 2%" - - argument 1 is "activeadd": - argument 2 is not set: - send "&cPlease select a team: &e/tma activeadd " - stop - {tma.teams::%argument 2%} is not set: - send "&cThis team does not exist!" - send "&cPlease use &e/tma listteam&a for a list of teams" - stop - {tma.%argument 2%.spawn::*} is empty: - send "&cThere are no spawn points set for this team!" - send "&cPlease use &e/tma spawnadd %argument 2%&c to add spawn points!" - stop - set {active.tma.teams::%argument 2%} to true - send "&e%argument 2%&a added to active teams list" - - argument 1 is "activedel": - argument 2 is not set: - send "&cPlease select a team: &e/tma activedel " - stop - {active.tma.teams::%argument 2%} is not set: - send "&cTeam is not listed as active!" - send "&cPlease use &e/tma activelist &cfor a list of active teams!" - stop - send "&cDeleting &e%argument 2%&c from active teams..." - delete {active.tma.teams::%argument 2%} - {active.tma.teams::%argument 2%} is set: - send "&cAn error occurred!" - stop - send "&aDelete Successful!" - - argument 1 is "activelist": - {active.tma.teams::*} is empty: - send "&cThere are no active teams!" - send "&cUse &e/tma activeadd &c to add active teams" - stop - loop {active.tma.teams::*}: - send "%loop-index%" - - - -command /tmawave []: - permission: obam.admin - trigger: - send "&aIama message" - {active.tma.teams::*} is empty: - send "&cError" - stop - argument 1 is not set: - send "&cError!" - stop - send "&aI ama another message" - set {_num} to argument 1 parsed as number - send "&a%{_num}%" - {_num} is less than 5: - set {_loop} to {_num} * 2 + 1 - - {_num} is greater than 5: - set {_loop} to {_num} * 2 + 3 - - send "&a%{_loop}%" - set {_size} to size of {active.tma.teams::*} - send "&a%{_size}%" - set {_count} to 1 - send "%{_count}%" - while {_count} is less than or equal to {_size}: - {_count} is not set: - set {_count} to 1 - loop {active.tma.teams::*}: - - send "&a%loop-index%" - loop {_loop} times: - set {_ran} to random element of {tma.spawns::*} - set {_loc} to random element of {tma.%loop-index-1%.spawn::*} - spawn {_ran} at {_loc} - set {_cur.entity} to spawned entity - spawned entity is zombie: - - equip spawned entity with iron helmet - chance of 5%: - apply speed 2 to spawned entity for 999 days - chance of 10%: - equip spawned entity with iron helmet of unbreaking 2 - - chance of 15%: - set spawned entity's tool to iron sword - chance of 5%: - set spawned entity's tool to iron sword of sharpness 2 - chance of 5%: - set spawned entity's tool to diamond sword - - spawned entity is skeleton: - - equip spawned entity with leather helmet - - set spawned entity's tool to bow - chance of 5%: - apply speed 2 to spawned entity for 999 days - chance of 10%: - equip spawned entity with iron helmet of unbreaking 2 - chance of 15%: - set spawned entity's tool to bow of punch 1 - chance of 5%: - equip spawned entity with diamond chestplate - chance of 2%: - equip spawned entity with diamond leggings of projectile protection 1 - - spawned entity is a creeper: - - chance of 5%: - apply speed 2 to spawned entity for 999 days - - spawned entity is cave spider: - - chance of 5%: - apply speed to spawned entity for 999 days - - spawned entity is zombie pigman: - - set spawned entity's tool to gold sword - chance of 5%: - apply speed to spawned entity for 999 days - - - - - add 1 to {_count} - - - - - - - - - \ No newline at end of file diff --git a/Obam-Testing/wtfronts.sk b/Obam-Testing/wtfronts.sk deleted file mode 100644 index 2eb7774..0000000 --- a/Obam-Testing/wtfronts.sk +++ /dev/null @@ -1,598 +0,0 @@ -options: - bandages: paper;&3Bandage;&6Use of this bandage is the only way to fix a long lasting||&6injury brought on by the hazards of the environment.|| ||&5&oRight click with bandage in hand to cure the effects||&5&obrought on by being badly injured. Multiple bandages||&5&omay be required depending on your injury level. - superbottle: water bottle;&3Super Water Bottle;&6Besides saving you inventory space, this water ||&6is created extra wet to help quench your thirst.|| ||&a+50 Thirst|| ||&5&oUpon use, bottle turns to regular glass bottle. - unstele: magma cream;&3Unstable Element;&6Highly energized plasma like element found||&6in unstable land and mobs.|| ||&5&oThis goo is really hot! - unstmetal: gold nugget;&3Unstable Metal Shard;&6Energized metal shards found in unstable land||&6and mobs.|| ||&5&oYou feel a light energetic charge coming from||&5&othe shard. - unstmetalbar: gold ingot;&3Unstable Metal Bar;&6Crafted from broken &3Unstable Metal Shards&6 to||&6become whole again.|| ||&5&oHot to the touch, this bar gives a highly energetic||&5&ocharge. - stablemetal: iron ingot;&3Stable Metal Bar;&6Finalized & stable metal bar with just enough||&6energy for crafting special items.|| ||&5&oWarm to the touch with a subtle energetic glow. - stableele: slimeball;&3Stable Element;&6Stable plasma like element used to enhance other||&6items in special ways.|| ||&5&oThe goo feels nice and warm as it slides through||&5&oyour fingers. - envradar: compass;&3Environmental Radar;&6A must have tool for always being in the know about||&6the dangerous environment around you.|| ||&c-1 Elemental Fuel per use|| ||&5&oRight click with radar in hand to get the environmental||&5&ostatistics of the land you’re standing on. - elefuel: coal item;&3Elemental Fuel;&6The universal fuel used to power most of the tools||&6and machines created with &3Energized Metal Bars. - fairydust: sugar;&3Fairy Dust;&6This mysterious dust is filled with special properties||&6that nobody quite understands. Rumor is the dust||&6when combined with the right items or situations can||&6yield interesting results. - stable: packed ice;&3Stabilizer;&6The stabilizer contains the perfect elemental makeup||&6to bring unstable energies down to usable levels.|| ||&5&oSurround the Stabilizer in a crafting table with items||&5&othat contain unstable energy. - stablechst: diamond chestplate;&3Stable Diamond Chestplate;&6This chestplate contains a slot for special||&6enchantments and a container for &3Elemental||&3Fuel&6. - qnhchest: diamond chestplate;&3Chest of Quench;&6Utilizing the power of &3Elemental Fuel &6and||&6the &3Super Water Bottle&6, this chestplate makes||&6sure you never go thirsty!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your thirst will||&5&oautomatically go back up to 100 whenever it||&5&odips below 50, as long as you have Elemental||&5&oFuel in your inventory. - snkchest: diamond chestplate;&3Chest of Snacks;&6Utilizing the power of &3Elemental Fuel &6and an||&6Enchanted Golden Apple, this chestplate makes||&6sure you never go hungry!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your hunger will||&5&oautomatically go back up to 10 whenever it||&5&odips below 5, as long as you have Elemental||&5&oFuel in your inventory. - -on script load: - register new shapeless recipe for named item stack from "{@bandages}" using paper, slimeball, air, air, air, air, air, air, air - register new shapeless recipe for named item stack from "{@superbottle}" using bottle of water, bottle of water, bottle of water, bottle of water, air, air, air, air, air - register new shaped recipe for named item stack from "{@unstmetalbar}" using air, air, air, named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}" - register new shaped recipe for named item stack from "{@stablemetal}" using named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@stable}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}" - register new shaped recipe for named item stack from "{@stableele}" using named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@stable}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}" - register new shaped recipe for named item stack from "{@stable}" using ice, ice, ice, ice, named item stack from "{@fairydust}", ice, ice, ice, ice - register new shaped recipe for named item stack from "{@elefuel}" using named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}", coal item, named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}" - register new shaped recipe for named item stack from "{@envradar}" using named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", compass, named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}" - register new shaped recipe for named item stack from "{@stablechst}" using named item stack from "{@stablemetal}", air, named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", diamond block, named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@elefuel}", named item stack from "{@stablemetal}" - register new shapeless recipe for named item stack from "{@qnhchest}" using named item stack from "{@superbottle}", named item stack from "{@stablechst}", air, air, air, air, air, air, air - register new shapeless recipe for named item stack from "{@snkchest}" using named item stack from "{@stablechst}", enchanted golden apple, air, air, air, air, air, air, air - - -on join: - display board named "&9&lWTF&9ronts" to player - make score "&3Thirst" in board of player to {thirst.%player%} - set {board.%player%} to true - {injured.%player%} is true: - make score "&cINJURED" in board of player to 1 - move display of player to "sidebar" - -on chunk load: - {unstable.%event-chunk%} is not set: - chance of 2%: - set {unstable.%event-chunk%} to true - set {_ran} to random number between 15 and 20 - set {_ran2} to random number between 18 and 20 - set {cavein.%event-chunk%.chance} to {_ran} - set {methane.%event-chunk%.chance} to {_ran2} - {unstable.%event-chunk%} is not set: - set {unstable.%event-chunk%} to false - {cavein.%event-chunk%.chance} is not set: - chance of 90%: - set {_ran} to random integer between 1 and 5 - set {cavein.%event-chunk%.chance} to {_ran} - {cavein.%event-chunk%.chance} is not set: - set {cavein.%event-chunk%.chance} to false - {methane.%event-chunk%.chance} is not set: - chance of 95%: - set {_ran} to random integer between 3 and 6 - set {methane.%event-chunk%.chance} to {_ran} - {methane.%event-chunk%.chance} is not set: - set {methane.%event-chunk%.chance} to false - - -on mine: - player's tool is pickaxe - y-coordinate of player is less than 40 - {cavein.%chunk at location of player%.chance} is false: - set {_run} to false - {_run} is not set: - chance of {cavein.%chunk at location of player%.chance}%: - loop blocks in radius 5: - {_block.count} is not set: - set {_block.count} to 0 - add 1 to {_block.count} - loop-block is air: - {_air.count} is not set: - set {_air.count} to 0 - add 1 to {_air.count} - loop-block is iron block - set {_max-strut} to true - {_max-strut} is set: - chance of {cavein.%chunk at location of player%.chance}%: - clear {_max-strut} - loop players in radius 10 of player: - send "&cYour struts are failing!" to loop-player - send "&cYour struts are failing!" to player - - {_max-strut} is not set: - send "&3The floor rumbles beneath you.." to player - loop players in radius 10 of player: - send "&3The floor rumbles beneath you..." to loop-player - wait 5 seconds - send "&cCave In!" to player - loop players in radius 10 of player: - send "&cCave In!" to loop-player - {_air.count} is less than or equal to {_block.count} / 3: - loop blocks in radius 5: - loop-block is not bedrock or wood plank or lava or water - set {_block} to loop-block - set {_loc} to location of loop-block - spawn falling block of loop-block at location of loop-block - delete loop-block - {_air.count} is greater than {_block.count} / 3: - loop blocks in radius 10: - loop-block is not bedrock or wood plank or lava or water - set {_block} to loop-block - set {_loc} to location of loop-block - spawn falling block of loop-block at location of loop-block - delete loop-block - {methane.%chunk at location of player%.chance} is false: - set {_run2} to false - {_run2} is not set: - chance of {methane.%chunk at location of player%.chance}%: - send "&cMethane!" to player - loop players in radius 10 of player: - send "&cMethane!" to loop-player - wait 2 seconds - create explosion of force 2 at event-location - chance of {methane.%chunk at location of player%.chance} * 2 %: - wait 2 seconds - drop named item stack from "{@unstele}" at event-location - chance of {methane.%chunk at location of player%.chance} * 2%: - drop named item stack from "{@unstmetal}" at event-location - - chance of {cavein.%chunk at location of player%.chance}%: - loop blocks in radius 3: - loop-block is water - set {_found.water} to true - {_found.water} is true: - send "&3Flood!" to player - loop blocks in radius 3 of event-location: - loop-block is air: - set loop-block to water - - -on portal enter: - {unstable.%chunk at event-location%} is false - chance of 25%: - set {unstable.%chunk at event-location%} to true - set {_ran} to random number between 15 and 20 - set {_ran2} to random number between 18 and 20 - set {cavein.%chunk at event-location%.chance} to {_ran} - set {methane.%chunk at event-location%.chance} to {_ran2} - - - -on right click with compass: - player's tool is named item stack from "{@envradar}": - player does not have named item stack from "{@elefuel}": - send "&cYou do not have enough fuel!" to player - stop - remove named item stack from "{@elefuel}" from player - {cavein.%chunk at location of player%.chance} is not set: - {unstable.%chunk at location of player%} is not set: - chance of 2%: - set {unstable.%chunk at location of player%} to true - set {_ran} to random number between 15 and 20 - set {_ran2} to random number between 18 and 20 - set {cavein.%chunk at location of player%.chance} to {_ran} - set {methane.%chunk at location of player%.chance} to {_ran2} - {unstable.%chunk at location of player%} is not set: - set {unstable.%chunk at location of player%} to false - {cavein.%chunk at location of player%.chance} is not set: - chance of 90%: - set {_ran} to random integer between 1 and 5 - set {cavein.%chunk at location of player%.chance} to {_ran} - {cavein.%chunk at location of player%.chance} is not set: - set {cavein.%chunk at location of player%.chance} to false - {methane.%chunk at location of player%.chance} is not set: - chance of 95%: - set {_ran} to random integer between 3 and 6 - set {methane.%chunk at location of player%.chance} to {_ran} - {methane.%chunk at location of player%.chance} is not set: - set {methane.%chunk at location of player%.chance} to false - - if {unstable.%chunk at location of player%} is true: - send "&aGround Structure: &cUnstable" - send "&aMethane Rating: &cUnstable" - stop - if {cavein.%chunk at location of player%.chance} is false: - send "&aGround Structure: &3SOUND" to player - else: - send "&aGround Structure: &e%{cavein.%chunk at location of player%.chance}%" to player - if {methane.%chunk at location of player%.chance} is false: - send "&aMethane Rating: &3EMPTY" to player - else: - send "&aMethane Rating: &e%{methane.%chunk at location of player%.chance}%" to player - - -command /chunkstats: - permission: obam.admin - trigger: - if {unstable.%chunk at location of player%} is true: - send "&aGround Structure: &cUnstable" - send "&aMethane Rating: &cUnstable" - stop - if {cavein.%chunk at location of player%.chance} is false: - send "&aGround Structure: &3SOUND" to player - else: - send "&aGround Structure: &e%{cavein.%chunk at location of player%.chance}%" to player - if {methane.%chunk at location of player%.chance} is false: - send "&aMethane Rating: &3EMPTY" to player - else: - send "&aMethane Rating: &e%{methane.%chunk at location of player%.chance}%" to player - -every 3 seconds: - loop all players: - {board.%loop-player%} is not set: - display board named "&9&lWTF&9ronts" to loop-player - make score "&3Thirst" in board of loop-player to {thirst.%loop-player%} - set {board.%loop-player%} to true - move display of loop-player to "sidebar" - {board.%loop-player%} is true: - make score "&3Thirst" in board of loop-player to {thirst.%loop-player%} - - block above loop-player is water: - {thirst.%loop-player%} is less than 100: - set {_ran} to random number between 1 and 2 - add {_ran} to {thirst.%loop-player%} - {thirst.%loop-player%} is greater than 100: - set {thirst.%loop-player%} to 100 - {debug.%loop-player%} is true: - set {thirst.%loop-player%} to 100 - {thirst.%loop-player%} is not set: - set {thirst.%loop-player%} to 100 - {thirst.%loop-player%} is less than 0: - set {thirst.%loop-player%} to 0 - {thirst.%loop-player%} is 0: - damage loop-player by 1 - send "&cYou are dehydrated" to loop-player - {thirst.%loop-player%} is greater than 0: - chance of 30%: - loop-player is not sprinting: - set {_ran} to random number between 0 and 1 - set {thirst.%loop-player%} to {thirst.%loop-player%} - {_ran} - loop-player is sprinting: - set {_ran} to random number between 1 and 3 - set {thirst.%loop-player%} to {thirst.%loop-player%} - {_ran} - - biome at loop-player is desert: - time in loop-player's world is day - y-coordinate of loop-player is greater than 60 - {thirst.%loop-player%} is greater than 0: - set {thirst.%loop-player%} to {thirst.%loop-player%} - 2 - {thirst.%loop-player%} is 0: - chance of 45%: - damage loop-player by 2 - send "&cThe sun beats down on you" to loop-player - - biome at loop-player is swamp: - set {_ran} to a random integer between 1 and 5 - {_ran} is 1: - apply hunger 2 to loop-player for 20 seconds - send "&cMalaria runs through your body" to loop-player - - - y-coordinate of loop-player is greater than 110: - loop-player's helmet is air - damage loop-player by 1 - send "&cYou are chilled " to loop-player - apply slowness to loop-player for 3 seconds - loop-player has lava bucket: - chance of 10%: - damage loop-player by 0.5 - send "&cThe lava in your inventory grows hotter" to loop-player - {injured.%loop-player%} is true: - chance of 10%: - set {_location} to location of loop-player - play 1 of effect "spell" with data 1 at {_location} - damage loop-player by 0.5 - {injured.%loop-player%.length} is not set: - set {injured.%loop-player%.length} to 0 - add 1 to {injured.%loop-player%.length} - send "&cYour injuries need mending!" to loop-player - {injured.%loop-player%.length} is less than 5: - apply slowness to loop-player for 999 days - {injured.%loop-player%.length} is greater than 5: - {injured.%loop-player%.length} is less than 10: - apply slowness 2 to loop-player for 999 days - apply mining fatigue to loop-player for 1 minute - {injured.%loop-player%.length} is greater than 10: - apply slowness 3 to loop-player for 999 days - apply mining fatigue 2 to loop-player for 1 minute - apply weakness to loop-player for 30 seconds - {thirst.%loop-player%} is less than or equal to 50: - name of loop-player's chestplate is "&3Chest of Quench" - loop-player has named item stack from "{@elefuel}": - set {thirst.%loop-player%} to 100 - remove named item stack from "{@elefuel}" from loop-player - loop-player's hunger level is less than 5: - name of loop-player's chestplate is "&3Chest of Snacks" - loop-player has named item stack from "{@elefuel}": - set loop-player's hunger level to 10 - remove named item stack from "{@elefuel}" from loop-player - - - - - - - - loop all entities: - loop-entity is not player: - {unstable.%loop-entity%} is set: - play 100 of effect "reddust" with data 1 at location of loop-entity - -on spawn of a creeper or a skeleton or a spider or zombie: - {unstable.%chunk at event-location%} is true: - - - set {_loc} to event-location - event-entity is a creeper: - set name of event-entity to "&cUnstable Creeper" - apply resistance 2 to event-entity for 999 days - apply speed to event-entity for 999 days - - - set {unstable.%event-entity%} to true - - event-entity is a zombie: - - set name of event-entity to "&cUnstable Zombie" - apply resistance 2 to event-entity for 999 days - apply speed 2 to event-entity for 999 days - equip event-entity with iron sword of sharpness - set event-entity's helmet to iron helmet - set {unstable.%event-entity%} to true - - event-entity is skeleton: - set name of event-entity to "&cUnstable Skeleton" - apply resistance 2 to event-entity for 999 days - apply speed 2 to event-entity for 999 days - equip event-entity with bow - set event-entity's helmet to gold helmet - set {unstable.%event-entity%} to true - - event-entity is a spider: - set name of event-entity to "&cUnstable Spider" - apply resistance 2 to event-entity for 999 days - apply speed 2 to event-entity for 999 days - apply jump 5 to event-entity for 999 days - set {unstable.%event-entity%} to true - -on explosion prime: - event-entity is creeper: - {unstable.%event-entity%} is true: - cancel event - create an explosion of force 5 at event-location - set {_loc} to event-location - play 100 of effect "reddust" with data 1 at {_loc} - loop players in radius 5 of event-location: - make event-entity damage loop-player by 4 - -on damage: - victim is not a player - {unstable.%victim%} is set: - damage cause is fall: - cancel event - damage cause is block explosion: - cancel event - -on death of a creeper or a skeleton or a zombie or a spider: - chance of 15%: - add named item stack from "{@bandages}" to drops - entity's name is "&cUnstable Spawn": - chance of 10%: - chance of 2%: - add named item stack from "{@unstele}" to drops - add named item stack from "{@unstmetal}" to drops - -on damage of a player: - damage cause is fall: - chance of 15%: - victim's boots are boots of feather falling: - stop - set {_location} to location of victim - play 1 of effect "angryVillager" of data 1 at {_location} - set {injured.%victim%} to true - apply slowness to victim for 999 days - add 1 to damage - make score "&cINJURED" in board of victim to 1 - send "&cYou have been injured from your fall!" to victim - -on right click with paper: - player is holding named item stack from "{@bandages}": - {injured.%player%} is not set: - send "&cYou are not injured!" to player - stop - {injured.%player%} is false: - send "&cYou are not injured!" to player - stop - {injured.%player%} is true: - {injured.%player%.length} is greater than 5: - {injured.%player%.length} is less than 10: - remove mining fatigue from player - remove weakness from player - remove slowness from player - apply slowness to player for 999 days - send "&aYour injuries are healing" to player - set {injured.%player%.length} to 1 - remove named item stack from "{@bandages}" from player - stop - {injured.%player%.length} is greater than 10: - remove slowness from player - remove mining fatigue from player - apply mining fatigue to player for 999 days - apply slowness 2 to player for 999 days - remove weakness from player - set {injured.%player%.length} to 6 - send "&aYour injuries are healing" to player - remove named item stack from "{@bandages}" from player - stop - send "&aYou mend your injuries" to player - remove mining fatigue from player - remove weakness from player - remove slowness from player - remove named item stack from "{@bandages}" from player - nullify score "&cINJURED" in board of player - set {injured.%player%} to false - set {injured.%player%.length} to 0 - -on bed enter: - {injured.%player%} is true: - set {injured.%player%} to false - set {injured.%player%.length} to 0 - remove mining fatigue from player - remove weakness from player - remove slowness from player - nullify score "&cINJURED" in board of player - send "&aYou have been healed of your injuries!" to player - -on consume of water bottle: - {thirst.%player%} is greater than or equal to 100: - set {thirst.%player%} to 100 - cancel event - player is holding named item stack from "{@superbottle}": - add 50 to {thirst.%player%} - {thirst.%player%} is greater than 100: - set {thirst.%player%} to 100 - stop - {thirst.%player%} is greater than or equal to 100: - set {thirst.%player%} to 100 - cancel event - add 10 to {thirst.%player%} - {thirst.%player%} is greater than 100: - set {thirst.%player%} to 100 - -on death of a player: - {thirst.%player%} is less than 25: - set {thirst.%player%} to 25 - -command /ci []: - permission: obam.admin - trigger: - argument is not set: - send "list" - send "1 ... Super Water Bottle" - send "2 ... Bandages" - send "3 ... Unstable Metal Shard" - send "4 ... Unstable Metal Bar" - send "5 ... Stable Metal Bar" - send "6 ... Unstable Element" - send "7 ... Stable Element" - send "8 ... Environmental Radar" - send "9 ... Elemental Fuel" - send "10 ... Fairy Dust" - send "11 ... Stabilizer" - send "12 ... Stable Chest" - send "13 ... Chest of Quench" - send "14 ... Chest of Snacks" - stop - argument is 1: - give named item stack from "{@superbottle}" to player - - argument is 2: - give named item stack from "{@bandages}" to player - - argument is 3: - give named item stack from "{@unstmetal}" to player - - argument is 4: - give named item stack from "{@unstmetalbar}" to player - - argument is 5: - give named item stack from "{@stablemetal}" to player - - argument is 6: - give named item stack from "{@unstele}" to player - - argument is 7: - give named item stack from "{@stableele}" to player - - argument is 8: - give named item stack from "{@envradar}" to player - - argument is 9: - give named item stack from "{@elefuel}" to player - - argument is 10: - give named item stack from "{@fairydust}" to player - - argument is 11: - give named item stack from "{@stable}" to player - - argument is 12: - give named item stack from "{@stablechst}" to player - - argument is 13: - give named item stack from "{@qnhchest}" to player - - argument is 14: - give named item stack from "{@snkchest}" to player - - - - - send "Here is your thing" - -command /togglestats: - trigger: - - {board.%player%} is false: - set {board.%player%} to true - display board named "&9&lWTF&9fronts" to player - make score "&3Thirst" in board of player to {thirst.%player%} - move display of player to "sidebar" - stop - {board.%player%} is true: - set {board.%player%} to false - display board named " " to player - stop - {board.%player%} is not set: - display board named "&9&lWTF&9ronts" to player - make score "&3Thirst" in board of player to {thirst.%player%} - set {board.%player%} to true - move display of player to "sidebar" - stop - - - -on place: - former tool's name is set: - set {information.%block%.1} to former tool - {debug.%player%} is true: - send "DEBUG You placed %former tool's name%" - set {information.%block%.2} to lore of former tool - set {information.%block%.3} to name of former tool - {debug.%player%} is true: - send "DEBUG %block%" - send "DEBUG %{information.%block%.1}%" - send "DEBUG %lore of former tool%" - send "DEBUG %name of former tool%" - send "DEBUG %{information.%block%.2}%" - send "DEBUG %{information.%block%.3}%" - set {information.%block%.1} to "%{information.%block%.1}%" - -on break: - {information.%block%.1} is set: - cancel event - {debug.%player%} is true: - send "DEBUG I ama message" - set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" - send "DEBUG %{_message}%" - delete block - drop named item stack from "%{_message}%" at location of block - -on break of glowstone: - chance of 10%: - player's tool is pickaxe of silk touch: - stop - drop named item stack from "{@fairydust}" at location of event-block - -on right click with sugar: - player's tool is named item stack from "{@fairydust}": - player is flying: - stop - remove named item stack from "{@fairydust}" from player - send "&aYou can fly!" to player - allow player to fly - wait 5 seconds - disallow player to fly - -command /debug: - permission: obam.admin - trigger: - {debug.%player%} is not set: - set {debug.%player%} to false - {debug.%player%} is false: - set {debug.%player%} to true - send "&aDebug on" - stop - {debug.%player%} is true: - set {debug.%player%} to false - send "&aDebug off" - stop - - - - \ No newline at end of file From 07ee4268f3e4bde44cb70f9e190fa84a302054c7 Mon Sep 17 00:00:00 2001 From: ismooch Date: Mon, 21 Apr 2014 01:33:52 -0500 Subject: [PATCH 02/14] Revert "Making Chances.. Will Revert" This reverts commit 2f0f9bad25077b5945f1405e764871d482830129. --- Obam-General/autohub.sk | 10 + Obam-General/exclusive.sk | 3 + Obam-General/hubconfig.sk | 96 ++ Obam-General/pinfo.sk | 102 ++ Obam-General/who.sk | 16 + Obam-Survival/disenchant.sk | 29 + Obam-Survival/heal.sk | 43 + Obam-Testing/abstain.sk | 127 +++ Obam-Testing/aliases-english.sk | 1690 +++++++++++++++++++++++++++++++ Obam-Testing/broadcast.sk | 4 + Obam-Testing/effect.sk | 138 +++ Obam-Testing/modbridge.sk | 13 + Obam-Testing/schat2.sk | 187 ++++ Obam-Testing/schatbridge.sk | 18 + Obam-Testing/tellchat.sk | 45 + Obam-Testing/tma.sk | 350 +++++++ Obam-Testing/wtfronts.sk | 598 +++++++++++ 17 files changed, 3469 insertions(+) create mode 100644 Obam-General/autohub.sk create mode 100644 Obam-General/exclusive.sk create mode 100644 Obam-General/hubconfig.sk create mode 100644 Obam-General/pinfo.sk create mode 100644 Obam-General/who.sk create mode 100644 Obam-Survival/disenchant.sk create mode 100644 Obam-Survival/heal.sk create mode 100644 Obam-Testing/abstain.sk create mode 100644 Obam-Testing/aliases-english.sk create mode 100644 Obam-Testing/broadcast.sk create mode 100644 Obam-Testing/effect.sk create mode 100644 Obam-Testing/modbridge.sk create mode 100644 Obam-Testing/schat2.sk create mode 100644 Obam-Testing/schatbridge.sk create mode 100644 Obam-Testing/tellchat.sk create mode 100644 Obam-Testing/tma.sk create mode 100644 Obam-Testing/wtfronts.sk diff --git a/Obam-General/autohub.sk b/Obam-General/autohub.sk new file mode 100644 index 0000000..3b93d28 --- /dev/null +++ b/Obam-General/autohub.sk @@ -0,0 +1,10 @@ +on join: + set {_hold} to difference between {db_time.join.%player%} and now + {_hold} is more than 15 minutes: + + set {db_time.join.%player%} to now + make player execute command "/hub" + +on disconnect: + set {db_time.join.%player%} to now + \ No newline at end of file diff --git a/Obam-General/exclusive.sk b/Obam-General/exclusive.sk new file mode 100644 index 0000000..e758c42 --- /dev/null +++ b/Obam-General/exclusive.sk @@ -0,0 +1,3 @@ +on connect: + player does not have permission "obam.supporter" + kick the player due to "&cThis beta is for Supporters only!" \ No newline at end of file diff --git a/Obam-General/hubconfig.sk b/Obam-General/hubconfig.sk new file mode 100644 index 0000000..6d9bf1a --- /dev/null +++ b/Obam-General/hubconfig.sk @@ -0,0 +1,96 @@ +options: + help: named item stack from "book;&6&lOBAM&fCraft &3Guide;&7Right click with this book to learn the ins||&7and out of OBAM" + worlds: named item stack from "ender pearl;&3Game Worlds;&7Right click with this to check the current Game Worlds!" + fly: named item stack from "feather;&3Fly!;&7Right click with this feather to fly in the hub!" + skyblock: i;grass;n;&6Skyblock;l;&7Try our Skyblock world with custom challenges and ||&7Villager trading!;c;sudo %player% worlds skyblock + fronts: i;cobblestone;n;&6Fronts;l;&7Our Special flavour of Survival with immediate||&7land claiming!;c;sudo %player% worlds survival + wtfronts: i;magma cream;n;&6WTFronts;l;&cBETA TESTING|| ||&7Extreme Survival with extreme payoffs!;c;sudo %player% worlds wtf + kitpvp: i;blaze rod;n;&6Kit PVP;l;&7Play OBAM's KitPvP with new original kits!;c;sudo %player% worlds kit + + + +on join: + execute console command "/mv tp %player% Death-hub" + clear player's inventory + give player {@help} + give player {@worlds} + give player {@fly} + +on shoot: + world is "Death-hub" + shooter's tool is ender pearl + cancel event + +on right click: + player's tool is {@help}: + make player execute command "/help" + player's tool is {@worlds}: + cancel event + make player execute command "/worlds" + player's tool is {@fly}: + {fly.hub.%player%} is not set: + set {fly.hub.%player%} to true + allow player to fly + send "&aYou can fly!" + stop + {fly.hub.%player%} is true: + set {fly.hub.%player%} to false + disallow player to fly + send "&cYou can no longer fly!" + stop + {fly.hub.%player%} is false: + set {fly.hub.%player%} to true + allow player to fly + send "&aYou can fly!" + stop + + +on drop: + world is "Death-hub": + cancel event + + +command /worlds []: + permission: obam.free + trigger: + world is "Death-hub" + argument is not set: + + send "&aBringing up menu..." + + show "s;1;{@skyblock};s;2;{@kitpvp};s;3;{@fronts};s;4;{@wtfronts}" with 1 row named "&7Worlds" to player + + argument is "survival": + + make player execute command "/transfer survival" + + argument is "wtf": + + make player execute command "/transfer curtain" + + argument is "skyblock": + + execute console command "mv tp %player% skyworld" + + argument is "kit": + + execute console command "mv tp %player% kitpvpkillingfields" + +every second: + + loop all players: + {fly.hub.%loop-player%} is true: + loop-player's world is not "Death-hub": + disallow loop-player to fly + set {fly.hub.%loop-player%} to false + loop-player's world is "Death-hub": + allow loop-player to fly + + +command /transfer []: + trigger: + world is "Death-hub" + connect player to "%argument%" + + + \ No newline at end of file diff --git a/Obam-General/pinfo.sk b/Obam-General/pinfo.sk new file mode 100644 index 0000000..df10560 --- /dev/null +++ b/Obam-General/pinfo.sk @@ -0,0 +1,102 @@ +variables: + {db_dayset.2} = 0 + +on join: + {db_count.start.%player%.2} is not set: + set {db_count.start.%player%.2} to {db_dayset} + set {db_current.server.%player%} to "&eWTF" + +on disconnect: + clear {db_current.server.%player%} + set {db_lastseen.%player%} to "%now% on &eWTF" + clear {db_color.%player%} + player has permission "obam.admin": + set {db_color.%player%} to "&d%player%" + {db_color.%player%} is not set: + player has permission "obam.mod": + set {db_color.%player%} to "&2%player%" + {db_color.%player%} is not set: + player has permission "obam.ultimate": + set {db_color.%player%} to "&6%player%" + {db_color.%player%} is not set: + player has permission "obam.supporter": + set {db_color.%player%} to "&b%player%" + {db_color.%player%} is not set: + set {db_color.%player%} to "&f%player%" + + + + +command /playerinfo []: + description: Find out information about you + aliases: /p, /info, /player, /pinfo + executable by: players + trigger: + + argument is not set: + player has permission "obam.admin": + set {_name} to "&d%player%" + {_name} is not set: + player has permission "obam.mod": + set {_name} to "&2%player%" + {_name} is not set: + player has permission "obam.ultimate": + set {_name} to "&6%player%" + {_name} is not set: + player has permission "obam.supporter": + set {_name} to "&b%player%" + {_name} is not set: + set {_name} to "&f%player%" + message "&aPlayer: %{_name}%" + set {_days} to {db_dayset} - {db_count.start.%player%} + {_days} is less than 2: + {_days} is 1: + message "&aYou are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "&aThis is your first day." + stop + message "&aYou are &e%{_days}% &adays old." + argument is set: + argument has not played before: + message "&e%argument% &chas not played on this server before." + stop + + argument has permission "obam.admin": + set {_name} to "&d%argument%" + {_name} is not set: + argument has permission "obam.mod": + set {_name} to "&2%argument%" + {_name} is not set: + argument has permission "obam.ultimate": + set {_name} to "&6%argument%" + {_name} is not set: + argument has permission "obam.supporter": + set {_name} to "&&b%argument%" + {_name} is not set: + set {_name} to "&f%argument%" + argument is not online: + {db_current.server.%argument%} is not set: + set {_name} to "&7%argument% &7&o(Offline)" + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_lastseen} to "&aLast seen:&e%{db_lastseen.%argument%}%" + {db_current.server.%argument%} is set: + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_current.connect} to "&aCurrently connected to %{db_current.server.%argument%}%" + + message "&aPlayer: %{_name}%" + {_lastseen} is set: + send {_lastseen} + {_current.connect} is set: + send {_current.connect} + set {_days} to {db_dayset} - {db_count.start.%argument%} + {_days} is less than 2: + {_days} is 1: + message "&aThey are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "%{_name}% &ais &e1&a day old" + stop + message "&aThey are &e%{_days}% &adays old." \ No newline at end of file diff --git a/Obam-General/who.sk b/Obam-General/who.sk new file mode 100644 index 0000000..3672c18 --- /dev/null +++ b/Obam-General/who.sk @@ -0,0 +1,16 @@ +every 10 seconds: + clear {db_fronts.who.2::*} + loop all players: + add loop-player to {db_fronts.who.2::*} + + +command /who: + trigger: + + loop all players: + add loop-player to {_cur.list::*} + clear {db_fronts.who.2::*} + set {db_fronts.who.2::*} to {_cur.list::*} + send "&eHub:&a%{db_hub.who::*}%" + send "&eWTF:&a%{db_wtf.who::*}%" + send "&eFronts:&a%{_cur.list::*}%" \ No newline at end of file diff --git a/Obam-Survival/disenchant.sk b/Obam-Survival/disenchant.sk new file mode 100644 index 0000000..b0a7941 --- /dev/null +++ b/Obam-Survival/disenchant.sk @@ -0,0 +1,29 @@ +command /unenchant: + executable by: players + permission: obam.free + aliases: /disenchant + trigger: + player's tool is enchanted + player's tool is not a sword or axe or pickaxe or shovel or bow or helmet or chestplate or leggings or boots: + message "&cYou may only disenchant Armour, Weapons or Tools!" to player + stop + + + set {_bal} to player's balance + {_bal} is less than 200: + send "&cYou do not have enough tickets to do this!" to player + stop + player's level is less than 15: + + send "&cYou must have at least 15 levels to do this!" to player + stop + disenchant player's tool + + reduce the player's level by 15 + + remove 200 from player's balance + send "&6&lThe Gods have taken their gifts back!" to player + send "&aYou have used &e200 Tickets&a to disenchant this tool" to player + send "&aYou have &e%player's balance%&a remaining" to player + log "%player%^%{_bal}%^DEDUCT^200^%player's balance%^DISENCHANT FEE" to "tickets/disenchant.log" + stop diff --git a/Obam-Survival/heal.sk b/Obam-Survival/heal.sk new file mode 100644 index 0000000..dc0ee0a --- /dev/null +++ b/Obam-Survival/heal.sk @@ -0,0 +1,43 @@ +variables: + {heal.%player%} = false + + + + + + +command /heal: + executable by: players + permission: obam.free + trigger: + {heal.%player%} is not set: + set {heal.%player%} to now + add 13 hours to {heal.%player%} + + set {_check} to difference between {heal.%player%} and now + {_check} is less than 12 hours: + set {_check} to difference between {heal.%player%} and now + set {_hold} to difference between now and now + add 12 hours to {_hold} + subtract {_check} from {_hold} + send "&cYou must wait at least &e%{_hold}% &cto use this command!" + stop + {abstain.%player%} is false: + send "&cOnly abstaining players can use this feature!" + stop + {abstian.%player%} is "wait pvp" or "wait abstain": + send "&cYou can not use this feature in transition!" + stop + {abstain.%player%} is true: + + set {_bal} to player's balance + {_bal} is less than 2000: + send "&cYou do not have enough tickets to do this!" to player + stop + + remove 2000 from player's balance + set {heal.%player%} to now + send "&aYou have been healed" to player + set player's health to 10 + send "&aYou have &e%player's balance%&a remaining" to player + stop diff --git a/Obam-Testing/abstain.sk b/Obam-Testing/abstain.sk new file mode 100644 index 0000000..df5f898 --- /dev/null +++ b/Obam-Testing/abstain.sk @@ -0,0 +1,127 @@ +variables: + {abstain.%player%} = false + + + +command /abstain []: + permission: obam.free + trigger: + + argument is not set: + send " " + send " &aYour Abstain status is currently &e%{abstain.%player%}%&a, you can change this by doing &e/abstain confirm&a. " + send " " + send "&aThis change will cost &e2500 Tickets&a." + send " " + set {abst.confirm.%player%} to now + stop + player has permission "obam.admin": + {abstain.%player%} is false: + set {abstain.%player%} to true + + send "&aYour Abstain status is now &e%{abstain.%player%}%" + stop + + {abstain.%player%} is true: + set {abstain.%player%} to false + send "&aYour Abstain status is now &e%{abstain.%player%}%" + stop + + stop + + argument is "confirm" or "c": + set {_hold} to difference between now and {abst.confirm.%player%} + {_hold} is greater than 30 seconds: + send "&cYou must do &e/abstain&a before doing the confirm command" + stop + + {abstain.%player%} is not set: + set {abstain.%player%} to false + {abstain.%player%} is false: + set {_bal} to player's balance + {_bal} is less than 2500: + send "&cYou do not have enough tickets to perform this operation" + stop + remove 2500 from player's balance + set {abstain.%player%} to "wait abstain" + set {abstain.%player%.time} to now + send "&aYou have abstained from PvP. You will lose access to some features. You have paid a toll of &e2500 Tickets&a." + send "&aIt can take up to &e2 hours&a for your abstain feature to take affect." + send "&aYou know have &e%player's balance%&a." + stop + {abstain.%player%} is true: + set {_bal} to player's balance + {_bal} is less than 2500: + send "&cYou do not have enough tickets to perform this operation" + stop + remove 2500 from player's balance + set {abstain.%player%} to "wait pvp" + set {abstain.%player%.time} to now + send "&aYou are engaging in PvP. You will be susceptible to PvP fights. You have paid a toll of &e2500 Tickets&a." + send "&aIt can take up to &e2 Hours&a for your PvP entering process to take affect." + send "&aYou now have &e%player's balance%&a." + stop + + {abstain.%player%} is "wait pvp": + send "&cYou already have an Abstain process waiting. It can take up to 2 hours for this change to take an effect" + stop + {abstain.%player%} is "wait abstain": + send "&cYou already have an Abstain process waiting. It can take up to 2 hours for this change to take an effect" + stop + +on damage: + victim is a player + attacker is a player + {abstain.%victim%} is true: + cancel event + {abstain.%attacker%} is true: + send "&cYou can not engage in PvP while abstaining!" + cancel event + +every 1 hour: + loop all players: + {abstain.%loop-player%} is "wait pvp": + set {_hold} to difference between {abstain.%loop-player%.time} and now + {_hold} is more than 1 hour + set {abstain.%loop-player%} to false + execute console command "perms player %loop-player% set nametags.color.blue false" + execute console command "perms player %loop-player% set nametags.color.red" + send "&aYou are now able to PvP!" to loop-player + {abstain.%loop-player%} is "wait abstain": + set {_hold} to difference between {abstain.%loop-player%.time} and now + {_hold} is more than 1 hour + set {abstain.%loop-player%} to true + execute console command "perms player %loop-player% set nametags.color.red false" + execute console command "perms player %loop-player% set nametags.color.blue" + send "&aYou are now abstaining from PvP!" to loop-player + +on connect: + player is "ISMOOCH": + stop + {abstain.%player%} is true: + player does not have permission "nametags.color.blue": + execute console command "perms player %player% set nametags.color.blue" + player has permission "nametags.color.red": + execute console command "perms player %player% set nametags.color.red false" + {abstain.%player%} is false: + player does not have permission "nametags.color.red": + execute console command "perms player %player% set nametags.color.red" + player has permission "nametags.color.blue": + execute console command "perms player %player% set nametags.color.blue false" + {abstain.%player%} is "wait pvp": + set {_hold} to difference between {abstain.%player%.time} and now + {_hold} is more than 1 hour: + set {abstain.%player%} to false + send "&aYou can now PvP!" + execute console command "perms player %player% set nametags.color.blue false" + execute console command "perms player %player% set nametags.color.red" + stop + + {abstain.%player%} is "wait abstain": + set {_hold} to difference between {abstain.%player%.time} and now + {_hold} is more than 1 hour: + set {abstain.%player%} to true + send "&aYou are now abstaining from PvP!" + execute console command "perms player %player% set nametags.color.red false" + execute console command "perms player %player% set nametags.color.blue" + stop \ No newline at end of file diff --git a/Obam-Testing/aliases-english.sk b/Obam-Testing/aliases-english.sk new file mode 100644 index 0000000..f07edb1 --- /dev/null +++ b/Obam-Testing/aliases-english.sk @@ -0,0 +1,1690 @@ + +# ====== Aliases ====== +# In this file you can create aliases. An alias is a name for a block or an item, or a collection of such. +# There are hundreds of predefined aliases, so you don't usually need to care about this file. +# +# An alias is nothing more than a mapping from a name to one or more item/block types. +# e.g: 'torch = 50' creates the alias 'torch' and maps it to 50, the ID of a torch. +# So now every time you need a torch you can write torch instead of 50, which is much more intuitive. +# You can make an alias match multiple types by separating them with a comma, e.g. 'water = 8, 9'. +# You can also include data values, e.g. 'orange wool = 35:1'. Data Values can be a range, +# e.g. 'wet farmland = 60:1-8' (60:0 is dry farmland) +# +# == Advanced == +# As different languages have different ways of forming plurals of words you have to define the plurals of all aliases yourself. +# This is done by adding the plural ending after a ¦ character, e.g. 'log¦s = 17'. +# If the singular and plural have different endings each, use two ¦ characters, e.g. 'bookshel¦f¦ves = 47'. +# If you want to pluralize a word within the alias, use another ¦ character, e.g.. 'bucket¦¦s¦ of water' ('¦¦s¦' means: no singular ending, plural ending 's'). +# These plurals are both used by Skript when displaying items, e.g. 2 logs will be displayed as '2 logs', +# while 1 log will be displayed as '1 log', but are also used when parsing, i.e. you can write '1 log' or '2 logs' and both is understood. +# Aliases should also have a gender, which can be defined by adding '@' after the alias, e.g. 'emerald¦s @an' ('@a' can be omitted as it's the default). +# - English genders are 'a' and 'an', and German genders are 'n', 'm', and 'f' (these are all defined in the respectile language file). +# All languages can use the special genders 'x' and '-' for plural and no gender respectively, e.g. 'leaves @x' or 'air @-'. +# +# Sometimes you want to make a part of an alias optional, e.g. in 'wooden door', +# which is also sometimes called 'wood door', the 'en' can be made optional. +# This can be done by putting the optional part into square brackets ([]): +# wood[en] door = 64 # creates 2 aliases: 'wood door = 64' and 'wooden door = 64' +# +# Some blocks/items have different names, like the slab which is also called step. +# In this case you can simple write something like this: +# (step|slab) = 44 # creates two aliases, 'slab' and 'step', of which both are mapped to '44' +# stone (step|slab) = 44:0 # creates 'stone slab' and 'stone step' mapped to '44:0' +# wood[en] (step|slab) = 44:2 # creates four aliases +# +# Some blocks and items share some different appearances, e.g. wood, saplings and leaves all differ only in their tree type. +# Usually you would have to create the aliases 'birch wood', 'birch sapling', 'redwood wood', 'redwood sapling' etc. +# But this can be shortened by using variations: +# {tree type}: # name of the variation +# regular = :0 # list values here. these have the same syntax as aliases, i.e. they can have ids and data/data ranges, +# redwood = :1 # but you usally only need the data, which is done by typing a colon with no id in front of it. +# birch = :2 +# {tree type} wood = 17 # this is resolved to: wood = 17, regular wood = 17:0, redwood wood = 17:1 and birch wood = 17:2 +# sapling of {tree type} tree = 6 # you can put a variation anywhere in an alias, it doesn't need to be at the beginning. +# {tree type} leaves = 18 +# +# please note that 'wood = 17' is also resolved for '{tree type} wood = 17'. This is usually what you want. +# This does not work with variations where ids are varied and not only data values. There you +# have to add a '{default}' to the variation, which is treated like all other values in the variation +# but without adding it's name to the alias. For examples see 'huge mushrooms' or 'doors'. +# +# If an item has a block with a different ID you should add another two aliases called 'x item' and 'x block', e.g. +# cauldron block = 118 +# cauldron item = 380 +# cauldron = 118, 380 +# This way if you 'give a cauldron to the player' the player will not actually be given the items of the 'cauldron' alias, +# but the items of the 'cauldron item' alias, causing the player to always recieve the correct cauldron item. +# The same applies to setting blocks, though it usually doesn't matter as items are ignored when setting blocks. +# It does matter for e.g. water though: +# water = 8, 9 +# water block = 9 +# The 'water block' alias only lists the water source block, while the 'water' alias also lists the flowing water block. +# Setting a block to 'water' will thus always place a water source, while checking 'block is water' will work for both +# stationary and flowing water blocks. +# +# If you want to use something else than 'item' and 'block', simply modify the options below: +# + +# optional suffixes that can be appended to an alias's name and Skript will still understand it, +# e.g. if you only define an alias 'cake', this will allow users to use 'cake block' and 'cake item' as well. +# These are also used to determine the block and item variants of an alias (see above) And should include singular and plural. +item = item¦s +block = block¦s + + + + +# List of alias groups. Only groups listed here are allowed below, +# but you can easily define your own by adding it to this list. +# The groups will be loaded in this order, +# e.g. if 'custom aliases' is loaded after 'default aliases' you can use all default aliases to define your own aliases. +aliases = default aliases, collections, custom aliases + + + + + +custom aliases: + # === Custom Aliases === + # I recommend putting your own aliases here. + # You do not have to create an alias if you intend to use it in only one script, + # but you can put it at the beginning of the script like this: + # aliases: + # admin blocks = bedrock, TNT, 52, 56 + # wand = blaze rod + # This also has the advantage that your script can be used by other people without having to add the aliases to their config. + # + # + # If you want to edit a default alias, you should copy & paste it here to edit it. + # This will make it easier for you if you choose to update Minecraft and more blocks & items are added, in which case + # you can then simply download the updated config and copy & paste this section into it. + # + # The default aliases are loaded before these, so you can use them here. + # You can also override them by creating an alias with the same name. + + #example: shorten names + # ss = sandstone + # llb = lapis lazuli block + # ms = monster spawner + #etc. + +collections: + # === Collections === + + # all ores + ore¦s = coal ore, iron ore, gold ore, diamond ore, lapis ore, any redstone ore + # fuels, i.e. items which can be burned in the furnace + fuel¦s = lava bucket, blaze rod, any coal, planks, log, huge mushroom, workbench, fence, wooden stairs, trapdoor, sapling, stick, chest, locked chest, jukebox, note block + # note: the above aliases are used in 'furnace automatisation.cfg' + + # all food which can be eaten by rightclicking, i.e. doesn't include cake. + food¦s = any apple, mushroom soup, bread, any porkchop, any fish, cookie, melon slice, any beef, any chicken, rotten flesh, any carrot, any potato, pumpkin pie + # the same list but without raw food & rotten flesh + healthy food¦s = any apple, mushroom soup, bread, cooked porkchop, cooked fish, cookie, melon slice, steak, cooked chicken, any carrot, potato, baked potato, pumpkin pie + + # all vehicles, i.e. all minecarts and the boat + vehicle¦s = any minecart, boat + + # all plants. By default this does not include pumpkins and melons, but their stems. + plant¦s = leaves, any tall grass, dead bush, any flower, any mushroom, lily pad, vines, melon stem, pumpkin stem, nether wart + + +default aliases: + # === Default Aliases === + + # -- special -- + anything @- = : # ':' matches any ID. You should only use this together with a {variation} that includes a {default} value. + # (':' means ':') + something @- = : + everything @- = * # '*' is actually the same as 'every :', but 'every' can't be used in aliases. Thus I made this small hack + # to allow the definition of an 'everything' alias, but please note that '*' cannot be used anywhere else. + + + # ====== Blocks ====== + + # -- air -- + air @- = 0 + nothing @- = 0 + none @- = 0 + empty @- = 0 + [empty] (hand|fist)¦s = 0 + bare (hand|fist)¦s = 0 + + + # -- stone -- + stone¦s = 1 + smooth stone = 1 + + + # -- grass -- + grass = 2 + grass block = 2 + + + # -- dirt -- + dirt = 3 + + + # -- cobblestone -- + cobble[stone] = 4 + mossy cobble[stone] = 48 + + + # -- planks & saplings: see wood + + + # -- bedrock -- + bedrock = 7 + + + # -- water & lava -- + water = 8, 9 + water (item|block)¦s = 9 + stationary water = 9 + water source = 9 + flowing water = 8 # change to '8:0-7' if you want to exclude falling water + falling water = 8:8 + moving water = 8 + + lava = 10, 11 + lava (item|block)¦s = 11 + stationary lava = 11 + lava source = 11 + flowing lava = 10 # change to '10:0-7' if you want to exclude falling lava + falling lava = 10:8 + moving lava = 10 + + + # -- sand & gravel-- + sand = 12 + gravel = 13 + + + # -- ores & precious blocks -- + gold ore¦s = 14 + gold block¦s = 41 + block¦¦s¦ of gold = 41 + + iron ore¦s @an = 15 + iron block¦s @an = 42 + block¦¦s¦ of iron = 42 + + coal ore¦s = 16 + + lapis [lazuli] ore¦s = 21 + lapis [lazuli] block¦s = 22 + + # redstone ore: see redstone + + diamond ore¦s = 56 + diamond block¦s = 57 + block¦¦s¦ of diamond = 57 + + emerald ore¦s @an = 129 + emerald block¦s @an = 133 + block¦¦s¦ of emerald = 133 + packed ice = 174 + + + # -- wood, leaves, saplings & planks -- + {tree type}: # also used for wooden slabs + {default} = :0-15 + (normal|regular|oak) = :0, :4, :8, :12 + (pine|redwood|fir|spruce) = :1, :5, :9, :13 + birch = :2, :6, :10, :14 + jungle = :3, :7, :11, :15 + + {log direction}: + {default} = :0-3 + vertical = :0-3 + east-west = :4-7 + west-east = :4-7 + south-north = :8-11 + north-south = :8-11 + horizontal = :4-11 + rotated = :4-11 + full[[ ]block] = :12-15 + any = :0-15 + {log direction no default}: + vertical = :0-3 + east-west = :4-7 + west-east = :4-7 + south-north = :8-11 + north-south = :8-11 + horizontal = :4-11 + rotated = :4-11 + full[[ ]block] = :12-15 + any = :0-15 + + {log direction no default} {tree type} (log¦s|wood) = 17 + {log direction} {tree type} (log|wood) (item¦s|block¦s) = 17 + {tree type} leaves = 18 + {tree type} permanent leaves = 18:4-7, 18:12-15 + {tree type} sapling¦s = 6:0-3 + {tree type} plank¦s = 5:0-3 + {tree type} wood[en] plank¦s = 5:0-3 + + + # -- sponge -- + sponge¦s = 19 + + + # -- glass -- + glass = 20 + glass pane¦s = 102 + thin glass = 102 + window¦s = 102 + window glass = 102 + + + # -- lapis lazuli -- + # lapis ore & block: see ores & blocks + # lapis lazuli: see dyes + + + # -- dispenser -- + dispenser¦s = 23 + + + # -- sandstone -- + sand[ ]stone¦s = 24 + + + # -- note block -- + note block¦s = 25 + + + # -- bed -- + {bed occupied}: + occupied = :4-7, :12-15 + (free|empty) = :0-3, :8-11 + {bed part}: + (head|top) = :8-15 + (foot|bottom) = :0-7 + {bed occupied} bed [block] {bed part} = 26 + bed¦s = 26, 355 + bed block¦s = 26 + bed item¦s = 355 + + + # -- minecart rails -- + {minerail}: + straight = :0-5 + straight flat = :0-1 + flat straight = :0-1 + curved = :6-9 + flat = :0-1, :6-9 + inclined = :2-5 + {minerail straight}: + flat = :0-1, :8-9 + inclined = :2-5, :10-13 + # normal rail + [any] {minerail} [minecart] (rail|track)[s] = 27, 28, 66 + {minerail} [minecart] (rail|track)[s] (item|block) = 66 + # powered rail + {minerail straight} powered [minecart] (rail|track) = 27 + {minerail straight} [minecart] booster¦s = 27 + {minerail straight} [minecart] booster (rail|track)¦s = 27 + {minerail straight} powered [minecart] (rail|track)¦ on¦s on = powered rail:8-15 + {minerail straight} powered [minecart] (rail|track)¦ off¦s off = powered rail:0-7 + {minerail straight} active powered [minecart] (rail|track)¦s = powered rail:8-15 + {minerail straight} inactive powered [minecart] (rail|track)¦s = powered rail:0-7 + {minerail straight} [minecart] booster¦ on¦s on = powered rail:8-15 + {minerail straight} [minecart] booster¦ off¦s off = powered rail:0-7 + {minerail straight} [minecart] booster (rail|track)¦ on¦s on = powered rail:8-15 + {minerail straight} [minecart] booster (rail|track)¦ off¦s off = powered rail:0-7 + {minerail straight} (active|powered) [minecart] booster¦s = powered rail:8-15 + {minerail straight} (inactive|unpowered) [minecart] booster¦s = powered rail:0-7 + {minerail straight} (active|powered) [minecart] booster (rail|track)¦s = powered rail:8-15 + {minerail straight} (inactive|unpowered) [minecart] booster (rail|track)¦s = powered rail:0-7 + # detector rail + {minerail straight} detector [minecart] (rail|track)¦s = 28 + {minerail straight} detector [minecart] (rail|track)¦ on¦s on = detector rail:8-15 + {minerail straight} detector [minecart] (rail|track)¦ off¦s off = detector rail:0-7 + {minerail straight} active detector [minecart] (rail|track)¦s = detector rail:8-15 + {minerail straight} inactive detector [minecart] (rail|track)¦s = detector rail:0-7 + # activator rail + {minerail straight} activator [minecart] (rail|track)¦s = 157 + + + # -- sticky piston: see redstone + + + # -- cobweb -- + cobweb¦s = 30 + + + # -- vegetation -- + + # saplings & leaves: see wood + + any tall grass = 31:1-2 + dead grass = 31:0 + tall grass = 31:1 + long grass = 31:1 + fern¦s = 31:2 + + dead shrub¦s = 32 + dead bush¦es = 32 + + dandelion¦s = 37 + yellow flower¦s = 37 + rose¦s = 38 + red rose¦s = 38 + red flower¦s = 38 + flower¦s = 37, 38 + + mushroom¦s = 39, 40 + brown mushroom¦s = 39 + red mushroom¦s = 40 + + {huge mushroom type}: + {default} = 99, 100 + brown = 99 + red = 100 + huge {huge mushroom type} mushroom¦s = : + huge {huge mushroom type} mushroom stem¦s = :10 + huge {huge mushroom type} mushroom cap¦s = :1-9 #0 is not a real cap piece + + pumpkin¦s = 86 + jack-o-lantern¦s = 91 + glowing pumpkin¦s = 91 + pumpkin stem¦s = 104 + pumpkin seeds = 361 + pumpkin pie¦s = 400 + + melon¦s = 103 + melon block¦s = 103 + melon slice¦s = 360 + melon stem¦s = 105 + melon seeds = 362 + + vines = 106 + # the amount of vines here refers to the number of vines on the sides of the vine block. + # the top vine is always present if there's a solid block above the vines or the data is 0. + no vine[s] = 106:0 + single vine = 106:1, 106:2, 106:4, 106:8 + double vine[s] = 106:3, 106:5, 106:9, 106:6, 106:10, 106:12 + triple vine[s] = 106:7, 106:11, 106:13, 106:14 + quadruple vine[s] = 106:15 + + lily pad¦s = 111 + + nether wart¦s = 115, 372 + nether wart block¦s = 115 + nether wart item¦s = 372 + ripe nether wart¦s = 115:3 + freshly planted nether wart¦s = 115:0 + + cocoa = 127 + cocoa plant¦s = 127 + (freshly planted|small) cocoa [plant¦s] = 127:0-3 + medium cocoa [plant¦s] = 127:4-7 + (ripe|big|large) cocoa [plant¦s] = 127:8-11 + + {flower pot}: + (empty|nothing) = :0 + (rose|red flower) = :1 + (dandelion|yellow flower) = :2 + flower = :1-2 + (normal|regular|oak) sapling = :3 + (pine|redwood|fir|spruce) sapling = :4 + birch sapling = :5 + jungle [tree] sapling = :6 + sapling = :3-6 + red mushroom = :7 + brown mushroom = :8 + mushroom = :7-8 + cactus = :9 + dead bush = :10 + fern = :11 + {flower pot} flower pot¦s = 140 + {flower pot} flower pot block¦s = 140 + flower pot (holding|containing|with) [a[n]] {flower pot} = 140 + flower pot item¦s = 390 + flower pot¦s = 140, 390 + + carrot plant¦s = 141 + carrot[s] block¦s = 141 + carrot[s] [item¦s] = 391 + golden carrot¦s = 396 + any carrot[s] [item¦s] = 391, 396 + carrot¦ on a stick¦s on sticks = 398 + + potato plant¦s = 142 + potato[es] block¦s = 142 + potato¦es = 392 + potato[es] item¦s = 392 + baked potato¦es = 393 + poisonous potato¦es = 394 + any potato¦es = 392, 393, 394 + + + # -- pistons: see redstone + + + # -- wool, carpets and dyes -- + # note: it's not possible to make a {colour} variation, as dye and wool colour data values are different. + {wool}: # also used for stained clay + any = :0-15 + white = :0 + orange = :1 + magenta = :2 + light blue = :3 + yellow = :4 + light green = :5 + pink = :6 + gray = :7 + light gray = :8 + cyan = :9 + purple = :10 + blue = :11 + brown = :12 + [dark] green = :13 + red = :14 + black = :15 + {wool} wool = 35:0-15 + {wool} (carpet|rug)¦s = 171:0-15 + + dye¦s = 351:0-15 + white dye¦s = 351:15 + bone[ ]meal¦s = 351:15 + orange dye¦s = 351:14 + magenta dye¦s = 351:13 + light blue dye¦s = 351:12 + yellow dye¦s = 351:11 + dandelion yellow [dye¦s] = 351:11 + light green dye¦s = 351:10 + pink dye¦s = 351:9 + gray dye¦s = 351:8 + light gray dye¦s = 351:7 + cyan dye¦s = 351:6 + purple dye¦s = 351:5 + blue dye¦s = 351:4 + lapis [lazuli¦s] = 351:4 + cocoa beans = 351:3 + brown dye¦s = 351:3 + [dark] green dye¦s = 351:2 + cactus green [dye¦s] = 351:2 + red dye¦s = 351:1 + rose red = 351:1 + black dye¦s = 351:0 + ink sack¦s = 351:0 + + + # -- block 36 -- + block 36 = 36 + block moved by piston = 36 + moving block¦s = 36 + + + # -- flowers & mushrooms: see vegetation + + + # -- iron & gold block: see ores & blocks + + + # -- single & double steps / slabs -- + {any slab}: + {default} = 44, 126 + single = 44, 126 + double = 43, 125 + {stone slab}: + {default} = 44 + single = 44 + double = 43 + {wooden slab}: + {default} = 126 + single = 126 + double = 125 + + {slab facing}: + {default} = :0-7 + regular = :0-7 + default = :0-7 + upside-down = :8-15 + any = :0-15 + {slab facing no default}: + regular = :0-7 + default = :0-7 + upside-down = :8-15 + any = :0-15 + + {stone slab type}: + {default} = :0-1, :3-5, :8-9, :11-13 + any = :0-1, :3-5, :8-9, :11-13 + stone = :0, :8 + sandstone = :1, :9 + cobble[stone] = :3, :11 + brick = :4, :12 + stone brick[s]) = :5, :13 + {stone slab type no default}: + any = :0-1, :3-5, :8-9, :11-13 + stone = :0, :8 + sandstone = :1, :9 + cobble[stone] = :3, :11 + brick = :4, :12 + stone brick[s]) = :5, :13 + + # variation {tree type}: see wood + {slab facing no default} {stone slab} {stone slab type no default} (step|slab)¦s = : + {slab facing} {stone slab} {stone slab type} (step|slab) (block|item)¦s = : + {slab facing no default} {wooden slab} {tree type} [wood[en]] (step|slab)¦s = :0-3, :8-11 + {slab facing} {wooden slab} {tree type} (step|slab) (block|item)¦s = : + {slab facing no default} {any slab} (step|slab)¦s = : + {slab facing} {any slab} (step|slab) (block|item)¦s = : + + + # -- bricks & clay -- + [clay] brick¦s = 45, 336 + [clay] brick[s] = 45 + [clay] brick[s] = 336 + + {wool} [stained] [hard[ened]] clay = 159 + + clay = 82, 337 + clay = 82 + clay = 337 + clay ball¦s = 337 + + hard[ened] clay = 172 + + + # -- TNT -- + TNT¦s = 46 + dynamite = 46 + + + # -- bookshelf -- + bookshel¦f¦ves = 47 + + + # -- mossy cobblestone: see cobblestone + + + # -- obsidian -- + obsidian = 49 + + + # -- torch -- + {torch}: #also used for redstone torches + ground = :5 + floor = :5 + wall = :1-4 + {torch} torch¦es = 50 + + + # -- fire -- + fire¦s = 51 + (eternal|infinite) fire¦s = 51:15 #never tested this myself + finite fire¦s = 51:0-14 + (new|fresh) fire¦s = 51:0 + + + # -- monster spawner -- + monster spawner¦s = 52 + mob spawner¦s = 52 + + + # -- stairs -- + {stairs}: + {default} = 53, 134, 135, 136, 67, 108, 109, 114, 128, 156 + (oak|regular|normal) [wood] = 53 + (spruce|fir|redwood|pine) [wood] = 134 + birch [wood] = 135 + jungle [wood] = 136 + [any] wood[en] = 53, 134, 135, 136 + cobble[stone] = 67 + [clay] brick[s] = 108 + stone brick[s] = 109 + nether [brick[s]] = 114 + sand[ ]stone = 128 + [nether] quarz = 156 + {stairs direction}: + {default} = :0-3 + any = :0-7 + upside-down = :4-7 + {stairs direction no default}: + any = :0-7 + upside-down = :4-7 + + {stairs direction no default} {stairs} stair[s] = : + {stairs direction} {stairs} stair[s] (block|item)¦s = : + + + # -- chest -- + chest¦s = 54 + ender chest¦s = 130 + trapped chest¦s = 146 + + + # -- redstone wire: see redstone + + + # -- diamond ore & block: see ores & blocks + + + # -- crafting table -- + crafting table¦s = 58 + workbench¦es = 58 + + + # -- crops / wheat -- + crops = 59 + wheat block¦s = 59 + wheat item¦s = 296 + wheat = 59, 296 + [wheat] seeds = 295 + freshly planted (crops|wheat) = 59:0 + ripe (crops|wheat) = 59:7 + + + # -- farmland/soil -- + (farmland|soil) = 60 + dry (farmland|soil) = 60:0 + wet (farmland|soil) = 60:1-8 + + + # -- furnace -- + furnace¦s = 61, 62 + (burning|lighted|lit) furnace¦s = 62 + furnace¦ on¦s on = 62 + (non-burning|unlighted|unlit|extinguished) furnace¦s = 61 + furnace¦ off¦s off = 61 + + + # -- signs -- + sign post¦s = 63 + wall sign¦s = 68 + sign block¦s = 63, 68 + sign item¦s = 323 + sign¦s = 63, 68, 323 + + + # -- doors, trapdoors and fence gates -- + # I currently discourage from creating aliases like 'open door' or doors with specific facings + # as any 'block is ' condition will fail if you click the wrong part of the door. + # 'set to door:1' will correctly place an open door though. + {doortype}: + {default} = 64, 71 + wood[en] = 64 + iron = 71 + {doorhalf}: + top¦s = :8-9 + bottom¦s = :0-7 + {doortype} door [block] {doorhalf} = : + {doortype} door block¦s = : + wood[en] door item¦s = 324 + wood[en] door¦s = 324, 64 + iron door item¦s = 330 + iron door¦s = 330, 71 + door item¦s = 330, 324 + door¦s = 330, 71, 324, 64 + + trapdoor¦s = 96 + open[ed] trapdoor¦s = 96:4-7 + closed trapdoor¦s = 96:0-3 + + fence gate¦s = 107 + open[ed] fence gate¦s = 107:4-7 + closed fence gate¦s = 107:0-3 + + + # -- ladder -- + ladder¦s = 65 + + + # -- rails: see minecart rails + + + # -- coblestone stairs: see stairs + + + # -- redstone -- + [redstone] wire¦s = 55 + [redstone] wire¦ on¦s on = 55:1-15 + [redstone] wire¦ off¦s off = 55:0 + powered [redstone] wire¦s = redstone wire on + unpowered [redstone] wire¦s = redstone wire off + active [redstone] wire¦s = redstone wire on + inactive [redstone] wire¦s = redstone wire off + + redstone ore¦s = 73, 74 + (active|glowing) redstone ore¦s = 74 + (inactive|non-glowing) redstone ore¦s = 73 + redstone ore¦ on¦s on = 74 + redstone ore¦ off¦s off = 73 + + # variation {torch}: see torch + {torch} redstone torch¦es = 75, 76 + {torch} redstone torch¦ on¦es on = 76 + active {torch} redstone torch¦es = 76 + {torch} redstone torch¦ off¦es off = 75 + inactive {torch} redstone torch¦es = 75 + + {diodedelay}: + 1-tick[-delay] = :0-3 + 2-tick[-delay] = :4-7 + 3-tick[-delay] = :8-11 + 4-tick[-delay] = :12-15 + {diodedelay} [redstone] (repeater|diode)[ block]¦s = 93, 94 + [redstone] (repeater|diode) item¦s = 356 + [redstone] (repeater|diode)¦s = 356, 93, 94 + {diodedelay} [redstone] (repeater|diode)[ block]¦ on¦s on = 94 + {diodedelay} [redstone] (repeater|diode)[ block]¦ off¦s off = 93 + (active|powered) {diodedelay} [redstone] (repeater|diode)[ block]¦s = 94 + (inactive|unpowered) {diodedelay} [redstone] (repeater|diode)[ block]¦s = 93 + + {lever position}: + wall = :1-4, :9-12 + ground = :5-6, :13-14 + floor = :5-6, :13-14 + {lever position} lever¦s = 69 + {lever position} lever¦ on¦s on = 69:8-15 + (pulled|thrown|active) {lever position} lever¦s = 69:8-15 + {lever position} lever¦ off¦s off = 69:0-7 + (unpulled|unthrown|inactive) {lever position} lever¦s = 69:0-7 + + {button}: + {default} = 77, 143 + stone = 77 + wood[en] = 143 + {button} button¦s = : + {button} button¦ on¦s on = :8-15 + pressed {button} button¦s = :8-15 + active {button} button¦s = :8-15 + {button} button¦ off¦s off = :0-7 + unpressed {button} button¦s = :0-7 + inactive {button} button¦s = :0-7 + + {pressure plate}: + {default} = 70, 72, 147, 148 + wood[en] = 72 + stone = 70 + gold[en] = 147 + iron = 148 + {pressure plate} [pressure] plate¦s = : + (pressed|active) {pressure plate} [pressure] plate¦s = :1 + (unpressed|inactive) {pressure plate} [pressure] plate¦s = :0 + {weighted pressure plate}: + {default} = 147, 148 + gold[en] = 147 + light = 147 + iron = 148 + heavy = 148 + {weighted pressure plate} weighted [pressure] plate¦s = : + (pressed|active) {weighted pressure plate} weighted [pressure] plate¦s = :1 + (unpressed|inactive) {weighted pressure plate} weighted [pressure] plate¦s = :0 + + piston base¦s = 33 + sticky piston base¦s = 29 + any piston base¦s = 33, 29 + # + piston extension¦s = 34:0-5 + sticky piston extension¦s = 34:8-13 + any piston extension¦s = 34 + # + piston¦s = piston base, piston extension + piston (item|block)¦s = piston base + sticky piston¦s = sticky piston base, sticky piston extension + sticky piston (item|block)¦s = sticky piston base + any piston¦s = 29, 33, 34 + # + extended piston base¦s = 33:8-13 + extended sticky piston base¦s = 29:8-13 + any extended piston base¦s = extended piston base, extended sticky piston base + # + extended piston¦s = extended piston base, piston extension + extended sticky piston¦s = extended sticky piston base, sticky piston extension + any extended piston¦s = any extended piston base, any piston extension + # + retracted piston¦s = 33:0-5 + retracted sticky piston¦s = 29:0-5 + any retracted piston¦s = retracted piston, retracted sticky piston + + redstone lamp¦s = 123, 124 + (inactive|unpowered|unlit) restone lamp¦s = 123 + restone lamp¦ off¦s off = 123 + (active|glowing|powered|lit) redstone lamp¦s = 124 + redstone lamp¦ on¦s on = 124 + + redstone comparator¦s = 149, 150 + redstone comparator block¦s = 149 + redstone comparator item¦s = 404 + (inactive|unpowered) redstone comparator¦s = 149 + (active|powered) redstone comparator¦s = 150 + + daylight sensor¦s = 151 + + redstone block¦s = 152 + block¦¦s¦ of redstone = 152 + + hopper¦s = 154 + + dropper¦s = 158 + + + # -- snow & ice -- + snow layer¦s = 78 + ice [block¦s] @an = 79 + snow [block¦s] = 80 + + + # -- cactus -- + cact¦us¦i = 81 + cactuses = 81 + + + # -- clay block: see bricks -- + + + # -- sugar cane -- + [sugar] cane¦s = 83, 338 + [sugar] cane block¦s = 83 + [sugar] cane item¦s = 338 + + + # -- jukebox -- + jukebox¦es = 84 + + + # -- fence -- + fence¦s = 85 + + + # -- pumpkin & lack-o-lantern: see vegetation + + + # -- nether stuff -- + netherrack¦s = 87 + soul[ ]sand¦s = 88 + glowstone¦s = 89 + [nether] portal¦s = 90 + + + # -- cake -- + cake¦s = 92, 354 + cake block¦s = 92 + cake item¦s = 354 + + + # -- redstone repeater: see redstone + + + # -- locked chest -- + locked chest¦s = 95 + + + # -- trapdoor: see doors + + + # -- hidden silverfish -- + silverfish block¦s = 97:0-2 + hidden silverfish¦es = 97:0-2 + [hidden] [smooth] stone silverfish¦es = 97:0 + [hidden] cobble[stone] silverfish¦es = 97:1 + [hidden] stone brick[s] silverfish¦es = 97:2 + + + # -- stone bricks -- + stone brick¦s = 98:0-3 + stone brick¦s = 98:0-3 + stone brick[s] (item|block)¦s = 98:0 + smooth [stone] brick¦s = 98:0 + mossy [stone] brick¦s = 98:1 + cracked [stone] brick¦s = 98:2 + (circle|fancy|decorated) [stone] brick¦s = 98:3 + + + # -- huge mushrooms: see vegetation + + + # -- iron bars -- + [iron] bars @x = 101 + + + # -- glass pane: see glass + + + # -- melon, stems & vines: see vegetation + + + # -- fence gate: see doors + + + # -- brick & stone brick stairs: see stairs + + + # -- mycelium -- + mycelium = 110 + mushroom (floor|ground|grass) = 110 + + + # -- lily pad: see vegetation + + + # -- nether brick stuff -- + nether brick¦s = 112, 405 + nether brick block¦s = 112 + nether brick item¦s = 405 + nether [brick[s]] fence¦s = 113 + # nether brick stairs: see stairs + + + # -- nether wart: see vegetation + + + # -- enchantment table -- + enchantment table¦s = 116 + + + # -- brewing stand -- + brewing stand¦s = 117, 379 + brewing stand block¦s = 117 + brewing stand item¦s = 379 + empty brewing stand¦s @an = 117:0 + full brewing stand¦s = 117:7 + + + # -- cauldron -- + cauldron¦s = 118, 380 + cauldron block¦s = 118 + cauldron item¦s = 380 + empty cauldron¦s @an = 118:0 + full cauldron¦s = 118:3 + + + # -- End stuff -- + end[er] portal¦s @an = 119 + + end[er] portal frame¦s @an = 120 + empty end[er] portal frame¦s @an = 120:0-3 + filled end[er] portal frame¦s = 120:4-7 + end[er] stone¦s @an = 121 + + dragon egg¦s = 122 + ender[ ]dragon egg¦s @an = 122 + + + # -- redstone lamp: see redstone + + + # -- emerald ore/block: see ores + + + # -- ender chest: see chest + + + # -- tripwire & hook + tripwire¦s = 132 + [tripwire] hook¦s = 131 + + + # -- wooden stairs: see stairs + + + # -- command block -- + command block¦s = 137 + + + # -- beacon -- + beacon¦s = 138 + + + # -- cobblestone walls -- + cobble[stone] wall¦s = 139:0-1 + cobble[stone] wall (item|block)¦s = 139:0 + (normal|regular) cobble[stone] wall¦s = 139:0 + moss[y] cobble[stone] wall¦s = 139:1 + + + # -- flower pot, carrots, potatoes: see vegetation -- + + + # -- wooden button: see redstone -- + + + # -- mob head -- + {mob head direction}: + floor = :1 + wall = :2-5 + {mob head type}: + skeleton = :0 + wither skeleton = :1 + zombie = :2 + (human|player) = :3 + creeper = :4 + {mob head type} [mob] head[ item]¦s = 397 + {mob head direction} [mob] head[ block]¦s = 144 + [mob] head¦s = 144, 397 + + + # -- anvil -- + {anvil}: + (regular|complete) @a = :0-1 + undamaged @an = :0-1 + [slightly] damaged @a = :4-5 + (very|heavily|severely) damaged @a = :8-9 + {anvil} anvil¦s @an = 145 + + + # -- trapped chest: see chest + + + # -- weighted pressure plates, redstone comparator, daylight sensor, redstone block: see redstone + + + # -- nether quarz ore, quarz block -- + [nether] quartz ore = 153 + {quartz block}: + (normal|regular) = :0 + chiseled = :1 + pillar = :2-3 + vertical pillar = :2 + horizontal pillar = :3-4 + ns pillas = :3 + ew pillar = :4 + {quartz block} [nether] quartz = 155 + {quartz block} [nether] quartz block¦s = 155 + pillar [nether] quartz (block|item) = 155:2 + [nether] quartz = 155, 406 + [nether] quartz item¦s = 406 + # quarz stairs: see stairs + + + # -- hopper: see redstone + + + # -- activator rail: see rails + + + # -- dropper: see redstone + + + # -- stained clay: see clay + + + # -- hay block -- + (hay|wheat) block¦s = 170 + block¦¦s¦ of (hay|wheat) = 170 + + + # -- carpet: see wool + + + # -- hardened clay: see clay + + + # -- block of coal: see coal + + + + + + + + # ====== Items ====== + + # -- flint and steel -- + flint and steel¦s = 259 + flint'n'steel¦s = 259 + + + # -- apples -- + apple¦s = 260, 322:0-1 + apple¦s @an = 260 + red apple¦s = 260 + golden apple¦s = 322:0-1 + golden apple item¦s = 322:0 + enchanted golden apple¦s @an = 322:1 + + + # -- bow & arrow -- + bow¦s = 261 + arrow¦s = 262 + + + # -- coal -- + coal = 263:0-1 + charcoal = 263:1 + coal = 263:0, 173 + coal = 263:0 + coal = 173 + block¦¦s¦ of coal = 173 + + + # -- diamond & ingots -- + diamond¦s = 264 + iron (ingot|bar)¦s @an = 265 + gold[en] (ingot|bar)¦s = 266 + ingot¦s @an = 265, 266 + + + # -- tools -- + sword¦s = 267, 268, 272, 276, 283 + pick[axe]¦s = 270, 274, 257, 278, 285 + axe¦s @an = 271, 275, 258, 279, 286 + shovel¦s = 269, 273, 256, 277, 284 + spade¦s = shovel + hoe¦s = 290, 291, 292, 293, 294 + + wood[en] tool¦s = 268, 269, 270, 271, 290 + stone tool¦s = 272, 273, 274, 275, 291 + iron tool¦s @an = 256, 257, 258, 267, 292 + diamond tool¦s = 276, 277, 278, 279, 293 + gold[en] tool¦s = 283, 284, 285, 286, 294 + + wood[en] sword¦s = 268 + wood[en] (shovel|spade)¦s = 269 + wood[en] pick[axe]¦s = 270 + wood[en] axe¦s = 271 + wood[en] hoe¦s = 290 + + stone sword¦s = 272 + stone (shovel|spade)¦s = 273 + stone pick[axe]¦s = 274 + stone axe¦s = 275 + stone hoe¦s = 291 + + iron sword¦s @an = 267 + iron (shovel|spade)¦s @an = 256 + iron pick[axe]¦s @an = 257 + iron axe¦s @an = 258 + iron hoe¦s @an = 292 + + diamond sword¦s = 276 + diamond (shovel|spade)¦s = 277 + diamond pick[axe]¦s = 278 + diamond axe¦s = 279 + diamond hoe¦s = 293 + + gold[en] sword¦s = 283 + gold[en] (shovel|spade)¦s = 284 + gold[en] pick[axe]¦s = 285 + gold[en] axe¦s = 286 + gold[en] hoe¦s = 294 + + + # -- stick -- + stick¦s = 280 + + + # -- bowl & stew -- + bowl¦s = 281 + empty bowl¦s @an = 281 + [mushroom] (stew|soup)¦s = 282 + + + # -- string -- + string¦s = 287 + + + # -- feather -- + feather¦s = 288 + + + # -- gunpowder -- + gunpowder = 289 + sulphur = 289 + + + # -- wheat & seeds: see crops / wheat + bread¦s = 297 + + + # -- armour -- + helmet¦s = 298, 302, 306, 310, 314 + chestplate¦s = 299, 303, 307, 311, 315 + leg[ging]s @x = 300, 304, 308, 312, 316 + boots @x = 301, 305, 309, 313, 317 + + leather armo[u]r¦s = 298, 299, 300, 301 + chain[mail] armo[u]r¦s = 302, 303, 304, 305 + iron armo[u]r¦s = 306, 307, 308, 309 + diamond armo[u]r¦s = 310, 311, 312, 313 + gold armo[u]r¦s = 314, 315, 316, 317 + + leather (cap|helmet)¦s = 298 + leather (tunic|chest[plate])¦s = 299 + leather (pants|leg[ging]s) @x = 300 + leather boots @x = 301 + + chain[mail] helmet¦s = 302 + chain[mail] chestplate¦s = 303 + chain[mail] leggings @x = 304 + chain[mail] boots @x = 305 + + iron helmet¦s @an = 306 + iron chest[plate]¦s @an = 307 + iron leg[ging]s @x = 308 + iron boots @x = 309 + + diamond helmet¦s = 310 + diamond chest[plate]¦s = 311 + diamond leg[ging]s @x = 312 + diamond boots @x = 313 + + gold[en] helmet¦s = 314 + gold[en] chest[plate]¦s = 315 + gold[en] leg[ging]s @x = 316 + gold[en] boots @x = 317 + + + # -- flint -- + flint¦s = 318 + + + # -- porkchop -- + [] pork[chop]¦s = 319, 320 + pork[chop] item¦s = 319 + raw pork[chop]¦s = 319 + (cooked|grilled) pork[chop]¦s = 320 + + + # -- painting -- + painting¦s = 321 + painting item¦s = 321 + + + # -- golden apple: see apples + + + # sign: see signs + + + # wooden door: see doors + + + # -- buckets -- + [empty] bucket¦s = 325 + water bucket¦s = 326 + bucket¦¦s¦ of water = 326 + lava bucket¦s = 327 + bucket¦¦s¦ of lava = 327 + milk [bucket¦s] = 335 + bucket¦¦s¦ of milk = 335 + + + # -- minecarts -- + [] minecart¦s = 328, 342, 343 + minecart item¦s = 328 + storage minecart¦s = 342 + minecart¦¦s¦ with chest = 342 + powered minecart¦s = 343 + minecart¦¦s¦ with furnace = 343 + minecart¦¦s¦ with TNT = 407 + minecart¦¦s¦ with hopper = 408 + + + # -- saddle -- + saddle¦s = 329 + + + # -- iron door: see doors + + + # -- redstone dust -- + redstone = 331 + redstone dust = 331 + + + # -- snowball -- + snowball¦s = 332 + + + # -- boat -- + boat¦s = 333 + + + # -- leather -- + leather = 334 + + + # -- milk: see buckets + + + # -- clay & clay brick: see bricks -- + + + # -- sugar cane: see sugar cane block + + + # -- paper & books -- + paper = 339 + book¦s = 340 + book¦¦s¦ (and|with) quill = 386 + written book¦s = 387 + + + # -- slimeball -- + slime[ball¦s] = 341 + + + # minecart with chest/furnace: see minecarts + + + # -- [chicken] egg -- + egg¦s @an = 344 + chicken egg¦s = 344 + + + # -- compass -- + compass¦es = 345 + + + # -- fishing rod -- + fishing rod¦s = 346 + + + # -- clock -- + clock¦s = 347 + + + # -- glowstone dust -- + glowstone dust = 348 + + + # -- fish -- + [] fish¦es = 349, 350 + fish item¦s = 349 + raw fish¦es = 349 + cooked fish¦es = 350 + + + # -- dyes: see wool & dyes + + + # -- bone -- + bone¦s = 352 + + + # -- sugar -- + sugar = 353 + + + # -- cake: see cake block + + + # -- bed: see bed block + + + # -- redstone repeater: see redstone + + + # -- cookie -- + cookie¦s = 357 + + + # -- map -- + map¦s = 358 + map¦s = 358:0-32767 + empty map¦s @an = 395 + # You can get a specific map with map:#, e.g. map:0 for map_0 (the first map crafted) + # (The maximum map number is 65536, but Skript currently only supports numbers up to 32767) + + + # -- shears -- + shears = 359 + + + # -- melon slice, pumpkin seeds & melon seeds: see vegetation + + + # -- beef -- + [] beef = 363, 364 + beef item¦s = 363, 364 + [raw] beef = 363 + steak¦s = 364 + cooked beef = 364 + + + # -- chicken -- + [] chicken¦s = 365, 366 + chicken item¦s = 365 + raw chicken¦s = 365 + cooked chicken¦s = 366 + + + # -- rotten flesh -- + rotten flesh = 367 + + + # -- ender pearl -- + ender pearl¦s @an = 368 + + + # -- blaze rod -- + blaze rod¦s = 369 + + + # -- ghast tear -- + ghast tear¦s = 370 + + + # -- gold nugget -- + gold nugget¦s = 371 + + + # -- nether wart: see vegetation + + + # -- potions & bottles -- + [glass] bottle¦s = 374 + vial¦s = 374 + water bottle¦s = 373:0 + bottle¦¦s¦ of water = 373:0 + + awkward potion¦s @an = 373:16 + + {splash potion}: + {default} = :0-16383 + non-splash = :0-16383 + splash = :16384-32767 + {splash potion no default}: + non-splash = :0-16383 + splash = :16384-32767 + + {extended potion}: + {default} = :0-63, :16384-16447 + unextended @an = :0-63, :16384-16447 + non-extended = :0-63, :16384-16447 + extended @an = :64-127, :16448-16511 + {extended potion no default}: + unextended @an = :0-63, :16384-16447 + non-extended = :0-63, :16384-16447 + extended @an = :64-127, :16448-16511 + + {potion tier}: + {default} = :0-31, :64-95, :16384-16415, :16448-16479 + (1|I) = :0-31, :64-95, :16384-16415, :16448-16479 + (2|II) = :32-63, :96-127, :16416-16447, :16480-16511 + {potion tier no default}: + (1|I) = :0-31, :64-95, :16384-16415, :16448-16479 + (2|II) = :32-63, :96-127, :16416-16447, :16480-16511 + + {potion effect}: + Regeneration = :1, :33, :65, :97, :16385, :16417, :16449, :16481 + (Swiftness|Speed) = :2, :34, :66, :98, :16386, :16418, :16450, :16482 + Fire Resistance = :3, :35, :67, :99, :16387, :16419, :16451, :16483 + Poison = :4, :36, :68, :100, :16388, :16420, :16452, :16484 + (Healing|[Instant] Health) = :5, :53, :69, :101, :16389, :16421, :16453, :16485 + Night Vision = :6, :38, :70, :102, :16390, :16422, :16454, :16486 + Weakness = :8, :40, :72, :104, :16392, :16424, :16456, :16488 + Strength = :9, :41, :73, :105, :16393, :16425, :16457, :16489 + Slowness = :10, :42, :74, :106, :16394, :16426, :16458, :16490 + (Harming|[Instant] Damage) = :12, :44, :76, :108, :16396, :16428, :16460, :16492 + Invisibility = :14, :46, :78, :110, :16398, :16430, :16462, :16494 + + {extended potion no default} {splash potion no default} potion¦¦s¦ [of {potion effect} {potion tier no default}] = 373 + {extended potion} {splash potion} potion¦¦s¦ [of {potion effect} {potion tier}] item = 373 + {extended potion no default} {splash potion no default} {potion effect} potion¦¦s¦ {potion tier no default} = 373 + {extended potion} {splash potion} {potion effect} potion {potion tier} item¦s = 373 + + + # -- spider eye & fermented spider eye -- + spider eye¦s = 375 + fermented spider eye¦s = 376 + + + # -- blaze powder -- + blaze powder = 377 + + + # -- magma cream -- + magma cream¦s = 378 + + + # -- eye of ender -- + eye¦¦s¦ of ender @an = 381 + + + # -- glistering melon -- + glistering melon¦s = 382 + + + # -- spawn egg -- + {entity type}: + experience orb @an = :2 + xp orb = :2 + TNT = :20 + minecart = :40 # < MC 1.5 + boat = :41 + minecart = :42 + minecart with chest = :43 + minecart with furnace = :44 + minecart with TNT = :45 + minecart with hopper = :46 + minecart with spawner = :47 + creeper = :50 + skeleton = :51 + spider = :52 + giant = :53 + zombie = :54 + slime = :55 + ghast = :56 + zombie pigman = :57 + pig[ ]zombie = :57 + enderman @an = :58 + cave spider = :59 + silverfish = :60 + blaze = :61 + magma cube = :62 + ender dragon @an = :63 + wither = :64 + witch = :66 + bat = :65 + pig = :90 + sheep = :91 + cow = :92 + chicken = :93 + squid = :94 + wolf = :95 + mooshroom = :96 + snow golem = :97 + ocelot @an = :98 + iron golem @an = :99 + horse = :100 + villager = :120 + ender crystal = :200 + + {entity type} spawn egg¦s = 383 + random spawn egg¦s = 383:50-52, 383:54-62, 383:65-66, 383:90-96, 383:98, 383:100, 383:120 # only working eggs + + + # -- bottle o' enchanting -- + bottle¦¦s¦ (o'|of) enchanting = 384 + (xp|exp[erience]) bottle¦s @an = 384 + + + # -- fire charge -- + fire charge¦s = 385 + + + # -- book and quill, written book: see book + + + # -- emerald -- + emerald¦s = 388 + + + # -- item frame -- + item frame¦s = 389 + + + # -- flower pot: see vegetation -- + + + # -- carrot, potatoes: see vegetation -- + + + # -- empty map: see map -- + + + # -- golden carrot: see vegetation -- + + + # -- mob head: see mob head block -- + + + # -- carrot on a stick: see vegetation -- + + + # -- nether star -- + nether star¦s = 399 + + + # -- pumpkin pie: see vegetation -- + + + # -- Fireworks -- + firework rocket¦s = 401 + firework star¦s = 402 + + + # -- Enchanted Book -- + enchanted book¦s @an = 403 + + + # -- redstone comparator: see redstone + + + # -- nether brick item: see nether brick stuff + + + # -- nether quarz: see nether quarz block + + + # -- minecart with TNT/hopper: see minecarts + + + # -- horse armour -- + iron horse armo[u]r¦s = 417 + gold horse armo[u]r¦s = 418 + diamond horse armo[u]r¦s = 419 + + + # -- lead -- + lead¦s = 420 + + + # -- name tag -- + name tag¦s = 421 + + + # -- music discs -- + music disc¦s = 2256, 2257, 2258, 2259, 2260, 2261, 2262, 2263, 2264, 2265, 2266, 2267 + record¦s = music disc + gold [music] disc¦s = 2256 + 13-disc¦s = 2256 + green [music] disc¦s = 2257 + cat [music] disc¦s = 2257 + blocks [music] disc¦s = 2258 + chirp [music] disc¦s = 2259 + far [music] disc¦s = 2260 + mall [music] disc¦s = 2261 + mellohi [music] disc¦s = 2262 + stal [music] disc¦s = 2263 + strad [music] disc¦s = 2264 + ward [music] disc¦s = 2265 + 11-disc¦s = 2266 + wait [music] disc¦s = 2267 diff --git a/Obam-Testing/broadcast.sk b/Obam-Testing/broadcast.sk new file mode 100644 index 0000000..593d015 --- /dev/null +++ b/Obam-Testing/broadcast.sk @@ -0,0 +1,4 @@ +command /broadcast : + permission: obam.admin + trigger: + broadcast argument \ No newline at end of file diff --git a/Obam-Testing/effect.sk b/Obam-Testing/effect.sk new file mode 100644 index 0000000..a66a2d6 --- /dev/null +++ b/Obam-Testing/effect.sk @@ -0,0 +1,138 @@ +command /effect [] [] []: + permission: obam.admin + trigger: + + argument 1 is not set: + send "1 ... hugeexplosion" + send "2 ... largeexplode" + send "3 ... bubble" + send "4 ... suspended" + send "5 ... depthsuspend" + send "6 ... townaura" + send "7 ... crit" + send "8 ... magicCrit" + send "9 ... smoke" + send "10 ... mobSpell" + send "11 ... mobSpellAmbient" + send "12 ... instantSpellAmbient" + send "13 ... witchMagic" + send "14 ... note" + send "15 ... portal" + send "16 ... enchantmenttable" + send "17 ... explode" + send "18 ... flame" + send "19 ... lava" + send "20 ... footstep" + send "21 ... splash" + send "22 ... largesmoke" + send "23 ... cloud" + send "24 ... reddust" + send "25 ... snowballpoof" + send "26 ... dripWater" + send "27 ... dripLava" + send "28 ... snowshovel" + send "29 ... slime" + send "30 ... heart" + send "31 ... angryVillager" + send "32 ... happyVillager" + send "33 ... redust?" + + argument 1 is set: + argument 1 is 1: + set {_effect} to "hugeexplosion" + argument 1 is 2: + set {_effect} to "largeexplod" + argument 1 is 3: + set {_effect} to "bubble" + argument 1 is 4: + set {_effect} to "suspended" + argument 1 is 5: + set {_effect} to "depthsuspend" + argument 1 is 6: + set {_effect} to "townaura" + argument 1 is 7: + set {_effect} to "crit" + argument 1 is 8: + set {_effect} to "magicCrit" + argument 1 is 9: + set {_effect} to "smoke" + argument 1 is 10: + set {_effect} to "mobSpell" + argument 1 is 11: + set {_effect} to "mobSpellAmbient" + argument 1 is 12: + set {_effect} to "isntantSpellAmbient" + argument 1 is 13: + set {_effect} to "witchMagic" + argument 1 is 14: + set {_effect} to "note" + argument 1 is 15: + set {_effect} to "portal" + argument 1 is 16: + set {_effect} to "enchantmenttable" + argument 1 is 17: + set {_effect} to "explode" + argument 1 is 18: + set {_effect} to "flame" + argument 1 is 19: + set {_effect} to "lava" + argument 1 is 20: + set {_effect} to "footstep" + argument 1 is 21: + set {_effect} to "splash" + argument 1 is 22: + set {_effect} to "largesmoke" + argument 1 is 23: + set {_effect} to "cloud" + argument 1 is 24: + set {_effect} to "reddust" + argument 1 is 25: + set {_effect} to "snowballpoof" + argument 1 is 26: + set {_effect} to "dripWater" + argument 1 is 27: + set {_effect} to "dripLava" + argument 1 is 28: + set {_effect} to "snowshovel" + argument 1 is 29: + set {_effect} to "slime" + argument 1 is 30: + set {_effect} to "heart" + argument 1 is 31: + set {_effect} to "angryVillager" + argument 1 is 32: + set {_effect} to "happyVillager" + argument 1 is 33: + set {_loc} to block above player's head + play argument 2 of effect "blockcrack_152_0" with data argument 3 at location of player + stop + + set {_location} to block above player + + play argument 2 of effect {_effect} with data argument 3 at {_location} + +command /lighton: + permission: obam.admin + trigger: + {light.%player%} is not set: + set {light.%player%} to false + {light.%player%} is false: + set {light.%player%} to true + send "&aLights on" + stop + {light.%player%} is true: + set {light.%player%} to false + send "&cLights off" + make player see {light.%player%.lastblock} as {light.%player%.lastblock} + clear {light.%player%.lastblock} + loop {light.%player%::*}: + make player see loop-value as loop-value + stop + +every 3 seconds: + loop all players: + {light.%loop-player%} is true: + set {_loc} to location of player + make loop-player see block below loop-player as torch + wait 2.8 seconds + make loop-player see block below loop-player as torch \ No newline at end of file diff --git a/Obam-Testing/modbridge.sk b/Obam-Testing/modbridge.sk new file mode 100644 index 0000000..da3ae18 --- /dev/null +++ b/Obam-Testing/modbridge.sk @@ -0,0 +1,13 @@ +command /modpush : + trigger: + forward command "/modcatch %argument%" to console +command /modcatch : + permission: obam.admin + trigger: + + wait 1 tick + broadcast "Mod Command" + loop all players: + {db_channel.staff::%loop-player%} is set: + + send argument to loop-player \ No newline at end of file diff --git a/Obam-Testing/schat2.sk b/Obam-Testing/schat2.sk new file mode 100644 index 0000000..2af594a --- /dev/null +++ b/Obam-Testing/schat2.sk @@ -0,0 +1,187 @@ +options: + p: &c[W] + + + +on join: + {db_global.%player%} is not set: + set {db_global.%player%} to true + {db_global.%player%} is true: + set {db_channel.global::%player%} to player + set {db_channel.%player%} to "global" + player does not have permission "obam.supporter": + delete {db_channel.supporter::%player%} + player does not have permission "obam.mod": + delete {db_channel.supporter::%player%} + {db_channel.sup.%player%} is not set: + player has permission "obam.supporter" + set {db_channel.sup.%player%} to true + {db_channel.sup.%player%} is true: + set {db_channel.supporter::%player%} to player + {db_channel.staff.%player%} is not set: + player has permission "obam.mod" + set {db_channel.staff.%player%} to player + {db_channel.staff.%player%} is true: + set {db_channel.supporter::%player%} to player + +on chat: + cancel event + player is "IcecreamCow" or "Electric_Hamster" or "ISMOOCH": + + set {_pre} to "{@p} &d[A] %player%" + {_pre} is not set: + player has permission "obam.mod": + set {_pre} to "{@p} &2[M] %player%" + {_pre} is not set: + player has permission "obam.ultimate": + set {_pre} to "{@p} &6[^] %player%" + {_pre} is not set: + player has permission "obam.plus": + set {_pre} to "{@p} &b[+] %player%" + {_pre} is not set: + set {_pre} to "{@p} %player%" + player is "BruSwain": + set {_pre} to "{@p} &6[^] %player%" + + {db_channel.%player%} is "staff": + player does not have permission "obam.mod": + set {db_channel.%player%} to "global" + delete {db_channel.staff::%player%} + {db_channel.%player%} is "staff": + loop {db_channel.staff::*}: + clear {_player} + + set {_player} to loop-index parsed as player + set message to "&2%message%" + set {_message} to "%{_pre}%&2: %message%" + + send "%{_message}%" to {_player} + + execute console command "/modpush %{_pre}%&2: %message%" + + + {db_channel.%player%} is "supporter": + player does not have permission "obam.supporter": + set {db_channel.%player%} to "global" + delete {db_channel.supporter::%player%} + {db_channel.%player%} is "supporter": + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-index parsed as player + set message to "&b%message%" + set {_message} to "%{_pre}%&b: %message%" + + send "%{_message}%" to {_player} + + execute console command "/supporterpush %{_message}%" + + + stop + + {db_channel.%player%} is "global": + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-index parsed as player + + send "%{_pre}%&f: %message%" to {_player} + + + execute console command "globalpush %{_pre}%&f: %message%" + + stop + + + + +command /chat [] []: + permission: obam.free + aliases: c, ch + trigger: + + argument 1 is "m" or "mod": + player does not have permission "obam.mod": + send "&cYou dont have permission to do this!" + stop + set {db_channel.%player%} to "staff" + send "&aYou are now chatting in the &2Mod&a channel!" + stop + argument 1 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou dont have permission to do this!" + stop + set {db_channel.%player%} to "supporter" + send "&aYou are now chatting in the &bSupporter&a channel!" + + argument 1 is "g" or "global": + set {db_channel.%player%} to "global" + send "&aYou are now chatting in the &fGlobal&a channel!" + + argument 1 is "l" or "leave": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat leave " + stop + argument 2 is "mod" or "m": + send "&cYou can not leave the staff chat silly" + stop + argument 2 is "s" or "supporter": + send "&cYou are now leaving the &bSupporter&c chat!" + delete {db_channel.supporter::%player%} + stop + argument 2 is "g" or "global": + send "&cYou are now leaving the &fGlobal&c chat!" + delete {db_channel.global::%player%} + stop + argument 1 is "j" or "join": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat join " + stop + argument 2 is "mod" or "m": + player does not have permission "obam.mod": + send "&cYou do not have permission to do this!" + stop + {db_channel.staff::%player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.staff::%player%} to player + set {db_channel.%player%} to "staff" + send "&aYou are now in the &2Mod&a channel!" + stop + + argument 2 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou do not have permission to do this!" + stop + {db_channel.supporter::%player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.supporter::%player%} to player + set {db_channel.%player%} to "supporter" + send "&aYou are now in the &bSupporter&a channel!" + stop + + argument 2 is "g" or "global": + {db_channel.global::%player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.global::%player%} to player + set {db_channel.%player%} to "global" + send "&aYou are now in the &fGlobal&a channel!" + + argument 1 is "who": + argument 2 is not set: + loop {db_channel.%{db_channel.%player%}%::*}: + send "%loop-index%" + + + + + + + + + + + \ No newline at end of file diff --git a/Obam-Testing/schatbridge.sk b/Obam-Testing/schatbridge.sk new file mode 100644 index 0000000..7c8c184 --- /dev/null +++ b/Obam-Testing/schatbridge.sk @@ -0,0 +1,18 @@ + + + + +command /globalpush : + permission: obam.admin + trigger: + forward command "globalcatch %argument%" to console +command /globalcatch : + permission: obam.admin + trigger: + + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-index parsed as player + send argument to {_player} + + stop \ No newline at end of file diff --git a/Obam-Testing/tellchat.sk b/Obam-Testing/tellchat.sk new file mode 100644 index 0000000..d35e3b5 --- /dev/null +++ b/Obam-Testing/tellchat.sk @@ -0,0 +1,45 @@ +command /msg [] []: + permission: obam.free + aliases: @ + trigger: + argument 1 is set: + argument 1 is player: + send "&cWhy would you talk to yourself? Are you crazy!?!?!" to player + stop + argument 2 is not set: + send "&dYou have started a conversation with &e%argument 1%" to player + set {message.%player%} to argument 1 + argument 2 is set: + send "&d%player%&l ⇉ &r&d%argument 1%: %argument 2%" to argument 1 + send "&d%player%&l ⇉ &r&d%argument 1%: %argument 2%" to player + set {reply.%argument 1%} to player + + argument 1 is not set: + {message.%player%} is not set: + send "&cYou are not in a private conversation!" to player + {message.%player%} is set: + send "&aYou have left your conversation." to player + clear {message.%player%} + + +on chat: + {message.%player%} is set: + cancel event + send "&d%player%&l ⇉ &r&d%{message.%player%}%: %message%" to {message.%player%} + send "&d%player%&l ⇉ &r&d%{message.%player%}%: %message%" to player + set {reply.%{message.%player%}%} to player + +command /reply : + permission: obam.free + aliases: /r, @@ + trigger: + {reply.%player%} is not set: + send "&cYou have no one to reply to!" to player + stop + argument 1 is not set: + send "&cYou can not reply with nothing!" + stop + send "&d%player%&l ⇉ &r&d%{reply.%player%}%: %argument%" to {reply.%player%} + send "&d%player%&l ⇉ &r&d%{reply.%player%}%: %argument%" to player + + \ No newline at end of file diff --git a/Obam-Testing/tma.sk b/Obam-Testing/tma.sk new file mode 100644 index 0000000..8c0a934 --- /dev/null +++ b/Obam-Testing/tma.sk @@ -0,0 +1,350 @@ + + +on script load: + clear {tma.spawns::*} + add creeper to {tma.spawns::*} + add witch to {tma.spawns::*} + add zombie to {tma.spawns::*} + add skeleton to {tma.spawns::*} + add zombie pigman to {tma.spawns::*} + add cave spider to {tma.spawns::*} + add magma cube to {tma.spawns::*} + add blaze to {tma.spawns::*} + + + +command /tma [] [] []: + permission: obam.admin + trigger: + world is not "TMA": + send "&cYou are not in the right world to do this" + stop + + argument 1 is not set: + + send "&a=================================" + send "&6 OBAMCraft " + send "&6 TMA " + send "&a=================================" + send " " + send "&e/tma addspawn " + send "&7Add your current location to the spawn list for that team" + send " " + send "&e/tma listspawn " + send "&7List the current spawn locations for a specified team" + send " " + send "&e/tma delspawn " + send "&7Deleted specified spawn location" + send " " + send "&e/tma addteam " + send "&7Add a team to the list of teams" + send " " + send "&e/tma listteam" + send "&7List the current teams" + send " " + send "&e/tma delteam " + send "&7Delete the selected team from the team list" + send " " + send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" + stop + + argument 1 is "help": + argument 2 is not set: + + send "&a=================================" + send "&6 OBAMCraft " + send "&6 TMA " + send "&a=================================" + send " " + send "&e/tma addspawn " + send "&7Add your current location to the spawn list for that team" + send " " + send "&e/tma listspawn " + send "&7List the current spawn locations for a specified team" + send " " + send "&e/tma delspawn " + send "&7Deleted specified spawn location" + send " " + send "&e/tma addteam " + send "&7Add a team to the list of teams" + send " " + send "&e/tma listteam" + send "&7List the current teams" + send " " + send "&e/tma delteam " + send "&7Delete the selected team from the team list" + send " " + send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" + stop + argument 2 is "1": + send "&a=================================" + send "&6 OBAMCraft " + send "&6 TMA " + send "&a=================================" + send " " + send "&e/tma addspawn " + send "&7Add your current location to the spawn list for that team" + send " " + send "&e/tma listspawn " + send "&7List the current spawn locations for a specified team" + send " " + send "&e/tma delspawn " + send "&7Deleted specified spawn location" + send " " + send "&e/tma addteam " + send "&7Add a team to the list of teams" + send " " + send "&e/tma listteam" + send "&7List the current teams" + send " " + send "&e/tma delteam " + send "&7Delete the selected team from the team list" + send " " + send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" + stop + + argument 2 is "2": + send "&a=================================" + send "&6 OBAMCraft " + send "&6 TMA " + send "&a=================================" + send " " + send "&e/tma spawnwave " + send "&7Spawns a wave, at wave number listed" + send " " + send "&e/tma help " + send "&7List this help menu at specified page number" + send " " + send "&e/tma begin" + send "&7Begin a TMA game(not live yet)" + send " " + send "&e/tma activeadd " + send "&7Add a team to the active list" + send " " + send "&e/tma activelist" + send "&7List all active teams" + send " " + send "&e/tma activedel " + send "&7Remove a team from the active list" + send " " + send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" + stop + + + argument 1 is "addspawn": + argument 2 is not set: + send "&cYou must select a team: &e/tma addspawn " + stop + {tma.teams::%argument 2%} is not set: + send "&cThis is not a valid team!" + send "&cPlease do &e/tma teamlist&c for a list of available teams." + stop + add location of player to {tma.%argument 2%.spawn::*} + send "&e%location of player% &a is added to &e%argument 2%'s&a spawn list" + + argument 1 is "listspawn": + argument 2 is not set: + send "&cYou must select a team: &e/tma listspawn " + stop + {tma.teams::%argument 2%} is not set: + send "&cThis is not a valid team!" + send "&cPlease do &e/tma teamlist&c for a list of available teams." + loop {tma.%argument 2%.spawn::*}: + {_loop.count} is not set: + set {_loop.count} to 0 + add 1 to {_loop.count} + send "%loop-index%.....%loop-value%" + + argument 1 is "delspawn": + argument 2 is not set: + send "&cYou must select a team: &e/tma delspawn " + stop + argument 3 is not set: + send "&cYou must select a point: &e/tma delspawn %argument 2% " + stop + {tma.teams::%argument 2%} is not set: + send "&cThis is not a valid team!" + send "&cPlease do &e/tma teamlist&c for a list of available teams." + {tma.%argument 2%.spawn::%argument 3%} is not set: + send "&c%argument 3% is not a point in team %argument 2%" + send "&cPlease use &e/tma listspawn %argument 2%&a to find the available points" + stop + + send "&cDeleteing &e%{tma.%argument 2%.spawn::%argument 3%}% &ain &e%argument 2%&a..." + delete {tma.%argument 2%.spawn::%argument 3%} + {tma.%argument 2%.spawn::%argument 3%} is set: + send "&cAn error occurred" + stop + send "&aDeleted!" + + argument 1 is "addteam": + argument 2 is not set: + send "&cPlease specify a team: &e/tma addteam " + stop + set {tma.teams::%argument 2%} to true + send "&e%argument 2%&a added successfully to Teams!" + + argument 1 is "listteam": + loop {tma.teams::*}: + send "%loop-index%" + + argument 1 is "delteam": + argument 2 is not set: + send "&cPlease specify a team: &e/tma delteam " + stop + {tma.teams::%argument 2%} is not set: + send "&cThis team does not exist!" + send "&cPlease use &e/tma listteam&a for a list of teams" + stop + + send "&cDeleteing &e%argument 2%&c..." + delete {tma.teams::%argument 2%} + {tma.teams::%argument 2%} is set: + send "&cAn error occurred" + stop + send "&aDelted!" + + argument 1 is "spawnwave": + argument 2 is not set: + send "&cPlease select a number: &e/tma spawnwave " + stop + {active.tma.teams::*} is empty: + send "&cThere are no active teams: &e/tma activeadd &c to add" + stop + execute console command "tmawave %argument 2%" + + argument 1 is "activeadd": + argument 2 is not set: + send "&cPlease select a team: &e/tma activeadd " + stop + {tma.teams::%argument 2%} is not set: + send "&cThis team does not exist!" + send "&cPlease use &e/tma listteam&a for a list of teams" + stop + {tma.%argument 2%.spawn::*} is empty: + send "&cThere are no spawn points set for this team!" + send "&cPlease use &e/tma spawnadd %argument 2%&c to add spawn points!" + stop + set {active.tma.teams::%argument 2%} to true + send "&e%argument 2%&a added to active teams list" + + argument 1 is "activedel": + argument 2 is not set: + send "&cPlease select a team: &e/tma activedel " + stop + {active.tma.teams::%argument 2%} is not set: + send "&cTeam is not listed as active!" + send "&cPlease use &e/tma activelist &cfor a list of active teams!" + stop + send "&cDeleting &e%argument 2%&c from active teams..." + delete {active.tma.teams::%argument 2%} + {active.tma.teams::%argument 2%} is set: + send "&cAn error occurred!" + stop + send "&aDelete Successful!" + + argument 1 is "activelist": + {active.tma.teams::*} is empty: + send "&cThere are no active teams!" + send "&cUse &e/tma activeadd &c to add active teams" + stop + loop {active.tma.teams::*}: + send "%loop-index%" + + + +command /tmawave []: + permission: obam.admin + trigger: + send "&aIama message" + {active.tma.teams::*} is empty: + send "&cError" + stop + argument 1 is not set: + send "&cError!" + stop + send "&aI ama another message" + set {_num} to argument 1 parsed as number + send "&a%{_num}%" + {_num} is less than 5: + set {_loop} to {_num} * 2 + 1 + + {_num} is greater than 5: + set {_loop} to {_num} * 2 + 3 + + send "&a%{_loop}%" + set {_size} to size of {active.tma.teams::*} + send "&a%{_size}%" + set {_count} to 1 + send "%{_count}%" + while {_count} is less than or equal to {_size}: + {_count} is not set: + set {_count} to 1 + loop {active.tma.teams::*}: + + send "&a%loop-index%" + loop {_loop} times: + set {_ran} to random element of {tma.spawns::*} + set {_loc} to random element of {tma.%loop-index-1%.spawn::*} + spawn {_ran} at {_loc} + set {_cur.entity} to spawned entity + spawned entity is zombie: + + equip spawned entity with iron helmet + chance of 5%: + apply speed 2 to spawned entity for 999 days + chance of 10%: + equip spawned entity with iron helmet of unbreaking 2 + + chance of 15%: + set spawned entity's tool to iron sword + chance of 5%: + set spawned entity's tool to iron sword of sharpness 2 + chance of 5%: + set spawned entity's tool to diamond sword + + spawned entity is skeleton: + + equip spawned entity with leather helmet + + set spawned entity's tool to bow + chance of 5%: + apply speed 2 to spawned entity for 999 days + chance of 10%: + equip spawned entity with iron helmet of unbreaking 2 + chance of 15%: + set spawned entity's tool to bow of punch 1 + chance of 5%: + equip spawned entity with diamond chestplate + chance of 2%: + equip spawned entity with diamond leggings of projectile protection 1 + + spawned entity is a creeper: + + chance of 5%: + apply speed 2 to spawned entity for 999 days + + spawned entity is cave spider: + + chance of 5%: + apply speed to spawned entity for 999 days + + spawned entity is zombie pigman: + + set spawned entity's tool to gold sword + chance of 5%: + apply speed to spawned entity for 999 days + + + + + add 1 to {_count} + + + + + + + + + \ No newline at end of file diff --git a/Obam-Testing/wtfronts.sk b/Obam-Testing/wtfronts.sk new file mode 100644 index 0000000..2eb7774 --- /dev/null +++ b/Obam-Testing/wtfronts.sk @@ -0,0 +1,598 @@ +options: + bandages: paper;&3Bandage;&6Use of this bandage is the only way to fix a long lasting||&6injury brought on by the hazards of the environment.|| ||&5&oRight click with bandage in hand to cure the effects||&5&obrought on by being badly injured. Multiple bandages||&5&omay be required depending on your injury level. + superbottle: water bottle;&3Super Water Bottle;&6Besides saving you inventory space, this water ||&6is created extra wet to help quench your thirst.|| ||&a+50 Thirst|| ||&5&oUpon use, bottle turns to regular glass bottle. + unstele: magma cream;&3Unstable Element;&6Highly energized plasma like element found||&6in unstable land and mobs.|| ||&5&oThis goo is really hot! + unstmetal: gold nugget;&3Unstable Metal Shard;&6Energized metal shards found in unstable land||&6and mobs.|| ||&5&oYou feel a light energetic charge coming from||&5&othe shard. + unstmetalbar: gold ingot;&3Unstable Metal Bar;&6Crafted from broken &3Unstable Metal Shards&6 to||&6become whole again.|| ||&5&oHot to the touch, this bar gives a highly energetic||&5&ocharge. + stablemetal: iron ingot;&3Stable Metal Bar;&6Finalized & stable metal bar with just enough||&6energy for crafting special items.|| ||&5&oWarm to the touch with a subtle energetic glow. + stableele: slimeball;&3Stable Element;&6Stable plasma like element used to enhance other||&6items in special ways.|| ||&5&oThe goo feels nice and warm as it slides through||&5&oyour fingers. + envradar: compass;&3Environmental Radar;&6A must have tool for always being in the know about||&6the dangerous environment around you.|| ||&c-1 Elemental Fuel per use|| ||&5&oRight click with radar in hand to get the environmental||&5&ostatistics of the land you’re standing on. + elefuel: coal item;&3Elemental Fuel;&6The universal fuel used to power most of the tools||&6and machines created with &3Energized Metal Bars. + fairydust: sugar;&3Fairy Dust;&6This mysterious dust is filled with special properties||&6that nobody quite understands. Rumor is the dust||&6when combined with the right items or situations can||&6yield interesting results. + stable: packed ice;&3Stabilizer;&6The stabilizer contains the perfect elemental makeup||&6to bring unstable energies down to usable levels.|| ||&5&oSurround the Stabilizer in a crafting table with items||&5&othat contain unstable energy. + stablechst: diamond chestplate;&3Stable Diamond Chestplate;&6This chestplate contains a slot for special||&6enchantments and a container for &3Elemental||&3Fuel&6. + qnhchest: diamond chestplate;&3Chest of Quench;&6Utilizing the power of &3Elemental Fuel &6and||&6the &3Super Water Bottle&6, this chestplate makes||&6sure you never go thirsty!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your thirst will||&5&oautomatically go back up to 100 whenever it||&5&odips below 50, as long as you have Elemental||&5&oFuel in your inventory. + snkchest: diamond chestplate;&3Chest of Snacks;&6Utilizing the power of &3Elemental Fuel &6and an||&6Enchanted Golden Apple, this chestplate makes||&6sure you never go hungry!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your hunger will||&5&oautomatically go back up to 10 whenever it||&5&odips below 5, as long as you have Elemental||&5&oFuel in your inventory. + +on script load: + register new shapeless recipe for named item stack from "{@bandages}" using paper, slimeball, air, air, air, air, air, air, air + register new shapeless recipe for named item stack from "{@superbottle}" using bottle of water, bottle of water, bottle of water, bottle of water, air, air, air, air, air + register new shaped recipe for named item stack from "{@unstmetalbar}" using air, air, air, named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}" + register new shaped recipe for named item stack from "{@stablemetal}" using named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@stable}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}" + register new shaped recipe for named item stack from "{@stableele}" using named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@stable}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}" + register new shaped recipe for named item stack from "{@stable}" using ice, ice, ice, ice, named item stack from "{@fairydust}", ice, ice, ice, ice + register new shaped recipe for named item stack from "{@elefuel}" using named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}", coal item, named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}" + register new shaped recipe for named item stack from "{@envradar}" using named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", compass, named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}" + register new shaped recipe for named item stack from "{@stablechst}" using named item stack from "{@stablemetal}", air, named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", diamond block, named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@elefuel}", named item stack from "{@stablemetal}" + register new shapeless recipe for named item stack from "{@qnhchest}" using named item stack from "{@superbottle}", named item stack from "{@stablechst}", air, air, air, air, air, air, air + register new shapeless recipe for named item stack from "{@snkchest}" using named item stack from "{@stablechst}", enchanted golden apple, air, air, air, air, air, air, air + + +on join: + display board named "&9&lWTF&9ronts" to player + make score "&3Thirst" in board of player to {thirst.%player%} + set {board.%player%} to true + {injured.%player%} is true: + make score "&cINJURED" in board of player to 1 + move display of player to "sidebar" + +on chunk load: + {unstable.%event-chunk%} is not set: + chance of 2%: + set {unstable.%event-chunk%} to true + set {_ran} to random number between 15 and 20 + set {_ran2} to random number between 18 and 20 + set {cavein.%event-chunk%.chance} to {_ran} + set {methane.%event-chunk%.chance} to {_ran2} + {unstable.%event-chunk%} is not set: + set {unstable.%event-chunk%} to false + {cavein.%event-chunk%.chance} is not set: + chance of 90%: + set {_ran} to random integer between 1 and 5 + set {cavein.%event-chunk%.chance} to {_ran} + {cavein.%event-chunk%.chance} is not set: + set {cavein.%event-chunk%.chance} to false + {methane.%event-chunk%.chance} is not set: + chance of 95%: + set {_ran} to random integer between 3 and 6 + set {methane.%event-chunk%.chance} to {_ran} + {methane.%event-chunk%.chance} is not set: + set {methane.%event-chunk%.chance} to false + + +on mine: + player's tool is pickaxe + y-coordinate of player is less than 40 + {cavein.%chunk at location of player%.chance} is false: + set {_run} to false + {_run} is not set: + chance of {cavein.%chunk at location of player%.chance}%: + loop blocks in radius 5: + {_block.count} is not set: + set {_block.count} to 0 + add 1 to {_block.count} + loop-block is air: + {_air.count} is not set: + set {_air.count} to 0 + add 1 to {_air.count} + loop-block is iron block + set {_max-strut} to true + {_max-strut} is set: + chance of {cavein.%chunk at location of player%.chance}%: + clear {_max-strut} + loop players in radius 10 of player: + send "&cYour struts are failing!" to loop-player + send "&cYour struts are failing!" to player + + {_max-strut} is not set: + send "&3The floor rumbles beneath you.." to player + loop players in radius 10 of player: + send "&3The floor rumbles beneath you..." to loop-player + wait 5 seconds + send "&cCave In!" to player + loop players in radius 10 of player: + send "&cCave In!" to loop-player + {_air.count} is less than or equal to {_block.count} / 3: + loop blocks in radius 5: + loop-block is not bedrock or wood plank or lava or water + set {_block} to loop-block + set {_loc} to location of loop-block + spawn falling block of loop-block at location of loop-block + delete loop-block + {_air.count} is greater than {_block.count} / 3: + loop blocks in radius 10: + loop-block is not bedrock or wood plank or lava or water + set {_block} to loop-block + set {_loc} to location of loop-block + spawn falling block of loop-block at location of loop-block + delete loop-block + {methane.%chunk at location of player%.chance} is false: + set {_run2} to false + {_run2} is not set: + chance of {methane.%chunk at location of player%.chance}%: + send "&cMethane!" to player + loop players in radius 10 of player: + send "&cMethane!" to loop-player + wait 2 seconds + create explosion of force 2 at event-location + chance of {methane.%chunk at location of player%.chance} * 2 %: + wait 2 seconds + drop named item stack from "{@unstele}" at event-location + chance of {methane.%chunk at location of player%.chance} * 2%: + drop named item stack from "{@unstmetal}" at event-location + + chance of {cavein.%chunk at location of player%.chance}%: + loop blocks in radius 3: + loop-block is water + set {_found.water} to true + {_found.water} is true: + send "&3Flood!" to player + loop blocks in radius 3 of event-location: + loop-block is air: + set loop-block to water + + +on portal enter: + {unstable.%chunk at event-location%} is false + chance of 25%: + set {unstable.%chunk at event-location%} to true + set {_ran} to random number between 15 and 20 + set {_ran2} to random number between 18 and 20 + set {cavein.%chunk at event-location%.chance} to {_ran} + set {methane.%chunk at event-location%.chance} to {_ran2} + + + +on right click with compass: + player's tool is named item stack from "{@envradar}": + player does not have named item stack from "{@elefuel}": + send "&cYou do not have enough fuel!" to player + stop + remove named item stack from "{@elefuel}" from player + {cavein.%chunk at location of player%.chance} is not set: + {unstable.%chunk at location of player%} is not set: + chance of 2%: + set {unstable.%chunk at location of player%} to true + set {_ran} to random number between 15 and 20 + set {_ran2} to random number between 18 and 20 + set {cavein.%chunk at location of player%.chance} to {_ran} + set {methane.%chunk at location of player%.chance} to {_ran2} + {unstable.%chunk at location of player%} is not set: + set {unstable.%chunk at location of player%} to false + {cavein.%chunk at location of player%.chance} is not set: + chance of 90%: + set {_ran} to random integer between 1 and 5 + set {cavein.%chunk at location of player%.chance} to {_ran} + {cavein.%chunk at location of player%.chance} is not set: + set {cavein.%chunk at location of player%.chance} to false + {methane.%chunk at location of player%.chance} is not set: + chance of 95%: + set {_ran} to random integer between 3 and 6 + set {methane.%chunk at location of player%.chance} to {_ran} + {methane.%chunk at location of player%.chance} is not set: + set {methane.%chunk at location of player%.chance} to false + + if {unstable.%chunk at location of player%} is true: + send "&aGround Structure: &cUnstable" + send "&aMethane Rating: &cUnstable" + stop + if {cavein.%chunk at location of player%.chance} is false: + send "&aGround Structure: &3SOUND" to player + else: + send "&aGround Structure: &e%{cavein.%chunk at location of player%.chance}%" to player + if {methane.%chunk at location of player%.chance} is false: + send "&aMethane Rating: &3EMPTY" to player + else: + send "&aMethane Rating: &e%{methane.%chunk at location of player%.chance}%" to player + + +command /chunkstats: + permission: obam.admin + trigger: + if {unstable.%chunk at location of player%} is true: + send "&aGround Structure: &cUnstable" + send "&aMethane Rating: &cUnstable" + stop + if {cavein.%chunk at location of player%.chance} is false: + send "&aGround Structure: &3SOUND" to player + else: + send "&aGround Structure: &e%{cavein.%chunk at location of player%.chance}%" to player + if {methane.%chunk at location of player%.chance} is false: + send "&aMethane Rating: &3EMPTY" to player + else: + send "&aMethane Rating: &e%{methane.%chunk at location of player%.chance}%" to player + +every 3 seconds: + loop all players: + {board.%loop-player%} is not set: + display board named "&9&lWTF&9ronts" to loop-player + make score "&3Thirst" in board of loop-player to {thirst.%loop-player%} + set {board.%loop-player%} to true + move display of loop-player to "sidebar" + {board.%loop-player%} is true: + make score "&3Thirst" in board of loop-player to {thirst.%loop-player%} + + block above loop-player is water: + {thirst.%loop-player%} is less than 100: + set {_ran} to random number between 1 and 2 + add {_ran} to {thirst.%loop-player%} + {thirst.%loop-player%} is greater than 100: + set {thirst.%loop-player%} to 100 + {debug.%loop-player%} is true: + set {thirst.%loop-player%} to 100 + {thirst.%loop-player%} is not set: + set {thirst.%loop-player%} to 100 + {thirst.%loop-player%} is less than 0: + set {thirst.%loop-player%} to 0 + {thirst.%loop-player%} is 0: + damage loop-player by 1 + send "&cYou are dehydrated" to loop-player + {thirst.%loop-player%} is greater than 0: + chance of 30%: + loop-player is not sprinting: + set {_ran} to random number between 0 and 1 + set {thirst.%loop-player%} to {thirst.%loop-player%} - {_ran} + loop-player is sprinting: + set {_ran} to random number between 1 and 3 + set {thirst.%loop-player%} to {thirst.%loop-player%} - {_ran} + + biome at loop-player is desert: + time in loop-player's world is day + y-coordinate of loop-player is greater than 60 + {thirst.%loop-player%} is greater than 0: + set {thirst.%loop-player%} to {thirst.%loop-player%} - 2 + {thirst.%loop-player%} is 0: + chance of 45%: + damage loop-player by 2 + send "&cThe sun beats down on you" to loop-player + + biome at loop-player is swamp: + set {_ran} to a random integer between 1 and 5 + {_ran} is 1: + apply hunger 2 to loop-player for 20 seconds + send "&cMalaria runs through your body" to loop-player + + + y-coordinate of loop-player is greater than 110: + loop-player's helmet is air + damage loop-player by 1 + send "&cYou are chilled " to loop-player + apply slowness to loop-player for 3 seconds + loop-player has lava bucket: + chance of 10%: + damage loop-player by 0.5 + send "&cThe lava in your inventory grows hotter" to loop-player + {injured.%loop-player%} is true: + chance of 10%: + set {_location} to location of loop-player + play 1 of effect "spell" with data 1 at {_location} + damage loop-player by 0.5 + {injured.%loop-player%.length} is not set: + set {injured.%loop-player%.length} to 0 + add 1 to {injured.%loop-player%.length} + send "&cYour injuries need mending!" to loop-player + {injured.%loop-player%.length} is less than 5: + apply slowness to loop-player for 999 days + {injured.%loop-player%.length} is greater than 5: + {injured.%loop-player%.length} is less than 10: + apply slowness 2 to loop-player for 999 days + apply mining fatigue to loop-player for 1 minute + {injured.%loop-player%.length} is greater than 10: + apply slowness 3 to loop-player for 999 days + apply mining fatigue 2 to loop-player for 1 minute + apply weakness to loop-player for 30 seconds + {thirst.%loop-player%} is less than or equal to 50: + name of loop-player's chestplate is "&3Chest of Quench" + loop-player has named item stack from "{@elefuel}": + set {thirst.%loop-player%} to 100 + remove named item stack from "{@elefuel}" from loop-player + loop-player's hunger level is less than 5: + name of loop-player's chestplate is "&3Chest of Snacks" + loop-player has named item stack from "{@elefuel}": + set loop-player's hunger level to 10 + remove named item stack from "{@elefuel}" from loop-player + + + + + + + + loop all entities: + loop-entity is not player: + {unstable.%loop-entity%} is set: + play 100 of effect "reddust" with data 1 at location of loop-entity + +on spawn of a creeper or a skeleton or a spider or zombie: + {unstable.%chunk at event-location%} is true: + + + set {_loc} to event-location + event-entity is a creeper: + set name of event-entity to "&cUnstable Creeper" + apply resistance 2 to event-entity for 999 days + apply speed to event-entity for 999 days + + + set {unstable.%event-entity%} to true + + event-entity is a zombie: + + set name of event-entity to "&cUnstable Zombie" + apply resistance 2 to event-entity for 999 days + apply speed 2 to event-entity for 999 days + equip event-entity with iron sword of sharpness + set event-entity's helmet to iron helmet + set {unstable.%event-entity%} to true + + event-entity is skeleton: + set name of event-entity to "&cUnstable Skeleton" + apply resistance 2 to event-entity for 999 days + apply speed 2 to event-entity for 999 days + equip event-entity with bow + set event-entity's helmet to gold helmet + set {unstable.%event-entity%} to true + + event-entity is a spider: + set name of event-entity to "&cUnstable Spider" + apply resistance 2 to event-entity for 999 days + apply speed 2 to event-entity for 999 days + apply jump 5 to event-entity for 999 days + set {unstable.%event-entity%} to true + +on explosion prime: + event-entity is creeper: + {unstable.%event-entity%} is true: + cancel event + create an explosion of force 5 at event-location + set {_loc} to event-location + play 100 of effect "reddust" with data 1 at {_loc} + loop players in radius 5 of event-location: + make event-entity damage loop-player by 4 + +on damage: + victim is not a player + {unstable.%victim%} is set: + damage cause is fall: + cancel event + damage cause is block explosion: + cancel event + +on death of a creeper or a skeleton or a zombie or a spider: + chance of 15%: + add named item stack from "{@bandages}" to drops + entity's name is "&cUnstable Spawn": + chance of 10%: + chance of 2%: + add named item stack from "{@unstele}" to drops + add named item stack from "{@unstmetal}" to drops + +on damage of a player: + damage cause is fall: + chance of 15%: + victim's boots are boots of feather falling: + stop + set {_location} to location of victim + play 1 of effect "angryVillager" of data 1 at {_location} + set {injured.%victim%} to true + apply slowness to victim for 999 days + add 1 to damage + make score "&cINJURED" in board of victim to 1 + send "&cYou have been injured from your fall!" to victim + +on right click with paper: + player is holding named item stack from "{@bandages}": + {injured.%player%} is not set: + send "&cYou are not injured!" to player + stop + {injured.%player%} is false: + send "&cYou are not injured!" to player + stop + {injured.%player%} is true: + {injured.%player%.length} is greater than 5: + {injured.%player%.length} is less than 10: + remove mining fatigue from player + remove weakness from player + remove slowness from player + apply slowness to player for 999 days + send "&aYour injuries are healing" to player + set {injured.%player%.length} to 1 + remove named item stack from "{@bandages}" from player + stop + {injured.%player%.length} is greater than 10: + remove slowness from player + remove mining fatigue from player + apply mining fatigue to player for 999 days + apply slowness 2 to player for 999 days + remove weakness from player + set {injured.%player%.length} to 6 + send "&aYour injuries are healing" to player + remove named item stack from "{@bandages}" from player + stop + send "&aYou mend your injuries" to player + remove mining fatigue from player + remove weakness from player + remove slowness from player + remove named item stack from "{@bandages}" from player + nullify score "&cINJURED" in board of player + set {injured.%player%} to false + set {injured.%player%.length} to 0 + +on bed enter: + {injured.%player%} is true: + set {injured.%player%} to false + set {injured.%player%.length} to 0 + remove mining fatigue from player + remove weakness from player + remove slowness from player + nullify score "&cINJURED" in board of player + send "&aYou have been healed of your injuries!" to player + +on consume of water bottle: + {thirst.%player%} is greater than or equal to 100: + set {thirst.%player%} to 100 + cancel event + player is holding named item stack from "{@superbottle}": + add 50 to {thirst.%player%} + {thirst.%player%} is greater than 100: + set {thirst.%player%} to 100 + stop + {thirst.%player%} is greater than or equal to 100: + set {thirst.%player%} to 100 + cancel event + add 10 to {thirst.%player%} + {thirst.%player%} is greater than 100: + set {thirst.%player%} to 100 + +on death of a player: + {thirst.%player%} is less than 25: + set {thirst.%player%} to 25 + +command /ci []: + permission: obam.admin + trigger: + argument is not set: + send "list" + send "1 ... Super Water Bottle" + send "2 ... Bandages" + send "3 ... Unstable Metal Shard" + send "4 ... Unstable Metal Bar" + send "5 ... Stable Metal Bar" + send "6 ... Unstable Element" + send "7 ... Stable Element" + send "8 ... Environmental Radar" + send "9 ... Elemental Fuel" + send "10 ... Fairy Dust" + send "11 ... Stabilizer" + send "12 ... Stable Chest" + send "13 ... Chest of Quench" + send "14 ... Chest of Snacks" + stop + argument is 1: + give named item stack from "{@superbottle}" to player + + argument is 2: + give named item stack from "{@bandages}" to player + + argument is 3: + give named item stack from "{@unstmetal}" to player + + argument is 4: + give named item stack from "{@unstmetalbar}" to player + + argument is 5: + give named item stack from "{@stablemetal}" to player + + argument is 6: + give named item stack from "{@unstele}" to player + + argument is 7: + give named item stack from "{@stableele}" to player + + argument is 8: + give named item stack from "{@envradar}" to player + + argument is 9: + give named item stack from "{@elefuel}" to player + + argument is 10: + give named item stack from "{@fairydust}" to player + + argument is 11: + give named item stack from "{@stable}" to player + + argument is 12: + give named item stack from "{@stablechst}" to player + + argument is 13: + give named item stack from "{@qnhchest}" to player + + argument is 14: + give named item stack from "{@snkchest}" to player + + + + + send "Here is your thing" + +command /togglestats: + trigger: + + {board.%player%} is false: + set {board.%player%} to true + display board named "&9&lWTF&9fronts" to player + make score "&3Thirst" in board of player to {thirst.%player%} + move display of player to "sidebar" + stop + {board.%player%} is true: + set {board.%player%} to false + display board named " " to player + stop + {board.%player%} is not set: + display board named "&9&lWTF&9ronts" to player + make score "&3Thirst" in board of player to {thirst.%player%} + set {board.%player%} to true + move display of player to "sidebar" + stop + + + +on place: + former tool's name is set: + set {information.%block%.1} to former tool + {debug.%player%} is true: + send "DEBUG You placed %former tool's name%" + set {information.%block%.2} to lore of former tool + set {information.%block%.3} to name of former tool + {debug.%player%} is true: + send "DEBUG %block%" + send "DEBUG %{information.%block%.1}%" + send "DEBUG %lore of former tool%" + send "DEBUG %name of former tool%" + send "DEBUG %{information.%block%.2}%" + send "DEBUG %{information.%block%.3}%" + set {information.%block%.1} to "%{information.%block%.1}%" + +on break: + {information.%block%.1} is set: + cancel event + {debug.%player%} is true: + send "DEBUG I ama message" + set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" + send "DEBUG %{_message}%" + delete block + drop named item stack from "%{_message}%" at location of block + +on break of glowstone: + chance of 10%: + player's tool is pickaxe of silk touch: + stop + drop named item stack from "{@fairydust}" at location of event-block + +on right click with sugar: + player's tool is named item stack from "{@fairydust}": + player is flying: + stop + remove named item stack from "{@fairydust}" from player + send "&aYou can fly!" to player + allow player to fly + wait 5 seconds + disallow player to fly + +command /debug: + permission: obam.admin + trigger: + {debug.%player%} is not set: + set {debug.%player%} to false + {debug.%player%} is false: + set {debug.%player%} to true + send "&aDebug on" + stop + {debug.%player%} is true: + set {debug.%player%} to false + send "&aDebug off" + stop + + + + \ No newline at end of file From dfdc96abecea0a4d217d8e04bb1ef1043f3a64d5 Mon Sep 17 00:00:00 2001 From: ismooch Date: Mon, 21 Apr 2014 01:38:23 -0500 Subject: [PATCH 03/14] added CC and Spawnmob -added CreatureCapture -added SpawnMob --- Obam-General/CreatureCapture.sk | 153 +++++++++++ Obam-General/spawnmob.sk | 444 ++++++++++++++++++++++++++++++++ 2 files changed, 597 insertions(+) create mode 100644 Obam-General/CreatureCapture.sk create mode 100644 Obam-General/spawnmob.sk diff --git a/Obam-General/CreatureCapture.sk b/Obam-General/CreatureCapture.sk new file mode 100644 index 0000000..315eaba --- /dev/null +++ b/Obam-General/CreatureCapture.sk @@ -0,0 +1,153 @@ +# add back in world is "creature_capture": +options: + lead: named item stack from "lead;&bLasso;&eRight click with this to turn mobs into eggs." + rod: named item stack from "fishing rod;&bCapture Rod;&eUse this rod to capture the mobs." + +on rightclick on sign: + world is "CreatureCapture" + line 1 of block is "Get a": + line 2 of block is "Lasso": + if player has {@lead}: + send "&cYou already have a lasso" to player + stop + give player {@lead} + stop + line 2 of block is "Capture Rod": + if player has {@rod}: + send "&cYou already have a capture rod" to player + stop + give player {@rod} + stop + +command /ccsign: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + world is "CreatureCapture" + send "&fSigns:" to player + send "&fType &agive &fon line 1" to player + send "&fType &alasso &for &acapture rod&f on line 2" to player + send "&f-----" to player + +on sign change: + world is "CreatureCapture" + line 1 is "give" or "Give": + set line 1 to "Get a" + set line 3 to "HERE" + set line 4 to "" + line 2 is "lead" or "Lead" or "Leash" or "leash" or "lasso" or "Lasso": + set line 2 to "Lasso" + set line 4 to "" + line 2 is "rod" or "Rod" or "fishingrod" or "FishingRod" or "fishing rod" or "Fishing Rod" or "capturerod" or "CaptureRod" or "capture rod" or "Capture Rod": + set line 2 to "Capture Rod" + set line 4 to "" + +on right click on entity: + world is "CreatureCapture" + if player is holding {@lead}: + distance between player and event-entity is smaller than 3 + if entity is bat: + delete entity + give player bat spawn egg + stop + if entity is chicken: + delete entity + give player chicken spawn egg + stop + if entity is cow: + delete entity + give player cow spawn egg + stop + if entity is horse: + delete entity + give player horse spawn egg + stop + if entity is mooshroom: + delete entity + give player mooshroom spawn egg + stop + if entity is ocelot: + delete entity + give player ocelot spawn egg + stop + if entity is pig: + delete entity + give player pig spawn egg + stop + if entity is sheep: + delete entity + give player sheep spawn egg + stop + if entity is squid: + delete entity + give player squid spawn egg + stop + if entity is villager: + delete entity + give player villager spawn egg + stop + if entity is wolf: + delete entity + give player wolf spawn egg + stop + if entity is zombie pigman: + delete entity + give player zombie pigman spawn egg + stop + if entity is blaze: + delete entity + give player blaze spawn egg + stop + if entity is cave spider: + delete entity + give player cave spider spawn egg + stop + if entity is creeper: + delete entity + give player creeper spawn egg + stop + if entity is enderman: + delete entity + give player enderman spawn egg + stop + if entity is ghast: + delete entity + give player ghast spawn egg + stop + if entity is magma cube: + delete entity + give player magma cube spawn egg + stop + if entity is silverfish: + delete entity + give player silverfish spawn egg + stop + if entity is skeleton: + delete entity + give player skeleton spawn egg + stop + if entity is slime: + delete entity + give player slime spawn egg + stop + if entity is spider: + delete entity + give player spider spawn egg + stop + if entity is witch: + delete entity + give player witch spawn egg + stop + if entity is zombie: + delete entity + give player zombie spawn egg + stop + +on drop: + world is "CreatureCapture" + event-item is not spawn egg + cancel event + +on pickup: + world is "CreatureCapture" + cancel event \ No newline at end of file diff --git a/Obam-General/spawnmob.sk b/Obam-General/spawnmob.sk new file mode 100644 index 0000000..0c13bdc --- /dev/null +++ b/Obam-General/spawnmob.sk @@ -0,0 +1,444 @@ +command /spawnmob [] [] []: + permission: obam.admin + permission message: "&cOnly Admins Can Perform This Command - Sorry." + trigger: + argument 1 is not set: + send "&3Please type an entity type." to player + send "&fUsage: /spawnmob " to player + stop + argument 1 is set: + argument 1 is "cow" or "cows" or "heffer" or "hefer" or "heffers" or "bull" or "bulls" or "steer" or "steers" or "calf" or "calves" or "calfs" or "icc" or "IcecreamCow": + argument 2 is not set: + spawn 1 cow at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cow at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cow at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "bat" or "bats": + argument 2 is not set: + spawn 1 bat at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of bat at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn bat at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "chicken" or "chickens" or "chick" or "chicklet" or "chicks" or "hatchling" or "hen" or "hens" or "rooster" or "roosters": + argument 2 is not set: + spawn 1 chicken at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of chicken at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn chicken at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "horse" or "horses" or "mare" or "foal" or "mares" or "colt" or "pony" or "ponies" or "brony" or "bronies" or "stallion" or "stallions": + argument 2 is not set: + spawn 1 horse at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of horse at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn horse at block above targeted block + set name of spawned entity to argument 3 + stop + #Please Add in Donkey and Mules Here Later - Elite + argument 1 is "irongolem" or "irongolems": + argument 2 is not set: + spawn 1 iron golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of iron golem at targeted block + stop + argument 3 is set: + spawn iron golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "mooshroom" or "mooshrooms": + argument 2 is not set: + spawn 1 mooshroom at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of mooshroom at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn mooshroom at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ocelot" or "ocelots" or "cat" or "cats" or "feline" or "felines": + argument 2 is not set: + spawn 1 ocelot at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ocelot at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ocelot at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "pig" or "pigs" or "hog" or "hogs" or "boar" or "boars": + argument 2 is not set: + spawn 1 pig at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of pig at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn pig at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "sheep" or "ram" or "rams" or "lamb" or "lambs": + argument 2 is not set: + spawn 1 sheep at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of sheep at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn sheep at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "snowgolem" or "snowgolems": + argument 2 is not set: + spawn 1 snow golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of snow golem at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn snow golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "squid" or "squids" or "octupus" or "octupi": + argument 2 is not set: + spawn 1 squid at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of squid at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn squid at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "villager" or "villagers": + argument 2 is not set: + spawn 1 villager at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of villager at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn villager at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wolf" or "wolves" or "wolve" or "dog" or "dogs" or "puppy" or "puppies" or "puppie" or "doge" or "dogie" or "dogies" or "dogy" or "doggy" or "doggie" or "doggies": + argument 2 is not set: + spawn 1 wolf at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wolf at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wolf at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombiepigmen" or "zombiepigman" or "pigman" or "pigmen": + argument 2 is not set: + spawn 1 zombie pigman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie pigman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie pigman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "blaze" or "blazes": + argument 2 is not set: + spawn 1 blaze at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of blaze at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn blaze at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "cavespider" or "cavespiders": + argument 2 is not set: + spawn 1 cave spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cave spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cave spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "creeper" or "creepers": + argument 2 is not set: + spawn 1 creeper at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of creeper at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn creeper at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "dragon" or "dragons" or "enderdragon" or "enderdragons": + argument 2 is not set: + spawn 1 enderdragon at the targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderdragon at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderdragon at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "enderman" or "endermen" or "endermens" or "endermans": + argument 2 is not set: + spawn 1 enderman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ghast" or "ghasts": + argument 2 is not set: + spawn 1 ghast at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ghast at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ghast at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "magma" or "magmas" or "magmacube" or "magmacubes" or "magmaslime" or "magmaslimes": + argument 2 is not set: + spawn 1 magma cube at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of magma cube at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn magma cube at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "silverfish": + argument 2 is not set: + spawn 1 silverfish at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of silverfish at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn silverfish at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "skeleton" or "skeletons": + argument 2 is not set: + spawn 1 skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "slime" or "slimes": + argument 2 is not set: + spawn 1 slime at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of slime at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn slime at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "spider" or "spiders": + argument 2 is not set: + spawn 1 spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witch" or "witches": + argument 2 is not set: + spawn 1 witch at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of witch at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn witch at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witherskeleton" or "witherskeletons": + argument 2 is not set: + spawn 1 wither skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wither" or "withers": + argument 2 is not set: + spawn 1 wither at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombie" or "zombies": + argument 2 is not set: + spawn 1 zombie at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie at block above targeted block + set name of spawned entity to argument 3 + stop \ No newline at end of file From 41f069a58598c1feb4e378eec614c6e62a2f9da4 Mon Sep 17 00:00:00 2001 From: ismooch Date: Sat, 26 Apr 2014 17:15:10 -0500 Subject: [PATCH 04/14] Broadbill Cobra --- Obam-Creative/nightvision.sk | 9 + Obam-General/liv.sk | 141 ++++++-- Obam-General/pinfo.sk | 30 +- Obam-General/who.sk | 10 +- Obam-Other/boatsforhub | 24 ++ Obam-Other/boatsforhub.sk | 51 +++ Obam-Other/minecartsforhub.sk | 20 ++ Obam-Survival/heal.sk | 19 +- Obam-Testing/wtfronts.sk | 660 ++++++++++++++++++++++++---------- 9 files changed, 731 insertions(+), 233 deletions(-) create mode 100644 Obam-Creative/nightvision.sk create mode 100644 Obam-Other/boatsforhub create mode 100644 Obam-Other/boatsforhub.sk create mode 100644 Obam-Other/minecartsforhub.sk diff --git a/Obam-Creative/nightvision.sk b/Obam-Creative/nightvision.sk new file mode 100644 index 0000000..cc29578 --- /dev/null +++ b/Obam-Creative/nightvision.sk @@ -0,0 +1,9 @@ + +command /tnight: + permission: obam.mod + trigger: + player has night vision: + remove night vision from player + stop + player does not have night vision: + apply night vision to player for 999 days diff --git a/Obam-General/liv.sk b/Obam-General/liv.sk index 6fc8847..f52d641 100644 --- a/Obam-General/liv.sk +++ b/Obam-General/liv.sk @@ -13,7 +13,7 @@ on chat: {livon.power} is false: set {livon.power} to true send "&6&l'LiV: &3I am now functional %player% :D" to player - broadcast "&6&l'LiV: &3Hello, I am &6&l'LiV &3the &e&lOBAM &6Gaming &3help bot! :D" + broadcast "&6&l'LiV: &3Hello, I am &6&l'LiV&3, the &e&lOBAM &6Gaming &3help bot! :D" stop {livon.power} is true: set {livon.power} to true @@ -27,22 +27,118 @@ on chat: wait 1 second broadcast "&6&l'LiV: &3What can I help you with, %player%?" +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "colour" or "color": + message contains "black": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+0 is for &0Black &3(for more colors type /colors)" + stop + message contains "dark blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+1 is for &1Dark Blue &3(for more colors type /colors)" + stop + message contains "dark green": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+2 is for &2Dark Green &3(for more colors type /colors)" + stop + message contains "dark aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+3 is for &3Dark Aqua &3(for more colors type /colors)" + stop + message contains "dark red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+4 is for &4Dark Red &3(for more colors type /colors)" + stop + message contains "dark purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+5 is for &5Dark Purple &3(for more colors type /colors)" + stop + message contains "gold": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+6 is for &6Gold &3(for more colors type /colors)" + stop + message contains "gray" or "grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+7 is for &7Gray &3(for more colors type /colors)" + stop + message contains "dark gray" or "dark grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+8 is for &8Dark Gray &3(for more colors type /colors)" + stop + message contains "blue" or "light blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+9 is for &9Blue &3(for more colors type /colors)" + stop + message contains "green" or "light green" or "lime": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+a is for &aGreen &3(for more colors type /colors)" + stop + message contains "aqua" or "light aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+b is for &bAqua &3(for more colors type /colors)" + stop + message contains "red" or "light red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+c is for &cRed &3(for more colors type /colors)" + stop + message contains "pink" or "violet" or "light purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+d is for &dLight Purple &3(for more colors type /colors)" + stop + message contains "yellow": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+e is for &eYellow &3(for more colors type /colors)" + stop + message contains "white": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+f is for &fWhite &3(for more colors type /colors)" + stop + +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "ghost" or "ghostwar" or "ghostwars" or "ghost war" or "ghost wars" or "gw": + wait 1 second + send "&6&l'LiV: &3%player%, &3Ghost Wars is a minigame Elite is working on." to player + stop + on chat: {livon.power} is true message contains "how do i get to" or "how do i get 2" or "where is" or "how do i play" : - message contains "parkour": + message contains "parkour" or "parkor" or "parkoure": wait 1 second broadcast "&6&l'LiV: &3%player%, you can type &e/pk &3 or &e/parkour &3 to get there :)" stop - message contains "skyblock": + message contains "skyblock" or "sky block": wait 1 second - broadcast "&6&l'LiV: &3%player%, you can type &e/skyblock&3 to get there :)" + broadcast "&6&l'LiV: &3%player%, you can type &e/skyblock &3or &e/sb &3to get there :)" stop - message contains "hotpotato" or "hot potato" or "potato": + message contains "hotpotato" or "hot potato" or "hot potatoe" or "potato" or "potatoe": wait 1 second - broadcast "&6&l'LiV: &3%player%, you can type &e/hp or &e/hotpotato &3 to get there :)" + broadcast "&6&l'LiV: &3%player%, you can type &e/hp &3or &e/hotpotato &3to get there :)" + stop + message contains "kit" or "kitpvp" or "kit pvp": + wait 1 second + broadcast "&6&l'LiV: &3%player%, you can type &e/kp &3or &e/kitpvp &3to get there :)" + stop + message contains "survival" or "fronts" or "front": + wait 1 second + broadcast "&6&l'LiV: &3%player%, you can type &e/survival &3to get there :)" + stop + message contains "wtf" or "wtfronts": + wait 1 second + broadcast "&6&l'LiV: &3%player%, you can type &e/wtf &3to get there :)" + stop + message contains "hub" or "main": + wait 1 second + broadcast "&6&l'LiV: &3%player%, you can type &e/hub &3to get there :)" + stop + message contains "spawn" or "lobby": + wait 1 second + broadcast "&6&l'LiV: &3%player%, you can type &e/spawn &3to get there :)" stop - on chat: {livon.power} is true @@ -70,7 +166,6 @@ on chat: wait 1 second broadcast "&6&l'LiV: &3Well at least it is not too bad. :)" set {response.%player%} to false - on chat: {livon.power} is true @@ -101,14 +196,12 @@ on chat: set {random.liv.pick} to false wait 1 second broadcast "&6&l'LiV: &3A winner has been chosen! It is &e%{_winner}%&3! Congratulations!" - - on chat: {livon.power} is true message contains "what games" or "how many games" or "kind of games" or "games you got" or "wht games" or "games here" or "can i do here" or "is there to do here": wait 1 second - broadcast "&6&l'LiV: &3Hello, %player%! We offer &eKit Pvp&3,&eParkour&3, &eSkyblock&3, and &eHot Potato&3 currently. :)" + broadcast "&6&l'LiV: &3Hello, %player%! We offer &eKit Pvp&3,&eParkour&3, &eSkyblock&3, &eSurvival&3, and &eHot Potato&3 currently. :)" on chat: {livon.power} is true @@ -191,14 +284,19 @@ on chat: {livon.power} is true message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("hot potato" or "hp" or "potato" or "potato game"): wait 1 second - send "&6&l'LiV: &3You can Type /Hotpotato or /Hp to Test you skill at our Hotpotato game" to player + send "&6&l'LiV: &3You can Type /Hotpotato or /Hp to test your skill at our Hotpotato game" to player on chat: {livon.power} is true message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("hub" or "spawn" or "game"): wait 1 second send "&6&l'LiV: &3You can Type /hub to return to spawn and our other games portals!" to player - + +on chat: + {livon.power} is true + message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("front" or "fronts" or "survival"): + wait 1 second + send "&6&l'LiV: &3You can Type /survival to test your skills in the Fronts!" to player #on chat: #message contains "have i completed" or "did i complete": @@ -530,8 +628,6 @@ on chat: send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3time at Rock, Paper, Scissors!" to player stop send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3times at Rock, Paper, Scissors!" to player - - on chat: {livon.power} is true @@ -540,8 +636,6 @@ on chat: wait 1 second broadcast "&6&l'LiV: &3Welcome back %player%!" set {liv.away.%player%} to false - - on chat: {livon.power} is true @@ -568,8 +662,6 @@ command /livgreet : set {db_liv.greet.%player%} to "%uncoloured argument%" send "&aYour greeting message has been set to: &6&l'LiV: &3%{db_liv.greet.%player%}%" - - command /livalert []: executable by: players and console permission: obam.admin @@ -588,14 +680,6 @@ every 10 minutes: set {_size} to size of {db_liv.alerts::*} set {_ran} to a random integer between 1 and {_size} broadcast "&6&l'LiV: &3%{db_liv.alerts::%{_ran}%}%" - - - - - - - - command /complete : executable by: console @@ -610,11 +694,10 @@ command /complete : broadcast "&6&l'LiV: &3Sorry, %player-argument% you have not completed &eGettingStoned&3!" stop - command /liv : permission: obam.smod trigger: broadcast "&6&l'LiV: &3%uncoloured argument%" - \ No newline at end of file + diff --git a/Obam-General/pinfo.sk b/Obam-General/pinfo.sk index df10560..6777b75 100644 --- a/Obam-General/pinfo.sk +++ b/Obam-General/pinfo.sk @@ -1,14 +1,14 @@ -variables: - {db_dayset.2} = 0 + on join: - {db_count.start.%player%.2} is not set: - set {db_count.start.%player%.2} to {db_dayset} - set {db_current.server.%player%} to "&eWTF" + set {db_current.server.%player%} to "&eFronts" + + + on disconnect: clear {db_current.server.%player%} - set {db_lastseen.%player%} to "%now% on &eWTF" + set {db_lastseen.%player%} to "%now% on &eFronts" clear {db_color.%player%} player has permission "obam.admin": set {db_color.%player%} to "&d%player%" @@ -26,7 +26,6 @@ on disconnect: - command /playerinfo []: description: Find out information about you aliases: /p, /info, /player, /pinfo @@ -48,7 +47,7 @@ command /playerinfo []: {_name} is not set: set {_name} to "&f%player%" message "&aPlayer: %{_name}%" - set {_days} to {db_dayset} - {db_count.start.%player%} + set {_days} to {db_dayset.2} - {db_count.start.%player%.2} {_days} is less than 2: {_days} is 1: message "&aYou are &e%{_days}% &aday old." @@ -91,7 +90,7 @@ command /playerinfo []: send {_lastseen} {_current.connect} is set: send {_current.connect} - set {_days} to {db_dayset} - {db_count.start.%argument%} + set {_days} to {db_dayset.2} - {db_count.start.%argument%.2} {_days} is less than 2: {_days} is 1: message "&aThey are &e%{_days}% &aday old." @@ -99,4 +98,15 @@ command /playerinfo []: {_days} is less than 1: message "%{_name}% &ais &e1&a day old" stop - message "&aThey are &e%{_days}% &adays old." \ No newline at end of file + message "&aThey are &e%{_days}% &adays old." +command /daycheck: + permission: obam.admin + trigger: + send "%{db_dayset.2}%" to player + send "%{db_count.start.%player%.2}%" + send "%{db_dayset.2} - {db_count.start.%player%.2}%" + +command /daypush : + permission: obam.admin + trigger: + set {db_dayset.2} to {db_dayset.2} + argument \ No newline at end of file diff --git a/Obam-General/who.sk b/Obam-General/who.sk index 3672c18..1a29fce 100644 --- a/Obam-General/who.sk +++ b/Obam-General/who.sk @@ -11,6 +11,10 @@ command /who: add loop-player to {_cur.list::*} clear {db_fronts.who.2::*} set {db_fronts.who.2::*} to {_cur.list::*} - send "&eHub:&a%{db_hub.who::*}%" - send "&eWTF:&a%{db_wtf.who::*}%" - send "&eFronts:&a%{_cur.list::*}%" \ No newline at end of file + send "&eTotal Online: %size of {_cur.list::*} + size of {db_hub.who::*} + size of {db_wtf.who.::*}%" + send " " + send "&eHub (%size of {db_hub.who::*}%):&a%{db_hub.who::*}%" + send " " + send "&eWTF (%size of {db_wtf.who::*}%):&a%{db_wtf.who::*}%" + send " " + send "&eFronts (%size of {_cur.list::*}%):&a%{_cur.list::*}%" \ No newline at end of file diff --git a/Obam-Other/boatsforhub b/Obam-Other/boatsforhub new file mode 100644 index 0000000..4b598f7 --- /dev/null +++ b/Obam-Other/boatsforhub @@ -0,0 +1,24 @@ + + +on right click: + targeted block is water block: + {time.boat.%player%} is not set: + set {time.boat.%player%} to now + add 1 minute to {time.boat.%player%} + set {_time} to difference between {time.boat.%player%} and now + {_time} is less than 1 minute: + send "&cYo... cooldown" to player + stop + {_time} is greater than or equal to 1 minute: + spawn boat at targeted block + set {time.boat.%player%} to now + + + +on vehicle exit: + delete vehicle of player + +on vehicle damage: + cancel event + + \ No newline at end of file diff --git a/Obam-Other/boatsforhub.sk b/Obam-Other/boatsforhub.sk new file mode 100644 index 0000000..17ccf6c --- /dev/null +++ b/Obam-Other/boatsforhub.sk @@ -0,0 +1,51 @@ + + +on right click: + world is "Death-hub" + targeted block is water block: + {time.boat.%player%} is not set: + set {time.boat.%player%} to now + add 1 minute to {time.boat.%player%} + set {_time} to difference between {time.boat.%player%} and now + {_time} is less than 1 minute: + send "&cYo... cooldown" to player + stop + {_time} is greater than or equal to 1 minute: + spawn boat at targeted block + set {time.boat.%player%} to now + + + +on vehicle exit: + world is "Death-hub" + vehicle is boat: + delete vehicle of player + vehicle is minecart: + delete vehicle of player + +on vehicle damage: + world is "Death-hub" + cancel event + + +command /vehicledel: + permission: obam.admin + trigger: + loop all entities in "Death-hub": + loop-entity is a boat: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + delete loop-entity + loop-entity is a minecart: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + delete loop-entity + + send "&e%{_count}% &avehicles deleted" to player + + + + + \ No newline at end of file diff --git a/Obam-Other/minecartsforhub.sk b/Obam-Other/minecartsforhub.sk new file mode 100644 index 0000000..97b71f7 --- /dev/null +++ b/Obam-Other/minecartsforhub.sk @@ -0,0 +1,20 @@ + + +on right click: + targeted block is rail: + {time.rail.%player%} is not set: + set {time.rail.%player%} to now + add 1 minute to {time.rail.%player%} + set {_time} to difference between {time.rail.%player%} and now + {_time} is less than 1 minute: + send "&cYo... cooldown" to player + stop + {_time} is greater than or equal to 1 minute: + spawn minecart at targeted block + set {time.rail.%player%} to now + + + + + + \ No newline at end of file diff --git a/Obam-Survival/heal.sk b/Obam-Survival/heal.sk index dc0ee0a..e15242a 100644 --- a/Obam-Survival/heal.sk +++ b/Obam-Survival/heal.sk @@ -1,11 +1,9 @@ +#heal + variables: {heal.%player%} = false - - - - command /heal: executable by: players permission: obam.free @@ -13,7 +11,7 @@ command /heal: {heal.%player%} is not set: set {heal.%player%} to now add 13 hours to {heal.%player%} - + set {_check} to difference between {heal.%player%} and now {_check} is less than 12 hours: set {_check} to difference between {heal.%player%} and now @@ -39,5 +37,14 @@ command /heal: set {heal.%player%} to now send "&aYou have been healed" to player set player's health to 10 + set player's hunger to 10 + apply regeneration 2 to player for 30 seconds + apply fire resistance to player for 30 seconds + apply resistance 2 to player for 30 seconds + apply absorption 2 to player for 30 seconds + player has wither: + remove wither from player + player has poison: + remove poison from player send "&aYou have &e%player's balance%&a remaining" to player - stop + stop \ No newline at end of file diff --git a/Obam-Testing/wtfronts.sk b/Obam-Testing/wtfronts.sk index 2eb7774..1bdd5f5 100644 --- a/Obam-Testing/wtfronts.sk +++ b/Obam-Testing/wtfronts.sk @@ -1,40 +1,65 @@ options: - bandages: paper;&3Bandage;&6Use of this bandage is the only way to fix a long lasting||&6injury brought on by the hazards of the environment.|| ||&5&oRight click with bandage in hand to cure the effects||&5&obrought on by being badly injured. Multiple bandages||&5&omay be required depending on your injury level. - superbottle: water bottle;&3Super Water Bottle;&6Besides saving you inventory space, this water ||&6is created extra wet to help quench your thirst.|| ||&a+50 Thirst|| ||&5&oUpon use, bottle turns to regular glass bottle. - unstele: magma cream;&3Unstable Element;&6Highly energized plasma like element found||&6in unstable land and mobs.|| ||&5&oThis goo is really hot! - unstmetal: gold nugget;&3Unstable Metal Shard;&6Energized metal shards found in unstable land||&6and mobs.|| ||&5&oYou feel a light energetic charge coming from||&5&othe shard. - unstmetalbar: gold ingot;&3Unstable Metal Bar;&6Crafted from broken &3Unstable Metal Shards&6 to||&6become whole again.|| ||&5&oHot to the touch, this bar gives a highly energetic||&5&ocharge. - stablemetal: iron ingot;&3Stable Metal Bar;&6Finalized & stable metal bar with just enough||&6energy for crafting special items.|| ||&5&oWarm to the touch with a subtle energetic glow. - stableele: slimeball;&3Stable Element;&6Stable plasma like element used to enhance other||&6items in special ways.|| ||&5&oThe goo feels nice and warm as it slides through||&5&oyour fingers. - envradar: compass;&3Environmental Radar;&6A must have tool for always being in the know about||&6the dangerous environment around you.|| ||&c-1 Elemental Fuel per use|| ||&5&oRight click with radar in hand to get the environmental||&5&ostatistics of the land you’re standing on. - elefuel: coal item;&3Elemental Fuel;&6The universal fuel used to power most of the tools||&6and machines created with &3Energized Metal Bars. - fairydust: sugar;&3Fairy Dust;&6This mysterious dust is filled with special properties||&6that nobody quite understands. Rumor is the dust||&6when combined with the right items or situations can||&6yield interesting results. - stable: packed ice;&3Stabilizer;&6The stabilizer contains the perfect elemental makeup||&6to bring unstable energies down to usable levels.|| ||&5&oSurround the Stabilizer in a crafting table with items||&5&othat contain unstable energy. - stablechst: diamond chestplate;&3Stable Diamond Chestplate;&6This chestplate contains a slot for special||&6enchantments and a container for &3Elemental||&3Fuel&6. - qnhchest: diamond chestplate;&3Chest of Quench;&6Utilizing the power of &3Elemental Fuel &6and||&6the &3Super Water Bottle&6, this chestplate makes||&6sure you never go thirsty!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your thirst will||&5&oautomatically go back up to 100 whenever it||&5&odips below 50, as long as you have Elemental||&5&oFuel in your inventory. - snkchest: diamond chestplate;&3Chest of Snacks;&6Utilizing the power of &3Elemental Fuel &6and an||&6Enchanted Golden Apple, this chestplate makes||&6sure you never go hungry!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your hunger will||&5&oautomatically go back up to 10 whenever it||&5&odips below 5, as long as you have Elemental||&5&oFuel in your inventory. + bandages: named item stack from "paper;&3Bandage;&6Use of this bandage is the only way to fix a long lasting||&6injury brought on by the hazards of the environment.|| ||&5&oRight click with bandage in hand to cure the effects||&5&obrought on by being badly injured. Multiple bandages||&5&omay be required depending on your injury level." + superbottle: named item stack from "water bottle;&3Super Water Bottle;&6Besides saving you inventory space, this water ||&6is created extra wet to help quench your thirst.|| ||&a+50 Thirst|| ||&5&oUpon use, bottle turns to regular glass bottle." + unstele: named item stack from "magma cream;&3Unstable Element;&6Highly energized plasma like element found||&6in unstable land and mobs.|| ||&5&oThis goo is really hot!" + unstmetal: named item stack from "gold nugget;&3Unstable Metal Shard;&6Energized metal shards found in unstable land||&6and mobs.|| ||&5&oYou feel a light energetic charge coming from||&5&othe shard." + unstmetalbar: named item stack from "gold ingot;&3Unstable Metal Bar;&6Crafted from broken &3Unstable Metal Shards&6 to||&6become whole again.|| ||&5&oHot to the touch, this bar gives a highly energetic||&5&ocharge." + stablemetal: named item stack from "iron ingot;&3Stable Metal Bar;&6Finalized & stable metal bar with just enough||&6energy for crafting special items.|| ||&5&oWarm to the touch with a subtle energetic glow." + stableele: named item stack from "slimeball;&3Stable Element;&6Stable plasma like element used to enhance other||&6items in special ways.|| ||&5&oThe goo feels nice and warm as it slides through||&5&oyour fingers." + envradar: named item stack from "compass;&3Environmental Radar;&6A must have tool for always being in the know about||&6the dangerous environment around you.|| ||&c-1 Elemental Fuel per use|| ||&5&oRight click with radar in hand to get the environmental||&5&ostatistics of the land you’re standing on." + elefuel: named item stack from "coal item;&3Elemental Fuel;&6The universal fuel used to power most of the tools||&6and machines created with &3Energized Metal Bars." + fairydust: named item stack from "sugar;&3Fairy Dust;&6This mysterious dust is filled with special properties||&6that nobody quite understands. Rumor is the dust||&6when combined with the right items or situations can||&6yield interesting results." + stable: named item stack from "packed ice;&3Stabilizer;&6The stabilizer contains the perfect elemental makeup||&6to bring unstable energies down to usable levels.|| ||&5&oSurround the Stabilizer in a crafting table with items||&5&othat contain unstable energy." + stablechst: named item stack from "diamond chestplate;&3Stable Diamond Chestplate;&6This chestplate contains a slot for special||&6enchantments and a container for &3Elemental||&3Fuel&6." + hastechest: named item stack from "diamond chestplate;&3Haste Chestplate;&6This chestplate grants the wearer haste 2||&6 while you have elemental fuel." + speedchest: named item stack from "diamond chestplate;&3Speed Chestplate;&6This chestplate grants the wearer speed 2||&6 while you have elemental fuel." + strengthchest: named item stack from "diamond chestplate;&3Strength Chestplate;&6This chestplate grants the wearer strength 2||&6 while you have elemental fuel." + qnhchest: named item stack from "diamond chestplate;&3Chest of Quench;&6Utilizing the power of &3Elemental Fuel &6and||&6the &3Super Water Bottle&6, this chestplate makes||&6sure you never go thirsty!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your thirst will||&5&oautomatically go back up to 100 whenever it||&5&odips below 50, as long as you have Elemental||&5&oFuel in your inventory." + snkchest: named item stack from "diamond chestplate;&3Chest of Snacks;&6Utilizing the power of &3Elemental Fuel &6and an||&6Enchanted Golden Apple, this chestplate makes||&6sure you never go hungry!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your hunger will||&5&oautomatically go back up to 10 whenever it||&5&odips below 5, as long as you have Elemental||&5&oFuel in your inventory." + coffee: named item stack from "water bottle;&3Cup of Coffee;&4Will give 50 fatigue back to you||&5So you can keep mining" + grapplinghook: named item stack from "fishing rod;&3Grappling hook;&4Will teleport you to where the hook lands||&5-1 Elemental Fuel per use" + safetytorch: named item stack from "redstone torch;&3Safety Torch;&6When placed will preven mobs from spawning in the chunk" + soap1: named item stack from "nether brick item;&3Soap;&6Used to clean yourself||&6by tossing in the water|| ||&a+100 Hygiene" + on script load: - register new shapeless recipe for named item stack from "{@bandages}" using paper, slimeball, air, air, air, air, air, air, air - register new shapeless recipe for named item stack from "{@superbottle}" using bottle of water, bottle of water, bottle of water, bottle of water, air, air, air, air, air - register new shaped recipe for named item stack from "{@unstmetalbar}" using air, air, air, named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}" - register new shaped recipe for named item stack from "{@stablemetal}" using named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@stable}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}" - register new shaped recipe for named item stack from "{@stableele}" using named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@stable}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}" - register new shaped recipe for named item stack from "{@stable}" using ice, ice, ice, ice, named item stack from "{@fairydust}", ice, ice, ice, ice - register new shaped recipe for named item stack from "{@elefuel}" using named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}", coal item, named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}" - register new shaped recipe for named item stack from "{@envradar}" using named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", compass, named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}" - register new shaped recipe for named item stack from "{@stablechst}" using named item stack from "{@stablemetal}", air, named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", diamond block, named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@elefuel}", named item stack from "{@stablemetal}" - register new shapeless recipe for named item stack from "{@qnhchest}" using named item stack from "{@superbottle}", named item stack from "{@stablechst}", air, air, air, air, air, air, air - register new shapeless recipe for named item stack from "{@snkchest}" using named item stack from "{@stablechst}", enchanted golden apple, air, air, air, air, air, air, air - + register new shapeless recipe for {@bandages} using paper, slimeball, air, air, air, air, air, air, air + register new shapeless recipe for {@superbottle} using bottle of water, bottle of water, bottle of water, bottle of water, air, air, air, air, air + register new shaped recipe for {@unstmetalbar} using air, air, air, {@unstmetal}, {@unstmetal}, {@unstmetal}, {@unstmetal}, {@unstmetal}, {@unstmetal} + register new shaped recipe for {@stablemetal} using {@unstmetalbar}, {@unstmetalbar}, {@unstmetalbar}, {@unstmetalbar}, {@stable}, {@unstmetalbar}, {@unstmetalbar}, {@unstmetalbar}, {@unstmetalbar} + register new shaped recipe for {@stableele} using {@unstele}, {@unstele}, {@unstele}, {@unstele}, {@stable}, {@unstele}, {@unstele}, {@unstele}, {@unstele} + register new shaped recipe for {@stable} using ice, ice, ice, ice, {@fairydust}, ice, ice, ice, ice + register new shaped recipe for {@elefuel} using {@stableele}, {@stableele}, {@stableele}, {@stableele}, coal item, {@stableele}, {@stableele}, {@stableele}, {@stableele} + register new shaped recipe for {@envradar} using {@stablemetal}, {@stablemetal}, {@stablemetal}, {@stablemetal}, compass, {@stablemetal}, {@stablemetal}, {@stablemetal}, {@stablemetal} + register new shaped recipe for {@stablechst} using {@stablemetal}, air, {@stablemetal}, {@stablemetal}, diamond block, {@stablemetal}, {@stablemetal}, {@elefuel}, {@stablemetal} + register new shapeless recipe for {@qnhchest} using {@superbottle}, {@stablechst}, air, air, air, air, air, air, air + register new shapeless recipe for {@snkchest} using {@stablechst}, enchanted golden apple, air, air, air, air, air, air, air + register new shapeless recipe for {@coffee} using air, cocoa beans, air, air, milk, air, air, air, air + register new shapeless recipe for {@hastechest} using air, air, air, air, {@stablechst}, beacon, air, air, diamond pickaxe + register new shapeless recipe for {@speedchest} using air, air, air, air, {@stablechst}, beacon, air, air, diamond boots + register new shapeless recipe for {@strengthchest} using air, air, air, air, {@stablechst}, beacon, air, air, diamond sword + register new shaped recipe for {@grapplinghook} using {@elefuel}, Fishing Rod, {@elefuel}, {@elefuel}, {@elefuel}, {@elefuel}, {@elefuel}, {@elefuel}, {@elefuel} + register new shaped recipe for {@soap1} using air, milk bucket, air, air, rose, air, air, water bottle, air + on join: + {fatigue.%player%} is not set: + set {fatigue.%player%} to 100 + {hygiene.%player%} is not set: + set {hygiene.%player%} to 100 + {thirst.%player%} is not set: + set {thirst.%player%} to 100 display board named "&9&lWTF&9ronts" to player make score "&3Thirst" in board of player to {thirst.%player%} + make score "&3Fatigue" in board of player to {fatigue.%player%} + make score "&3Hygiene" in board of player to {hygiene.%player%} set {board.%player%} to true {injured.%player%} is true: make score "&cINJURED" in board of player to 1 + {infected.%player%.flag} is true: + make score "&cINFECTED" in board of player to 1 move display of player to "sidebar" + on chunk load: {unstable.%event-chunk%} is not set: @@ -61,6 +86,10 @@ on chunk load: on mine: + block is ore: + chance of 10%: + set {fatigue.%player%} to {fatigue.%player%} - 1 + player's tool is pickaxe y-coordinate of player is less than 40 {cavein.%chunk at location of player%.chance} is false: @@ -117,9 +146,9 @@ on mine: create explosion of force 2 at event-location chance of {methane.%chunk at location of player%.chance} * 2 %: wait 2 seconds - drop named item stack from "{@unstele}" at event-location + drop {@unstele} at event-location chance of {methane.%chunk at location of player%.chance} * 2%: - drop named item stack from "{@unstmetal}" at event-location + drop {@unstmetal} at event-location chance of {cavein.%chunk at location of player%.chance}%: loop blocks in radius 3: @@ -140,51 +169,6 @@ on portal enter: set {_ran2} to random number between 18 and 20 set {cavein.%chunk at event-location%.chance} to {_ran} set {methane.%chunk at event-location%.chance} to {_ran2} - - - -on right click with compass: - player's tool is named item stack from "{@envradar}": - player does not have named item stack from "{@elefuel}": - send "&cYou do not have enough fuel!" to player - stop - remove named item stack from "{@elefuel}" from player - {cavein.%chunk at location of player%.chance} is not set: - {unstable.%chunk at location of player%} is not set: - chance of 2%: - set {unstable.%chunk at location of player%} to true - set {_ran} to random number between 15 and 20 - set {_ran2} to random number between 18 and 20 - set {cavein.%chunk at location of player%.chance} to {_ran} - set {methane.%chunk at location of player%.chance} to {_ran2} - {unstable.%chunk at location of player%} is not set: - set {unstable.%chunk at location of player%} to false - {cavein.%chunk at location of player%.chance} is not set: - chance of 90%: - set {_ran} to random integer between 1 and 5 - set {cavein.%chunk at location of player%.chance} to {_ran} - {cavein.%chunk at location of player%.chance} is not set: - set {cavein.%chunk at location of player%.chance} to false - {methane.%chunk at location of player%.chance} is not set: - chance of 95%: - set {_ran} to random integer between 3 and 6 - set {methane.%chunk at location of player%.chance} to {_ran} - {methane.%chunk at location of player%.chance} is not set: - set {methane.%chunk at location of player%.chance} to false - - if {unstable.%chunk at location of player%} is true: - send "&aGround Structure: &cUnstable" - send "&aMethane Rating: &cUnstable" - stop - if {cavein.%chunk at location of player%.chance} is false: - send "&aGround Structure: &3SOUND" to player - else: - send "&aGround Structure: &e%{cavein.%chunk at location of player%.chance}%" to player - if {methane.%chunk at location of player%.chance} is false: - send "&aMethane Rating: &3EMPTY" to player - else: - send "&aMethane Rating: &e%{methane.%chunk at location of player%.chance}%" to player - command /chunkstats: permission: obam.admin @@ -200,17 +184,22 @@ command /chunkstats: if {methane.%chunk at location of player%.chance} is false: send "&aMethane Rating: &3EMPTY" to player else: - send "&aMethane Rating: &e%{methane.%chunk at location of player%.chance}%" to player + send "&aMethane Rating: &e%{methane.%chunk at location of player%.chance}%" to player +#Global Loop every 3 seconds: loop all players: {board.%loop-player%} is not set: display board named "&9&lWTF&9ronts" to loop-player make score "&3Thirst" in board of loop-player to {thirst.%loop-player%} + make score "&3Fatigue" in board of loop-player to {fatigue.%loop-player%} + make score "&3Hygiene" in board of loop-player to {hygiene.%loop-player%} set {board.%loop-player%} to true move display of loop-player to "sidebar" {board.%loop-player%} is true: make score "&3Thirst" in board of loop-player to {thirst.%loop-player%} + make score "&3Fatigue" in board of loop-player to {fatigue.%loop-player%} + make score "&3Hygiene" in board of loop-player to {hygiene.%loop-player%} block above loop-player is water: {thirst.%loop-player%} is less than 100: @@ -235,7 +224,18 @@ every 3 seconds: loop-player is sprinting: set {_ran} to random number between 1 and 3 set {thirst.%loop-player%} to {thirst.%loop-player%} - {_ran} + #BIOME SPECIFIC STUFF + biome at loop-player is river: + block under loop-player is water block: + chance of 5%: + loop-player's health is less than 10: + set {_location} to location of loop-player + play 1 of effect "bubbles" with data 1 at {_location} + wait 2 seconds + damage loop-player by .5 heart + send "&3A fish has nibbled at your toes!" to loop-player + biome at loop-player is desert: time in loop-player's world is day y-coordinate of loop-player is greater than 60 @@ -246,22 +246,33 @@ every 3 seconds: damage loop-player by 2 send "&cThe sun beats down on you" to loop-player - biome at loop-player is swamp: + biome at loop-player is hell: + chance of 5%: + set {thirst.%loop-player%} to {thirst.%loop-player%} - 1 + chance of 1%: + damage loop-player by 1 heart + send "&3You are being cooked to a nice medium rare" to loop-player + set {thirst.%loop-player%} to {thirst.%loop-player%} - 4 + + + biome at loop-player is swamp or swampland: set {_ran} to a random integer between 1 and 5 {_ran} is 1: apply hunger 2 to loop-player for 20 seconds send "&cMalaria runs through your body" to loop-player - + #TOO HIGH GETTING CHILLED y-coordinate of loop-player is greater than 110: loop-player's helmet is air damage loop-player by 1 send "&cYou are chilled " to loop-player apply slowness to loop-player for 3 seconds + #BURING IN YO POCKET loop-player has lava bucket: chance of 10%: damage loop-player by 0.5 send "&cThe lava in your inventory grows hotter" to loop-player + #INJURY DAMAGE {injured.%loop-player%} is true: chance of 10%: set {_location} to location of loop-player @@ -281,28 +292,65 @@ every 3 seconds: apply slowness 3 to loop-player for 999 days apply mining fatigue 2 to loop-player for 1 minute apply weakness to loop-player for 30 seconds + + #CHESTPLATES {thirst.%loop-player%} is less than or equal to 50: name of loop-player's chestplate is "&3Chest of Quench" - loop-player has named item stack from "{@elefuel}": + loop-player has {@elefuel}: set {thirst.%loop-player%} to 100 - remove named item stack from "{@elefuel}" from loop-player + remove {@elefuel} from loop-player loop-player's hunger level is less than 5: name of loop-player's chestplate is "&3Chest of Snacks" - loop-player has named item stack from "{@elefuel}": + loop-player has {@elefuel}: set loop-player's hunger level to 10 - remove named item stack from "{@elefuel}" from loop-player + remove {@elefuel} from loop-player - - + {fatigue.%loop-player%} is less than or equal to 30: + chance of 15%: + apply slowness to loop-player for 3 seconds + send "&cYou are fatigued, You can drink coffee or rest to get your strength back" to loop-player - - - + name of loop-player's chestplate is "&3Speed Chestplate": + loop-player has {@elefuel}: + apply speed 2 to loop-player for 4 seconds + remove {@elefuel} from loop-player + loop players in radius 5 of loop-player: + apply speed 2 to loop-player-2 for 4 seconds + + name of loop-player's chestplate is "&3Haste Chestplate": + loop-player has {@elefuel}: + apply haste 2 to loop-player for 4 seconds + remove {@elefuel} from loop-player + loop players in radius 5 of loop-player: + apply haste 2 to loop-player-2 for 4 seconds + + name of loop-player's chestplate is "&3Strength Chestplate": + loop-player has {@elefuel}: + apply strength 2 to loop-player for 4 seconds + remove {@elefuel} from loop-player + loop players in radius 5 of loop-player: + apply strength 2 to loop-player-2 for 4 seconds + + #hygiene + block below loop-player is dirt or grass: + {hygiene.%loop-player%} is greater than 0 + set {_ran} to random number between 0 and 2 + {hygiene.%loop-player%} is not set: + set {hygiene.%loop-player%} to 100 + set {hygiene.%loop-player%} to {hygiene.%loop-player%} - {_ran} + {hygiene.%loop-player%} is less than or equal to 0: + set {hygiene.%loop-player%} to 0 + + {hygiene.%loop-player%} is less than 10: + chance of 5%: + apply nausea to loop-player for 5 seconds + send "&cYour stench affects you. Use soap in water to fix it!" to loop-player + loop all entities: loop-entity is not player: {unstable.%loop-entity%} is set: play 100 of effect "reddust" with data 1 at location of loop-entity - + on spawn of a creeper or a skeleton or a spider or zombie: {unstable.%chunk at event-location%} is true: @@ -360,28 +408,41 @@ on damage: on death of a creeper or a skeleton or a zombie or a spider: chance of 15%: - add named item stack from "{@bandages}" to drops + add {@bandages} to drops entity's name is "&cUnstable Spawn": chance of 10%: chance of 2%: - add named item stack from "{@unstele}" to drops - add named item stack from "{@unstmetal}" to drops + add {@unstele} to drops + add {@unstmetal} to drops -on damage of a player: - damage cause is fall: - chance of 15%: - victim's boots are boots of feather falling: +on damage: + victim is player: + attacker is a zombie: + {infected.%victim%.flag} is not set: + set {infected.%victim%.flag} to true + make score "&cINFECTED" in board of victim to 1 + send "&cThe zombie has infected you!" to victim stop - set {_location} to location of victim - play 1 of effect "angryVillager" of data 1 at {_location} - set {injured.%victim%} to true - apply slowness to victim for 999 days - add 1 to damage - make score "&cINJURED" in board of victim to 1 - send "&cYou have been injured from your fall!" to victim - + {infected.%victim%.flag} is false: + set {infected.%victim%.flag} to true + make score "&cINFECTED" in board of victim to 1 + send "&cThe zombie has infected you!" to victim + stop + damage cause is fall: + chance of 15%: + victim's boots are boots of feather falling: + stop + set {_location} to location of victim + play 1 of effect "angryVillager" with data 1 at {_location} + set {injured.%victim%} to true + apply slowness to victim for 999 days + add 1 to damage + make score "&cINJURED" in board of victim to 1 + send "&cYou have been injured from your fall!" to victim + +#right click events on right click with paper: - player is holding named item stack from "{@bandages}": + player is holding {@bandages}: {injured.%player%} is not set: send "&cYou are not injured!" to player stop @@ -397,7 +458,7 @@ on right click with paper: apply slowness to player for 999 days send "&aYour injuries are healing" to player set {injured.%player%.length} to 1 - remove named item stack from "{@bandages}" from player + remove {@bandages} from player stop {injured.%player%.length} is greater than 10: remove slowness from player @@ -407,17 +468,88 @@ on right click with paper: remove weakness from player set {injured.%player%.length} to 6 send "&aYour injuries are healing" to player - remove named item stack from "{@bandages}" from player + remove {@bandages} from player stop send "&aYou mend your injuries" to player remove mining fatigue from player remove weakness from player remove slowness from player - remove named item stack from "{@bandages}" from player + remove {@bandages} from player nullify score "&cINJURED" in board of player set {injured.%player%} to false set {injured.%player%.length} to 0 +on right click with compass: + player's tool is {@envradar}: + player does not have {@elefuel}: + send "&cYou do not have enough fuel!" to player + stop + remove {@elefuel} from player + {cavein.%chunk at location of player%.chance} is not set: + {unstable.%chunk at location of player%} is not set: + chance of 2%: + set {unstable.%chunk at location of player%} to true + set {_ran} to random number between 15 and 20 + set {_ran2} to random number between 18 and 20 + set {cavein.%chunk at location of player%.chance} to {_ran} + set {methane.%chunk at location of player%.chance} to {_ran2} + {unstable.%chunk at location of player%} is not set: + set {unstable.%chunk at location of player%} to false + {cavein.%chunk at location of player%.chance} is not set: + chance of 90%: + set {_ran} to random integer between 1 and 5 + set {cavein.%chunk at location of player%.chance} to {_ran} + {cavein.%chunk at location of player%.chance} is not set: + set {cavein.%chunk at location of player%.chance} to false + {methane.%chunk at location of player%.chance} is not set: + chance of 95%: + set {_ran} to random integer between 3 and 6 + set {methane.%chunk at location of player%.chance} to {_ran} + {methane.%chunk at location of player%.chance} is not set: + set {methane.%chunk at location of player%.chance} to false + + if {unstable.%chunk at location of player%} is true: + send "&aGround Structure: &cUnstable" + send "&aMethane Rating: &cUnstable" + stop + if {cavein.%chunk at location of player%.chance} is false: + send "&aGround Structure: &3SOUND" to player + else: + send "&aGround Structure: &e%{cavein.%chunk at location of player%.chance}%" to player + if {methane.%chunk at location of player%.chance} is false: + send "&aMethane Rating: &3EMPTY" to player + else: + send "&aMethane Rating: &e%{methane.%chunk at location of player%.chance}%" to player + +on right click with nether brick item: + player's tool is {@soap1}: + block above block below player is water: + remove {@soap1} from player + send "&aYou wash yourself" + set {hygiene.%player%} to 100 + player has nausea: + remove nausea from player + +on shoot: + shooter's tool is {@grapplinghook}: + set {teleport.%projectile%} to shooter +on projectile hit: + shooter does not have {@elefuel}: + shooter's tool is {@grapplinghook}: + send "&4You do not have enough elemental fuel." + stop + shooter has {@elefuel}: + shooter's tool is {@grapplinghook}: + set {_prtp.%projectile%} to projectile's location + teleport {teleport.%projectile%} to {_prtp.%projectile%} + remove {@elefuel} from shooter + delete projectile + stop +on rightclick: + if player is holding {@grapplinghook}: + repair tool of player + stop + on bed enter: {injured.%player%} is true: set {injured.%player%} to false @@ -427,93 +559,243 @@ on bed enter: remove slowness from player nullify score "&cINJURED" in board of player send "&aYou have been healed of your injuries!" to player - -on consume of water bottle: - {thirst.%player%} is greater than or equal to 100: - set {thirst.%player%} to 100 - cancel event - player is holding named item stack from "{@superbottle}": - add 50 to {thirst.%player%} + set {fatigue.%player%} to 100 + +#GLOBAL CONSUME LOOP +on consume: + item is water bottle: + player is holding {@coffee}: + {fatigue.%player%} is greater than or equal to 100: + set {fatigue.%player%} to 100 + cancel event + stop + add 50 to {fatigue.%player%} + {fatigue.%player%} is greater than 100: + set {fatigue.%player%} to 100 + stop + + player is holding {@superbottle}: + add 50 to {thirst.%player%} + {thirst.%player%} is greater than 100: + set {thirst.%player%} to 100 + stop + add 10 to {thirst.%player%} {thirst.%player%} is greater than 100: set {thirst.%player%} to 100 - stop - {thirst.%player%} is greater than or equal to 100: - set {thirst.%player%} to 100 - cancel event - add 10 to {thirst.%player%} - {thirst.%player%} is greater than 100: - set {thirst.%player%} to 100 + item is apple: + add 5 to {thirst.%player%} + {thirst.%player%} is greater than 100: + set {thirst.%player%} to 100 + stop + item is mushroom stew: + add 10 to {thirst.%player%} + {thirst.%player%} is greater than 100: + set {thirst.%player%} to 100 + stop + item is carrot: + add 5 to {thirst.%player%} + {thirst.%player%} is greater than 100: + set {thirst.%player%} to 100 + stop + item is potato: + add 5 to {thirst.%player%} + {thirst.%player%} is greater than 100: + set {thirst.%player%} to 100 + stop + item is golden apple: + {infected.%player%.flag} is true: + set {infected.%player%.flag} to false + nullify score "&cINFECTED" in board of player + send "&3You have been revitalized!" + on death of a player: - {thirst.%player%} is less than 25: - set {thirst.%player%} to 25 - -command /ci []: + {thirst.%player%} is less than 25: + set {thirst.%player%} to 25 + {infected.%player%.flag} is true: + set {_location5} to player's location + wait 1 second + spawn 1 zombie at {_location5} + set name of spawned entity to "%player%" + apply resistance 2 to entity for 999 days + apply speed to entity for 999 days + +command /ci [] []: permission: obam.admin trigger: - argument is not set: + argument 1 is not set: send "list" - send "1 ... Super Water Bottle" - send "2 ... Bandages" - send "3 ... Unstable Metal Shard" - send "4 ... Unstable Metal Bar" - send "5 ... Stable Metal Bar" - send "6 ... Unstable Element" - send "7 ... Stable Element" - send "8 ... Environmental Radar" - send "9 ... Elemental Fuel" + send "1 ... Super Water Bottle" + send "2 ... Bandages" + send "3 ... Unstable Metal Shard" + send "4 ... Unstable Metal Bar" + send "5 ... Stable Metal Bar" + send "6 ... Unstable Element" + send "7 ... Stable Element" + send "8 ... Environmental Radar" + send "9 ... Elemental Fuel" send "10 ... Fairy Dust" send "11 ... Stabilizer" send "12 ... Stable Chest" send "13 ... Chest of Quench" send "14 ... Chest of Snacks" + send "15 ... Grappling Hook" + send "16 ... Coffee" + send "17 ... Safety Torch" + send "18 ... Speed Chestplate" + send "19 ... Haste Chestplate" + send "20 ... Strength Chestplate" + send "21 ... Soap (1)" stop - argument is 1: - give named item stack from "{@superbottle}" to player - - argument is 2: - give named item stack from "{@bandages}" to player - - argument is 3: - give named item stack from "{@unstmetal}" to player - - argument is 4: - give named item stack from "{@unstmetalbar}" to player - - argument is 5: - give named item stack from "{@stablemetal}" to player - - argument is 6: - give named item stack from "{@unstele}" to player - - argument is 7: - give named item stack from "{@stableele}" to player - - argument is 8: - give named item stack from "{@envradar}" to player - - argument is 9: - give named item stack from "{@elefuel}" to player - - argument is 10: - give named item stack from "{@fairydust}" to player - - argument is 11: - give named item stack from "{@stable}" to player - - argument is 12: - give named item stack from "{@stablechst}" to player - - argument is 13: - give named item stack from "{@qnhchest}" to player + argument 2 is not set: + argument 1 is 1: + give {@superbottle} to player + + argument 1 is 2: + give {@bandages} to player + + argument 1 is 3: + give {@unstmetal} to player + + argument 1 is 4: + give {@unstmetalbar} to player + + argument 1 is 5: + give {@stablemetal} to player + + argument 1 is 6: + give {@unstele} to player + + argument 1 is 7: + give {@stableele} to player + + argument 1 is 8: + give {@envradar} to player + + argument 1 is 9: + give {@elefuel} to player + + argument 1 is 10: + give {@fairydust} to player + + argument 1 is 11: + give {@stable} to player + + argument 1 is 12: + give {@stablechst} to player + + argument 1 is 13: + give {@qnhchest} to player + + argument 1 is 14: + give {@snkchest} to player + + argument 1 is 15: + give {@grapplinghook} to player + + argument 1 is 16: + give {@coffee} to player + + argument 1 is 17: + give {@safetytorch} to player + + argument 1 is 18: + give {@speedchest} to player - argument is 14: - give named item stack from "{@snkchest}" to player + argument 1 is 19: + give {@hastechest} to player + + argument 1 is 20: + give {@strengthchest} to player + + argument 1 is 21: + give {@soap1} to player + argument 2 is set: + argument 1 is 1: + loop argument 2 times: + give {@superbottle} to player + + argument 1 is 2: + loop argument 2 times: + give {@bandages} to player + + argument 1 is 3: + loop argument 2 times: + give {@unstmetal} to player + + argument 1 is 4: + loop argument 2 times: + give {@unstmetalbar} to player + + argument 1 is 5: + loop argument 2 times: + give {@stablemetal} to player + + argument 1 is 6: + loop argument 2 times: + give {@unstele} to player + + argument 1 is 7: + loop argument 2 times: + give {@stableele} to player + + argument 1 is 8: + loop argument 2 times: + give {@envradar} to player + + argument 1 is 9: + loop argument 2 times: + give {@elefuel} to player + + argument 1 is 10: + loop argument 2 times: + give {@fairydust} to player + + argument 1 is 11: + loop argument 2 times: + give {@stable} to player + + argument 1 is 12: + loop argument 2 times: + give {@stablechst} to player + + argument 1 is 13: + loop argument 2 times: + give {@qnhchest} to player + + argument 1 is 14: + loop argument 2 times: + give {@snkchest} to player + + argument 1 is 15: + loop argument 2 times: + give {@grapplinghook} to player + + argument 1 is 16: + loop argument 2 times: + give {@coffee} to player + + argument 1 is 17: + loop argument 2 times: + give {@safetytorch} to player + + argument 1 is 18: + loop argument 2 times: + give {@speedchest} to player - - - - send "Here is your thing" + argument 1 is 19: + loop argument 2 times: + give {@hastechest} to player + + argument 1 is 20: + loop argument 2 times: + give {@strengthchest} to player + + argument 1 is 21: + loop argument 2 times: + give {@soap1} to player + + send "Here is your item. :)" command /togglestats: trigger: @@ -522,6 +804,8 @@ command /togglestats: set {board.%player%} to true display board named "&9&lWTF&9fronts" to player make score "&3Thirst" in board of player to {thirst.%player%} + make score "&3Fatigue" in board of player to {fatigue.%player%} + make score "&3Hygiene" in board of player to {hygiene.%player%} move display of player to "sidebar" stop {board.%player%} is true: @@ -531,11 +815,20 @@ command /togglestats: {board.%player%} is not set: display board named "&9&lWTF&9ronts" to player make score "&3Thirst" in board of player to {thirst.%player%} + make score "&3Fatigue" in board of player to {fatigue.%player%} + make score "&3Hygiene" in board of player to {hygiene.%player%} set {board.%player%} to true move display of player to "sidebar" stop - +on place of torch: + player's tool is {@safetytorch} + set {safety.active.%chunk at event-location%} to true + +on spawn: + entity is skeleton or creeper or zombie or witch or spider or cave spider or enderman: + {safety.active.%chunk at event-location%} is true: + cancel event on place: former tool's name is set: @@ -549,7 +842,7 @@ on place: send "DEBUG %{information.%block%.1}%" send "DEBUG %lore of former tool%" send "DEBUG %name of former tool%" - send "DEBUG %{information.%block%.2}%" + send "DEBUG %{information.%block%.2}%" send "DEBUG %{information.%block%.3}%" set {information.%block%.1} to "%{information.%block%.1}%" @@ -567,13 +860,13 @@ on break of glowstone: chance of 10%: player's tool is pickaxe of silk touch: stop - drop named item stack from "{@fairydust}" at location of event-block + drop {@fairydust} at location of event-block on right click with sugar: - player's tool is named item stack from "{@fairydust}": + player's tool is {@fairydust}: player is flying: stop - remove named item stack from "{@fairydust}" from player + remove {@fairydust} from player send "&aYou can fly!" to player allow player to fly wait 5 seconds @@ -592,7 +885,4 @@ command /debug: set {debug.%player%} to false send "&aDebug off" stop - - - \ No newline at end of file From ea2976943c851dbff152cbdfe24851e0190ef4a5 Mon Sep 17 00:00:00 2001 From: Caleb Ferguson Date: Wed, 7 May 2014 01:06:29 -0400 Subject: [PATCH 05/14] Update powerpick.sk --- Obam-Testing/powerpick.sk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Obam-Testing/powerpick.sk b/Obam-Testing/powerpick.sk index 1aaf182..06299b3 100644 --- a/Obam-Testing/powerpick.sk +++ b/Obam-Testing/powerpick.sk @@ -1,10 +1,10 @@ options: - powerpick: diamond pickaxe;&cPower Pick;&7Reinforced by diamonds to speed up;&7the mining process + powerpick: diamond pickaxe named "&cPower Pick" with lore "&7Reinforced by diamonds to speed up||&7the mining process" on script load: - register new shapeless recipe for named item stack from "{@powerpick}" using diamond block, diamond block, diamond block, diamond block, diamond pick, diamond block, diamond block, diamond block, diamond block + register new shapeless recipe {@powerpick} using diamond block, diamond block, diamond block, diamond block, diamond pick, diamond block, diamond block, diamond block, diamond block @@ -63,4 +63,4 @@ on mine: {_fint} is not set: drop gravel at location of event-block set loop-block to air - \ No newline at end of file + From 6113972320667397406cafa7c860cb2ac67302c8 Mon Sep 17 00:00:00 2001 From: Caleb Ferguson Date: Wed, 7 May 2014 01:13:36 -0400 Subject: [PATCH 06/14] Update wtfronts.sk --- Obam-Testing/wtfronts.sk | 44 ++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Obam-Testing/wtfronts.sk b/Obam-Testing/wtfronts.sk index 1bdd5f5..7d59665 100644 --- a/Obam-Testing/wtfronts.sk +++ b/Obam-Testing/wtfronts.sk @@ -1,25 +1,25 @@ options: - bandages: named item stack from "paper;&3Bandage;&6Use of this bandage is the only way to fix a long lasting||&6injury brought on by the hazards of the environment.|| ||&5&oRight click with bandage in hand to cure the effects||&5&obrought on by being badly injured. Multiple bandages||&5&omay be required depending on your injury level." - superbottle: named item stack from "water bottle;&3Super Water Bottle;&6Besides saving you inventory space, this water ||&6is created extra wet to help quench your thirst.|| ||&a+50 Thirst|| ||&5&oUpon use, bottle turns to regular glass bottle." - unstele: named item stack from "magma cream;&3Unstable Element;&6Highly energized plasma like element found||&6in unstable land and mobs.|| ||&5&oThis goo is really hot!" - unstmetal: named item stack from "gold nugget;&3Unstable Metal Shard;&6Energized metal shards found in unstable land||&6and mobs.|| ||&5&oYou feel a light energetic charge coming from||&5&othe shard." - unstmetalbar: named item stack from "gold ingot;&3Unstable Metal Bar;&6Crafted from broken &3Unstable Metal Shards&6 to||&6become whole again.|| ||&5&oHot to the touch, this bar gives a highly energetic||&5&ocharge." - stablemetal: named item stack from "iron ingot;&3Stable Metal Bar;&6Finalized & stable metal bar with just enough||&6energy for crafting special items.|| ||&5&oWarm to the touch with a subtle energetic glow." - stableele: named item stack from "slimeball;&3Stable Element;&6Stable plasma like element used to enhance other||&6items in special ways.|| ||&5&oThe goo feels nice and warm as it slides through||&5&oyour fingers." - envradar: named item stack from "compass;&3Environmental Radar;&6A must have tool for always being in the know about||&6the dangerous environment around you.|| ||&c-1 Elemental Fuel per use|| ||&5&oRight click with radar in hand to get the environmental||&5&ostatistics of the land you’re standing on." - elefuel: named item stack from "coal item;&3Elemental Fuel;&6The universal fuel used to power most of the tools||&6and machines created with &3Energized Metal Bars." - fairydust: named item stack from "sugar;&3Fairy Dust;&6This mysterious dust is filled with special properties||&6that nobody quite understands. Rumor is the dust||&6when combined with the right items or situations can||&6yield interesting results." - stable: named item stack from "packed ice;&3Stabilizer;&6The stabilizer contains the perfect elemental makeup||&6to bring unstable energies down to usable levels.|| ||&5&oSurround the Stabilizer in a crafting table with items||&5&othat contain unstable energy." - stablechst: named item stack from "diamond chestplate;&3Stable Diamond Chestplate;&6This chestplate contains a slot for special||&6enchantments and a container for &3Elemental||&3Fuel&6." - hastechest: named item stack from "diamond chestplate;&3Haste Chestplate;&6This chestplate grants the wearer haste 2||&6 while you have elemental fuel." - speedchest: named item stack from "diamond chestplate;&3Speed Chestplate;&6This chestplate grants the wearer speed 2||&6 while you have elemental fuel." - strengthchest: named item stack from "diamond chestplate;&3Strength Chestplate;&6This chestplate grants the wearer strength 2||&6 while you have elemental fuel." - qnhchest: named item stack from "diamond chestplate;&3Chest of Quench;&6Utilizing the power of &3Elemental Fuel &6and||&6the &3Super Water Bottle&6, this chestplate makes||&6sure you never go thirsty!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your thirst will||&5&oautomatically go back up to 100 whenever it||&5&odips below 50, as long as you have Elemental||&5&oFuel in your inventory." - snkchest: named item stack from "diamond chestplate;&3Chest of Snacks;&6Utilizing the power of &3Elemental Fuel &6and an||&6Enchanted Golden Apple, this chestplate makes||&6sure you never go hungry!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your hunger will||&5&oautomatically go back up to 10 whenever it||&5&odips below 5, as long as you have Elemental||&5&oFuel in your inventory." - coffee: named item stack from "water bottle;&3Cup of Coffee;&4Will give 50 fatigue back to you||&5So you can keep mining" - grapplinghook: named item stack from "fishing rod;&3Grappling hook;&4Will teleport you to where the hook lands||&5-1 Elemental Fuel per use" - safetytorch: named item stack from "redstone torch;&3Safety Torch;&6When placed will preven mobs from spawning in the chunk" - soap1: named item stack from "nether brick item;&3Soap;&6Used to clean yourself||&6by tossing in the water|| ||&a+100 Hygiene" + bandages: paper named "&3Bandage" with lore "&6Use of this bandage is the only way to fix a long lasting||&6injury brought on by the hazards of the environment.|| ||&5&oRight click with bandage in hand to cure the effects||&5&obrought on by being badly injured. Multiple bandages||&5&omay be required depending on your injury level." + superbottle: water bottle named "&3Super Water Bottle" with lore "&6Besides saving you inventory space, this water ||&6is created extra wet to help quench your thirst.|| ||&a+50 Thirst|| ||&5&oUpon use, bottle turns to regular glass bottle." + unstele: magma cream named "&3Unstable Element" with lore "&6Highly energized plasma like element found||&6in unstable land and mobs.|| ||&5&oThis goo is really hot!" + unstmetal: gold nugget named "&3Unstable Metal Shard" with lore "&6Energized metal shards found in unstable land||&6and mobs.|| ||&5&oYou feel a light energetic charge coming from||&5&othe shard." + unstmetalbar: gold ingot named "&3Unstable Metal Bar" with lore "&6Crafted from broken &3Unstable Metal Shards&6 to||&6become whole again.|| ||&5&oHot to the touch, this bar gives a highly energetic||&5&ocharge." + stablemetal: iron ingot named "&3Stable Metal Bar" with lore "&6Finalized & stable metal bar with just enough||&6energy for crafting special items.|| ||&5&oWarm to the touch with a subtle energetic glow." + stableele: slimeball named "&3Stable Element" with lore "&6Stable plasma like element used to enhance other||&6items in special ways.|| ||&5&oThe goo feels nice and warm as it slides through||&5&oyour fingers." + envradar: compass named "&3Environmental Radar" with lore "&6A must have tool for always being in the know about||&6the dangerous environment around you.|| ||&c-1 Elemental Fuel per use|| ||&5&oRight click with radar in hand to get the environmental||&5&ostatistics of the land you’re standing on." + elefuel: coal item named "&3Elemental Fuel" with lore "&6The universal fuel used to power most of the tools||&6and machines created with &3Energized Metal Bars." + fairydust: sugar named "&3Fairy Dust" with lore "&6This mysterious dust is filled with special properties||&6that nobody quite understands. Rumor is the dust||&6when combined with the right items or situations can||&6yield interesting results." + stable: packed ice named "&3Stabilizer" with lore "&6The stabilizer contains the perfect elemental makeup||&6to bring unstable energies down to usable levels.|| ||&5&oSurround the Stabilizer in a crafting table with items||&5&othat contain unstable energy." + stablechst: diamond chestplate named "&3Stable Diamond Chestplate" with lore "&6This chestplate contains a slot for special||&6enchantments and a container for &3Elemental||&3Fuel&6." + hastechest: diamond chestplate named "&3Haste Chestplate" with lore "&6This chestplate grants the wearer haste 2||&6 while you have elemental fuel." + speedchest: diamond chestplate named "&3Speed Chestplate" with lore "&6This chestplate grants the wearer speed 2||&6 while you have elemental fuel." + strengthchest: diamond chestplate named "&3Strength Chestplate" with lore "&6This chestplate grants the wearer strength 2||&6 while you have elemental fuel." + qnhchest: diamond chestplate named "&3Chest of Quench" with lore "&6Utilizing the power of &3Elemental Fuel &6and||&6the &3Super Water Bottle&6, this chestplate makes||&6sure you never go thirsty!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your thirst will||&5&oautomatically go back up to 100 whenever it||&5&odips below 50, as long as you have Elemental||&5&oFuel in your inventory." + snkchest: diamond chestplate named "&3Chest of Snacks" with lore "&6Utilizing the power of &3Elemental Fuel &6and an||&6Enchanted Golden Apple, this chestplate makes||&6sure you never go hungry!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your hunger will||&5&oautomatically go back up to 10 whenever it||&5&odips below 5, as long as you have Elemental||&5&oFuel in your inventory." + coffee: water bottle named "&3Cup of Coffee" with lore "&4Will give 50 fatigue back to you||&5So you can keep mining" + grapplinghook: fishing rod named "&3Grappling hook" with lore "&4Will teleport you to where the hook lands||&5-1 Elemental Fuel per use" + safetytorch: redstone torch named "&3Safety Torch" with lore "&6When placed will preven mobs from spawning in the chunk" + soap1: nether brick item named "&3Soap" with lore "&6Used to clean yourself||&6by tossing in the water|| ||&a+100 Hygiene" on script load: @@ -885,4 +885,4 @@ command /debug: set {debug.%player%} to false send "&aDebug off" stop - \ No newline at end of file + From 61a40e7aaf22689da73dfe5d4c91a6233fba4112 Mon Sep 17 00:00:00 2001 From: Caleb Ferguson Date: Wed, 7 May 2014 01:19:47 -0400 Subject: [PATCH 07/14] Update zbeta.sk --- Obam-Testing/zbeta.sk | 53 +++++++++++++++++-------------------------- 1 file changed, 21 insertions(+), 32 deletions(-) diff --git a/Obam-Testing/zbeta.sk b/Obam-Testing/zbeta.sk index 4d4f058..2071c91 100644 --- a/Obam-Testing/zbeta.sk +++ b/Obam-Testing/zbeta.sk @@ -3,11 +3,12 @@ options: #@weapons - PStab: diamond sword;&aThe Green Justice;&7Crafted from the purest||&7items to cut through||&7the souls of the purest humans - ZStab: diamond sword;&cThe Red Death;&7Laced with the poisonous||&7Blood of the zombies||&7to deliver a powerful strike - Supp1: bow of infinity 1;&fBow of Healing;&7Powerful darts loaded||&7with medical properties to||&7to heal friends from afar - Supp2: paper;&fBandage;&7The most current healing technology||&7In a convenient travel||&7ready delivery system|| ||&eRight click on a player to use - Tank: wood sword of knockback 1;&eHit Stick;&7Built with rubber infused wood for ||&7that extra push against attacking enemies + PStab: diamond sword named "&aThe Green Justice" with lore "&7Crafted from the purest||&7items to cut through||&7the souls of the purest humans" + ZStab: diamond sword named "&cThe Red Death" with lore "&7Laced with the poisonous||&7Blood of the zombies||&7to deliver a powerful strike" + Supp1: bow of infinity 1 named "&fBow of Healing" with lore "&7Powerful darts loaded||&7with medical properties to||&7to heal friends from afar" + Supp2: paper named "&fBandage" with lore "&7The most current healing technology||&7In a convenient travel||&7ready delivery system|| ||&eRight click on a player to use" + Tank: wood sword of knockback 1 named "&eHit Stick" with lore "&7Built with rubber infused wood for ||&7that extra push against attacking enemies" + on death of a zombie: {zbeta.game.active} is true attacker is a player @@ -1093,7 +1094,7 @@ on right click on a sign: set player's helmet to red wool {zbeta.team.%player%} is "yellow": set player's helmet to yellow wool - give player named item stack from "{@ZStab}" + give player {@ZStab} equip player with leather chestplate named "&cStabber Gear" equip player with leather leggings named "&cStabber Gear" equip player with leather boots named "&CStabber Gear" @@ -1108,7 +1109,7 @@ on right click on a sign: set player's helmet to red wool {zbeta.team.%player%} is "yellow": set player's helmet to yellow wool - give player named item stack from "{@PStab}" + give player {@PStab} equip player with leather chestplate named "&aStabber Gear" equip player with leather leggings named "&aStabber Gear" equip player with leather boots named "&aStabber Gear" @@ -1123,9 +1124,9 @@ on right click on a sign: set player's helmet to red wool {zbeta.team.%player%} is "yellow": set player's helmet to yellow wool - give player named item stack from "{@Supp1}" + give player {@Supp1} give player arrow - give player named item stack from "{@Supp2}" + give player {@Supp2} equip player with leather chestplate named "&fDoctor's Coat" equip player with leather leggings named "&fDoctor's Coat" equip player with leather boots named "&fDoctor's Coat" @@ -1140,7 +1141,7 @@ on right click on a sign: set player's helmet to red wool {zbeta.team.%player%} is "yellow": set player's helmet to yellow wool - give player named item stack from "{@Tank}" + give player {@Tank} equip player with leather chestplate named "&eTanks Armor" equip player with leather leggings named "&eTanks Armor" equip player with leather boots named "&eTanks Armor" @@ -1172,10 +1173,10 @@ on damage of a player: attacker is player: {zbeta.team.%attacker%} is {zbeta.team.%victim%}: {zbeta.lo.%attacker%} is "SUPPORT": - attacker's tool is named item stack from "{@Supp2}": + attacker's tool is {@Supp2}: add 7 to victim's health send "&aYou have been healed by %attacker%" to victim - remove named item stack from "{@Supp2}" from attacker + remove {@Supp2} from attacker stop attacker's tool is not air: attacker's tool is not arrow @@ -1193,15 +1194,15 @@ on damage of a player: stop set damage to 0 {zbeta.lo.%attacker%} is "Z-STABBER": - attacker's tool is named item stack from "{@ZStab}": + attacker's tool is {@ZStab}: set {_dmg} to a random number between 0.09 to 0.12 - attacker's tool is not named item stack from "{@ZStab}": + attacker's tool is not {@ZStab}: set {_dmg} to a random number between 0.08 to 0.1 {zbeta.lo.%attacker%} is "P-STABBER": - attacker's tool is named item stack from "{@PStab}": + attacker's tool is {@PStab}: set {_dmg} to a random number between 0.3 and 0.8 - attacker's tool is not named item stack from "{@PStab}": + attacker's tool is not {@PStab}: set {_dmg} to a random number between 0.1 and 0.4 {zbeta.lo.%attacker%} is "SUPPORT": set {_dmg} to 0.050 @@ -1258,15 +1259,15 @@ on damage of a player: on damage of a zombie: attacker is player: {zbeta.lo.%attacker%} is "Z-STABBER": - attacker's tool is named item stack from "{@ZStab}": + attacker's tool is {@ZStab}: set {_dmg} to 8 - attacker's tool is not named item stack from "{@ZStab}": + attacker's tool is not {@ZStab}: set {_dmg} to 0.75 {zbeta.lo.%attacker%} is "P-STABBER": - attacker's tool is named item stack from "{@PStab}": + attacker's tool is {@PStab}: set {_dmg} to 1.0 - attacker's tool is not named item stack from "{@PStab}": + attacker's tool is not {@PStab}: set {_dmg} to 0.25 {zbeta.lo.%attacker%} is "SUPPORT": set {_dmg} to 0.25 @@ -1288,15 +1289,3 @@ on target: apply speed 3 to event-entity for 10 seconds set {zbeta.%event-entity%.speed} to true - - - - - - - - - - - - \ No newline at end of file From 3462a3cddcb5ff2c21b6caa9a17f742036274b74 Mon Sep 17 00:00:00 2001 From: Caleb Ferguson Date: Wed, 7 May 2014 01:31:56 -0400 Subject: [PATCH 08/14] Update eggification.sk --- Obam-Tools/eggification.sk | 50 +++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/Obam-Tools/eggification.sk b/Obam-Tools/eggification.sk index 0bc9c3d..b5f073c 100644 --- a/Obam-Tools/eggification.sk +++ b/Obam-Tools/eggification.sk @@ -1,43 +1,43 @@ options: - egg: snowball;&3Projeggtile Capture Ball;&6Capture the essence of various creatures||&6by tossing your balls at them. - egg2: snowball;&3Projeggtile &2Creeper &3Ball;&6Heavily reinforced to prevent even the||&6most explosive creepers from escaping! - egg3: snowball;&3Projeggtile &7Skeleton &3Ball;&6An ironic prison of bones made to hold||&6a skeleton, made from its own kin! - egg4: snowball;&3Projeggtile &aZombie &dPigman &3Ball;&6A containment area with a nugget inside||&6to lure and keep the pigman content! - egg5: snowball;&3Projeggtile &aZombie &3Ball;&6Layered in flesh to make even the||&6loneliest zombie feel at home! - egg6: snowball;&3Projeggtile &4Spider &3Ball;&6Tangles an eight legged bugger||&6into a silky woven sack! + egg: snowball named "&3Projeggtile Capture Ball" with lore "&6Capture the essence of various creatures||&6by tossing your balls at them." + egg2: snowball named "&3Projeggtile &2Creeper &3Ball" with lore "&6Heavily reinforced to prevent even the||&6most explosive creepers from escaping!" + egg3: snowball named "&3Projeggtile &7Skeleton &3Ball" with lore "&6An ironic prison of bones made to hold||&6a skeleton, made from its own kin!" + egg4: snowball named "&3Projeggtile &aZombie &dPigman &3Ball" with lore "&6A containment area with a nugget inside||&6to lure and keep the pigman content!" + egg5: snowball named "&3Projeggtile &aZombie &3Ball" with lore "&6Layered in flesh to make even the||&6loneliest zombie feel at home!" + egg6: snowball named "&3Projeggtile &4Spider &3Ball" with lore "&6Tangles an eight legged bugger||&6into a silky woven sack!" on script load: register new shaped recipe for mooshroom spawn egg using red mushroom, red mushroom, red mushroom, red mushroom, cow spawn egg, red mushroom, red mushroom, red mushroom, red mushroom - register new shaped recipe for named item stack from "{@egg2}" using named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", gunpowder, named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}" - register new shaped recipe for named item stack from "{@egg3}" using named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", bone, named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}" - register new shaped recipe for named item stack from "{@egg4}" using named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", gold nugget, named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}" - register new shaped recipe for named item stack from "{@egg5}" using named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", rotten flesh, named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}" - register new shaped recipe for named item stack from "{@egg6}" using named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", string, named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}" + register new shaped recipe for {@egg2} using {@egg}, {@egg}, {@egg}, {@egg}, gunpowder, {@egg}, {@egg}, {@egg}, {@egg} + register new shaped recipe for {@egg3} using {@egg}, {@egg}, {@egg}, {@egg}, bone, {@egg}, {@egg}, {@egg}, {@egg} + register new shaped recipe for {@egg4} using {@egg}, {@egg}, {@egg}, {@egg}, gold nugget, {@egg}, {@egg}, {@egg}, {@egg} + register new shaped recipe for {@egg5} using {@egg}, {@egg}, {@egg}, {@egg}, rotten flesh, {@egg}, {@egg}, {@egg}, {@egg} + register new shaped recipe for {@egg6} using {@egg}, {@egg}, {@egg}, {@egg}, string, {@egg}, {@egg}, {@egg}, {@egg} on join: {db_egg.%player%.skeleton} is set: send "&aYou have received %{db_egg.%player%.skeleton}% Projeggtiles" loop {db_egg.%player%.skeleton} times: - drop named item stack from "{@egg3}" + drop {@egg3} clear {db_egg.%player%.skeleton} {db_egg.%player%.creeper} is set: send "&aYou have received %{db_egg.%player%.creeper}% Projeggtiles" loop {db_egg.%player%.creeper} times: - drop named item stack from "{@egg2}" + drop {@egg2} clear {db_egg.%player%.creeper} {db_egg.%player%.zpig} is set: send "&aYou have received %{db_egg.%player%.zpig}% Projeggtiles" loop {db_egg.%player%.zpig} times: - drop named item stack from "{@egg4}" + drop {@egg4} clear {db_egg.%player%.zpig} {db_egg.%player%.zombie} is set: send "&aYou have received %{db_egg.%player%.zombie}% Projeggtiles" loop {db_egg.%player%.zombie} times: - drop named item stack from "{@egg5}" + drop {@egg5} clear {db_egg.%player%.zombie} on shoot: @@ -47,19 +47,19 @@ on shoot: on shoot: projectile is snowball - shooter's tool is named item stack from "{@egg2}": + shooter's tool is {@egg2}: set {projeggtile.hostile.%projectile%} to true set {creeper.%projectile%} to true - shooter's tool is named item stack from "{@egg3}": + shooter's tool is {@egg3}: set {projeggtile.hostile.%projectile%} to true set {skeleton.%projectile%} to true - shooter's tool is named item stack from "{@egg4}": + shooter's tool is {@egg4}: set {projeggtile.hostile.%projectile%} to true set {pigman.%projectile%} to true - shooter's tool is named item stack from "{@egg5}": + shooter's tool is {@egg5}: set {projeggtile.hostile.%projectile%} to true set {zombie.%projectile%} to true - shooter's tool is named item stack from "{@egg6}": + shooter's tool is {@egg6}: set {projeggtile.hostile.%projectile%} to true set {spider.%projectile%} to true @@ -80,19 +80,19 @@ on damage of a creeper or a skeleton or a zombie or a zombie pigman or a spider: send "&cYou do not have enough tickets!" to attacker cancel event {creeper.%projectile%} is set: - give attacker named item stack from "{@egg2}" + give attacker {@egg2} stop {skeleton.%projectile%} is set: - give attacker named item stack from "{@egg3}" + give attacker {@egg3} stop {pigman.%projectile%} is set: - give attacker named item stack from "{@egg4}" + give attacker {@egg4} stop {zombie.%projectile%} is set: - give attacker named item stack from "{@egg5}" + give attacker {@egg5} stop {spider.%projectile%} is set: - give attacker named item stack from "{@egg6}" + give attacker {@egg6} stop subtract 150 from attacker's balance From ef49561371a2e03852c5eb058ae9a9d1a6187afe Mon Sep 17 00:00:00 2001 From: Caleb Ferguson Date: Wed, 7 May 2014 01:40:57 -0400 Subject: [PATCH 09/14] Update hubconfig.sk --- Obam-General/hubconfig.sk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Obam-General/hubconfig.sk b/Obam-General/hubconfig.sk index 6d9bf1a..06e8ad9 100644 --- a/Obam-General/hubconfig.sk +++ b/Obam-General/hubconfig.sk @@ -1,7 +1,7 @@ options: - help: named item stack from "book;&6&lOBAM&fCraft &3Guide;&7Right click with this book to learn the ins||&7and out of OBAM" - worlds: named item stack from "ender pearl;&3Game Worlds;&7Right click with this to check the current Game Worlds!" - fly: named item stack from "feather;&3Fly!;&7Right click with this feather to fly in the hub!" + help: book named "&6&lOBAM&fCraft &3Guide" with lore "&7Right click with this book to learn the ins||&7and out of OBAM" + worlds: ender pearl named "&3Game Worlds" with lore "&7Right click with this to check the current Game Worlds!" + fly: feather named "&3Fly!" with lore "&7Right click with this feather to fly in the hub!" skyblock: i;grass;n;&6Skyblock;l;&7Try our Skyblock world with custom challenges and ||&7Villager trading!;c;sudo %player% worlds skyblock fronts: i;cobblestone;n;&6Fronts;l;&7Our Special flavour of Survival with immediate||&7land claiming!;c;sudo %player% worlds survival wtfronts: i;magma cream;n;&6WTFronts;l;&cBETA TESTING|| ||&7Extreme Survival with extreme payoffs!;c;sudo %player% worlds wtf @@ -93,4 +93,4 @@ command /transfer []: connect player to "%argument%" - \ No newline at end of file + From 49bb5f95c78def17d98a53ac1fd2fce6a2dfbbda Mon Sep 17 00:00:00 2001 From: Caleb Ferguson Date: Wed, 7 May 2014 01:45:01 -0400 Subject: [PATCH 10/14] Update CreatureCapture.sk --- Obam-General/CreatureCapture.sk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Obam-General/CreatureCapture.sk b/Obam-General/CreatureCapture.sk index 315eaba..39ff139 100644 --- a/Obam-General/CreatureCapture.sk +++ b/Obam-General/CreatureCapture.sk @@ -1,16 +1,16 @@ # add back in world is "creature_capture": options: - lead: named item stack from "lead;&bLasso;&eRight click with this to turn mobs into eggs." - rod: named item stack from "fishing rod;&bCapture Rod;&eUse this rod to capture the mobs." + lasso: stick named "&bLasso" with lore "&eRight click with this to turn mobs into eggs." + rod: fishing rod named "&bCapture Rod" with lore "&eUse this rod to capture the mobs." on rightclick on sign: world is "CreatureCapture" line 1 of block is "Get a": line 2 of block is "Lasso": - if player has {@lead}: + if player has {@lasso}: send "&cYou already have a lasso" to player stop - give player {@lead} + give player {@lasso} stop line 2 of block is "Capture Rod": if player has {@rod}: @@ -44,7 +44,7 @@ on sign change: on right click on entity: world is "CreatureCapture" - if player is holding {@lead}: + if player is holding {@lasso}: distance between player and event-entity is smaller than 3 if entity is bat: delete entity @@ -150,4 +150,4 @@ on drop: on pickup: world is "CreatureCapture" - cancel event \ No newline at end of file + cancel event From 3e6a0257a60375137da3b5593f0145e4cf7379c5 Mon Sep 17 00:00:00 2001 From: Caleb Ferguson Date: Wed, 7 May 2014 01:52:08 -0400 Subject: [PATCH 11/14] Update kitstuff.sk --- Obam-KitPvp/kitstuff.sk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Obam-KitPvp/kitstuff.sk b/Obam-KitPvp/kitstuff.sk index 48dc33d..8c4edb0 100644 --- a/Obam-KitPvp/kitstuff.sk +++ b/Obam-KitPvp/kitstuff.sk @@ -141,7 +141,7 @@ command /kit []: dye player's chestplate red dye player's leggings red dye player's boots red - give nameditemstack from "Stick of knockback 1;&fFire Wand;&fPowers:|| ||&bConfuse: &3Left click to shoot a confusion||&3egg at a player!||&b&lCOST:&b 5 Mana|| ||&bFireball: &3Right click to shoot a fireball||&b&lCOST:&b 10 Mana" to the player + give player stick of knockback 1 named "&fFire Wand" with lore "&fPowers:|| ||&bConfuse: &3Left click to shoot a confusion||&3egg at a player!||&b&lCOST:&b 5 Mana|| ||&bFireball: &3Right click to shoot a fireball||&b&lCOST:&b 10 Mana" give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" give player 3 splash potions of harming 2 named "&fPain Juice" apply speed 1 to player for 999 days @@ -184,7 +184,7 @@ command /kit []: dye player's chestplate blue dye player's leggings blue dye player's boots blue - give nameditemstack from "Stick of knockback 1;&fLightning Wand;&fPowers:|| ||&bTeleport: &3Left click to teleport to the block||&3you're looking at!||&b&lCOST:&b 50 Mana|| ||&bLightning: &3Right click to shoot lighting||&b&lCOST:&b 10 Mana" to the player + give player stick of knockback 1 named "&fLightning Wand" with lore "&fPowers:|| ||&bTeleport: &3Left click to teleport to the block||&3you're looking at!||&b&lCOST:&b 50 Mana|| ||&bLightning: &3Right click to shoot lighting||&b&lCOST:&b 10 Mana" give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" give player 3 splash potions of harming 2 named "&fPain Juice" apply jump 1 to player for 999 days @@ -213,7 +213,7 @@ command /kit []: dye player's chestplate yellow dye player's leggings yellow dye player's boots yellow - give nameditemstack from "Blaze Rod;&fSummoning Rod;&fPowers:|| ||&bSummon: &3Right Click to summon the undead to serve you!||&b&lCOST:&b 30 Mana|| ||&bCall of the dead: &3Left click to call your minions back!||&b&lCOST:&b 10 Mana" to player + give player Blaze Rod named "&fSummoning Rod" with lore "&fPowers:|| ||&bSummon: &3Right Click to summon the undead to serve you!||&b&lCOST:&b 30 Mana|| ||&bCall of the dead: &3Left click to call your minions back!||&b&lCOST:&b 10 Mana" give player stone sword of knockback 1 and sharpness 2 named "&fSummoner's Trust" give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" apply speed 1 to player for 999 days From efde88489533023891e038991311d4be1feb8d2f Mon Sep 17 00:00:00 2001 From: ismooch Date: Thu, 15 May 2014 19:08:31 -0500 Subject: [PATCH 12/14] rollout updates for skript+2.0 -added entcount -upgraded smooChat 2 (schat2 + schatbridge) --- Obam-General/circle.sk | 28 ++++ Obam-General/hubconfig.sk | 10 +- Obam-General/sheep.sk | 18 +-- Obam-General/who.sk | 17 ++- Obam-Hotpotato/Hotpotato Maps/hpField.sk | 28 ++-- Obam-Hotpotato/Hotpotato Maps/hpLavaFlow.sk | 28 ++-- Obam-Hotpotato/Hotpotato Maps/hpMushroom.sk | 28 ++-- Obam-Hotpotato/Hotpotato Maps/hpNetherFort.sk | 28 ++-- Obam-Hotpotato/Hotpotato Maps/hpOmniPlex.sk | 28 ++-- Obam-Hotpotato/Hotpotato Maps/hpOmniStairs.sk | 28 ++-- .../Hotpotato Maps/hpSewerSystem.sk | 28 ++-- Obam-Hotpotato/Hotpotato Maps/hpSnowyHills.sk | 28 ++-- Obam-Hotpotato/Hotpotato Maps/hpcave.sk | 28 ++-- Obam-Hotpotato/Hotpotato Maps/hpcity.sk | 28 ++-- Obam-KitPvp/kitstuff.sk | 28 ++-- Obam-Survival/fortune.sk | 39 ++++-- Obam-Testing/schat2.sk | 84 +++++++++++- Obam-Testing/schatbridge.sk | 44 ++++++- Obam-Testing/wtfronts.sk | 60 +++++---- Obam-Tools/FIXIT.sk | 32 +++++ Obam-Tools/boards.sk | 118 +++++++++++++++++ Obam-Tools/eggification.sk | 8 +- Obam-Tools/entcount.sk | 42 ++++++ Obam-Tools/heads.sk | 70 ++++++++++ Obam-Tools/ihs.sk | 110 ++++++++++++++++ Obam-Tools/moderate.sk | 6 +- Obam-Tools/tam.sk | 121 ++++++++++++++++++ 27 files changed, 879 insertions(+), 236 deletions(-) create mode 100644 Obam-General/circle.sk create mode 100644 Obam-Tools/FIXIT.sk create mode 100644 Obam-Tools/boards.sk create mode 100644 Obam-Tools/entcount.sk create mode 100644 Obam-Tools/heads.sk create mode 100644 Obam-Tools/ihs.sk create mode 100644 Obam-Tools/tam.sk diff --git a/Obam-General/circle.sk b/Obam-General/circle.sk new file mode 100644 index 0000000..0e04130 --- /dev/null +++ b/Obam-General/circle.sk @@ -0,0 +1,28 @@ +on connect: + {banned.%player%} is true + kick the player due to "&cPermabanned by %{banstaff.%player%}%. Reason: &4%{banreason.%player%}%" + +command /circle:ban : + executable by: console + trigger: + kick offlineplayer-argument due to "&cPermabanned by %arg-2%. Reason: &4%arg-3%" + set {banned.%offlineplayer-argument%} to true + set {banreason.%offlineplayer-argument%} to arg-3 + set {banstaff.%offlineplayer-argument%} to arg-2 + broadcast "&c%offlineplayer-argument% &cwas permabanned by %arg-2%&c. Reason: %arg-3%" + +command /circle:igban : + executable by: players + permission: obam.mod + trigger: + kick offlineplayer-argument due to "&cPermabanned by %player%. Reason: &4%arg-2%" + set {banned.%offlineplayer-argument%} to true + set {banreason.%offlineplayer-argument%} to arg-2 + set {banstaff.%offlineplayer-argument%} to player + broadcast "&c%offlineplayer-argument% &cwas permabanned by %player%&c. Reason: %arg-2%" + +command /circle:unban : + executable by: console, players + permission: obam.mod + trigger: + set {banned.%offlineplayer-argument%} to false \ No newline at end of file diff --git a/Obam-General/hubconfig.sk b/Obam-General/hubconfig.sk index 06e8ad9..23b185a 100644 --- a/Obam-General/hubconfig.sk +++ b/Obam-General/hubconfig.sk @@ -30,17 +30,17 @@ on right click: player's tool is {@fly}: {fly.hub.%player%} is not set: set {fly.hub.%player%} to true - allow player to fly + set fly state of player to true send "&aYou can fly!" stop {fly.hub.%player%} is true: set {fly.hub.%player%} to false - disallow player to fly + set fly state of player to false send "&cYou can no longer fly!" stop {fly.hub.%player%} is false: set {fly.hub.%player%} to true - allow player to fly + set fly state of player to true send "&aYou can fly!" stop @@ -81,10 +81,10 @@ every second: loop all players: {fly.hub.%loop-player%} is true: loop-player's world is not "Death-hub": - disallow loop-player to fly + set fly state of loop-player to false set {fly.hub.%loop-player%} to false loop-player's world is "Death-hub": - allow loop-player to fly + set fly state of loop-player to true command /transfer []: diff --git a/Obam-General/sheep.sk b/Obam-General/sheep.sk index 793f7ab..4995f62 100644 --- a/Obam-General/sheep.sk +++ b/Obam-General/sheep.sk @@ -2,7 +2,7 @@ every 1 second: loop all entities: loop-entity is sheep or bat or powered creeper or pig: name of loop-entity is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": - play 4 of effect "heart" with data 1 at location of loop-entity + spawn 4 of heart data 1 offset with 1, 1, 1 at location of loop-entity {owner.%loop-entity%} is not set: kill loop-entity distance between location of loop-entity and location of {owner.%loop-entity%} is greater than 20: @@ -23,7 +23,6 @@ on quit: command /pet : - permission: obam.free trigger: world is "kitpvpkillingfields": send "&cYou can not do that here" to player @@ -47,18 +46,8 @@ command /pet : send "&cYou can only have one pet at a time!" to player stop size of {pets.%player%::*} is 5: - send "&cYou can only have 5 pets at a time! Do /pet clear to clear your pets!" to player + send "&cYou can only have 5 pets at a time!" to player stop - - argument is "list": - send "&cHere is a list of all the pets:" to player - send "&c- ISMOOCH" to player - send "&c- Bru Swain" to player - send "&c- Sparky" to player - send "&c- Bacon" to player - send "&c- Dragon" to player - stop - argument is "ISMOOCH": spawn sheep at location of player set name of spawned sheep to "&aISMOOCH" @@ -119,7 +108,6 @@ on death of a sheep or a bat or a powered creeper or a pig: name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon" clear drops - on right click with wheat on sheep: name of event-entity is "&aISMOOCH" cancel event @@ -134,4 +122,4 @@ on right click with shears on sheep: name of event-entity is "&aISMOOCH" cancel event send "&cYou can not shear pets!" to event-player - + \ No newline at end of file diff --git a/Obam-General/who.sk b/Obam-General/who.sk index 1a29fce..e949b67 100644 --- a/Obam-General/who.sk +++ b/Obam-General/who.sk @@ -1,7 +1,10 @@ every 10 seconds: - clear {db_fronts.who.2::*} + clear {db_wtf.who::*} loop all players: - add loop-player to {db_fronts.who.2::*} + add loop-player to {db_wtf.who::*} + {db_wtf.who::1} is not set: + set {db_wtf.who::1} to "-Empty" + command /who: @@ -9,12 +12,14 @@ command /who: loop all players: add loop-player to {_cur.list::*} - clear {db_fronts.who.2::*} - set {db_fronts.who.2::*} to {_cur.list::*} - send "&eTotal Online: %size of {_cur.list::*} + size of {db_hub.who::*} + size of {db_wtf.who.::*}%" + clear {db_wtf.who::*} + set {db_wtf.who::*} to {_cur.list::*} + send "&eTotal Online: %size of {_cur.list::*} + size of {db_fronts.who.2::*} + size of {db_hub.who.::*} + size of {db_events.who::*}%" send " " send "&eHub (%size of {db_hub.who::*}%):&a%{db_hub.who::*}%" send " " send "&eWTF (%size of {db_wtf.who::*}%):&a%{db_wtf.who::*}%" send " " - send "&eFronts (%size of {_cur.list::*}%):&a%{_cur.list::*}%" \ No newline at end of file + send "&eFronts (%size of {db_fronts.who.2::*}%):&a%{db_fronts.who.2::*}%" + send " " + send "&eEvent (%size of {db_events.who::*}%):&a%{db_events.who::*}%" \ No newline at end of file diff --git a/Obam-Hotpotato/Hotpotato Maps/hpField.sk b/Obam-Hotpotato/Hotpotato Maps/hpField.sk index 90eaaa6..9a0d1ea 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpField.sk +++ b/Obam-Hotpotato/Hotpotato Maps/hpField.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpLavaFlow.sk b/Obam-Hotpotato/Hotpotato Maps/hpLavaFlow.sk index c4f9b25..275e194 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpLavaFlow.sk +++ b/Obam-Hotpotato/Hotpotato Maps/hpLavaFlow.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpMushroom.sk b/Obam-Hotpotato/Hotpotato Maps/hpMushroom.sk index bc56a3c..2022096 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpMushroom.sk +++ b/Obam-Hotpotato/Hotpotato Maps/hpMushroom.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpNetherFort.sk b/Obam-Hotpotato/Hotpotato Maps/hpNetherFort.sk index ab76ecf..4475d5f 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpNetherFort.sk +++ b/Obam-Hotpotato/Hotpotato Maps/hpNetherFort.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpOmniPlex.sk b/Obam-Hotpotato/Hotpotato Maps/hpOmniPlex.sk index 21bc53b..2f30fd7 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpOmniPlex.sk +++ b/Obam-Hotpotato/Hotpotato Maps/hpOmniPlex.sk @@ -56,23 +56,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -90,7 +90,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -122,7 +122,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -138,7 +138,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -154,7 +154,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -181,7 +181,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -197,7 +197,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -240,7 +240,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -354,7 +354,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -470,6 +470,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpOmniStairs.sk b/Obam-Hotpotato/Hotpotato Maps/hpOmniStairs.sk index 9509a3d..b58d3fa 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpOmniStairs.sk +++ b/Obam-Hotpotato/Hotpotato Maps/hpOmniStairs.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpSewerSystem.sk b/Obam-Hotpotato/Hotpotato Maps/hpSewerSystem.sk index ce85af3..62495d5 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpSewerSystem.sk +++ b/Obam-Hotpotato/Hotpotato Maps/hpSewerSystem.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpSnowyHills.sk b/Obam-Hotpotato/Hotpotato Maps/hpSnowyHills.sk index d5ecac1..5423b2c 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpSnowyHills.sk +++ b/Obam-Hotpotato/Hotpotato Maps/hpSnowyHills.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpcave.sk b/Obam-Hotpotato/Hotpotato Maps/hpcave.sk index c0109d8..96a3ae0 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpcave.sk +++ b/Obam-Hotpotato/Hotpotato Maps/hpcave.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpcity.sk b/Obam-Hotpotato/Hotpotato Maps/hpcity.sk index 4d919c4..987b88a 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpcity.sk +++ b/Obam-Hotpotato/Hotpotato Maps/hpcity.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-KitPvp/kitstuff.sk b/Obam-KitPvp/kitstuff.sk index 8c4edb0..1850122 100644 --- a/Obam-KitPvp/kitstuff.sk +++ b/Obam-KitPvp/kitstuff.sk @@ -357,9 +357,9 @@ on damage: chance of 30%: add 3 to damage send "&a&lBoom! &aHeadshot!" to attacker - play "level up" at location of attacker with pitch 1 + play level up at location of attacker with pitch 1 send "&cHeadshot!" to victim - play "anvil land" at location of victim with pitch 2 + play anvil land at location of victim with pitch 2 {kit.archer.%attacker%} is true: {kit.tank.%victim%} is true: send "&cYou can not slow the tank!" to attacker @@ -531,17 +531,17 @@ on damage: send "&aYour ninja instincts have saved you this time! They are now used up!" to victim set {ninja.poof.%victim%} to false wait 0.5 seconds - play effect "smoke" at location of victim + spawn 1 of smoke data 1 offset with 1, 1, 1 at location of victim wait 0.5 seconds - play effect "smoke" at location of victim + spawn 1 of smoke data 1 offset with 1, 1, 1 at location of victim wait 0.5 seconds - play effect "smoke" at location of victim + spawn 1 of smoke data 1 offset with 1, 1, 1 at location of victim wait 0.5 seconds - play effect "smoke" at location of victim + spawn 1 of smoke data 1 offset with 1, 1, 1 at location of victim wait 0.5 seconds - play effect "smoke" at location of victim + spawn 1 of smoke data 1 offset with 1, 1, 1 at location of victim wait 0.5 seconds - play effect "smoke" at location of victim + spawn 1 of smoke data 1 offset with 1, 1, 1 at location of victim reveal victim to all players remove speed from victim apply speed 2 to victim for 999 days @@ -600,7 +600,7 @@ on damage: clear {active.game.kit.%victim%} execute console command "effect %victim% clear" hide victim from all players - allow victim to fly + set fly state of victim to true send "&cYou have been killed by &e%attacker%&c!" to victim send "&7You will respawn in &e15 &7seconds." to victim wait 5 seconds @@ -615,7 +615,7 @@ on damage: send "&7You will respawn in &e2&7 seconds." to victim wait 1 second send "&7You will respawn in &e1&7 second." to victim - disallow victim to fly + set fly state of victim to false teleport victim to {kit.pvp.spawn} reveal victim to all players execute console command "effect %victim% clear" @@ -724,7 +724,7 @@ on damage of a player: apply nausea to victim for 1 second add 2 to damage send "&cFish Slapped!" to victim - play "slime attack" at location of victim with pitch 1 + play slime attack at location of victim with pitch 1 stop #endfold @@ -841,7 +841,7 @@ on right click with blaze rod: equip {_zombie.%player%} with leather helmet set name of spawned zombie to "&cNecroSpawn" set {_loc} to block 20 meters above player - play 1 of effect "largeexplode" with data 1 at {_loc} + spawn 1 of large explode data 1 offset with 1, 1, 1 at {_loc} make player damage player by 2 apply speed 3 to spawned zombie for 999 days @@ -919,7 +919,7 @@ on right click with bone: set {_skeleton.%player%}'s tool to stone sword set name of spawned wither skeleton to "&cNecroSpawn" set {_loc} to block 20 meters above player - play 1 of effect "largeexplode" with data 1 at {_loc} + spawn 1 of large explode data 1 offset with 1, 1, 1 at {_loc} make player damage player by 2 apply speed 3 to spawned wither skeleton for 999 days @@ -1256,7 +1256,7 @@ command /dm []: command /sound []: permission: obam.admin trigger: - play "%argument 1%" at location of player with pitch argument 2 + play argument 1 at location of player with pitch argument 2 command /headset: permission: obam.admin diff --git a/Obam-Survival/fortune.sk b/Obam-Survival/fortune.sk index 97970b4..44157e7 100644 --- a/Obam-Survival/fortune.sk +++ b/Obam-Survival/fortune.sk @@ -102,7 +102,7 @@ every 15 minutes: increase {fortune.chance.%loop-player%} by 1 send "&7Your chances of fortune have increased!" to loop-player -on break: +on mine: {chunk.live.%chunk at location of event-block%} is not name of player: {chunk.live.%chunk at location of event-block%.%player%} is not set: cancel event @@ -116,17 +116,25 @@ on break: clear {current.aura.%player%} {abstain.%player%} is "wait abstain": clear {current.auar.%player%} - block is diamond ore or emerald ore or gold ore or iron ore or lapis ore or redstone ore or coal ore or nether quartz ore: + event-block is diamond ore or emerald ore or gold ore or iron ore or lapis ore or redstone ore or coal ore or nether quartz ore: player's tool is a pickaxe of silk touch: send "&cYour fortune aura has no effect with this enchantment!" to player stop {chunk.live.%chunk at location of event-block%} is set: send "&cYour fortune aura has no effect in this area." stop - loop blocks in radius 50 of event-block: - {chunk.live.%chunk at location of loop-block%} is set: - send "&cYour fortune aura has no effect in this area, go further out!" to player - stop + {chunk.live.%chunk south of event-block%} is set: + send "&cYour fortune aura has no effect in this area, go further out!" to player + stop + {chunk.live.%chunk west of event-block%} is set: + send "&cYour fortune aura has no effect in this area, go further out!" to player + stop + {chunk.live.%chunk north of event-block%} is set: + send "&cYour fortune aura has no effect in this area, go further out!" to player + stop + {chunk.live.%chunk east of event-block%} is set: + send "&cYour fortune aura has no effect in this area, go further out!" to player + stop {fortune.spam.%player%} is greater than {for.ran.%player%}: loop all players: @@ -136,19 +144,22 @@ on break: set {fortune.spam.%player%} to 0 set {for.ran.%player%} to random integer between 5 and 15 {current.aura.%player%} is "fortune" - block is diamond ore: + event-block is diamond ore: add 1 to {fortune.spam.%player%} chance of {fortune.chance.%player%}%: + cancel event + delete event-block + drop 1 diamond send "&aFortune favours you!" to player drop 1 diamond add 1 to {fortune.spam.%player%} - block is emerald ore: + event-block is emerald ore: add 1 to {fortune.spam.%player%} chance of {fortune.chance.%player%}%: send "&aFortune favours you!" to player drop 1 emerald add 1 to {fortune.spam.%player%} - block is gold ore: + event-block is gold ore: add 1 to {fortune.spam.%player%} chance of {fortune.chance.%player%}%: cancel event @@ -157,7 +168,7 @@ on break: send "&aFortune favours you!" to player drop 1 gold ingot add 1 to {fortune.spam.%player%} - block is iron ore: + event-block is iron ore: add 1 to {fortune.spam.%player%} chance of {fortune.chance.%player%}%: cancel event @@ -166,25 +177,25 @@ on break: send "&aFortune favours you!" to player drop 1 iron ingot add 1 to {fortune.spam.%player%} - block is lapis ore: + event-block is lapis ore: add 1 to {fortune.spam.%player%} chance of {fortune.chance.%player%}%: send "&aFortune favours you!" to player drop 1 lapis add 1 to {fortune.spam.%player%} - block is redstone ore: + event-block is redstone ore: add 1 to {fortune.spam.%player%} chance of {fortune.chance.%player%}%: send "&aFortune favours you!" to player drop 1 redstone add 1 to {fortune.spam.%player%} - block is coal ore: + event-block is coal ore: add 1 to {fortune.spam.%player%} chance of {fortune.chance.%player%}%: send "&aFortune favours you!" to player drop 1 coal add 1 to {fortune.spam.%player%} - block is nether quartz ore: + event-block is nether quartz ore: add 1 to {fortune.spam.%player%} chance of {fortune.chance.%player%}%: send "&aFortune favours you!" to player diff --git a/Obam-Testing/schat2.sk b/Obam-Testing/schat2.sk index 2af594a..d8126b9 100644 --- a/Obam-Testing/schat2.sk +++ b/Obam-Testing/schat2.sk @@ -1,5 +1,5 @@ options: - p: &c[W] + p: &e[E] @@ -13,6 +13,14 @@ on join: delete {db_channel.supporter::%player%} player does not have permission "obam.mod": delete {db_channel.supporter::%player%} + player does not have permission "obam.mechanic": + delete {db_channel.mech::%player%} + + {db_channel.mech.%player%} is not set: + player has permission "obam.mechanic" + set {db_channel.mech.%player%} to true + {db_channel.mech.%player%} is true: + set {db_channel.mech::%player%} to player {db_channel.sup.%player%} is not set: player has permission "obam.supporter" set {db_channel.sup.%player%} to true @@ -20,7 +28,7 @@ on join: set {db_channel.supporter::%player%} to player {db_channel.staff.%player%} is not set: player has permission "obam.mod" - set {db_channel.staff.%player%} to player + set {db_channel.staff::%player%} to player {db_channel.staff.%player%} is true: set {db_channel.supporter::%player%} to player @@ -43,6 +51,9 @@ on chat: player is "BruSwain": set {_pre} to "{@p} &6[^] %player%" + {db_star.%player%} is set: + set {_pre} to "%{_pre}% <%{db_star.%player%}%>✦" + {db_channel.%player%} is "staff": player does not have permission "obam.mod": set {db_channel.%player%} to "global" @@ -52,14 +63,31 @@ on chat: clear {_player} set {_player} to loop-index parsed as player - set message to "&2%message%" - set {_message} to "%{_pre}%&2: %message%" + set message to "&a%message%" + set {_message} to "%{_pre}%&a: %message%" send "%{_message}%" to {_player} - execute console command "/modpush %{_pre}%&2: %message%" + execute console command "/modpush %{_pre}%&a: %message%" + {db_channel.%player%} is "mechanic": + player does not have permission "obam.mechanic": + set {db_channel.%player%} to "global" + delete {db_channel.mech::%player%} + {db_channel.%player%} is "mechanic": + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-index parsed as player + set message to "&e%message%" + set {_message} to "%{_pre}%&e: %message%" + + send {_message} to {_player} + execute console command "/mechpush %{_message}%" + + stop + + {db_channel.%player%} is "supporter": player does not have permission "obam.supporter": set {db_channel.%player%} to "global" @@ -103,14 +131,28 @@ command /chat [] []: send "&cYou dont have permission to do this!" stop set {db_channel.%player%} to "staff" - send "&aYou are now chatting in the &2Mod&a channel!" + {db_channel.staff::%player%} is not set: + set {db_channel.staff::%player%} to player + send "&aYou are now chatting in the &aMod&a channel!" stop argument 1 is "s" or "supporter": player does not have permission "obam.supporter": send "&cYou dont have permission to do this!" stop set {db_channel.%player%} to "supporter" + {db_channel.supporter::%player%} is not set: + set {db_channel.supporter.%player%} to player send "&aYou are now chatting in the &bSupporter&a channel!" + + argument 1 is "mech" or "mechanic": + player does not have permission "obam.mechanic": + send "&cYou dont have permission to do this!" + stop + set {db_channel.%player%} to "mechanic" + {db_channel.mech::%player%} is not set: + set {db_channel.mech::%player%} to player + send "&aYou are now chatting in the &eMechanic&a Channel!" + argument 1 is "g" or "global": set {db_channel.%player%} to "global" @@ -123,6 +165,10 @@ command /chat [] []: argument 2 is "mod" or "m": send "&cYou can not leave the staff chat silly" stop + argument 2 is "mech" or "mechanic": + send "&cYou are now leaving the &eMechanic&c chat!" + delete {db_channel.mech::%player%} + stop argument 2 is "s" or "supporter": send "&cYou are now leaving the &bSupporter&c chat!" delete {db_channel.supporter::%player%} @@ -148,6 +194,19 @@ command /chat [] []: send "&aYou are now in the &2Mod&a channel!" stop + argument 2 is "mechanic" or "mech": + player does not have permission "obam.mechanic": + send "&cYou do not have permission to do this!" + stop + {db_channel.mech::%player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.mech::%player%} to player + set {db_channel.%player%} to "mechanic" + send "&aYou are now in the &eMechanic&a Channel!" + stop + argument 2 is "s" or "supporter": player does not have permission "obam.supporter": send "&cYou do not have permission to do this!" @@ -176,7 +235,18 @@ command /chat [] []: send "%loop-index%" - +command /star []: + permission: obam.admin + trigger: + + argument 2 is "clear": + clear {db_star.%argument 1%} + send "&aCleared Star setting for %argument 1%" + stop + + set {db_star.%argument 1%} to argument 2 + send "&aStar for %argument 1% set to <%argument 2%>%argument 2%&a." + diff --git a/Obam-Testing/schatbridge.sk b/Obam-Testing/schatbridge.sk index 7c8c184..e206565 100644 --- a/Obam-Testing/schatbridge.sk +++ b/Obam-Testing/schatbridge.sk @@ -15,4 +15,46 @@ command /globalcatch : set {_player} to loop-index parsed as player send argument to {_player} - stop \ No newline at end of file + stop + +command /modpush : + permission: obam.admin + trigger: + forward command "modcatch %argument%" to console + +command /modcatch : + permission: obam.admin + trigger: + + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-index parsed as player + send argument to {_player} + + stop + +command /supporterpush : + permission: obam.admin + trigger: + forward command "supportercatch %argument%" to console + +command /supportercatch : + permission: obam.admin + trigger: + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-index parsed as player + send argument to {_player} + +command /mechpush : + permission: obam.admin + trigger: + forward command "mechcatch %argument%" to console + +command /mechcatch : + permission: obam.admin + trigger: + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-index parsed as player + send argument to {_player} \ No newline at end of file diff --git a/Obam-Testing/wtfronts.sk b/Obam-Testing/wtfronts.sk index 7d59665..71ac9d5 100644 --- a/Obam-Testing/wtfronts.sk +++ b/Obam-Testing/wtfronts.sk @@ -58,7 +58,7 @@ on join: make score "&cINJURED" in board of player to 1 {infected.%player%.flag} is true: make score "&cINFECTED" in board of player to 1 - move display of player to "sidebar" + move display of player to sidebar on chunk load: @@ -123,17 +123,19 @@ on mine: send "&cCave In!" to loop-player {_air.count} is less than or equal to {_block.count} / 3: loop blocks in radius 5: - loop-block is not bedrock or wood plank or lava or water - set {_block} to loop-block + loop-block is not bedrock or wood plank or lava or water or monster spawner + set {_block} to "falling %loop-block%" + set {_block} to {_block} parsed as entity type set {_loc} to location of loop-block - spawn falling block of loop-block at location of loop-block + spawn {_block} at location of loop-block delete loop-block {_air.count} is greater than {_block.count} / 3: loop blocks in radius 10: - loop-block is not bedrock or wood plank or lava or water - set {_block} to loop-block + loop-block is not bedrock or wood plank or lava or water or monster spawner + set {_block} to "falling %loop-block%" + set {_block} to {_block} parsed as entity type set {_loc} to location of loop-block - spawn falling block of loop-block at location of loop-block + spawn {_block} at location of loop-block delete loop-block {methane.%chunk at location of player%.chance} is false: set {_run2} to false @@ -150,15 +152,15 @@ on mine: chance of {methane.%chunk at location of player%.chance} * 2%: drop {@unstmetal} at event-location - chance of {cavein.%chunk at location of player%.chance}%: - loop blocks in radius 3: - loop-block is water - set {_found.water} to true - {_found.water} is true: - send "&3Flood!" to player - loop blocks in radius 3 of event-location: - loop-block is air: - set loop-block to water + #chance of {cavein.%chunk at location of player%.chance}%: + # loop blocks in radius 3: + # loop-block is water + # set {_found.water} to true + # {_found.water} is true: + # send "&3Flood!" to player + # loop blocks in radius 3 of event-location: + # loop-block is air: + # set loop-block to water on portal enter: @@ -195,7 +197,7 @@ every 3 seconds: make score "&3Fatigue" in board of loop-player to {fatigue.%loop-player%} make score "&3Hygiene" in board of loop-player to {hygiene.%loop-player%} set {board.%loop-player%} to true - move display of loop-player to "sidebar" + move display of loop-player to sidebar {board.%loop-player%} is true: make score "&3Thirst" in board of loop-player to {thirst.%loop-player%} make score "&3Fatigue" in board of loop-player to {fatigue.%loop-player%} @@ -231,7 +233,7 @@ every 3 seconds: chance of 5%: loop-player's health is less than 10: set {_location} to location of loop-player - play 1 of effect "bubbles" with data 1 at {_location} + spawn 1 of bubble data 1 offset with 1, 1, 1 at {_location} wait 2 seconds damage loop-player by .5 heart send "&3A fish has nibbled at your toes!" to loop-player @@ -276,7 +278,7 @@ every 3 seconds: {injured.%loop-player%} is true: chance of 10%: set {_location} to location of loop-player - play 1 of effect "spell" with data 1 at {_location} + spawn 1 of spell data 1 offset with 1, 1, 1 at {_location} damage loop-player by 0.5 {injured.%loop-player%.length} is not set: set {injured.%loop-player%.length} to 0 @@ -349,7 +351,7 @@ every 3 seconds: loop all entities: loop-entity is not player: {unstable.%loop-entity%} is set: - play 100 of effect "reddust" with data 1 at location of loop-entity + spawn 100 of red dust data 1 offset with 1, 1, 1 at location of loop-entity on spawn of a creeper or a skeleton or a spider or zombie: {unstable.%chunk at event-location%} is true: @@ -394,7 +396,7 @@ on explosion prime: cancel event create an explosion of force 5 at event-location set {_loc} to event-location - play 100 of effect "reddust" with data 1 at {_loc} + spawn 100 of red dust data 1 offset with 1, 1, 1 at {_loc} loop players in radius 5 of event-location: make event-entity damage loop-player by 4 @@ -433,7 +435,7 @@ on damage: victim's boots are boots of feather falling: stop set {_location} to location of victim - play 1 of effect "angryVillager" with data 1 at {_location} + spawn 1 of angry villager data 1 offset with 1, 1, 1 at {_location} set {injured.%victim%} to true apply slowness to victim for 999 days add 1 to damage @@ -806,7 +808,7 @@ command /togglestats: make score "&3Thirst" in board of player to {thirst.%player%} make score "&3Fatigue" in board of player to {fatigue.%player%} make score "&3Hygiene" in board of player to {hygiene.%player%} - move display of player to "sidebar" + move display of player to sidebar stop {board.%player%} is true: set {board.%player%} to false @@ -818,7 +820,7 @@ command /togglestats: make score "&3Fatigue" in board of player to {fatigue.%player%} make score "&3Hygiene" in board of player to {hygiene.%player%} set {board.%player%} to true - move display of player to "sidebar" + move display of player to sidebar stop on place of torch: @@ -854,7 +856,7 @@ on break: set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" send "DEBUG %{_message}%" delete block - drop named item stack from "%{_message}%" at location of block + drop {information.%block%.1} named {information.%block%.3} with lore {information.%block%.2} at location of block on break of glowstone: chance of 10%: @@ -868,9 +870,9 @@ on right click with sugar: stop remove {@fairydust} from player send "&aYou can fly!" to player - allow player to fly + set fly state of player to true wait 5 seconds - disallow player to fly + set fly state of player to false command /debug: permission: obam.admin @@ -885,4 +887,8 @@ command /debug: set {debug.%player%} to false send "&aDebug off" stop + +command /particlelist: + trigger: + message "%all enum values of particle%" diff --git a/Obam-Tools/FIXIT.sk b/Obam-Tools/FIXIT.sk new file mode 100644 index 0000000..0b8ac8f --- /dev/null +++ b/Obam-Tools/FIXIT.sk @@ -0,0 +1,32 @@ +#Tool Repair + +command /fixit: + executable by: players + trigger: + player's tool is not a sword or axe or pickaxe or shovel or bow or helmet or chestplate or leggings or boots: + message "&cYou may only repair Armour, Weapons or Tools!" to player + stop + set {_c.tool} to player's tool + + set {_bal} to player's balance + {_bal} is less than 500: + send "&cYou do not have enough tickets to do this!" to player + stop + player's level is less than 30: + + send "&cYou must have at least 30 levels to do this!" to player + stop + repair player's tool + + reduce the player's level by 30 + + remove 500 from player's balance + play anvil use at location of player with pitch 1 + send "&6&lThe Gods strike your tool!" to player + play ambience thunder at location of player with pitch 1 + send "&aYou have used &e500 Tickets&a to repair this tool" to player + send "&aYou have &e%player's balance%&a remaining" to player + log "%player%^%{_bal}%^DEDUCT^500^%player's balance%^FIXIT FEE" to "tickets/FIXIT.log" + stop + + diff --git a/Obam-Tools/boards.sk b/Obam-Tools/boards.sk new file mode 100644 index 0000000..2f1787e --- /dev/null +++ b/Obam-Tools/boards.sk @@ -0,0 +1,118 @@ +#boards +#startfold @scoreboards +every 1 second: + #subfold @sbstats + loop all players in world "skyworld": + {off.sb.%loop-player%} is not set: + set {off.sb.%loop-player%} to true + {off.sb.%loop-player%} is true + {board.up.%loop-player%.sb} is not set: + set {board.up.%loop-player%.sb} to false + {board.up.%loop-player%.sb} is true: + make score "&cDeaths:" in board of loop-player to {deaths.%loop-player%.skyworld} + make score "&3Creepers:" in board of loop-player to {creeper.kills.%loop-player%} + make score "&3Skeletons:" in board of loop-player to {skeleton.kills.%loop-player%} + make score "&3Spiders:" in board of loop-player to {spider.kills.%loop-player%} + make score "&3Zombies:" in board of loop-player to {zombie.kills.%loop-player%} + make score "&3Endermen:" in board of loop-player to {enderman.kills.%loop-player%} + make score "&3Slimes:" in board of loop-player to {slime.kills.%loop-player%} + make score "&3Witches:" in board of loop-player to {witch.kills.%loop-player%} + make score "&aTickets:" in board of loop-player to loop-player's balance + make score "&6Total Kills:" in board of loop-player to {total.kills.%loop-player%} + set {board.up.%loop-player%.kp} to false + + + {board.up.%loop-player%.sb} is false: + display board named "&9&lSB &9Stats" to loop-player + make score "&cDeaths:" in board of loop-player to {deaths.%loop-player%.skyworld} + make score "&3Creepers:" in board of loop-player to {creeper.kills.%loop-player%} + make score "&3Skeletons:" in board of loop-player to {skeleton.kills.%loop-player%} + make score "&3Spiders:" in board of loop-player to {spider.kills.%loop-player%} + make score "&3Zombies:" in board of loop-player to {zombie.kills.%loop-player%} + make score "&3Endermen:" in board of loop-player to {enderman.kills.%loop-player%} + make score "&3Slimes:" in board of loop-player to {slime.kills.%loop-player%} + make score "&3Witches:" in board of loop-player to {witch.kills.%loop-player%} + make score "&aTickets:" in board of loop-player to loop-player's balance + make score "&6Total Kills:" in board of loop-player to {total.kills.%loop-player%} + set {board.up.%loop-player%.sb} to true + move display of loop-player to sidebar + set {board.up.%loop-player%.kp} to false + + #subfold @KPstata + loop all players in world "kitpvpkillingfields": + {off.sb.%loop-player%} is not set: + set {off.sb.%loop-player%} to true + {off.sb.%loop-player%} is true + {board.up.%loop-player%} is not set: + set {board.up.%loop-player%.kp} to false + {board.up.%loop-player%.kp} is true: + make score of "&cDeaths:" in board of loop-player to {deaths.%loop-player%.kit} + make score of "&aKills:" in board of loop-player to {kills.%loop-player%.kit} + make score of "&aKillstreak:" in board of loop-player to {killstreak.%loop-player%} + make score of "&aAssists:" in board of loop-player to {assist.%loop-player%.kp} + make score of "&eBounty:" in board of loop-player to {value.%loop-player%.kit.live} + make score "&aTickets:" in board of loop-player to loop-player's balance + set {board.up.%loop-player%.sb} to false + + {board.up.%loop-player%.kp} is false: + display board named "&9&lKP &9Stats" to loop-player + make score of "&cDeaths:" in board of loop-player to {deaths.%loop-player%.kit} + make score of "&aKills:" in board of loop-player to {kills.%loop-player%.kit} + make score of "&aKillstreak:" in board of loop-player to {killstreak.%loop-player%} + make score of "&aAssists:" in board of loop-player to {assist.%loop-player%.kp} + make score of "&eBounty:" in board of loop-player to {value.%loop-player%.kit.live} + make score "&aTickets:" in board of loop-player to loop-player's balance + set {board.up.%loop-player%.sb} to false + set {board.up.%loop-player%.kp} to true + move display of loop-player to sidebar + + + +#subfold @command +command /togglestats: + permission: obam.free + executable by: players + trigger: + {off.sb.%player%} is not set: + set {off.sb.%player%} to false + send "&aYou have turned off OBAM Stats" to player + display board named " " to player + stop + {off.sb.%player%} is true: + set {off.sb.%player%} to false + send "&aYou have turned off OBAM Stats" to player + display board named " " to player + stop + {off.sb.%player%} is false: + set {off.sb.%player%} to true + send "&aYou have turned on OBAM Stats" to player + world is "skyworld": + display board named "&9&lSB &lStats" to player + make score "&cDeaths:" in board of player to {deaths.%player%.skyworld} + make score "&3Creepers:" in board of player to {creeper.kills.%player%} + make score "&3Skeletons:" in board of player to {skeleton.kills.%player%} + make score "&3Spiders:" in board of player to {spider.kills.%player%} + make score "&3Zombies:" in board of player to {zombie.kills.%player%} + make score "&3Endermen:" in board of player to {enderman.kills.%player%} + make score "&3Slimes:" in board of player to {slime.kills.%player%} + make score "&3Witches:" in board of player to {witch.kills.%player%} + make score "&6Total Kills:" in board of player to {total.kills.%player%} + make score "&aTickets:" in board of player to player's balance + move display of player to sidebar + set {board.up.%player%.sb} to true + stop + world is "kitpvpkillingfields": + display board named "&9&lKP &9Stats" to player + make score of "&cDeaths:" in board of player to {deaths.%player%.kit} + make score of "&aKills:" in board of player to {kills.%player%.kit} + make score of "&aKillstreak:" in board of player to {killstreak.%player%} + make score of "&eBounty:" in board of player to {value.%player%.kit.live} + make score of "&aAssists:" in board of player to {assist.%player%.kp} + set {board.up.%player%.sb} to false + set {board.up.%player%.kp} to true + move display of player to sidebar + + +#endfold + + diff --git a/Obam-Tools/eggification.sk b/Obam-Tools/eggification.sk index b5f073c..75df984 100644 --- a/Obam-Tools/eggification.sk +++ b/Obam-Tools/eggification.sk @@ -42,7 +42,7 @@ on join: on shoot: projectile is snowball - shooter's tool is named item stack from "{@egg}": + shooter's tool is {@egg}: set {projeggtile.%projectile%} to true on shoot: @@ -226,7 +226,7 @@ on damage of a pig or chicken or ocelot or squid or cow or bat or wolf or sheep {_bal} is less than 10: send "&cYou do not have enough tickets!" to attacker cancel event - give attacker named item stack from "{@egg}" + give attacker {@egg} stop subtract 10 from attacker's balance send "&aYou have spent &e10&a tickets on capturing a creature!" to attacker @@ -239,7 +239,7 @@ on damage of a pig or chicken or ocelot or squid or cow or bat or wolf or sheep {_bal} is less than 5: send "&cYou do not have enought tickets!" to attacker cancel event - give attacker named item stack from "{@egg}" + give attacker {@egg} stop remove 5 from attacker's balance send "&aYou have spent &e5&a tickets on capturing a creature!" to attacker @@ -322,7 +322,7 @@ on death of a creeper or a zombie or a silverfish or a witch or a spider or magm chance of 20%: - add named item stack from "{@egg}" to drops + add {@egg} to drops clear {player.hit.%event-entity%} on damage of a creeper or a zombie or a silverfish or a witch or a spider or magma cube or wither skeleton or skeleton or enderman or cave spider or slime or ghast or zombie pigman: diff --git a/Obam-Tools/entcount.sk b/Obam-Tools/entcount.sk new file mode 100644 index 0000000..5695eda --- /dev/null +++ b/Obam-Tools/entcount.sk @@ -0,0 +1,42 @@ + +command /ent : + permission: obam.free + description: Counts the living entities in a sphere of specified radius around player + trigger: + {cool.ent.%player%} is not set: + set {cool.ent.%player%} to difference between now and now + add 3 seconds to {cool.ent.%player%} + set {_hold} to difference between now and {cool.ent.%player%} + {_hold} is less than 2 seconds: + send "&cPlease wait ...." + stop + + argument is greater than 160: + send "&cPlease choose a number between &e1 &cand &e160" + stop + loop entities in radius argument of player's location: + + loop-entity is not a player + set {_type} to "%type of loop-entity%" + set {_hold::*} to {_type} split at ":" + + {_count.list::%{_hold::1}%} is not set: + set {_count.list::%{_hold::1}%} to 0 + set {_count.list::%{_hold::1}%} to {_count.list::%{_hold::1}%} + 1 + + {_count.total} is not set: + set {_count.total} to 0 + add 1 to {_count.total} + + + {_count.total} is not set: + send "&eNo entites... MAGIC!" + stop + + send "&aThere are currently &e%{_count.total}%&a entities in the radius of &e%argument%" + send "&aList:" + + loop {_count.list::*}: + send "&a%loop-index%: &e%loop-value%" + + set {cool.ent.%player%} to now \ No newline at end of file diff --git a/Obam-Tools/heads.sk b/Obam-Tools/heads.sk new file mode 100644 index 0000000..cd33ba1 --- /dev/null +++ b/Obam-Tools/heads.sk @@ -0,0 +1,70 @@ +on death of a player: + attacker is a player: + attacker is not victim: + add skull of victim to drops + set {_item.1} to "&3Death Note - &eVICTIM" + set {_item.2} to "&7This note shows that &eATTACKER&7 took the||&7life of &eVICTIM&7 on &eDATE EST" + replace "VICTIM" in {_item.1} with "%victim%" + replace "VICTIM" in {_item.2} with "%victim%" + replace "ATTACKER" in {_item.2} with "%attacker%" + replace "DATE" in {_item.2} with "%now%" + add paper named {_item.1} with lore {_item.2} to drops + +on death of a living entity: + attacker is a player: + chance of 0.5%: + victim is a creeper: + add creeper head to drops + victim is a skeleton: + add skeleton head to drops + victim is a zombie: + add zombie head to drops + victim is a blaze: + set {_player} to "MHF_Blaze" parsed as offline player + add skull of {_player} to drops + victim is a cave spider: + set {_player} to "MHF_CaveSpider" parsed as offline player + add skull of {_player} to drops + victim is a enderman: + set {_player} to "MHF_Enderman" parsed as offline player + add skull of {_player} to drops + victim is a zombie pigman: + set {_player} to "MHF_PigZombie" parsed as offline player + add skull of {_player} to drops + victim is a ghast: + set {_player} to "MHF_Ghast" parsed as offline player + add skull of {_player} to drops + victim is a chicken: + set {_player} to "MHF_Chicken" parsed as offline player + add skull of {_player} to drops + victim is a cow: + set {_player} to "MHF_Cow" parsed as offline player + add skull of {_player} to drops + victim is magma cube: + set {_player} to "MHF_LavaSlime" parsed as offline player + add skull of {_player} to drops + victim is iron golem: + set {_player} to "MHF_Golem" parsed as offline player + add skull of {_player} to drops + victim is ocelot: + set {_player} to "MHF_Ocelot" parsed as offline player + add skull of {_player} to drops + victim is pig: + set {_player} to "MHF_Pig" parsed as offline player + add skull of {_player} to drops + victim is sheep: + set {_player} to "MHF_Sheep" parsed as offline player + add skull of {_player} to drops + victim is spider: + set {_player} to "MHF_Spider" parsed as offline player + add skull of {_player} to drops + victim is squid: + set {_player} to "MHF_Squid" parsed as offline player + add skull of {_player} to drops + victim is slime: + set {_player} to "MHF_Slime" parsed as offline player + add skull of {_player} to drops + victim is villagers: + set {_player} to "MHF_Villager" parsed as offline player + add skull of {_player} to drops + diff --git a/Obam-Tools/ihs.sk b/Obam-Tools/ihs.sk new file mode 100644 index 0000000..3a6184b --- /dev/null +++ b/Obam-Tools/ihs.sk @@ -0,0 +1,110 @@ +#IHS +options: + dirt: i;dirt;n;&b&nDirt;l;&7Click to claim your &epurchased dirt.;c;sudo %player% redeem dirt + grass: i;grass;n;&b&nGrass;l;&7Click to claim your &epurchased grass.;c;sudo %player% redeem grass + sand: i;sand;n;&b&nSand;l;&7Click to claim your &epurchased sand.;c;sudo %player% redeem sand + redstone: i;redstone;n;&b&nRedstone;l;&7Click to claim your &epurchased redstone.;c;sudo %player% redeem redstone + lavabucket: i;lava bucket;n;&b&nLava Bucket;l;&7Click to claim your &epurchased lava buckets.;c;sudo %player% redeem lava bucket + dampener: i;fullblock spruce wood block;n;&b&nxPlosion Dampener;l;&7Click to claim your &epurchased xPlosion Dampeners.;c;sudo %player% redeem fullblock spruce wood block +command /itemstore : + permission: obam.admin + trigger: + {db_ihs.%player-argument%.%argument 2%} is set: + add argument 3 to {db_ihs.%player-argument%.%argument 2%} + send "&aYou have made a purchase! Type &e/redeem&a to redeem your items!" to player-argument + play level up at location of offline player-argument with pitch 2 + wait 0.2 seconds + play level up at location of offline player-argument with pitch 2 + wait 0.2 seconds + play level up at location of offline player-argument with pitch 2 + wait 0.2 seconds + play level up at location of offline player-argument with pitch 2 + wait 0.2 seconds + play level up at location of offline player-argument with pitch 2 + stop + set {db_ihs.%player-argument%.%argument 2%} to argument 3 + set {db_alert.redeem.%player-argument%} to true + send "&aYou have made a purchase! Type &e/redeem&a to redeem your items!" to player-argument + play level up at location of offline player-argument with pitch 2 + wait 0.2 seconds + play level up at location of offline player-argument with pitch 2 + wait 0.2 seconds + play level up at location of offline player-argument with pitch 2 + wait 0.2 seconds + play level up at location of offline player-argument with pitch 2 + wait 0.2 seconds + play level up at location of offline player-argument with pitch 2 + +on join: + {db_alert.redeem.%player%} is true + send "&c&lYou have items waiting to be redeemed! Use &e/redeem &c<o redeem your items!" to player + play level up at location of player with pitch 2 + wait 0.2 seconds + play level up at location of player with pitch 2 + wait 0.2 seconds + play level up at location of player with pitch 2 + wait 0.2 seconds + play level up at location of player with pitch 2 + wait 0.2 seconds + play level up at location of player with pitch 2 + + + +command /redeem []: + permission: obam.free + executable by: players + trigger: + + argument is not set: + world is "skyworld": + show "s;1;{@dirt};s;2;{@grass};s;3;{@sand};s;4;{@redstone};s;5;{@lavabucket};s;6;{@dampener}" with 1 row named "&9&lOBAM &9Redeem" to player + stop + + world is "world": + show "s;1;{@dampener}" with 1 row named "&9&lOBAM &9Redeem" to player + stop + + send "&cMake sure you are in the right world!" to player + + + argument is set: + {db_ihs.%player%.%argument%} is 0: + send "&cYou do not have any of this item to redeem! If this is incorrect, please contact the Administrator" to player + stop + + {db_ihs.%player%.%argument%} is not set: + send "&cYou do not have any of this item to redeem! If this is incorrect, please contact the Administrator" to player + stop + give player {db_ihs.%player%.%argument%} of item-argument + argument is fullblock spruce wood block: + {db_ihs.%player%.%argument%} is less than 2: + send "&aYou have received your &e%{db_ihs.%player%.%argument%}% xPlosion Dampener&a! Thank you for your purchase!" + set {db_ihs.%player%.%argument%} to 0 + set {db_alert.redeem.%player%} to false + stop + + send "&aYou have received your &e%{db_ihs.%player%.%argument%}% xPlosion Dampeners&a! Thank you for your purchase!" + set {db_ihs.%player%.%argument%} to 0 + set {db_alert.redeem.%player%} to false + stop + send "&aYou have received your &e%{db_ihs.%player%.%argument%}% %argument%&a! Thank you for your purchase!" + set {db_ihs.%player%.%argument%} to 0 + set {db_alert.redeem.%player%} to false + + send "&cIf you did not have a menu open, ensure you are in the correct world for redeeming! D:" to player + + +command /ihslist : + permission: obam.admin + trigger: + send "%{db_ihs.%text argument%.%argument 2%}% %argument 2% on file" to player + +command /sudo [] []: + executable by: console and players + permission: obam.admin + trigger: + has permission "obam.staff.admin" + make player-argument execute command "%argument 2%" + + + \ No newline at end of file diff --git a/Obam-Tools/moderate.sk b/Obam-Tools/moderate.sk index 40e988f..cdd0639 100644 --- a/Obam-Tools/moderate.sk +++ b/Obam-Tools/moderate.sk @@ -34,7 +34,7 @@ command /monitor: {monitor.%player%} is true: set {monitor.%player%} to false reveal player to all players - disallow player to fly + set flight state of player to false teleport player to {loc.mon.%player%} set {tim.mon.%player%} to difference between {tim.mon.%player%} and now send "&aYou are no longer in monitor mode! You have been returned to your position!" @@ -47,7 +47,7 @@ command /monitor: set {monitor.%player%} to true set {tim.mon.%player%} to now hide player from all players - allow player to fly + set flight state of player to true send "&aYou are now in monitor mode!" to player log "%player%^MONITOR ENABLE ACTION^%{loc.mon.%player%}%" to "admin/actions.log" @@ -56,7 +56,7 @@ every 1 second: loop all players: {monitor.%loop-player%} is true: hide loop-player from all players - allow loop-player to fly + set flight state of loop-player to true on damage of a player: {monitor.%victim%} is true: diff --git a/Obam-Tools/tam.sk b/Obam-Tools/tam.sk new file mode 100644 index 0000000..57f9af7 --- /dev/null +++ b/Obam-Tools/tam.sk @@ -0,0 +1,121 @@ +every 1 minute: + + loop all players: + + + loop-player does not have permission "obam.supporter": + + add 1 to loop-player's balance + + {session.tam.%loop-player%} is not set: + set {session.tam.%loop-player%} to 0 + add 1 to {session.tam.%loop-player%} + + {db_total.tam.%loop-player%} is not set: + set {db_total.tam.%loop-player%} to 0 + add 1 to {db_total.tam.%loop-player%} + + {db_total.tam} is not set: + set {db_total.tam} to 0 + add 1 to {db_total.tam} + + {db_total.reg} is not set: + set {db_total.reg} to 0 + add 1 to {db_total.reg} + + + loop-player has permission "obam.supporter": + + loop-player does not have permission "obam.plus" + + add 2 to loop-player's balance + + {session.tam.%loop-player%} is not set: + set {session.tam.%loop-player%} to 0 + add 2 to {session.tam.%loop-player%} + + {db_total.tam.%loop-player%} is not set: + set {db_total.tam.%loop-player%} to 0 + add 2 to {db_total.tam.%loop-player%} + + {db_total.tam} is not set: + set {db_total.tam} to 0 + add 2 to {db_total.tam} + + {db_total.sup} is not set: + set {db_total.sup} to 0 + add 2 to {db_total.sup} + + + loop-player has permission "obam.plus": + + loop-player does not have permission "obam.ultimate" + + add 3 to loop-player's balance + + {session.tam.%loop-player%} is not set: + set {session.tam.%loop-player%} to 0 + add 3 to {session.tam.%loop-player%} + + {db_total.tam.%loop-player%} is not set: + set {db_total.tam.%loop-player%} to 0 + add 3 to {db_total.tam.%loop-player%} + + {db_total.tam} is not set: + set {db_total.tam} to 0 + add 3 to {db_total.tam} + + {db_total.plus} is not set: + set {db_total.plus} to 0 + add 3 to {db_total.plus} + + loop-player has permission "obam.ultimate": + + add 4 to loop-player's balance + + {session.tam.%loop-player%} is not set: + set {session.tam.%loop-player%} to 0 + add 4 to {session.tam.%loop-player%} + + {db_total.tam.%loop-player%} is not set: + set {db_total.tam.%loop-player%} to 0 + add 4 to {db_total.tam.%loop-player%} + + + {db_total.tam} is not set: + set {db_total.tam} to 0 + add 4 to {db_total.tam} + + {db_total.ult} is not set: + set {db_total.ult} to 0 + add 4 to {db_total.ult} + +command /tam: + permission: obam.free + trigger: + + send "&aTotal Tickets earned with -TAM-:" + send "&e%{db_total.tam.%player%}%" + send "&aTotal this session:" + send "&e%{session.tam.%player%}%" + send "&aTotal Tickets:" + send "&e%player's balance%" + + +command /tamtotal: + permission: obam.admin + trigger: + send "&aTotal Global Tickets earned with -TAM-:" + send "&e%{db_total.tam}%" + send "&aRegular:" + send "&e%{db_total.reg}%" + send "&aSupporter:" + send "&e%{db_total.sup}%" + send "&aPlus:" + send "&e%{db_total.plus}%" + send "&aUltimate:" + send "&e%{db_total.ult}%" + +on join: + set {session.tam.%player%} to 0 + \ No newline at end of file From 6914302b9c29a08d01c5769748f5069960f3b0e4 Mon Sep 17 00:00:00 2001 From: ismooch Date: Sat, 24 May 2014 15:30:18 -0500 Subject: [PATCH 13/14] --updaated loads of stuff --- OBAM-Voting/prizewheel.sk | 58 +++--- OBAM-Voting/vote.sk | 53 ++++++ OBAM-Voting/votetoken.sk | 7 +- Obam-General/connect.sk | 34 ++++ Obam-General/firstjoin.sk | 15 +- Obam-Skyblock/animals.sk | 3 +- Obam-Survival/fortune.sk | 360 ++++++++++++++++++++++++++++-------- Obam-Survival/fortuneFIX.sk | 193 +++++++++++++++++++ Obam-Survival/landclaim.sk | 7 + Obam-Testing/enchnattest.sk | 2 + Obam-Testing/schat2.sk | 151 ++++++++++++++- Obam-Testing/schatbridge.sk | 68 ++++++- Obam-Testing/unbreak.sk | 13 ++ Obam-Testing/wtfmike.sk | 17 ++ Obam-Testing/wtfronts.sk | 261 +++++++++++++++++++++++--- Obam-Tools/eggification.sk | 10 +- Obam-Tools/entcount.sk | 71 ++++++- Obam-Tools/moderate.sk | 19 +- 18 files changed, 1185 insertions(+), 157 deletions(-) create mode 100644 Obam-General/connect.sk create mode 100644 Obam-Survival/fortuneFIX.sk create mode 100644 Obam-Testing/enchnattest.sk create mode 100644 Obam-Testing/unbreak.sk create mode 100644 Obam-Testing/wtfmike.sk diff --git a/OBAM-Voting/prizewheel.sk b/OBAM-Voting/prizewheel.sk index 20720fa..92328e2 100644 --- a/OBAM-Voting/prizewheel.sk +++ b/OBAM-Voting/prizewheel.sk @@ -359,16 +359,16 @@ command /prize [] [] [] []: stop {_ran} is 4: - {db_winnings.chest.%player%.fronts::enchanted book of unbreaking 4} is not set: - set {db_winnings.chest.%player%.fronts::enchanted book of unbreaking 4} to 1 - send "&aYou have won &e1 enchanted book of unbreaking 4&a for &eFronts!" + {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 4} is not set: + set {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 4} to 1 + send "&aYou have won &e1 diamond pickaxe of unbreaking 4&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of unbreaking 4^SEMIRARE PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of unbreaking 4^SEMIRARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {db_winnings.chest.%player%.fronts::enchanted book of unbreaking 4} - send "&aYou have won &e1 enchanted book of unbreaking 4&a for &eFronts!" + add 1 to {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 4} + send "&aYou have won &e1 diamond pickaxe of unbreaking 4&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of unbreaking 4^SEMIRARE PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of unbreaking 4^SEMIRARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop chance of 25%: @@ -547,16 +547,16 @@ command /prize [] [] [] []: stop {_ran} is 14: - {db_winnings.chest.%player%.fronts::enchanted book of fortune 3} is not set: - set {db_winnings.chest.%player%.fronts::enchanted book of fortune 3} to 1 - send "&aYou have won &e1 enchanted book of fortune 3&a for &eFronts!" + {db_winnings.chest.%player%.fronts::diamond pickaxe of fortune 3} is not set: + set {db_winnings.chest.%player%.fronts::diamond pickaxe of fortune 3} to 1 + send "&aYou have won &e1 diamond pickaxe of fortune 3&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of fortune 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of fortune 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {db_winnings.chest.%player%.fronts::enchanted book of fortune 3} - send "&aYou have won &e1 enchanted book of fortune 3&a for &eFronts!" + add 1 to {db_winnings.chest.%player%.fronts::diamond pickaxe of fortune 3} + send "&aYou have won &e1 diamond pickaxe of fortune 3&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of fortune 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of fortune 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 15: @@ -771,28 +771,28 @@ command /prize [] [] [] []: stop {_ran} is 8: - {db_winnings.chest.%player%.fronts::enchanted book of unbreaking 3} is not set: - set {db_winnings.chest.%player%.fronts::enchanted book of unbreaking 3} to 1 - send "&aYou have won &e1 enchanted book of unbreaking 3&a for &eFronts!" + {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 3} is not set: + set {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 3} to 1 + send "&aYou have won &e1 diamond pickaxe of unbreaking 3&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of unbreaking 3^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of unbreaking 3^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {db_winnings.chest.%player%.fronts::enchanted book of unbreaking 3} - send "&aYou have won &e1 enchanted book of unbreaking 3&a for &eFronts!" + add 1 to {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 3} + send "&aYou have won &e1 diamond pickaxe of unbreaking 3&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of unbreaking 3^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of unbreaking 3^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" {_ran} is 9: - {db_winnings.chest.%player%.fronts::enchanted book of silk touch} is not set: - set {db_winnings.chest.%player%.fronts::enchanted book of silk touch} to 1 - send "&aYou have won &e1 enchanted book of silk touch&a for &eFronts!" + {db_winnings.chest.%player%.fronts::diamond pickaxe of silk touch} is not set: + set {db_winnings.chest.%player%.fronts::diamond pickaxe of silk touch} to 1 + send "&aYou have won &e1 diamond pickaxe of silk touch&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of silk touch^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of silk touch^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {db_winnings.chest.%player%.fronts::enchanted book of silk touch} - send "&aYou have won &e1 enchanted book of silk touch&a for &eFronts!" + add 1 to {db_winnings.chest.%player%.fronts::diamond pickaxe of silk touch} + send "&aYou have won &e1 diamond pickaxe of silk touch&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of silk touch^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of silk touch^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" {_ran} is 10: {db_winnings.chest.%player%.fronts::diamond} is not set: @@ -863,7 +863,7 @@ command /prizefix : command /fixbook: permission: obamm.free trigger: - player's tool is enchanted book: + player's tool is diamond pickaxe: set {_hold} to "%player's tool%" set {_hold} to {_hold} parsed as item send "%{_hold}%" diff --git a/OBAM-Voting/vote.sk b/OBAM-Voting/vote.sk index 6c84884..a4ce703 100644 --- a/OBAM-Voting/vote.sk +++ b/OBAM-Voting/vote.sk @@ -20,6 +20,21 @@ command /vote [] [] []: send "&3&l==========================================" send "&eVote for &6&lOBAM&fCraft &eon the following server lists" send "&eto earn special prizes and win OBAM Tickets! " + {db_votetokens.%{_player}%} is not set: + set {_tmp.mes} to "&aYou can get a Prize Token now!" + set {_waited} to difference between {db_votetokens.%{_player}%.time} and now + {_waited} is more than a day: + set {_tmp.mes} to "&aYou can get a Prize Token now!" + {_waited} is less than a day: + set {_tmp.time} to {_waited} + set {_tmp.hold} to difference between now and now + add 24 hours to {_tmp.hold} + subtract {_tmp.time} from {_tmp.hold} + set {_tmp.time} to {_tmp.hold} + + set {_tmp.mes} to "&aYour next Prize Token is available in &e%{_tmp.time}%&a!" + send " " + send "%{_tmp.mes}%" send " " send "&2&l✔&f - Voted Today &d| &c&lX&f - Not Voted Today" send " " @@ -393,6 +408,44 @@ command /vote [] [] []: send "&a10. - %{_vote.check0}% - %{db_obam.vote.link.10}%" to player clear {_message} clear {_waited} + + set {_waited} to difference between now and {db_server.mineserverscom.%{_player}%} + clear {time.vote::*} + {_waited} is less than 1 day: + set {_vote.check0} to "&a[&2&l✔&a]" + {_waited} is more than 1 day: + set {_vote.check0} to "&a[&c&lX&a]" + {_waited} is not set: + set {_vote.check0} to "&a[&c&lX&a]" + set {_message0} to "Now Availible!" + {_waited} is less than 1 day: + set {_time} to {db_server.mineservers.%{_player}%} + add 1 day to {_time} + set {_time} to difference between {_time} and now + {_time} is greater than 1 hour: + set {_time} to "%{_time}%" + clear {time.vote::*} + set {time.vote::*} to {_time} parsed as "%number% hour[s] and %integer%.%integer% minute[s]" + + set {_hrs} to {time.vote::1} + set {_mins} to {time.vote::2} + set {_message0} to "&eVote in &a%{time.vote::1}%h &e& &a%{time.vote::2}%m" + {_time} is less than 1 hour: + set {_time} to "%{_time}%" + clear {time.vote::*} + set {time.vote::*} to {_time} parsed as "%number% minute[s] and %integer%.%integer% minute[s]" + set {_message0} to "&eVote in &a%{time.vote::1}%m &e& &a%{time.vote::2}%s" + {_time} is less than 1 minute: + set {_message0} to "&In a few seconds!" + {_waited} is more than 1 day: + set {_message0} to "Now available!" + + {db_server.mineserverscom.%{_player}%} is not set: + set {_vote.check0} to "&a[&c&lX&a]" + send "&a11. - %{_vote.check0}% - %{db_obam.vote.link.11}%" to player + clear {_message} + clear {_waited} + argument 1 is "set" or "s": diff --git a/OBAM-Voting/votetoken.sk b/OBAM-Voting/votetoken.sk index 4cac71c..008a612 100644 --- a/OBAM-Voting/votetoken.sk +++ b/OBAM-Voting/votetoken.sk @@ -40,6 +40,8 @@ command /votetoken [] []: set {db_server.minecraftmpcom.%argument 1%} to now argument 2 is "minecraftservers": set {db_server.minecraftservers.%argument 1%} to now + argument 2 is "mineservers.com": + set {db_server.mineserverscom.%argument 1%} to now set {db_votetokens.%argument 1%.time} to now set {db_votetokens.%argument 1%.lserv} to argument 2 execute console command "/alert %argument 1% just received their first &ePrize Token!" @@ -72,7 +74,8 @@ command /votetoken [] []: set {db_server.minecraftmpcom.%argument 1%} to now argument 2 is "minecraftservers": set {db_server.minecraftservers.%argument 1%} to now - set {db_server.mcserverlistcom.%argument 1%} to now + argument 2 is "mineservers.com": + set {db_server.mineserverscom.%argument 1%} to now execute console command "/alert %argument 1% just received a &ePrize Token&5 by voting on %argument 2%!" log "%argument 1%^VOTETOKEN^ADD^1^SERVICE^%argument 2%" to "vote/TOKENS.log" stop @@ -103,6 +106,8 @@ command /votetoken [] []: set {db_server.minecraftmpcom.%argument 1%} to now argument 2 is "minecraftservers": set {db_server.minecraftservers.%argument 1%} to now + argument 2 is "mineservers.com": + set {db_server.mineserverscom.%argument 1%} to now {_bal} is not set: {offline.%{_player}%.ticketadd} is not set: set {offline.%{_player}%.ticketadd} to 0 diff --git a/Obam-General/connect.sk b/Obam-General/connect.sk new file mode 100644 index 0000000..cff5664 --- /dev/null +++ b/Obam-General/connect.sk @@ -0,0 +1,34 @@ + + + + + + +command /connect : + permission: obam.admin + trigger: + broadcast "&7%argument% has connected" + +command /disconnect : + permission: obam.admin + trigger: + broadcast "&7%argument% has disconnected" + + + +on join: + set join message to " " + set {db_online.%player%} to true + + +on quit: + set quit message to " " + set {db_online.%player%} to false + set {db_online.%player%.logoff} to now + wait 5 seconds + {db_online.%player%} is false + execute console command "/disconnect %player%" + forward command "disconnect %player%" to console + + + diff --git a/Obam-General/firstjoin.sk b/Obam-General/firstjoin.sk index 5e0c405..84832a6 100644 --- a/Obam-General/firstjoin.sk +++ b/Obam-General/firstjoin.sk @@ -1,4 +1,13 @@ on first join: - broadcast "&eEveryone Welcome &e&l%player%&e to WTFronts!" - message "&aWelcome to &eWTFronts&a! Please feel free to comment on this open beta!" to player - \ No newline at end of file + execute console command "/new %player%" + + +command /new : + permission: obam.admin + trigger: + broadcast " " + broadcast "&3-----------------------------------------------------" + broadcast "&fEveryone give an &6&lOBAM&fCraft welcome to, &6%argument%&f!" + broadcast "&3-----------------------------------------------------" + broadcast " " + forward command "new %argument%" to console \ No newline at end of file diff --git a/Obam-Skyblock/animals.sk b/Obam-Skyblock/animals.sk index b377bd4..d92c42c 100644 --- a/Obam-Skyblock/animals.sk +++ b/Obam-Skyblock/animals.sk @@ -1,8 +1,7 @@ on damage of a entity: world is "skyworld" attacker is a player - victim is a zombie or skeleton or witch or spider or creeper or enderman: - stop + victim is not a zombie or skeleton or witch or spider or creeper or enderman attacker can't build at location of attacker: send "&cThis area is protected!" to attacker cancel event diff --git a/Obam-Survival/fortune.sk b/Obam-Survival/fortune.sk index 44157e7..8a4b5d0 100644 --- a/Obam-Survival/fortune.sk +++ b/Obam-Survival/fortune.sk @@ -103,39 +103,32 @@ every 15 minutes: send "&7Your chances of fortune have increased!" to loop-player on mine: - {chunk.live.%chunk at location of event-block%} is not name of player: - {chunk.live.%chunk at location of event-block%.%player%} is not set: - cancel event - stop - {fortune.spam.%player%} is greater than 16: - set {fortune.spam.%player%} to 0 - {for.ran.%player%} is not set: - set {for.ran.%player%} to random integer between 5 and 15 - {current.aura.%player%} is "fortune": - {abstain.%player%} is true: - clear {current.aura.%player%} - {abstain.%player%} is "wait abstain": - clear {current.auar.%player%} - event-block is diamond ore or emerald ore or gold ore or iron ore or lapis ore or redstone ore or coal ore or nether quartz ore: + + +on mine of diamond ore: + {current.aura.%player%} is "fortune" + chance of {fortune.chance.%player%}%: + {chunk.live.%chunk at location of event-block%} is set: + {chunk.live.%chunk at location of event-block%} is not "%name of player%" + {chunk.live.%chunk at location of event-block%.%player%} is not set: + cancel event + stop + {fortune.spam.%player%} is greater than 16: + set {fortune.spam.%player%} to 0 + {for.ran.%player%} is not set: + set {for.ran.%player%} to random integer between 5 and 15 + {current.aura.%player%} is "fortune": + {abstain.%player%} is true: + clear {current.aura.%player%} + {abstain.%player%} is "wait abstain": + clear {current.aura.%player%} + player's tool is a pickaxe of silk touch: send "&cYour fortune aura has no effect with this enchantment!" to player stop {chunk.live.%chunk at location of event-block%} is set: send "&cYour fortune aura has no effect in this area." - stop - {chunk.live.%chunk south of event-block%} is set: - send "&cYour fortune aura has no effect in this area, go further out!" to player - stop - {chunk.live.%chunk west of event-block%} is set: - send "&cYour fortune aura has no effect in this area, go further out!" to player stop - {chunk.live.%chunk north of event-block%} is set: - send "&cYour fortune aura has no effect in this area, go further out!" to player - stop - {chunk.live.%chunk east of event-block%} is set: - send "&cYour fortune aura has no effect in this area, go further out!" to player - stop - {fortune.spam.%player%} is greater than {for.ran.%player%}: loop all players: @@ -143,61 +136,274 @@ on mine: send "&3&lIt seems %player% hit the %block% jackpot at %location of player%!" to loop-player set {fortune.spam.%player%} to 0 set {for.ran.%player%} to random integer between 5 and 15 - {current.aura.%player%} is "fortune" - event-block is diamond ore: + send "&aFortune Favours you!" to player + drop 1 diamond add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - cancel event - delete event-block - drop 1 diamond - send "&aFortune favours you!" to player - drop 1 diamond - add 1 to {fortune.spam.%player%} - event-block is emerald ore: + +on mine of emerald ore: + {current.aura.%player%} is "fortune" + chance of {fortune.chance.%player%}%: + {chunk.live.%chunk at location of event-block%} is set: + {chunk.live.%chunk at location of event-block%} is not "%name of player%" + {chunk.live.%chunk at location of event-block%.%player%} is not set: + cancel event + stop + {fortune.spam.%player%} is greater than 16: + set {fortune.spam.%player%} to 0 + {for.ran.%player%} is not set: + set {for.ran.%player%} to random integer between 5 and 15 + {current.aura.%player%} is "fortune": + {abstain.%player%} is true: + clear {current.aura.%player%} + {abstain.%player%} is "wait abstain": + clear {current.aura.%player%} + + player's tool is a pickaxe of silk touch: + send "&cYour fortune aura has no effect with this enchantment!" to player + stop + {chunk.live.%chunk at location of event-block%} is set: + send "&cYour fortune aura has no effect in this area." + stop + {fortune.spam.%player%} is greater than {for.ran.%player%}: + loop all players: + + {aura.alert.%loop-player%} is true: + send "&3&lIt seems %player% hit the %block% jackpot at %location of player%!" to loop-player + set {fortune.spam.%player%} to 0 + set {for.ran.%player%} to random integer between 5 and 15 + send "&aFortune favours you!" to player + drop 1 emerald add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - send "&aFortune favours you!" to player - drop 1 emerald - add 1 to {fortune.spam.%player%} - event-block is gold ore: + +on mine of gold ore: + {current.aura.%player%} is "fortune" + chance of {fortune.chance.%player%}%: + {chunk.live.%chunk at location of event-block%} is set: + {chunk.live.%chunk at location of event-block%} is not "%name of player%" + {chunk.live.%chunk at location of event-block%.%player%} is not set: + cancel event + stop + {fortune.spam.%player%} is greater than 16: + set {fortune.spam.%player%} to 0 + {for.ran.%player%} is not set: + set {for.ran.%player%} to random integer between 5 and 15 + {current.aura.%player%} is "fortune": + {abstain.%player%} is true: + clear {current.aura.%player%} + {abstain.%player%} is "wait abstain": + clear {current.aura.%player%} + + player's tool is a pickaxe of silk touch: + send "&cYour fortune aura has no effect with this enchantment!" to player + stop + {chunk.live.%chunk at location of event-block%} is set: + send "&cYour fortune aura has no effect in this area." + stop + {fortune.spam.%player%} is greater than {for.ran.%player%}: + loop all players: + + {aura.alert.%loop-player%} is true: + send "&3&lIt seems %player% hit the %block% jackpot at %location of player%!" to loop-player + set {fortune.spam.%player%} to 0 + set {for.ran.%player%} to random integer between 5 and 15 + cancel event + delete event-block + drop 1 gold ingot + send "&aFortune favours you!" to player + drop 1 gold ingot add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - cancel event - delete event-block - drop 1 gold ingot - send "&aFortune favours you!" to player - drop 1 gold ingot - add 1 to {fortune.spam.%player%} - event-block is iron ore: + +on mine of iron ore: + {current.aura.%player%} is "fortune" + chance of {fortune.chance.%player%}%: + {chunk.live.%chunk at location of event-block%} is set: + {chunk.live.%chunk at location of event-block%} is not "%name of player%" + {chunk.live.%chunk at location of event-block%.%player%} is not set: + cancel event + stop + {fortune.spam.%player%} is greater than 16: + set {fortune.spam.%player%} to 0 + {for.ran.%player%} is not set: + set {for.ran.%player%} to random integer between 5 and 15 + {current.aura.%player%} is "fortune": + {abstain.%player%} is true: + clear {current.aura.%player%} + {abstain.%player%} is "wait abstain": + clear {current.aura.%player%} + + player's tool is a pickaxe of silk touch: + send "&cYour fortune aura has no effect with this enchantment!" to player + stop + {chunk.live.%chunk at location of event-block%} is set: + send "&cYour fortune aura has no effect in this area." + stop + {fortune.spam.%player%} is greater than {for.ran.%player%}: + loop all players: + + {aura.alert.%loop-player%} is true: + send "&3&lIt seems %player% hit the %block% jackpot at %location of player%!" to loop-player + set {fortune.spam.%player%} to 0 + set {for.ran.%player%} to random integer between 5 and 15 + cancel event + delete event-block + drop 1 iron ingot + send "&aFortune favours you!" to player + drop 1 iron ingot add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - cancel event - delete event-block - drop 1 iron ingot - send "&aFortune favours you!" to player - drop 1 iron ingot - add 1 to {fortune.spam.%player%} - event-block is lapis ore: + +on mine of lapis ore: + + {current.aura.%player%} is "fortune" + chance of {fortune.chance.%player%}%: + {chunk.live.%chunk at location of event-block%} is set: + {chunk.live.%chunk at location of event-block%} is not "%name of player%" + {chunk.live.%chunk at location of event-block%.%player%} is not set: + cancel event + stop + {fortune.spam.%player%} is greater than 16: + set {fortune.spam.%player%} to 0 + {for.ran.%player%} is not set: + set {for.ran.%player%} to random integer between 5 and 15 + {current.aura.%player%} is "fortune": + {abstain.%player%} is true: + clear {current.aura.%player%} + {abstain.%player%} is "wait abstain": + clear {current.aura.%player%} + + player's tool is a pickaxe of silk touch: + send "&cYour fortune aura has no effect with this enchantment!" to player + stop + {chunk.live.%chunk at location of event-block%} is set: + send "&cYour fortune aura has no effect in this area." + stop + {fortune.spam.%player%} is greater than {for.ran.%player%}: + loop all players: + + {aura.alert.%loop-player%} is true: + send "&3&lIt seems %player% hit the %block% jackpot at %location of player%!" to loop-player + set {fortune.spam.%player%} to 0 + set {for.ran.%player%} to random integer between 5 and 15 + send "&aFortune favours you!" to player + drop 1 lapis block add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - send "&aFortune favours you!" to player - drop 1 lapis - add 1 to {fortune.spam.%player%} - event-block is redstone ore: + + +on mine of redstone ore: + {current.aura.%player%} is "fortune" + chance of {fortune.chance.%player%}%: + {chunk.live.%chunk at location of event-block%} is set: + {chunk.live.%chunk at location of event-block%} is not "%name of player%" + {chunk.live.%chunk at location of event-block%.%player%} is not set: + cancel event + stop + {fortune.spam.%player%} is greater than 16: + set {fortune.spam.%player%} to 0 + {for.ran.%player%} is not set: + set {for.ran.%player%} to random integer between 5 and 15 + {current.aura.%player%} is "fortune": + {abstain.%player%} is true: + clear {current.aura.%player%} + {abstain.%player%} is "wait abstain": + clear {current.aura.%player%} + + player's tool is a pickaxe of silk touch: + send "&cYour fortune aura has no effect with this enchantment!" to player + stop + {chunk.live.%chunk at location of event-block%} is set: + send "&cYour fortune aura has no effect in this area." + stop + {fortune.spam.%player%} is greater than {for.ran.%player%}: + loop all players: + + {aura.alert.%loop-player%} is true: + send "&3&lIt seems %player% hit the %block% jackpot at %location of player%!" to loop-player + set {fortune.spam.%player%} to 0 + set {for.ran.%player%} to random integer between 5 and 15 + send "&aFortune favours you!" to player + drop 1 redstone block add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - send "&aFortune favours you!" to player - drop 1 redstone - add 1 to {fortune.spam.%player%} - event-block is coal ore: + +on mine of coal ore: + {current.aura.%player%} is "fortune" + chance of {fortune.chance.%player%}%: + {chunk.live.%chunk at location of event-block%} is set: + {chunk.live.%chunk at location of event-block%} is not "%name of player%" + {chunk.live.%chunk at location of event-block%.%player%} is not set: + cancel event + stop + {fortune.spam.%player%} is greater than 16: + set {fortune.spam.%player%} to 0 + {for.ran.%player%} is not set: + set {for.ran.%player%} to random integer between 5 and 15 + {current.aura.%player%} is "fortune": + {abstain.%player%} is true: + clear {current.aura.%player%} + {abstain.%player%} is "wait abstain": + clear {current.aura.%player%} + + player's tool is a pickaxe of silk touch: + send "&cYour fortune aura has no effect with this enchantment!" to player + stop + {chunk.live.%chunk at location of event-block%} is set: + send "&cYour fortune aura has no effect in this area." + stop + + {fortune.spam.%player%} is greater than {for.ran.%player%}: + loop all players: + + {aura.alert.%loop-player%} is true: + send "&3&lIt seems %player% hit the %block% jackpot at %location of player%!" to loop-player + set {fortune.spam.%player%} to 0 + set {for.ran.%player%} to random integer between 5 and 15 + send "&aFortune favours you!" to player + drop 2 coal add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - send "&aFortune favours you!" to player - drop 1 coal - add 1 to {fortune.spam.%player%} - event-block is nether quartz ore: + +on mine of nether quartz ore: + {current.aura.%player%} is "fortune" + chance of {fortune.chance.%player%}%: + {chunk.live.%chunk at location of event-block%} is set: + {chunk.live.%chunk at location of event-block%} is not "%name of player%" + {chunk.live.%chunk at location of event-block%.%player%} is not set: + cancel event + stop + {fortune.spam.%player%} is greater than 16: + set {fortune.spam.%player%} to 0 + {for.ran.%player%} is not set: + set {for.ran.%player%} to random integer between 5 and 15 + {current.aura.%player%} is "fortune": + {abstain.%player%} is true: + clear {current.aura.%player%} + {abstain.%player%} is "wait abstain": + clear {current.aura.%player%} + + player's tool is a pickaxe of silk touch: + send "&cYour fortune aura has no effect with this enchantment!" to player + stop + {chunk.live.%chunk at location of event-block%} is set: + send "&cYour fortune aura has no effect in this area." + stop + + {fortune.spam.%player%} is greater than {for.ran.%player%}: + loop all players: + + {aura.alert.%loop-player%} is true: + send "&3&lIt seems %player% hit the %block% jackpot at %location of player%!" to loop-player + set {fortune.spam.%player%} to 0 + set {for.ran.%player%} to random integer between 5 and 15 + send "&aFortune favours you!" to player + drop 2 nether quartz add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - send "&aFortune favours you!" to player - drop 1 nether quartz - add 1 to {fortune.spam.%player%} + +command /boostshit: + permission: obam.admin + trigger: + {fortune.chance.%player%} is less than 100: + set {fortune.chance.%player%} to 100 + send "&a&lShit boosted" + stop + {fortune.chance.%player%} is greater than 15: + set {fortune.chance.%player%} to 15 + send "&a&lShit Unboosted" + stop + diff --git a/Obam-Survival/fortuneFIX.sk b/Obam-Survival/fortuneFIX.sk new file mode 100644 index 0000000..5ed1ecd --- /dev/null +++ b/Obam-Survival/fortuneFIX.sk @@ -0,0 +1,193 @@ +#The Fortune Aura will cause minerals a chance to drop extras but at the cost of notifying everyone else to your location. + #Parts + #Toggle for alerts + #command on/off + #rising chance vs. time + +variables: + {fortune.spam.%player%} = 0 + +command /aura [] [] [text]: + permission: obam.free + description: For all Aura related commands + trigger: + {abstain.%player%} is true: + send "&cThis feature is unavailable while abstaining" + stop + {abstain.%player%} is "wait abstain": + send "&cThis feature is unavailable while abstaining" + stop + {abstain.%player%} is "wait pvp": + send "&cThis feature is unavailable while abstaining" + stop + argument 1 is not set: + {current.aura.%player%} is not set: + send "&7You do not have an active aura! Use &e/aura list&7 for a list of available auras" + stop + {current.aura.%player%} is "fortune": + send "&7You have the &eFortune Aura&7 activated" to player + send "&7You have a &6%{fortune.chance.%player%}% Percent&7 chance to find extra ingots/gems" to player + argument 1 is "help" or "h": + message "&3--[&6&lAura Help&3]--" + message "&cRequired = [] Optional = ()" + message "&a * /Aura" + message "&7 Shows you information regarding your current Aura." + message "&a * /aura [alerts] [on/off]" + message "&7 Turn on/off aura alerts from other players." + message "&a * /aura [aura-name] [on/off]" + message "&7 A mystical aura is placed on you, with a price to pay." + send "&a * /aura list" + send "&7 Lists the currently available auras." + send " " + send " " + send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" + send "&cV 1.0" + argument 1 is "alerts": + argument 2 is not set : + send "&cYou must choose &6on&c or &6off&c." to player + argument 2 is "on": + set {aura.alert.%player%} to true + send "&aYou have activated aura alerts." to player + argument 2 is "off": + set {aura.alert.%player%} to false + send "&aYou have deactivated aura alerts." to player + argument 1 is "fortune": + argument 2 is not set: + send "&cYou must choose &6on&c or &6off&c." to player + argument 2 is "on": + {current.aura.%player%} is "fortune": + send "&cYou already have a Fortune Aura active." to player + stop + set {current.aura.%player%} to "fortune" + send "&aYou have activated the &eFortune&a Aura!" to player + set {fortune.chance.%player%} to 1 + set {for.ran.%player%} to random number between 5 and 15 + argument 2 is "off": + clear {current.aura.%player%} + send "&aYou have deactivated your Fortune Aura!" to player + set {fortune.spam.%player%} to 0 + argument 1 is "list": + message "&3--[&6&lAura List&3]--" + send "&a Fortune Aura" + send "&7 This aura gives you an increasing chance to find more gems and ingots at the cost of alerting others to your position." + argument 1 is "debug": + send "spam count: %{fortune.spam.%player%}%" + send "Fortune on: %{current.aura.%player%}%" + send "Current chance: %{fortune.chance.%player%}%" + send "Alert Status: %{aura.alert.%player%}%" + {for.ran.%player%} is not set: + send "Random Number: &cNOT SET" + {for.ran.%player%} is set: + send "Random Number: %{for.ran.%player%}%" + +every 15 minutes: + loop all players: + {fortune.spam.%loop-player%} is greater than 15: + set {fortune.spam.%loop-player%} to 0 + {current.aura.%loop-player%} is "fortune" + {abstain.%loop-player%} is true: + clear {current.aura.%loop-player%} + + loop-player does not have permission "obam.plus": + {fortune.chance.%loop-player%} is less than 5: + increase {fortune.chance.%loop-player%} by 1 + send "&7Your chances of fortune have increased!" to loop-player + loop-player does not have permission "obam.ultimate": + loop-player has permission "obam.plus": + {fortune.chance.%loop-player%} is less than 10: + increase {fortune.chance.%loop-player%} by 1 + send "&7Your chances of fortune have increased!" to loop-player + loop-player has permission "obam.ultimate": + {fortune.chance.%loop-player%} is less than 15: + increase {fortune.chance.%loop-player%} by 1 + send "&7Your chances of fortune have increased!" to loop-player + +on mine: + {chunk.live.%chunk at location of event-block%} is not name of player: + {chunk.live.%chunk at location of event-block%.%player%} is not set: + cancel event + stop + {fortune.spam.%player%} is greater than 16: + set {fortune.spam.%player%} to 0 + {for.ran.%player%} is not set: + set {for.ran.%player%} to random integer between 5 and 15 + {current.aura.%player%} is "fortune": + {abstain.%player%} is true: + clear {current.aura.%player%} + {abstain.%player%} is "wait abstain": + clear {current.aura.%player%} + event-block is diamond ore or emerald ore or gold ore or iron ore or lapis ore or redstone ore or coal ore or nether quartz ore: + player's tool is a pickaxe of silk touch: + send "&cYour fortune aura has no effect with this enchantment!" to player + stop + {chunk.live.%chunk at location of event-block%} is set: + send "&cYour fortune aura has no effect in this area." + stop + {chunk.live.%chunk south of event-block%} is set: + send "&cYour fortune aura has no effect in this area, go further out!" to player + stop + {chunk.live.%chunk west of event-block%} is set: + send "&cYour fortune aura has no effect in this area, go further out!" to player + stop + {chunk.live.%chunk north of event-block%} is set: + send "&cYour fortune aura has no effect in this area, go further out!" to player + stop + {chunk.live.%chunk east of event-block%} is set: + send "&cYour fortune aura has no effect in this area, go further out!" to player + stop + {fortune.spam.%player%} is greater than {for.ran.%player%}: + loop all players: + + {aura.alert.%loop-player%} is true: + send "&3&lIt seems %player% hit the %block% jackpot at %location of player%!" to loop-player + set {fortune.spam.%player%} to 0 + set {for.ran.%player%} to random integer between 5 and 15 + target block is diamond ore: + chance of {fortune.chance.%player%}%: + cancel event + delete event-block + drop 1 diamond + send "&aFortune favours you!" to player + drop 1 diamond + add 1 to {fortune.spam.%player%} + target block is emerald ore: + chance of {fortune.chance.%player%}%: + send "&aFortune favours you!" to player + drop 1 emerald + add 1 to {fortune.spam.%player%} + target block is gold ore: + chance of {fortune.chance.%player%}%: + cancel event + delete event-block + drop 1 gold ingot + send "&aFortune favours you!" to player + drop 1 gold ingot + add 1 to {fortune.spam.%player%} + target block is iron ore: + chance of {fortune.chance.%player%}%: + cancel event + delete event-block + drop 1 iron ingot + send "&aFortune favours you!" to player + drop 1 iron ingot + add 1 to {fortune.spam.%player%} + target block is lapis ore: + chance of {fortune.chance.%player%}%: + send "&aFortune favours you!" to player + drop 1 lapis + add 1 to {fortune.spam.%player%} + target block is redstone ore: + chance of {fortune.chance.%player%}%: + send "&aFortune favours you!" to player + drop 1 redstone + add 1 to {fortune.spam.%player%} + target block is coal ore: + chance of {fortune.chance.%player%}%: + send "&aFortune favours you!" to player + drop 1 coal + add 1 to {fortune.spam.%player%} + target block is nether quartz ore: + chance of {fortune.chance.%player%}%: + send "&aFortune favours you!" to player + drop 1 nether quartz + add 1 to {fortune.spam.%player%} \ No newline at end of file diff --git a/Obam-Survival/landclaim.sk b/Obam-Survival/landclaim.sk index e30e95f..4da3ee0 100644 --- a/Obam-Survival/landclaim.sk +++ b/Obam-Survival/landclaim.sk @@ -675,4 +675,11 @@ on command "/spawn": message "&cYou must do this on your land!" cancel event stop + +command /claimedset : + permission: obam.admin + trigger: + set {claimedland.%player-arg%} to argument 2 + send "&e%player-arg%&a claimed balance set to &e%argument 2%" + \ No newline at end of file diff --git a/Obam-Testing/enchnattest.sk b/Obam-Testing/enchnattest.sk new file mode 100644 index 0000000..ba92527 --- /dev/null +++ b/Obam-Testing/enchnattest.sk @@ -0,0 +1,2 @@ +on script load: + register new shapeless recipe for diamond tool of unbreaking 4 using enchanted book of unbreaking 4, diamond tool, air, air, air, air, air, air, air \ No newline at end of file diff --git a/Obam-Testing/schat2.sk b/Obam-Testing/schat2.sk index d8126b9..50e8849 100644 --- a/Obam-Testing/schat2.sk +++ b/Obam-Testing/schat2.sk @@ -1,9 +1,15 @@ options: - p: &e[E] + p: &3[H] on join: + {db_alerts.on.%player%} is not set: + set {db_alerts.on.%player%} to true + {db_alerts.on.%player%} is true: + send "&aYour chat alerts are &eOn&a. You can turn them off by using the command &e/chat alerts off" + {db_alerts.on.%player%} is false: + send "&aYour chat alerts are &eOff&a. You can turn them on by using the command &e/chat alert on" {db_global.%player%} is not set: set {db_global.%player%} to true {db_global.%player%} is true: @@ -12,7 +18,8 @@ on join: player does not have permission "obam.supporter": delete {db_channel.supporter::%player%} player does not have permission "obam.mod": - delete {db_channel.supporter::%player%} + delete {db_channel.staff::%player%} + player does not have permission "obam.mechanic": delete {db_channel.mech::%player%} @@ -54,6 +61,22 @@ on chat: {db_star.%player%} is set: set {_pre} to "%{_pre}% <%{db_star.%player%}%>✦" + {db_channel.%player%} is "private": + set {_player} to {private.%player%} parsed as a player + {_player} is online: + set {_found} to true + + {_found} is set: + set {_player} to {private.%player%} parsed as a player + send "&d%player% ➽ %{_player}%&d: %message%" to {_player} + send "&d%player% ➽ %{_player}%&d: %message%" to player + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %{private.%player%}%&d: %message%" + send {_message} to player + execute console command "privatepush %{private.%player%}% %{_message}%" + {db_channel.%player%} is "staff": player does not have permission "obam.mod": set {db_channel.%player%} to "global" @@ -63,10 +86,18 @@ on chat: clear {_player} set {_player} to loop-index parsed as player + set message to "&a%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&a" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 set {_message} to "%{_pre}%&a: %message%" + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/modpush %{_pre}%&a: %message%" @@ -79,9 +110,16 @@ on chat: clear {_player} set {_player} to loop-index parsed as player set message to "&e%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&e" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 set {_message} to "%{_pre}%&e: %message%" - send {_message} to {_player} + + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/mechpush %{_message}%" @@ -97,9 +135,16 @@ on chat: clear {_player} set {_player} to loop-index parsed as player set message to "&b%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&b" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 set {_message} to "%{_pre}%&b: %message%" + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/supporterpush %{_message}%" @@ -110,8 +155,18 @@ on chat: loop {db_channel.global::*}: clear {_player} set {_player} to loop-index parsed as player - - send "%{_pre}%&f: %message%" to {_player} + set message to "&f%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&f" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&f: %message%" + + + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + + execute console command "globalpush %{_pre}%&f: %message%" @@ -233,6 +288,30 @@ command /chat [] []: argument 2 is not set: loop {db_channel.%{db_channel.%player%}%::*}: send "%loop-index%" + argument 2 is set: + {db_channel.%{db_channel.%player%}%::%argument 2%} is set: + send "%argument 2% is in this channel" + + argument 1 is "alerts" or "alert" or "a": + argument 2 is not set: + {db_alerts.on.%player%} is not set: + set {db_alerts.on.%player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + {db_alerts.on.%player%} is true: + set {db_alerts.on.%player%} to false + send "&aYour chat alerts are now &eOff&a." + stop + {db_alerts.on.%player%} is false: + set {db_alerts.on.%player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + argument 2 is "off": + set {db_alerts.on.%player%} to false + send "&aYour chat alerts are now &eOff&a." + argument 2 is "on": + set {db_alerts.on.%player%} to true + send "&aYour chat alerts are now &eOn&a." command /star []: @@ -247,11 +326,71 @@ command /star []: set {db_star.%argument 1%} to argument 2 send "&aStar for %argument 1% set to <%argument 2%>%argument 2%&a." +command /tell [] []: + permission: obam.free + trigger: + + argument 1 is not set: + {db_channel.%player%} is "private": + send "&aYou have left your private conversation with %{private.%player%}%" + make player execute command "/ch g" + stop + {db_channel.%player%} is not "private": + send "&cYou are not in a conversation!" + stop + argument 2 is not set: + send "&dYou are now in a private conversation with &e%argument 1%" + set {private.%player%} to "%argument 1%" + set {db_channel.%player%} to "private" + + argument 2 is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to player + loop all players: + loop-player is argument 1 + set {_found} to true + + {_found} is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to argument 1 + {db_alerts.on.%argument 1%} is true: + play level up at location of argument 1 with pitch 2 + + {_found} is not set: + set {_message} to "&d%player% ➽ %argument 1%: %argument 2%" + execute console command "privatepush %argument 1% %{_message}%" + + +command /fishslap : + permission: obam.free + trigger: + {cool.fish.%player%} is not set: + set {cool.fish.%player%} to now + add 5 seconds to {cool.fish.%player%} + set {_wait} to difference between {cool.fish.%player%} and now + {_wait} is less than 4 seconds: + send "&cYou are slapping too much! Calm down D:" to player + stop + + send "&aYou just slapped &e%argument%&a!" + set {cool.fish.%player%} to now + loop all players: + "%loop-player%" is argument + set {_found} to true + {db_alerts.on.%loop-player%} is true + play slime attack at location of loop-player with pitch 1 + send "&e%player% &ajust slapped you with a giant fish!" to loop-player + stop + + {_found} is not set: + forward command "fishcatch %argument% %player%" to console + + + + - + \ No newline at end of file diff --git a/Obam-Testing/schatbridge.sk b/Obam-Testing/schatbridge.sk index e206565..2085768 100644 --- a/Obam-Testing/schatbridge.sk +++ b/Obam-Testing/schatbridge.sk @@ -13,7 +13,15 @@ command /globalcatch : loop {db_channel.global::*}: clear {_player} set {_player} to loop-index parsed as player - send argument to {_player} + set {_message} to "&f%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&f" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + + + + send "%{_message}%" to {_player} stop @@ -27,9 +35,17 @@ command /modcatch : trigger: loop {db_channel.staff::*}: - clear {_player} + clear {_player} set {_player} to loop-index parsed as player - send argument to {_player} + set {_message} to "&a%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&a" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + + + + send "%{_message}%" to {_player} stop @@ -44,7 +60,15 @@ command /supportercatch : loop {db_channel.supporter::*}: clear {_player} set {_player} to loop-index parsed as player - send argument to {_player} + set {_message} to "&b%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&b" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + + + + send "%{_message}%" to {_player} command /mechpush : permission: obam.admin @@ -57,4 +81,38 @@ command /mechcatch : loop {db_channel.mech::*}: clear {_player} set {_player} to loop-index parsed as player - send argument to {_player} \ No newline at end of file + set {_message} to "&e%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&e" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + + + + send "%{_message}%" to {_player} + +command /privatepush : + permission: obam.admin + trigger: + forward command "privatecatch %argument 1% %argument 2%" to console + + +command /privatecatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1 + send argument 2 to loop-player + {db_alerts.on.%loop-player%} is true: + play level up at location of loop-player with pitch 2 + stop + +command /fishcatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1 + {db_alerts.on.%loop-player%} is true + play slime attack at location of loop-player with pitch 1 + send "&e%argument 2% &ajust slapped you with a giant fish!" to loop-player + stop \ No newline at end of file diff --git a/Obam-Testing/unbreak.sk b/Obam-Testing/unbreak.sk new file mode 100644 index 0000000..0ee47cc --- /dev/null +++ b/Obam-Testing/unbreak.sk @@ -0,0 +1,13 @@ +on script load: + register new shapeless recipe for diamond tool of unbreaking 4 using enchanted book of unbreaking 4, diamond tool, air, air, air, air, air, air, air + register new shapeless recipe for iron tool of unbreaking 4 using enchanted book of unbreaking 4, iron tool, air, air, air, air, air, air, air + register new shapeless recipe for stone tool of unbreaking 4 using enchanted book of unbreaking 4, stone tool, air, air, air, air, air, air, air + register new shapeless recipe for wood tool of unbreaking 4 using enchanted book of unbreaking 4, wood tool, air, air, air, air, air, air, air + register new shapeless recipe for diamond tool of unbreaking 3 using enchanted book of unbreaking 3, diamond tool, air, air, air, air, air, air, air + register new shapeless recipe for iron tool of unbreaking 3 using enchanted book of unbreaking 3, iron tool, air, air, air, air, air, air, air + register new shapeless recipe for stone tool of unbreaking 3 using enchanted book of unbreaking 3, stone tool, air, air, air, air, air, air, air + register new shapeless recipe for wood tool of unbreaking 3 using enchanted book of unbreaking 3, wood tool, air, air, air, air, air, air, air + register new shapeless recipe for diamond tool of silk touch using enchanted book of silk touch, diamond tool, air, air, air, air, air, air, air + register new shapeless recipe for iron tool of silk touch using enchanted book of silk touch, iron tool, air, air, air, air, air, air, air + register new shapeless recipe for stone tool of silk touch using enchanted book of silk touch, stone tool, air, air, air, air, air, air, air + register new shapeless recipe for wood tool of silk touch using enchanted book of silk touch, wood tool, air, air, air, air, air, air, air \ No newline at end of file diff --git a/Obam-Testing/wtfmike.sk b/Obam-Testing/wtfmike.sk new file mode 100644 index 0000000..f82bee6 --- /dev/null +++ b/Obam-Testing/wtfmike.sk @@ -0,0 +1,17 @@ +command /wtfmike []: + permission: obam.free + trigger: + player does not have permission "obam.admin": + set {_player} to "%player%" + {_player} is not "mikeambrose" or "mikeambrose2" or "mikeambrose3": + send "&cYou do not have permission to do this!" + stop + + argument is not set: + delete {db_channel.global::mikeambrose} + delete {db_channel.global::mikeambrose3} + delete {db_channel.global::mikeambrose2} + send "&cWTF Mike!?!?!" + send "&cPlease use &e/ch j g &Cto get back into chat." + argument is "list": + send "%{db_channel.global::*}%" \ No newline at end of file diff --git a/Obam-Testing/wtfronts.sk b/Obam-Testing/wtfronts.sk index 71ac9d5..7f19882 100644 --- a/Obam-Testing/wtfronts.sk +++ b/Obam-Testing/wtfronts.sk @@ -20,6 +20,9 @@ options: grapplinghook: fishing rod named "&3Grappling hook" with lore "&4Will teleport you to where the hook lands||&5-1 Elemental Fuel per use" safetytorch: redstone torch named "&3Safety Torch" with lore "&6When placed will preven mobs from spawning in the chunk" soap1: nether brick item named "&3Soap" with lore "&6Used to clean yourself||&6by tossing in the water|| ||&a+100 Hygiene" + stblgun: bow named "&3Stablizer Gun" with lore "&bThis weapon is crafted||&6to annihilate the unstable||&6infestion.|| ||&c-1 Elemental Fuel|| ||&5&oOnly effective against unstable||&5&oMobs." + stblmine: diamond pickaxe named "&3Stable Miner" with lore "&bA pickaxe crafted||&6with stable metal to||&6to counteract the environment|| ||&c-1 Elemental Fuel||&c&oOn event elimination|| ||&5&oThis tool will eliminate the||&5&oeffects of the unstable||&5&oenvrionment with the use of||&5&oelemental fuel" + on script load: @@ -40,7 +43,9 @@ on script load: register new shapeless recipe for {@strengthchest} using air, air, air, air, {@stablechst}, beacon, air, air, diamond sword register new shaped recipe for {@grapplinghook} using {@elefuel}, Fishing Rod, {@elefuel}, {@elefuel}, {@elefuel}, {@elefuel}, {@elefuel}, {@elefuel}, {@elefuel} register new shaped recipe for {@soap1} using air, milk bucket, air, air, rose, air, air, water bottle, air - + register new shaped recipe for {@stblgun} using air, {@stablemetal}, {@stablemetal}, {@stablemetal}, {@stable}, air, {@stablemetal}, air, air + register new shaped recipe for {@stblmine} using diamond, {@stable}, diamond, air, {@stablemetal}, air, air, {@stablemetal}, air + on join: {fatigue.%player%} is not set: @@ -96,6 +101,13 @@ on mine: set {_run} to false {_run} is not set: chance of {cavein.%chunk at location of player%.chance}%: + name of player's tool is "&3Stable Miner": + player has {@elefuel} + remove 1 {@elefuel} from player + send "&aYour Miner prevents a cave in" + drop {@unstmetal} at event-location + set {_stop} to true + {_stop} is not set loop blocks in radius 5: {_block.count} is not set: set {_block.count} to 0 @@ -141,6 +153,13 @@ on mine: set {_run2} to false {_run2} is not set: chance of {methane.%chunk at location of player%.chance}%: + name of player's tool is "&3Stable Miner": + player has {@elefuel} + remove 1 {@elefuel} from player + send "&aYour Miner prevents a Methane Explosion!" + drop 1 {@unstele} at event-location + set {_stop} to true + {_stop} is not set send "&cMethane!" to player loop players in radius 10 of player: send "&cMethane!" to loop-player @@ -152,15 +171,15 @@ on mine: chance of {methane.%chunk at location of player%.chance} * 2%: drop {@unstmetal} at event-location - #chance of {cavein.%chunk at location of player%.chance}%: - # loop blocks in radius 3: - # loop-block is water - # set {_found.water} to true - # {_found.water} is true: - # send "&3Flood!" to player - # loop blocks in radius 3 of event-location: - # loop-block is air: - # set loop-block to water + chance of {cavein.%chunk at location of player%.chance}%: + loop blocks in radius 3: + loop-block is water + set {_found.water} to true + {_found.water} is true: + send "&3Flood!" to player + loop blocks in radius 3 of event-location: + loop-block is air: + set loop-block to water on portal enter: @@ -316,32 +335,40 @@ every 3 seconds: loop-player has {@elefuel}: apply speed 2 to loop-player for 4 seconds remove {@elefuel} from loop-player - loop players in radius 5 of loop-player: + loop players in radius 75 of loop-player: apply speed 2 to loop-player-2 for 4 seconds name of loop-player's chestplate is "&3Haste Chestplate": loop-player has {@elefuel}: apply haste 2 to loop-player for 4 seconds remove {@elefuel} from loop-player - loop players in radius 5 of loop-player: + loop players in radius 75 of loop-player: apply haste 2 to loop-player-2 for 4 seconds name of loop-player's chestplate is "&3Strength Chestplate": loop-player has {@elefuel}: apply strength 2 to loop-player for 4 seconds remove {@elefuel} from loop-player - loop players in radius 5 of loop-player: + loop players in radius 75 of loop-player: apply strength 2 to loop-player-2 for 4 seconds + #wildsilverfish + block above block below loop-player is 175:2: + chance of 5%: + spawn silverfish at location of loop-player + send "&cA wild silverfish appears!" to loop-player + #hygiene block below loop-player is dirt or grass: {hygiene.%loop-player%} is greater than 0 - set {_ran} to random number between 0 and 2 + set {_ran} to random number between 0 and 0.5 {hygiene.%loop-player%} is not set: set {hygiene.%loop-player%} to 100 set {hygiene.%loop-player%} to {hygiene.%loop-player%} - {_ran} {hygiene.%loop-player%} is less than or equal to 0: set {hygiene.%loop-player%} to 0 + {debug.%loop-player%} is true: + set {hygiene.%loop-player%} to 100 {hygiene.%loop-player%} is less than 10: chance of 5%: @@ -353,12 +380,13 @@ every 3 seconds: {unstable.%loop-entity%} is set: spawn 100 of red dust data 1 offset with 1, 1, 1 at location of loop-entity -on spawn of a creeper or a skeleton or a spider or zombie: +on spawn of a creeper or a skeleton or a spider or zombie or a cow: {unstable.%chunk at event-location%} is true: set {_loc} to event-location event-entity is a creeper: + wait 5 ticks set name of event-entity to "&cUnstable Creeper" apply resistance 2 to event-entity for 999 days apply speed to event-entity for 999 days @@ -367,7 +395,8 @@ on spawn of a creeper or a skeleton or a spider or zombie: set {unstable.%event-entity%} to true event-entity is a zombie: - + + wait 5 ticks set name of event-entity to "&cUnstable Zombie" apply resistance 2 to event-entity for 999 days apply speed 2 to event-entity for 999 days @@ -376,6 +405,9 @@ on spawn of a creeper or a skeleton or a spider or zombie: set {unstable.%event-entity%} to true event-entity is skeleton: + + + wait 5 ticks set name of event-entity to "&cUnstable Skeleton" apply resistance 2 to event-entity for 999 days apply speed 2 to event-entity for 999 days @@ -384,11 +416,20 @@ on spawn of a creeper or a skeleton or a spider or zombie: set {unstable.%event-entity%} to true event-entity is a spider: + + wait 5 ticks set name of event-entity to "&cUnstable Spider" apply resistance 2 to event-entity for 999 days apply speed 2 to event-entity for 999 days apply jump 5 to event-entity for 999 days set {unstable.%event-entity%} to true + + event-entity is a cow: + + wait 5 ticks + set name of event-entity to "&cUnstable Cow" + apply speed 2 to event-entity for 999 days + set {unstable.%event-entity%} to true on explosion prime: event-entity is creeper: @@ -407,10 +448,24 @@ on damage: cancel event damage cause is block explosion: cancel event - + +on death of cow: + {hit.%victim%} is set: + clear drops + stop + {unstable.%victim%} is set: + create an explosion of force 5 at victim + chance of 20%: + add {@unstmetal} to drops + chance of 15%: + add {@unstele} to drops on death of a creeper or a skeleton or a zombie or a spider: chance of 15%: add {@bandages} to drops + {hit.%victim%} is set: + loop drops: + add loop-item to attacker's inventory + clear drops entity's name is "&cUnstable Spawn": chance of 10%: chance of 2%: @@ -529,8 +584,19 @@ on right click with nether brick item: remove {@soap1} from player send "&aYou wash yourself" set {hygiene.%player%} to 100 + spawn 500 of bubble data 1 offset with 2, 2, 2 at location of player player has nausea: remove nausea from player + loop players in radius 10 of player: + block above block below loop-player is water: + {hygiene.%loop-player%} is less than 100: + send "&aYou have been washed by &e%player%&a!" to loop-player + set {_loc} to loop-player's location + spawn 500 of bubble data 1 offset with 2, 2, 2 at {_loc} + set {hygiene.%loop-player%} to 100 + loop-player has nausea: + remove nausea from loop-player + on shoot: shooter's tool is {@grapplinghook}: @@ -623,7 +689,7 @@ on death of a player: apply speed to entity for 999 days command /ci [] []: - permission: obam.admin + permission: obam.free trigger: argument 1 is not set: send "list" @@ -643,11 +709,12 @@ command /ci [] []: send "14 ... Chest of Snacks" send "15 ... Grappling Hook" send "16 ... Coffee" - send "17 ... Safety Torch" send "18 ... Speed Chestplate" send "19 ... Haste Chestplate" send "20 ... Strength Chestplate" send "21 ... Soap (1)" + send "22 ... Stabilizer Gun" + send "23 ... Stable Miner" stop argument 2 is not set: argument 1 is 1: @@ -698,8 +765,6 @@ command /ci [] []: argument 1 is 16: give {@coffee} to player - argument 1 is 17: - give {@safetytorch} to player argument 1 is 18: give {@speedchest} to player @@ -712,6 +777,13 @@ command /ci [] []: argument 1 is 21: give {@soap1} to player + + argument 1 is 22: + give {@stblgun} to player + + argument 1 is 23: + give {@stblmine} to player + argument 2 is set: argument 1 is 1: loop argument 2 times: @@ -777,9 +849,6 @@ command /ci [] []: loop argument 2 times: give {@coffee} to player - argument 1 is 17: - loop argument 2 times: - give {@safetytorch} to player argument 1 is 18: loop argument 2 times: @@ -796,6 +865,14 @@ command /ci [] []: argument 1 is 21: loop argument 2 times: give {@soap1} to player + + argument 1 is 22: + loop argument 2 times: + give {@stblgun} to player + + argument 1 is 23: + loop argument 2 times: + give {@stblmine} to player send "Here is your item. :)" @@ -892,3 +969,139 @@ command /particlelist: trigger: message "%all enum values of particle%" +command /unstclear: + permission: obam.admin + trigger: + loop all entities: + {unstable.%loop-entity%} is true: + kill loop-entity + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + + send "&e%{_count}%&a Unstable Entities eliminated" + +command /unstlist: + permission: obam.admin + trigger: + loop all entities: + loop-entity is not a player + {unstable.%loop-entity%} is true + {_list::%name of loop-entity%} is not set: + set {_list::%name of loop-entity%} to 0 + add 1 to {_list::%name of loop-entity%} + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + + send "&aThere are &e%{_count}% &cUnstable&a entities." + send "&aList:" + loop {_list::*}: + send "&a%loop-index%:&e %loop-value%" + +#bloodmoon +every 30 seconds: + time in "world" is between 18:00 and 19:00: + chance of 5%: + {blood.moon} is not set + set {blood.moon} to true + broadcast "&cA blood moon rises..." + time in "world" is between 6:00 and 18:00: + {blood.moon} is true: + clear {blood.moon} + broadcast "&aThe blood moon sets!" + +on spawn of a creeper or a skeleton or a spider or zombie or a cow: + {blood.moon} is true: + + + set {_loc} to event-location + event-entity is a creeper: + wait 5 ticks + set name of event-entity to "&cUnstable Creeper" + apply resistance 2 to event-entity for 999 days + apply speed to event-entity for 999 days + + + set {unstable.%event-entity%} to true + + event-entity is a zombie: + + wait 5 ticks + set name of event-entity to "&cUnstable Zombie" + apply resistance 2 to event-entity for 999 days + apply speed 2 to event-entity for 999 days + equip event-entity with iron sword of sharpness + set event-entity's helmet to iron helmet + set {unstable.%event-entity%} to true + + event-entity is skeleton: + + + wait 5 ticks + set name of event-entity to "&cUnstable Skeleton" + apply resistance 2 to event-entity for 999 days + apply speed 2 to event-entity for 999 days + equip event-entity with bow + set event-entity's helmet to gold helmet + set {unstable.%event-entity%} to true + + event-entity is a spider: + + wait 5 ticks + set name of event-entity to "&cUnstable Spider" + apply resistance 2 to event-entity for 999 days + apply speed 2 to event-entity for 999 days + apply jump 5 to event-entity for 999 days + set {unstable.%event-entity%} to true + + event-entity is a cow: + + wait 5 ticks + set name of event-entity to "&cUnstable Cow" + apply speed 2 to event-entity for 999 days + set {unstable.%event-entity%} to true + +command /bloodmoon: + permission: obam.admin + trigger: + set time of "world" to 18:00 + set {blood.moon} to true + broadcast "&cA blood moon rises..." + +command /dawn: + permission: obam.admin + trigger: + set time of "world" to 5:30 + +on right click with bow: + player's tool is a bow: + name of player's tool is "&3Stablizer Gun" + cancel event + {cool.gun.%player%} is not set: + set {cool.gun.%player%} to now + add 3 seconds to {cool.gun.%player%} + set {_cool} to difference between {cool.gun.%player%} and now + {_cool} is less than 2 seconds: + send "&cYou are reloading!" + stop + {unstable.%target entity%} is set: + name of target entity contains "&cUnstable" + player does not have {@elefuel}: + send "&cYou are out of &eElemental Fuel!" + stop + {hit.%target entity%} is not set + remove 1 {@elefuel} from player + set {hit.%target entity%} to true + make player shoot item projectile packed ice at speed 5 + set {cool.gun.%player%} to now + set {_target} to target entity + wait 0.2 seconds + strike lightning effect at location of {_target} + kill {_target} + send "&aYou capture the stable soul of the creature" + add {@unstele} to player's inventory + add {@unstmetal} to player's inventory + add {@stable} to player's inventory + + diff --git a/Obam-Tools/eggification.sk b/Obam-Tools/eggification.sk index 75df984..0f7f632 100644 --- a/Obam-Tools/eggification.sk +++ b/Obam-Tools/eggification.sk @@ -210,7 +210,7 @@ on damage of a creeper or a skeleton or a zombie or a zombie pigman or a spider: -on damage of a pig or chicken or ocelot or squid or cow or bat or wolf or sheep or horse: +on damage of a pig or chicken or ocelot or squid or cow or bat or wolf or sheep or horse or donkey or mule or mooshroom: attacker is a player: {projeggtile.%projectile%} is set: if {chunk.live.%chunk at location of victim%} is not attacker: @@ -269,16 +269,18 @@ on damage of a pig or chicken or ocelot or squid or cow or bat or wolf or sheep victim is wolf: set {_egg} to wolf spawn egg set {_mob.name} to "wolf" - name of victim is "mooshroom": + victim is mooshroom: set {_egg} to mooshroom spawn egg set {_mob.name} to "mooshroom" victim is sheep: set {_egg} to sheep spawn egg set {_mob.name} to "sheep" - victim is horse: + victim is horse or mule or donkey: set {_egg} to horse spawn egg set {_mob.name} to "horse" + + display name of victim is not set: cancel event attacker doesn't have space for {_egg}: @@ -374,3 +376,5 @@ command /pegg [] []: set {_message} to {pegg.messages.capture::%argument 2%} replace "MOB" in {_message} with "OBAM" send {_message} to player + + diff --git a/Obam-Tools/entcount.sk b/Obam-Tools/entcount.sk index 5695eda..386ed3b 100644 --- a/Obam-Tools/entcount.sk +++ b/Obam-Tools/entcount.sk @@ -1,5 +1,5 @@ -command /ent : +command /ent []: permission: obam.free description: Counts the living entities in a sphere of specified radius around player trigger: @@ -10,6 +10,39 @@ command /ent : {_hold} is less than 2 seconds: send "&cPlease wait ...." stop + argument is not set: + + + + loop entities in radius 160 of player: + + loop-entity is not a player + chunk at location of loop-entity is chunk at location of player + set {_type} to "%type of loop-entity%" + set {_hold::*} to {_type} split at ":" + + {_count.list::%{_hold::1}%} is not set: + set {_count.list::%{_hold::1}%} to 0 + set {_count.list::%{_hold::1}%} to {_count.list::%{_hold::1}%} + 1 + + {_count.total} is not set: + set {_count.total} to 0 + add 1 to {_count.total} + + + {_count.total} is not set: + send "&eNo entites... MAGIC!" + stop + + send "&aThere are currently &e%{_count.total}%&a entities in chunk &e%player's chunk%" + send "&aList:" + + loop {_count.list::*}: + send "&a%loop-index%: &e%loop-value%" + + set {cool.ent.%player%} to now + + stop argument is greater than 160: send "&cPlease choose a number between &e1 &cand &e160" @@ -39,4 +72,38 @@ command /ent : loop {_count.list::*}: send "&a%loop-index%: &e%loop-value%" - set {cool.ent.%player%} to now \ No newline at end of file + set {cool.ent.%player%} to now + +command /entworld: + permission: obam.admin + trigger: + loop entities in player's world: + + loop-entity is not a player + set {_type} to "%type of loop-entity%" + set {_hold::*} to {_type} split at ":" + + {_count.list::%{_hold::1}%} is not set: + set {_count.list::%{_hold::1}%} to 0 + set {_count.list::%{_hold::1}%} to {_count.list::%{_hold::1}%} + 1 + + {_count.total} is not set: + set {_count.total} to 0 + add 1 to {_count.total} + + + {_count.total} is not set: + send "&eNo entites... MAGIC!" + stop + + send "&aThere are currently &e%{_count.total}%&a entities in world &e%player's world%" + send "&aList:" + + loop {_count.list::*}: + send "&a%loop-index%: &e%loop-value%" + + + + + + \ No newline at end of file diff --git a/Obam-Tools/moderate.sk b/Obam-Tools/moderate.sk index cdd0639..efcf874 100644 --- a/Obam-Tools/moderate.sk +++ b/Obam-Tools/moderate.sk @@ -1,4 +1,4 @@ -command /g : +command /g [] [] []: description: Teleports to a Player permission: obam.mod trigger: @@ -8,10 +8,19 @@ command /g : {monitor.%player%} is false: send "&cYou must be in monitor mode to do this!" to player stop - - teleport player to player-argument - send "&aYou have teleported to %player-argument%." to player - log "%player%^GO ACTION^%player-argument%^%location of player-argument%" to "admin/actions.log" + + argument 1 is "loc": + set {_loc} to player's location + set y-coordinate of {_loc} to arg-3 + set x-coordinate of {_loc} to arg-2 + set z-coordinate of {_loc} to arg-4 + teleport player to {_loc} + send "&aYou have teleported to &e%{_loc}%&a." + stop + set {_player} to argument 1 parsed as player + teleport player to {_player} + send "&aYou have teleported to %{_player}%." to player + log "%player%^GO ACTION^%{_player}%^%location of {_player}%" to "admin/actions.log" command /grab : From 460c68d79955da5e6d87d6e1f60adf4a6ebefe2e Mon Sep 17 00:00:00 2001 From: ismooch Date: Sat, 21 Jun 2014 13:39:23 -0500 Subject: [PATCH 14/14] big azz commit Lots of stuff over the past few weeks... cant even annotate :/ --- Obam-General/boards.sk | 91 ++--- Obam-General/ihs.sk | 61 ++- Obam-General/liv.sk | 389 +++++++----------- Obam-Survival/FIXIT.sk | 3 + Obam-Survival/access.sk | 122 ++++++ Obam-Survival/flags.sk | 386 ++++++++++++++++++ Obam-Survival/flow.sk | 21 + Obam-Survival/fma.sk | 815 +++++++++++++++++++++++++++++++++++++ Obam-Survival/landclaim.sk | 211 +++++++--- Obam-Testing/backpack.sk | 98 +++++ Obam-Testing/blocksave.sk | 25 ++ Obam-Testing/hitsounds.sk | 133 ++++++ Obam-Testing/lightbow.sk | 55 +++ Obam-Testing/schat2.sk | 5 +- Obam-Testing/soulbound.sk | 52 +++ Obam-Testing/splash.sk | 139 +++++++ Obam-Testing/suphorse.sk | 31 ++ Obam-Testing/timber.sk | 52 +++ Obam-Testing/trails.sk | 127 ++++++ Obam-Testing/wtfronts.sk | 26 +- kitpvp/archer.sk | 25 ++ kitpvp/firemage.sk | 54 +++ kitpvp/fisherman.sk | 33 ++ kitpvp/fisherman.txt | 11 + kitpvp/kdss.sk | 370 +++++++++++++++++ kitpvp/kitpvp.sk | 385 ++++++++++++++++++ kitpvp/lightningmage.sk | 50 +++ kitpvp/melee.sk | 19 + kitpvp/necromancer.sk | 82 ++++ kitpvp/ninja.sk | 32 ++ kitpvp/skelemancer.sk | 93 +++++ kitpvp/tank.sk | 22 + 32 files changed, 3628 insertions(+), 390 deletions(-) create mode 100644 Obam-Survival/access.sk create mode 100644 Obam-Survival/flags.sk create mode 100644 Obam-Survival/flow.sk create mode 100644 Obam-Survival/fma.sk create mode 100644 Obam-Testing/backpack.sk create mode 100644 Obam-Testing/blocksave.sk create mode 100644 Obam-Testing/hitsounds.sk create mode 100644 Obam-Testing/lightbow.sk create mode 100644 Obam-Testing/soulbound.sk create mode 100644 Obam-Testing/splash.sk create mode 100644 Obam-Testing/suphorse.sk create mode 100644 Obam-Testing/timber.sk create mode 100644 Obam-Testing/trails.sk create mode 100644 kitpvp/archer.sk create mode 100644 kitpvp/firemage.sk create mode 100644 kitpvp/fisherman.sk create mode 100644 kitpvp/fisherman.txt create mode 100644 kitpvp/kdss.sk create mode 100644 kitpvp/kitpvp.sk create mode 100644 kitpvp/lightningmage.sk create mode 100644 kitpvp/melee.sk create mode 100644 kitpvp/necromancer.sk create mode 100644 kitpvp/ninja.sk create mode 100644 kitpvp/skelemancer.sk create mode 100644 kitpvp/tank.sk diff --git a/Obam-General/boards.sk b/Obam-General/boards.sk index 6d9e228..8dea929 100644 --- a/Obam-General/boards.sk +++ b/Obam-General/boards.sk @@ -1,49 +1,12 @@ #boards #startfold @scoreboards every 1 second: - #subfold @sbstats - loop all players in world "skyworld": - {off.sb.%loop-player%} is not set: - set {off.sb.%loop-player%} to true - {off.sb.%loop-player%} is true - {board.up.%loop-player%.sb} is not set: - set {board.up.%loop-player%.sb} to false - {board.up.%loop-player%.sb} is true: - make score "&cDeaths:" in board of loop-player to {deaths.%loop-player%.skyworld} - make score "&3Creepers:" in board of loop-player to {creeper.kills.%loop-player%} - make score "&3Skeletons:" in board of loop-player to {skeleton.kills.%loop-player%} - make score "&3Spiders:" in board of loop-player to {spider.kills.%loop-player%} - make score "&3Zombies:" in board of loop-player to {zombie.kills.%loop-player%} - make score "&3Endermen:" in board of loop-player to {enderman.kills.%loop-player%} - make score "&3Slimes:" in board of loop-player to {slime.kills.%loop-player%} - make score "&3Witches:" in board of loop-player to {witch.kills.%loop-player%} - make score "&aTickets:" in board of loop-player to loop-player's balance - make score "&6Total Kills:" in board of loop-player to {total.kills.%loop-player%} - set {board.up.%loop-player%.kp} to false - - {board.up.%loop-player%.sb} is false: - display board named "&9&lSB &9Stats" to loop-player - make score "&cDeaths:" in board of loop-player to {deaths.%loop-player%.skyworld} - make score "&3Creepers:" in board of loop-player to {creeper.kills.%loop-player%} - make score "&3Skeletons:" in board of loop-player to {skeleton.kills.%loop-player%} - make score "&3Spiders:" in board of loop-player to {spider.kills.%loop-player%} - make score "&3Zombies:" in board of loop-player to {zombie.kills.%loop-player%} - make score "&3Endermen:" in board of loop-player to {enderman.kills.%loop-player%} - make score "&3Slimes:" in board of loop-player to {slime.kills.%loop-player%} - make score "&3Witches:" in board of loop-player to {witch.kills.%loop-player%} - make score "&aTickets:" in board of loop-player to loop-player's balance - make score "&6Total Kills:" in board of loop-player to {total.kills.%loop-player%} - set {board.up.%loop-player%.sb} to true - move display of loop-player to "sidebar" - set {board.up.%loop-player%.kp} to false - - #subfold @KPstata - loop all players in world "kitpvpkillingfields": + loop all players: {off.sb.%loop-player%} is not set: set {off.sb.%loop-player%} to true {off.sb.%loop-player%} is true - {board.up.%loop-player%} is not set: + {board.up.%loop-player%.kp} is not set: set {board.up.%loop-player%.kp} to false {board.up.%loop-player%.kp} is true: make score of "&cDeaths:" in board of loop-player to {deaths.%loop-player%.kit} @@ -52,6 +15,10 @@ every 1 second: make score of "&aAssists:" in board of loop-player to {assist.%loop-player%.kp} make score of "&eBounty:" in board of loop-player to {value.%loop-player%.kit.live} make score "&aTickets:" in board of loop-player to loop-player's balance + {rampage.%loop-player%} is set: + make score of "&cRAMPAGE" in board of loop-player to 1 + {kit.%loop-player%} is set: + make score of "&3%{kit.%loop-player%}%" in board of loop-player to 1 set {board.up.%loop-player%.sb} to false {board.up.%loop-player%.kp} is false: @@ -62,9 +29,13 @@ every 1 second: make score of "&aAssists:" in board of loop-player to {assist.%loop-player%.kp} make score of "&eBounty:" in board of loop-player to {value.%loop-player%.kit.live} make score "&aTickets:" in board of loop-player to loop-player's balance + {rampage.%loop-player%} is set: + make score of "&cRAMPAGE" in board of loop-player to 1 + {kit.%loop-player%} is set: + make score of "&3%{kit.%loop-player%}%" in board of loop-player to 1 set {board.up.%loop-player%.sb} to false set {board.up.%loop-player%.kp} to true - move display of loop-player to "sidebar" + move display of loop-player to sidebar @@ -86,31 +57,21 @@ command /togglestats: {off.sb.%player%} is false: set {off.sb.%player%} to true send "&aYou have turned on OBAM Stats" to player - world is "skyworld": - display board named "&9&lSB &lStats" to player - make score "&cDeaths:" in board of player to {deaths.%player%.skyworld} - make score "&3Creepers:" in board of player to {creeper.kills.%player%} - make score "&3Skeletons:" in board of player to {skeleton.kills.%player%} - make score "&3Spiders:" in board of player to {spider.kills.%player%} - make score "&3Zombies:" in board of player to {zombie.kills.%player%} - make score "&3Endermen:" in board of player to {enderman.kills.%player%} - make score "&3Slimes:" in board of player to {slime.kills.%player%} - make score "&3Witches:" in board of player to {witch.kills.%player%} - make score "&6Total Kills:" in board of player to {total.kills.%player%} - make score "&aTickets:" in board of player to player's balance - move display of player to "sidebar" - set {board.up.%player%.sb} to true - stop - world is "kitpvpkillingfields": - display board named "&9&lKP &9Stats" to player - make score of "&cDeaths:" in board of player to {deaths.%player%.kit} - make score of "&aKills:" in board of player to {kills.%player%.kit} - make score of "&aKillstreak:" in board of player to {killstreak.%player%} - make score of "&eBounty:" in board of player to {value.%player%.kit.live} - make score of "&aAssists:" in board of player to {assist.%player%.kp} - set {board.up.%player%.sb} to false - set {board.up.%player%.kp} to true - move display of player to "sidebar" + + + display board named "&9&lKP &9Stats" to player + make score of "&cDeaths:" in board of player to {deaths.%player%.kit} + make score of "&aKills:" in board of player to {kills.%player%.kit} + make score of "&aKillstreak:" in board of player to {killstreak.%player%} + make score of "&eBounty:" in board of player to {value.%player%.kit.live} + make score of "&aAssists:" in board of player to {assist.%player%.kp} + {rampage.%player%} is set: + make score of "&cRAMPAGE" in board of player to 1 + {kit.%player%} is set: + make score of "&3%{kit.%player%}%" in board of player to 1 + set {board.up.%player%.sb} to false + set {board.up.%player%.kp} to true + move display of player to sidebar #endfold diff --git a/Obam-General/ihs.sk b/Obam-General/ihs.sk index 7785981..9c118bb 100644 --- a/Obam-General/ihs.sk +++ b/Obam-General/ihs.sk @@ -6,51 +6,52 @@ options: redstone: i;redstone;n;&b&nRedstone;l;&7Click to claim your &epurchased redstone.;c;sudo %player% redeem redstone lavabucket: i;lava bucket;n;&b&nLava Bucket;l;&7Click to claim your &epurchased lava buckets.;c;sudo %player% redeem lava bucket dampener: i;fullblock spruce wood block;n;&b&nxPlosion Dampener;l;&7Click to claim your &epurchased xPlosion Dampeners.;c;sudo %player% redeem fullblock spruce wood block -command /itemstore : + timber: i;diamond axe;n;&b&nTimber Axe;l;&7Click to claim your purchased||&eTimber Axe.;c;sudo %player% redeem timberaxe +command /itemstore : permission: obam.admin trigger: {db_ihs.%player-argument%.%argument 2%} is set: add argument 3 to {db_ihs.%player-argument%.%argument 2%} send "&aYou have made a purchase! Type &e/redeem&a to redeem your items!" to player-argument - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 stop set {db_ihs.%player-argument%.%argument 2%} to argument 3 set {db_alert.redeem.%player-argument%} to true send "&aYou have made a purchase! Type &e/redeem&a to redeem your items!" to player-argument - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 on join: {db_alert.redeem.%player%} is true send "&c&lYou have items waiting to be redeemed! Use &e/redeem &c<o redeem your items!" to player - play "level up" at location of player with pitch 2 + play level up at location of player with pitch 2 wait 0.2 seconds - play "level up" at location of player with pitch 2 + play level up at location of player with pitch 2 wait 0.2 seconds - play "level up" at location of player with pitch 2 + play level up at location of player with pitch 2 wait 0.2 seconds - play "level up" at location of player with pitch 2 + play level up at location of player with pitch 2 wait 0.2 seconds - play "level up" at location of player with pitch 2 + play level up at location of player with pitch 2 -command /redeem []: +command /redeem []: permission: obam.free executable by: players trigger: @@ -61,13 +62,14 @@ command /redeem []: stop world is "world": - show "s;1;{@dampener}" with 1 row named "&9&lOBAM &9Redeem" to player + show "s;1;{@timber}" with 1 row named "&9&lOBAM &9Redeem" to player stop send "&cMake sure you are in the right world!" to player argument is set: + argument is not "timberaxe" {db_ihs.%player%.%argument%} is 0: send "&cYou do not have any of this item to redeem! If this is incorrect, please contact the Administrator" to player stop @@ -75,8 +77,9 @@ command /redeem []: {db_ihs.%player%.%argument%} is not set: send "&cYou do not have any of this item to redeem! If this is incorrect, please contact the Administrator" to player stop - give player {db_ihs.%player%.%argument%} of item-argument - argument is fullblock spruce wood block: + set {_stuff} to argument parsed as item + give player {db_ihs.%player%.%argument%} of {_stuff} + argument is "fullblock spruce wood block": {db_ihs.%player%.%argument%} is less than 2: send "&aYou have received your &e%{db_ihs.%player%.%argument%}% xPlosion Dampener&a! Thank you for your purchase!" set {db_ihs.%player%.%argument%} to 0 @@ -91,6 +94,24 @@ command /redeem []: set {db_ihs.%player%.%argument%} to 0 set {db_alert.redeem.%player%} to false + argument is "timberaxe": + {db_ihs.%player%.%argument%} is 0: + send "&cYou do not have any of this item to redeem! If this is incorrect, please contact the Administrator" + stop + {db_ihs.%player%.%argument%} is not set: + send "&cYou do not have any of this item to redeem! If this is incorrect, please contact the Administrator" + stop + give {db_ihs.%player%.%argument%} of diamond axe named "&a&b&k&a&3Timber Axe" with lore "&6It's going down, I'm||&6yelling timber!|| ||&aUsing this powerful axe||&awill destroy &a&lALL&a logs||&aIn a 10 block radius!|| ||&2StickyItem ©" to player + + {db_ihs.%player%.%argument%} is 1: + send "&aYou have received your &e%{db_ihs.%player%.%argument%}% Timber Axe&a! Thank you for your purchase!" + clear {db_ihs.%player%.%argument%} + stop + {db_ihs.%player%.%argument%} is greater than 1: + send "&aYou have received your &e%{db_ihs.%player%.%argument%}% Timber Axes&a! Thank you for your purchase!" + clear {db_ihs.%player%.%argument%} + stop + send "&cIf you did not have a menu open, ensure you are in the correct world for redeeming! D:" to player diff --git a/Obam-General/liv.sk b/Obam-General/liv.sk index f52d641..e69cd89 100644 --- a/Obam-General/liv.sk +++ b/Obam-General/liv.sk @@ -20,12 +20,7 @@ on chat: broadcast "&6&l'LiV: &3Goodbye :(" set {livon.power} to false -on chat: - {livon.power} is true - message contains "help" and "me": - - wait 1 second - broadcast "&6&l'LiV: &3What can I help you with, %player%?" + on chat: {livon.power} is true @@ -104,41 +99,7 @@ on chat: send "&6&l'LiV: &3%player%, &3Ghost Wars is a minigame Elite is working on." to player stop -on chat: - {livon.power} is true - message contains "how do i get to" or "how do i get 2" or "where is" or "how do i play" : - message contains "parkour" or "parkor" or "parkoure": - wait 1 second - broadcast "&6&l'LiV: &3%player%, you can type &e/pk &3 or &e/parkour &3 to get there :)" - stop - message contains "skyblock" or "sky block": - wait 1 second - broadcast "&6&l'LiV: &3%player%, you can type &e/skyblock &3or &e/sb &3to get there :)" - stop - message contains "hotpotato" or "hot potato" or "hot potatoe" or "potato" or "potatoe": - wait 1 second - broadcast "&6&l'LiV: &3%player%, you can type &e/hp &3or &e/hotpotato &3to get there :)" - stop - message contains "kit" or "kitpvp" or "kit pvp": - wait 1 second - broadcast "&6&l'LiV: &3%player%, you can type &e/kp &3or &e/kitpvp &3to get there :)" - stop - message contains "survival" or "fronts" or "front": - wait 1 second - broadcast "&6&l'LiV: &3%player%, you can type &e/survival &3to get there :)" - stop - message contains "wtf" or "wtfronts": - wait 1 second - broadcast "&6&l'LiV: &3%player%, you can type &e/wtf &3to get there :)" - stop - message contains "hub" or "main": - wait 1 second - broadcast "&6&l'LiV: &3%player%, you can type &e/hub &3to get there :)" - stop - message contains "spawn" or "lobby": - wait 1 second - broadcast "&6&l'LiV: &3%player%, you can type &e/spawn &3to get there :)" - stop + on chat: {livon.power} is true @@ -147,25 +108,6 @@ on chat: broadcast "&6&l'LiV: &3Hello, %player%! How are you? :)" set {response.%player%} to true set {response.%player%.time} to now - -on chat: - {livon.power} is true - {response.%player%} is true - difference between {response.%player%.time} and now is greater than 1 minute: - set {response.%player%} to false - stop - message contains "good" or "well" or "great": - wait 1 second - broadcast "&6&l'LiV: &3That is good to hear. :D" - set {response.%player%} to false - message contains "bad" or "horrible" or "sucky": - wait 1 second - broadcast "&6&l'LiV: &3Oh, well I hope playing here cheers you up. :)" - set {response.%player%} to false - message contains "alright" or "ok" or "meh": - wait 1 second - broadcast "&6&l'LiV: &3Well at least it is not too bad. :)" - set {response.%player%} to false on chat: {livon.power} is true @@ -196,47 +138,13 @@ on chat: set {random.liv.pick} to false wait 1 second broadcast "&6&l'LiV: &3A winner has been chosen! It is &e%{_winner}%&3! Congratulations!" + on chat: {livon.power} is true - message contains "what games" or "how many games" or "kind of games" or "games you got" or "wht games" or "games here" or "can i do here" or "is there to do here": - wait 1 second - broadcast "&6&l'LiV: &3Hello, %player%! We offer &eKit Pvp&3,&eParkour&3, &eSkyblock&3, &eSurvival&3, and &eHot Potato&3 currently. :)" - -on chat: - {livon.power} is true - message contains "do you have" and ("kitpvp" or "pvp"): - wait 1 second - broadcast "&6&l'LiV: &3No %player%, currently we do not. We have &eHot Potato&3 though. And we will add PVP games later. :)" - -#on chat: - #{livon.power} is true - #message contains "has completed" or "is now level": - #wait 1 second - #broadcast "&6&l'LiV: &3Congrats on your achievement!" - -on chat: - {livon.power} is true - message contains "iamkhatru": - wait 1 second - broadcast "&6&l'LiV: &3Her name is Kat >:(" - -on chat: - {livon.power} is true - message contains "many" and "have i killed" and ("skeleton" or "skeletons" or "zombie" or "zombies" or "endermen" or "enderman" or "creeper" or "spider" or "spiders" or "creepers"): - set {question.liv::*} to message parsed as "[liv] how many %text%[s] have i killed[?]" - {question.liv::1} is "endermen": - set {question.liv::1} to "enderman" - send "&6&l'LiV: &3%player%, you have slain &e%{%{question.liv::1}%.kills.%player%}% &3%{question.liv::1}%!" to player - stop + message contains "canada" and "awesome": wait 1 second - send "&6&l'LiV: &3%player%, you have slain &e%{%{question.liv::1}%.kills.%player%}% &3%{question.liv::1}%s!" to player - -#on chat: - #{livon.power} is true - #message contains "canada" and "awesome": - #wait 1 second - #broadcast "&6&l'LiV: &3I dont know what you are saying, but you used 'Canada' and 'awesome' in the same sentence. Who is holding you hostage? We can help you!" + broadcast "&6&l'LiV: &3I dont know what you are saying, but you used 'Canada' and 'awesome' in the same sentence. Who is holding you hostage? We can help you!" on chat: {livon.power} is true @@ -252,58 +160,7 @@ on chat: message contains ("thank you" or "ty" or "thx" or "thanks" or "thnx") and ("liv" or "'liv"): wait 1 second broadcast "&6&l'LiV: &3You're welcome, %player%!" - -on chat: - {livon.power} is true - message contains "who has the best time" or "who got the best time": - wait 1 second - send "&6&l'LiV: &3Let me check that for you!" to player - set {check.liv.%player%::*} to message parsed as "[liv] who (has|got) the best time (on|for) %text%[?]" - wait 1 second - send "&6&l'LiV: &3&e%{besttime.spot1.%{check.liv.%player%::1}%.name}% &3has the best time on &e%{check.liv.%player%::1}% &3with a time of &e%{besttime.spot1.%{check.liv.%player%::1}%}%" to player -on chat: - {livon.power} is true - message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("kit" or "pvp" or "kitpvp"): - wait 1 second - send "&6&l'LiV: &3You can Type /kitpvp or /kp join the Kitpvp games!" to player - -on chat: - {livon.power} is true - message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("parkour" or "pk" or "jumping games"): - wait 1 second - send "&6&l'LiV: &3You can Type /parkour or /pk to join our parkour games!" to player - -on chat: - {livon.power} is true - message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("skyblock" or "skyworld"): - wait 1 second - send "&6&l'LiV: &3You can Type /skyblock or /sk to join our skyblock World!" to player - -on chat: - {livon.power} is true - message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("hot potato" or "hp" or "potato" or "potato game"): - wait 1 second - send "&6&l'LiV: &3You can Type /Hotpotato or /Hp to test your skill at our Hotpotato game" to player - -on chat: - {livon.power} is true - message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("hub" or "spawn" or "game"): - wait 1 second - send "&6&l'LiV: &3You can Type /hub to return to spawn and our other games portals!" to player - -on chat: - {livon.power} is true - message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("front" or "fronts" or "survival"): - wait 1 second - send "&6&l'LiV: &3You can Type /survival to test your skills in the Fronts!" to player - -#on chat: - #message contains "have i completed" or "did i complete": - #wait 1 second - #broadcast "&6&l'LiV: &3Let me check that for you!" - #set {check.liv.%player%::*} to message parsed as "[liv] (did|have) i complete[d] %text% [%text%][?]" - #execute console command "/complete %{check.liv.%player%::1}% %player%" on chat: {livon.power} is true @@ -451,32 +308,7 @@ on chat: send "&6&l'LiV: &3Froze-T." to player wait 1 second send "&6&l'LiV: &3Isn't that funny? :D" to player - - -on chat: - {livon.power} is true - message contains "brb" or "afk": - wait 1 second - set {liv.away.%player%} to true - set {_number} to a random integer between 1 and 6 - {_number} is 1: - broadcast "&6&l'LiV: &3Would not want the enderman to steal your dirt while you are away, %player%!" - stop - {_number} is 2: - broadcast "&6&l'LiV: &3Please dont be too long, %player%!" - stop - {_number} is 3: - broadcast "&6&l'LiV: &3Hope no creepers spawn close while your gone!" - stop - {_number} is 4: - broadcast "&6&l'LiV: &3Hurry Back, %player%!" - stop - {_number} is 5: - broadcast "&6&l'LiV: &3While you are away, %player%, you should remember to vote :D!" - stop - {_number} is 6: - broadcast "&6&l'LiV: &3Please do not forget us, %player%!" - stop + on first join: {livon.power} is true @@ -509,25 +341,7 @@ on chat: wait 1 second send "&6&l'LiV: &3You have &e%player's balance%&3!" to player -on chat: - {livon.power} is true - message contains "please ban": - player is op: - wait 1 second - set {liv.mod::*} to message parsed as "please ban %offline player% %text%" - kick {liv.mod::1} because of {liv.mod::2} - broadcast "&6&l'LiV: &e%{liv.mod::1}% &3has been banned by &e%player% &3because of &e%{liv.mod::2}%" - wait 2 seconds - ban "%{liv.mod::1}%" -on chat: - {livon.power} is true - message contains "please kick": - player is op: - wait 1 second - set {liv.mod::*} to message parsed as "please kick %offline player% %text%" - kick {liv.mod::1} because of {liv.mod::2} - broadcast "&6&l'LiV: &e%{liv.mod::1}% &3has been kicked by &e%player% &3for &e%{liv.mod::2}%" on chat: {livon.power} is true @@ -546,12 +360,7 @@ on chat: broadcast "&6&l'LiV: &3See if I help you again." {_temp} is 6: broadcast "&6&l'LiV: &3Ouch, my feels. D:!" - -on chat: - {livon.power} is true - message is "shush": - wait 1 second - broadcast "&6&l'LiV: &3Oh my %player%, is it time for the quiet game again?" + @@ -629,24 +438,6 @@ on chat: stop send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3times at Rock, Paper, Scissors!" to player -on chat: - {livon.power} is true - message contains "back": - {liv.away.%player%} is true: - wait 1 second - broadcast "&6&l'LiV: &3Welcome back %player%!" - set {liv.away.%player%} to false - -on chat: - {livon.power} is true - message contains "my best time" and ("on" or "for"): - wait 1 second - send "&6&l'LiV: &3Let me check that for you!" to player - set {liv.check.%player%::*} to message parsed as "[liv] what (is|was) my best time (on|for) %text%[?]" - set {liv.name.%player%} to {liv.check.%player%::1} - set {liv.result.%player%} to {besttime.%player%.%{liv.name.%player%}%} - wait 1 second - send "&6&l'LiV: &3Your best time for &e%{liv.name.%player%}% &3is &e%{liv.result.%player%}%&3!" to player command /livgreet : executable by: players @@ -677,27 +468,161 @@ command /livalert []: send "&aYou have added &6&l'LiV: &3%argument 1% &ato the alert system" every 10 minutes: - set {_size} to size of {db_liv.alerts::*} - set {_ran} to a random integer between 1 and {_size} - broadcast "&6&l'LiV: &3%{db_liv.alerts::%{_ran}%}%" - -command /complete : - executable by: console - trigger: - argument 1 is "GettingStoned" or "Getting": - {chal.%player-argument%.stoned} is 1: - wait 1 second - broadcast "&6&l'LiV: &3Yes you have completed &eGettingStoned&3!" - stop - {chal.%player-argument%.stoned} is 0: - wait 1 second - broadcast "&6&l'LiV: &3Sorry, %player-argument% you have not completed &eGettingStoned&3!" - stop + set {_message} to random element of {db_liv.alerts::*} + broadcast "&6&l'LiV: &3%{_message}%" + command /liv : permission: obam.smod trigger: broadcast "&6&l'LiV: &3%uncoloured argument%" + +command /livevent [] [] []: + permission: obam.smod + trigger: + + argument 1 is not set: + send "&e/livevent [EventType (ex.;CreatureCapture [nospaces])] [EventTime from now (eg; 2 hours|24 hours)] [Event Description]" + argument 1 is set: + argument 1 is not "clear": + argument 2 is not set: + send "&cPlease set an event time" + stop + {db_liv.event.set} is set: + send "&cThere is already an event set!" + stop + + set {db_liv.event.set} to true + set {db_liv.event::type} to argument 1 + set {_time} to now + loop argument 2 times: + add 1 hour to {_time} + set {db_liv.event::time} to {_time} + set {db_liv.event::description} to argument 3 + send "&aEvent set to &e%{db_liv.event::type}%&a at &e%{db_liv.event::time}%&a : &e%{db_liv.event::description}%" + + argument 1 is "clear": + clear {db_liv.event.set} + clear {db_liv.event::*} + +on chat: + {livon.power} is true + message is "when is the next event" or "when is the next event?" or "when is the event" or "when is the event?" + {db_liv.event.set} is set + set {_time} to difference between now and {db_liv.event::time} + wait 1 second + broadcast "&6&l'LiV: &3%player%, our next event is &e%{db_liv.event::type}% &3in &e%{_time}%&3. The description for this event is: &e%{db_liv.event::description}%" + +on chat: + {livon.power} is true + message contains "!multiply" + message is "!multiply help": + send "&6&l'LiV: &3To use the multiply feature just type &E!multiply number number&3. I can only do two numbers at a time :(" + message is not "!multiply help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} * {_num2} + send "&6&l'LiV: &3%{_num1}% * %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!divide" + message is "!divide help": + send "&6&l'LiV: &3To use the divide feature just type &E!divide number number&3. I can only do two numbers at a time :(" + message is not "!divide help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} / {_num2} + send "&6&l'LiV: &3%{_num1}% / %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!add" + message is "!add help": + send "&6&l'LiV: &3To use the add feature just type &E!add number number&3. I can only do two numbers at a time :(" + message is not "!add help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} + {_num2} + send "&6&l'LiV: &3%{_num1}% + %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!subtract" + message is "!subtract help": + send "&6&l'LiV: &3To use the subtract feature just type &E!subtract number number&3. I can only do two numbers at a time :(" + message is not "!subtract help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} - {_num2} + send "&6&l'LiV: &3%{_num1}% - %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!exponent" + message is "!exponent help": + send "&6&l'LiV: &3To use the exponent feature just type &E!exponent number number&3. I can only do two numbers at a time :(" + message is not "!exponent help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} ^ {_num2} + send "&6&l'LiV: &3%{_num1}% ^ %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!teamname" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!teamname" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3Your random team name is %{_newname}%!" + +on chat: + message contains "liv" + set {_words::*} to message split at " " + {_words::2} is set + set {db_liv.subjects::%{_words::2}%} to {_words::2} + set {db_liv.articles::%{_words::3}%} to {_words::3} + set {db_liv.adjectives::%{_words::4}%} to {_words::4} + set {db_liv.subjects::%{_words::5}%} to {_words::5} + message contains "?" + set {_subject} to random element of {db_liv.subjects::*} + set {_articles} to random element of {db_liv.articles::*} + set {_adjective} to random element of {db_liv.adjectives::*} + set {_article} to random element of {db_liv.articles::*} + set {_adjectives} to random element of {db_liv.adjectives::*} + broadcast "&6&l'LiV: &3%{_articles}% %{_adjective}% %{_article}% %{_adjectives}% %{_subject}%" + + +on chat: + {livon.power} is true + message contains "!hashtag" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!hashtag" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3This should make a good hashtag ##%{_newname}%!" diff --git a/Obam-Survival/FIXIT.sk b/Obam-Survival/FIXIT.sk index 63b8e42..0366b84 100644 --- a/Obam-Survival/FIXIT.sk +++ b/Obam-Survival/FIXIT.sk @@ -6,6 +6,9 @@ command /fixit: player's tool is not a sword or axe or pickaxe or shovel or bow or helmet or chestplate or leggings or boots: message "&cYou may only repair Armour, Weapons or Tools!" to player stop + lore of player's tool contains "&2StickyItem": + send "&cYou can not use FixIt on StickyItems!" + stop set {_c.tool} to player's tool set {_bal} to player's balance diff --git a/Obam-Survival/access.sk b/Obam-Survival/access.sk new file mode 100644 index 0000000..41c6839 --- /dev/null +++ b/Obam-Survival/access.sk @@ -0,0 +1,122 @@ +on right click on a chest or a door or a anvil or a lever or a button or a wood button or a furnace or a jukebox or a dropper or a hopper or a brewing stand or a dispenser or a beacon or a trapdoor or a fence gate or a trapped chest or a enchantment table or a repeater or a redstone comparator or a ender chest or a note block: + + {bypassland.%player%} is true: + stop + {chunk.live.%chunk at location of event-block%} is not event-player: + {chunk.live.%chunk at location of event-block%.%event-player%} is not set: + loop blocks in radius 2 of event-block: + loop-block is sign + chunk at location of event-block is chunk at location of loop-block + + line 1 of loop-block is "[ACCESS]": + line 2 of loop-block is "%event-player%" or "everyone": + stop + line 4 of loop-block is "%event-player%" or "everyone": + stop + line 3 of loop-block is "%event-player%" or "everyone": + stop + event-block is a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + {flags.%chunk at location of event-block%::container::%player%} is not set: + set {flags.%chunk at location of event-block%::container::%player%} to false + {flags.%chunk at location of event-block%::container::everyone} is not set: + set {flags.%chunk at location of event-block%::container::everyone} to false + {flags.%chunk at location of event-block%::container::everyone} is false: + {flags.%chunk at location of event-block%::container::%player%} is true: + stop + {flags.%chunk at location of event-block%::container::everyone} is true: + stop + + event-block is a door or a anvil or a note block or a lever or a button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater: + {flags.%chunk at location of event-block%::use::everyone} is not set: + set {flags.%chunk at location of event-block%::use::everyone} to false + {flags.%chunk at location of event-block%::use::%player%} is not set: + set {flags.%chunk at location of event-block%::use::%player%} to false + {flags.%chunk at location of event-block%::use::everyone} is false: + {flags.%chunk at location of event-block%::use::%player%} is true: + stop + {flags.%chunk at location of event-block%::use::everyone} is true: + stop + cancel event + send "&cYou do not have permission to do this." to event-player + + + + + cancel event + +on right click on a anvil: + delete event-block + set event-block to anvil + + + + +on sign change: + line 1 of block is "access" or "[access]": + set line 1 of block to "[ACCESS]" + +on bed enter: + {chunk.live.%chunk at location of event-block%} is not event-player: + {chunk.live.%chunk at location of event-player%.%event-player%} is not set: + {flags.%chunk at location of player%::use::everyone} is not set: + set {flags.%chunk at location of player%::use::everyone} to false + {flags.%chunk at location of player%::use::%player%} is not set: + set {flags.%chunk at location of player%::use::%player%} to false + {flags.%chunk at location of player%::use::everyone} is false: + {flags.%chunk at location of player%::use::%player%} is true: + stop + {flags.%chunk at location of player%::use::everyone} is true: + stop + cancel event + send "&cYou can not do that here!" to event-player + + +on right click on painting: + if {bypassland.%player%} is true: + stop + if {chunk.live.%chunk at location of block%} is set: + if {chunk.live.%chunk at location of block%.%player%} is true: + stop + message "&cThis land is owned by %{chunk.live.%chunk at location of block%}%." + cancel event + +on damage of a painting: + if {bypassland.%attacker%} is true: + stop + if {chunk.live.%chunk at location of attacker%} is not attacker: + if {chunk.live.%chunk at location of attacker%.%attacker%} is true: + stop + {flags.%chunk at location of attacker%::build::everyone} is not set: + set {flags.%chunk at location of attacker%::build::everyone} to false + {flags.%chunk at location of attacker%::build::%attacker%} is not set: + set {flags.%chunk at location of attacker%::build::%attacker%} to false + {flags.%chunk at location of attacker%::build::everyone} is false: + {flags.%chunk at location of attacker%::build::%attacker%} is true: + stop + {flags.%chunk at location of attacker%::build::everyone} is true: + stop + message "&cThis land is owned by %{chunk.live.%chunk at location of attacker%}%." + cancel event + +on right click on hopper minecart: + if {bypassland.%player%} is true: + stop + if {chunk.live.%chunk at location of block%} is set: + if {chunk.live.%chunk at location of block%.%player%} is true: + stop + message "&cThis land is owned by %{chunk.live.%chunk at location of block%}%." + cancel event +on right click on storage minecart: + if {bypassland.%player%} is true: + stop + if {chunk.live.%chunk at location of block%} is set: + if {chunk.live.%chunk at location of block%.%player%} is true: + stop + message "&cThis land is owned by %{chunk.live.%chunk at location of block%}%." + cancel event + + + + + + \ No newline at end of file diff --git a/Obam-Survival/flags.sk b/Obam-Survival/flags.sk new file mode 100644 index 0000000..031bdbc --- /dev/null +++ b/Obam-Survival/flags.sk @@ -0,0 +1,386 @@ +options: + build: i;diamond pickaxe;n;&7Build Flag;l;&5Click this icon to open||&5the Build flags menu. Of||&5enable/disable all flags||&5with the button bleow;c;sudo %player% flags buildmenu %{_target}% + admin: i;nether star;n;&7Admin Flag;l;&5Click this icon to open||&5the admin flags menu. Or||&5enable/disable all flags||&5With the button below;c;sudo %player% flags adminmenu %{_target}% + + + + + use: i;stone button;n;&7Use Flag;l;&5Click this icon to open||&5the Use flags menu. Or||&5enable/disable all flags||&5with the button below;c;sudo %player% flags usemenu %{_target}% + usedoor: i;wooden door;n;&7Use - Door;l;&5Click the button below||&5to enable/disable||&5the &eDoor Use&5 flag||&5on this front + useanvil: i;anvil;n;&7Use - Anvil;l;&5Click the button below||&5to enable/disable||&5the &eAnvil Use&5 flag||&5on this front + usenote: i;note block;n;&7Use - Noteblock;l;&5Click the button below||&5to enable/disable||&5the &eNoteblock Use&5flag||&5on this front + usejuke: i;jukebox;n;&7Use - Jukebox;l;&5Click the button below||&5to enable/disable||&5the &eJukebox Use&5 flag||&5on this front + uselever: i;lever;n;&7Use - Lever;l;&5Click the button below||&5to enable/disable||&5the &eLever Use&5 flag||&5on this front + usebutton: i;stone button;n;&7Use - Button;l;&5Click the button below||&5to enable/disable||&5the &eButton Use&5 flag||&5on this front + usewbutton: i;wood button;n;&7Use - Wood Button;l;&5Click the button below||&5to enable/disable||&5the &eWood Button Use&5 flag||&5on this front + usetrap: i;trapdoor;n;&7Use - Trap Door;l;&5Click the button below||&5to enable/disable||&5the &eTrap Door Use&5 flag||&5on this front + usefence: i;fence gate;n;&7Use - Fence Gate;l;&5Click the button below||&5to enable/disable||&5the &eFence Gate Use&5 flag||&5on this front + useenchant: i;enchantment table;n;&7Use - Enchantment Table;l;&5Click the button below||&5to enable/disable||&5the &eEnchant Table Use&5 flag||&5on this front + usecomparator: i;redstone comparator;n;&7Use - Comparator;l;&5Click the button below||&5to enable/disable||&5the &eComparator Use&5 flag||&5on this front + userepeater: i;repeater;n;&7Use - Repeater;l;&5Click the button below||&5to enable/disable||&5the &eRepeater Use&5 flag||&5on this front + + + + container: i;chest;n;&7Container Flag;l;&5Click this icon to open||&5the Container flags menu. Or||&5enable/disable all flags||&5with the button below;c;sudo %player% flags containermenu %{_target}% + + + bucket: i;bucket;n;&7Bucket Flag;l;&5Click this icon to open||&5the Bucket flags menu. Or||&5enable/disable all flags||&5with the button below;c;sudo %player% flags bucketmenu %{_target}% + bucketwater: i;water bucket;n;&7Bucket Flag - Water;l;&5Click the button below||&5to disable/enable||&5the &eWater Bucket&5flag||&5on this front + bucketlava: i;lava bucket;n;&7Bucket Flag - Lava;l;&5Click the button below||&5to disable/enable||&5the &eLava Bucket&5 flag||&5for this front + + + + + teleport: i;portal;n;&7Teleport Flag;l;&5Click this icon to open||&5the Teleport flags menu. Or||&5enable/disable all flags||&5with the button below;c;sudo %player% flags teleportmenu %{_target}% + entity: i;sheep spawn egg;n;&7Entity Flag;l;&5click this icon to open||&5the entity flags menu. Or||&5enable/disable all flags||&5with the button below;c;sudo %player% flags entityment %{_target}% + + + + + + all: i;lever;n;&7All Flags;l;&5Click the button below||&5to disable/enable||&5all flags. If any||&5flag is enabled, it||&5disable all flags + flow: i;water;n;&7Flow;l;&5Click the button below||&5to disable/enable||&5the &eFlow&5 flag on||&5this front + firespread: i;fire;n;&7Firespread;l;&5Click the button below||&5to disable/enable||&5the &eFirespread&5 flag on||&5this front + + + +command /flags [] [] []: + permission: obam.free + trigger: + argument 1 is not set: + execute console command "sudo %player% flags Everyone" + stop + + argument 1 is "front": + + {flags.%chunk at location of player%::flow} is not set: + set {flags.%chunk at location of player%::flow} to true + {flags.%chunk at location of player%::flow} is true: + set {_state.flow} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eFlow&5 flag for this||&5front;c;sudo %player% flags set front flow" + {flags.%chunk at location of player%::flow} is false: + set {_state.flow} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eFlow&5 flag for this||&5front;c;sudo %player% flags set front flow" + {flags.%chunk at location of player%::firespread} is not set: + set {flags.%chunk at location of player%::firespread} to true + {flags.%chunk at location of player%::firespread} is true: + set {_state.firespread} to "i;light green wool;n;&aEnabled;l;&5click to &cDisable||&5the &eFirespread&5 flag for this||&5front;c;sudo %player% flags set front firespread" + {flags.%chunk at location of player%::firespread} is false: + set {_state.firespread} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eFirespread&5 flag for this||&5front;c;sudo %player% flags set front firespread" + send "&aOpening Menu..." + wait 3 ticks + + show "s;1;{@flow};s;2;{@firespread};s;10;%{_state.flow}%;s;11;%{_state.firespread}%" with 3 rows named "&1Fronts Flags" to player + + + stop + + argument 1 is not "list" or "bucketmenu" or "adminmenu" or "usemenu" or "containermenu" or "buildmenu" or "set" or "teleportmenu": + + set {_target} to argument 1 + {flags.%chunk at location of player%::admin::%{_target}%} is not set: + set {flags.%chunk at location of player%::admin::%{_target}%} to false + {flags.%chunk at location of player%::admin::%{_target}%} is true: + set {_state.admin} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&eAdmin&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% admin" + {flags.%chunk at location of player%::admin::%{_target}%} is false: + set {_state.admin} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable&5||&eAdmin&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% admin" + + {flags.%chunk at location of player%::build::%{_target}%} is not set: + set {flags.%chunk at location of player%::build::%{_target}%} to false + {flags.%chunk at location of player%::build::%{_target}%} is true: + set {_state.build} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable&5||&eBuild&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% build" + {flags.%chunk at location of player%::build::%{_target}%} is false: + set {_state.build} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&eBuild&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% build" + + {flags.%chunk at location of player%::use::%{_target}%} is not set: + set {flags.%chunk at location of player%::use::%{_target}%} to false + {flags.%chunk at location of player%::use::%{_target}%} is true: + set {_state.use} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&eUse&5 flag for||&e%{_target}%&5;c;sudo %player% flags set %{_target}% use" + {flags.%chunk at location of player%::use::%{_target}%} is false: + set {_state.use} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable&5||&eUse&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% use" + + {flags.%chunk at location of player%::bucket::%{_target}%} is not set: + set {flags.%chunk at location of player%::bucket::%{_target}%} to false + {flags.%chunk at location of player%::bucket::%{_target}%} is true: + set {_state.bucket} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&eBucket&5 flag for||&e%{_target}%&5;c;sudo %player% flags set %{_target}% bucket" + {flags.%chunk at location of player%::bucket::%{_target}%} is false: + set {_state.bucket} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable&5||&eBucket&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% bucket" + + {flags.%chunk at location of player%::container::%{_target}%} is not set: + set {flags.%chunk at location of player%::container::%{_target}%} to false + {flags.%chunk at location of player%::container::%{_target}%} is true: + set {_state.container} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&eContainer&5 flag for||&e%{_target}%&5;c;sudo %player% flags set %{_target}% container" + {flags.%chunk at location of player%::container::%{_target}%} is false: + set {_state.container} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable&5||&eContainer&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% container" + + {flags.%chunk at location of player%::teleport::%{_target}%} is not set: + set {flags.%chunk at location of player%::teleport::%{_target}%} to false + {flags.%chunk at location of player%::teleport::%{_target}%} is true: + set {_state.teleport} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable&5||&eTeleport&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% teleport" + {flags.%chunk at location of player%::teleport::%{_target}%} is false: + set {_state.teleport} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable&5||&eTeleport&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% teleport" + + {flags.%chunk at location of player%::entity::%{_target}%} is not set: + set {flags.%chunk at location of player%::entity::%{_target}%} to false + {flags.%chunk at location of player%::entity::%{_target}%} is true: + set {_state.entity} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&eEntity&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% entity" + {flags.%chunk at location of player%::entity::%{_target}%} is false: + set {_state.entity} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&eEntity&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% entity" + + {flags.%chunk at location of player%::entity::%{_target}%} is true: + set {_state.all} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&call flags for||&e%{_target}%;c;sudo %player% flags set %{_target}% all" + {flags.%chunk at location of player%::use::%{_target}%} is true: + set {_state.all} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&call flags for||&e%{_target}%;c;sudo %player% flags set %{_target}% all" + {flags.%chunk at location of player%::container::%{_target}%} is true: + set {_state.all} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&call flags for||&e%{_target}%;c;sudo %player% flags set %{_target}% all" + {flags.%chunk at location of player%::teleport::%{_target}%} is true: + set {_state.all} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&call flags for||&e%{_target}%;c;sudo %player% flags set %{_target}% all" + {flags.%chunk at location of player%::build::%{_target}%} is true: + set {_state.all} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&call flags for||&e%{_target}%;c;sudo %player% flags set %{_target}% all" + {flags.%chunk at location of player%::admin::%{_target}%} is true: + set {_state.all} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&call flags for||&e%{_target}%;c;sudo %player% flags set %{_target}% all" + {flags.%chunk at location of player%::bucket::%{_target}%} is true: + set {_state.all} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&call flags for||&e%{_target}%;c;sudo %player% flags set %{_target}% all" + {_state.all} is not set: + set {_state.all} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&aall flags for||&e%{_target}%;c;sudo %player% flags set %{_target}% all" + + send "&aOpening Menu..." + wait 3 ticks + show "s;1;{@admin};s;2;{@build};s;3;{@use};s;4;{@container};s;5;{@bucket};s;6;{@teleport};s;7;{@entity};s;8;{@all};s;10;%{_state.admin}%;s;11;%{_state.build}%;s;12;%{_state.use}%;s;13;%{_state.container}%;s;14;%{_state.bucket}%;s;15;%{_state.teleport}%;s;16;%{_state.entity}%;s;17;%{_state.all}%" with 3 rows named "&1Flags :: %{_target}%" to player + stop + + argument 1 is "set": + {chunk.live.%chunk at location of player%} is not player: + {flags.%chunk at location of player%::admin::%player%} is not set: + set {flags.%chunk at location of player%::admin::%player%} to false + {flags.%chunk at location of player%::admin::%player%} is false: + send "&cYou do not have permission to do this!" + stop + + argument 2 is "front": + {chunk.live.%chunk at location of player%} is not set: + send "&cYou do not have permission to do this!" + stop + {chunk.live.%chunk at location of player%} is not player: + {flags.%chunk at location of player%::admin::%player%} is not set: + set {flags.%chunk at location of player%::admin::%player%} to false + {flags.%chunk at location of player%::admin::%player%} is false: + send "&cYou do not have permission to do this!" + stop + {flags.%chunk at location of player%::%argument 3%} is true: + set {flags.%chunk at location of player%::%argument 3%} to false + send "&cYou have disabled the &e%argument 3%&c flag on this &eFront" + + stop + {flags.%chunk at location of player%::%argument 3%} is false: + set {flags.%chunk at location of player%::%argument 3%} to true + send "&aYou have enabled the &e%argument 3%&a flag on this &eFront" + + stop + argument 3 is "all": + set {_target} to argument 2 + {flags.%chunk at location of player%::entity::%{_target}%} is true: + set {_clear} to true + {flags.%chunk at location of player%::use::%{_target}%} is true: + set {_clear} to true + {flags.%chunk at location of player%::container::%{_target}%} is true: + set {_clear} to true + {flags.%chunk at location of player%::teleport::%{_target}%} is true: + set {_clear} to true + {flags.%chunk at location of player%::build::%{_target}%} is true: + set {_clear} to true + {flags.%chunk at location of player%::admin::%{_target}%} is true: + set {_clear} to true + {flags.%chunk at location of player%::bucket::%{_target}%} is true: + set {_clear} to true + + {_clear} is set: + set {flags.%chunk at location of player%::entity::%{_target}%} to false + + set {flags.%chunk at location of player%::use::%{_target}%} to false + + set {flags.%chunk at location of player%::container::%{_target}%} to false + + set {flags.%chunk at location of player%::teleport::%{_target}%} to false + + set {flags.%chunk at location of player%::build::%{_target}%} to false + + set {flags.%chunk at location of player%::admin::%{_target}%} to false + + set {flags.%chunk at location of player%::bucket::%{_target}%} to false + send "&cYou have disabled &eAll&c flags for &e%{_target}%" + + stop + {_clear} is not set: + set {flags.%chunk at location of player%::entity::%{_target}%} to true + + set {flags.%chunk at location of player%::use::%{_target}%} to true + + set {flags.%chunk at location of player%::container::%{_target}%} to true + + set {flags.%chunk at location of player%::teleport::%{_target}%} to true + + set {flags.%chunk at location of player%::build::%{_target}%} to true + + set {flags.%chunk at location of player%::admin::%{_target}%} to true + + set {flags.%chunk at location of player%::bucket::%{_target}%} to true + send "&aYou have enabled &eAll&a flags for &e%{_target}%" + stop + + + + + {flags.%chunk at location of player%::%argument 3%::%argument 2%} is false: + set {flags.%chunk at location of player%::%argument 3%::%argument 2%} to true + send "&aEnabled &e%argument 3%&a flag for &e%argument 2%" + + stop + {flags.%chunk at location of player%::%argument 3%::%argument 2%} is true: + set {flags.%chunk at location of player%::%argument 3%::%argument 2%} to false + send "&cDisabled &e%argument 3%&c flag for &e%argument 2%" + + stop + + + argument 1 is "bucketmenu": + set {_target} to argument 2 + + {flags.%chunk at location of player%::bucketwater::%{_target}%} is not set: + set {flags.%chunk at location of player%::bucketwater::%{_target}%} to false + {flags.%chunk at location of player%::bucketwater::%{_target}%} is true: + set {_state.bucketwater} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eWater Bucket&5 flag for this||&5front;c;sudo %player% flags set %{_target}% bucketwater" + {flags.%chunk at location of player%::bucketwater::%{_target}%} is false: + set {_state.bucketwater} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eWater Bucket&5 flag for this||&5front;c;sudo %player% flags set %{_target}% bucketwater" + + {flags.%chunk at location of player%::bucketlava::%{_target}%} is not set: + set {flags.%chunk at location of player%::bucketlava::%{_target}%} to false + {flags.%chunk at location of player%::bucketlava::%{_target}%} is true: + set {_state.bucketlava} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eLava Bucket&5 flag for this||&5front;c;sudo %player% flags set %{_target}% bucketlava" + {flags.%chunk at location of player%::bucketlava::%{_target}%} is false: + set {_state.bucketlava} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eLava Bucket&5 flag for this||&5front;c;sudo %player% flags set %{_target}% bucketlava" + + + + send "&aOpening menu..." + wait 0.3 seconds + show "s;1;{@bucketwater};s;10;%{_state.bucketwater}%;s;2;{@bucketlava};s;11;%{_state.bucketlava}%" with 3 rows named "&1Bucket :: %{_target}%" to player + stop + + + argument 1 is "usemenu": + + set {_target} to argument 2 + + + {flags.%chunk at location of player%::usedoor::%{_target}%} is not set: + set {flags.%chunk at location of player%::usedoor::%{_target}%} to false + {flags.%chunk at location of player%::usedoor::%{_target}%} is false: + set {_state.usedoor} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eDoor Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% usedoor" + {flags.%chunk at location of player%::usedoor::%{_target}%} is true: + set {_state.usedoor} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eDoor Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% usedoor" + + {flags.%chunk at location of player%::useanvil::%{_target}%} is not set: + set {flags.%chunk at location of player%::useanvil::%{_target}%} to false + {flags.%chunk at location of player%::useanvil::%{_target}%} is false: + set {_state.useanvil} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eanvil Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% useanvil" + {flags.%chunk at location of player%::useanvil::%{_target}%} is true: + set {_state.useanvil} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eanvil Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% useanvil" + + {flags.%chunk at location of player%::useNoteblock::%{_target}%} is not set: + set {flags.%chunk at location of player%::useNoteblock::%{_target}%} to false + {flags.%chunk at location of player%::useNoteblock::%{_target}%} is false: + set {_state.useNoteblock} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eNoteblock Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% useNoteblock" + {flags.%chunk at location of player%::useNoteblock::%{_target}%} is true: + set {_state.useNoteblock} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eNoteblock Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% useNoteblock" + + {flags.%chunk at location of player%::useJukebox::%{_target}%} is not set: + set {flags.%chunk at location of player%::useJukebox::%{_target}%} to false + {flags.%chunk at location of player%::useJukebox::%{_target}%} is false: + set {_state.useJukebox} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eJukebox Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% useJukebox" + {flags.%chunk at location of player%::useJukebox::%{_target}%} is true: + set {_state.useJukebox} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eJukebox Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% useJukebox" + + {flags.%chunk at location of player%::useLever::%{_target}%} is not set: + set {flags.%chunk at location of player%::useLever::%{_target}%} to false + {flags.%chunk at location of player%::useLever::%{_target}%} is false: + set {_state.useLever} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eLever Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% useLever" + {flags.%chunk at location of player%::useLever::%{_target}%} is true: + set {_state.useLever} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eLever Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% useLever" + + {flags.%chunk at location of player%::useButton::%{_target}%} is not set: + set {flags.%chunk at location of player%::useButton::%{_target}%} to false + {flags.%chunk at location of player%::useButton::%{_target}%} is false: + set {_state.useButton} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eButton Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% useButton" + {flags.%chunk at location of player%::useButton::%{_target}%} is true: + set {_state.useButton} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eButton Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% useButton" + + + {flags.%chunk at location of player%::usewbutton::%{_target}%} is not set: + set {flags.%chunk at location of player%::usewbutton::%{_target}%} to false + {flags.%chunk at location of player%::usewbutton::%{_target}%} is false: + set {_state.usewbutton} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eWood Button Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% usewbutton" + {flags.%chunk at location of player%::usewbutton::%{_target}%} is true: + set {_state.usewbutton} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eWood Button Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% usewbutton" + + {flags.%chunk at location of player%::usetrap::%{_target}%} is not set: + set {flags.%chunk at location of player%::usetrap::%{_target}%} to false + {flags.%chunk at location of player%::usetrap::%{_target}%} is false: + set {_state.usetrap} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eTrap Door Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% usetrap" + {flags.%chunk at location of player%::usetrap::%{_target}%} is true: + set {_state.usetrap} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eTrap Door Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% usetrap" + + {flags.%chunk at location of player%::usefence::%{_target}%} is not set: + set {flags.%chunk at location of player%::usefence::%{_target}%} to false + {flags.%chunk at location of player%::usefence::%{_target}%} is false: + set {_state.usefence} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eFence Gate Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% usefence" + {flags.%chunk at location of player%::usefence::%{_target}%} is true: + set {_state.usefence} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eFence Gate Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% usefence" + + {flags.%chunk at location of player%::useenchant::%{_target}%} is not set: + set {flags.%chunk at location of player%::useenchant::%{_target}%} to false + {flags.%chunk at location of player%::useenchant::%{_target}%} is false: + set {_state.useenchant} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eEnchant Table Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% useenchant" + {flags.%chunk at location of player%::useenchant::%{_target}%} is true: + set {_state.useenchant} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eEnchant Table Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% useenchant" + + {flags.%chunk at location of player%::usecomparator::%{_target}%} is not set: + set {flags.%chunk at location of player%::usecomparator::%{_target}%} to false + {flags.%chunk at location of player%::usecomparator::%{_target}%} is false: + set {_state.usecomparator} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eComparator Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% usecomparator" + {flags.%chunk at location of player%::usecomparator::%{_target}%} is true: + set {_state.usecomparator} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eComparator Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% usecomparator" + + {flags.%chunk at location of player%::userepeater::%{_target}%} is not set: + set {flags.%chunk at location of player%::userepeater::%{_target}%} to false + {flags.%chunk at location of player%::userepeater::%{_target}%} is false: + set {_state.userepeater} to "i;red wool;n;&cDisabled;l;&5Click to &aEnable||&5the &eDoor Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% userepeater" + {flags.%chunk at location of player%::userepeater::%{_target}%} is true: + set {_state.userepeater} to "i;light green wool;n;&aEnabled;l;&5Click to &cDisable||&5the &eDoor Use&5 flag for||&e%{_target}%;c;sudo %player% flags set %{_target}% userepeater" + + send "&aOpening Menu..." + wait 0.3 seconds + + show "s;1;{@usedoor};s;10;%{_state.usedoor}%;s;2;{@useanvil};s;11;%{_state.useanvil}%;s;3;{@usenote};s;12;%{_state.usenoteblock}%;s;4;{@usejuke};s;13;%{_state.usejukebox}%;s;5;{@uselever};s;14;%{_state.uselever}%;s;6;{@usebutton};s;15;%{_state.usebutton}%;s;7;{@usewbutton};s;16;%{_state.usewbutton}%;s;8;{@usefence};s;17;%{_state.usefence}%;s;9;{@usetrap};s;18;%{_state.usetrap}%;s;19;{@useenchant};s;28;%{_state.useenchant}%;s;20;{@usecomparator};s;29;%{_state.usecomparator}%;s;21;{@userepeater};s;30;%{_state.userepeater}%" with 5 rows named "&1Use :: %{_target}%" to player + stop + + + argument 1 is "adminmenu" or "buildmenu" or "containermenu" or "teleportmenu" or "entitymenu": + send "&c&lThis feature is being worked on and will be here soon!" + stop + + argument 1 is "list": + argument 2 is not set: + send "&cPlease specify a flag" + stop + send "&aActive users for &e%argument 2% &aflag:" + loop {flags.%chunk at location of player%::%argument 2%::*}: + loop-value is true + send "&a%loop-index%" + stop + send "&cPlease check your command and try again" + + +command /forceadmin: + permission: obam.smod + trigger: + set {flags.%chunk at location of player%::admin::%player%} to true + send "&aYou now have the admin flag for this chunk owned by &e%{chunk.live.%chunk at location of player%}%&a." \ No newline at end of file diff --git a/Obam-Survival/flow.sk b/Obam-Survival/flow.sk new file mode 100644 index 0000000..9444fa7 --- /dev/null +++ b/Obam-Survival/flow.sk @@ -0,0 +1,21 @@ +on flow: + {flags.%chunk at event-location%::flow} is set: + {flags.%chunk at event-location%::flow} is false: + cancel event + {flags.%chunk at event-location%::flow} is true: + stop + +on ignition: + {flags.%chunk at event-location%::firespread} is set: + {flags.%chunk at event-location%::firespread} is false: + cancel event + {flags.%chunk at event-location%::firespread} is true: + stop + +on burn: + {flags.%chunk at event-location%::firespread} is set: + + {flags.%chunk at event-location%::firespread} is false: + cancel event + {flags.%chunk at event-location%::firespread} is true: + stop \ No newline at end of file diff --git a/Obam-Survival/fma.sk b/Obam-Survival/fma.sk new file mode 100644 index 0000000..58b20b7 --- /dev/null +++ b/Obam-Survival/fma.sk @@ -0,0 +1,815 @@ + +on script load: + {hostilemobs::creeper} is set: + delete {hostilemobs::creeper} + {hostilemobs::spider} is not set: + set {hostilemobs::spider} to spider + {hostilemobs::zombie} is not set: + set {hostilemobs::zombie} to zombie + {hostilemobs::skeleton} is not set: + set {hostilemobs::skeleton} to skeleton + {hostilemobs::slime} is not set: + set {hostilemobs::slime} to slime + {hostilemobs::zombiepigman} is not set: + set {hostilemobs::zombiepigman} to zombie pigman + {hostilemobs::cavespider} is not set: + set {hostilemobs::cavespider} to cave spider + {hostilemobs::silverfish} is not set: + set {hostilemobs::silverfish} to silverfish + {hostilemobs::blaze} is not set: + set {hostilemobs::blaze} to blaze + {hostilemobs::magmacube} is not set: + set {hostilemobs::magmacube} to magma cube + {hostilemobs::witch} is not set: + set {hostilemobs::witch} to witch + {hostilemobs::witherskeleton} is not set: + set {hostilemobs::witherskeleton} to wither skeleton + {hostilemobsproper::creeper} is set: + delete {hostilemobsproper::creeper} + {hostilemobsproper::spider} is not set: + set {hostilemobsproper::spider} to spider + {hostilemobsproper::zombie} is not set: + set {hostilemobsproper::zombie} to zombie + {hostilemobsproper::skeleton} is not set: + set {hostilemobsproper::skeleton} to skeleton + {hostilemobsproper::slime} is not set: + set {hostilemobsproper::slime} to slime + {hostilemobsproper::zombiepigman} is not set: + set {hostilemobsproper::zombiepigman} to zombie pigman + {hostilemobsproper::cavespider} is not set: + set {hostilemobsproper::cavespider} to cave spider + {hostilemobsproper::silverfish} is not set: + set {hostilemobsproper::silverfish} to silverfish + {hostilemobsproper::blaze} is not set: + set {hostilemobsproper::blaze} to blaze + {hostilemobsproper::magmacube} is not set: + set {hostilemobsproper::magmacube} to magma cube + {hostilemobsproper::witch} is not set: + set {hostilemobsproper::witch} to witch + {hostilemobsproper::witherskeleton} is not set: + set {hostilemobsproper::witherskeleton} to wither skeleton + {hostilemobsproper::wither} is set: + delete {hostilemobsproper::wither} + {hostilemobsproper::ghast} is not set: + set {hostilemobsproper::ghast} to ghast + +command /spawntoggle: + permission: obam.smod + trigger: + {spawn.mobarena} is not set: + set {spawn.mobarena} to false + send "&aNatural Spawns are now off in the &eMob Arena" + stop + {spawn.mobarena} is true: + set {spawn.mobarena} to false + send "&aNatural Spawns are now off in the &eMob Arena" + stop + {spawn.mobarena} is false: + set {spawn.mobarena} to true + send "&aNatural Spawns are now on in the &eMob Arena" + stop +on burn of coal block: + {chunk.live.%chunk at location of block%} is "MobArena-BattleFloor": + cancel event + +command /fmaspawn [] []: + permission: obam.smod + trigger: + argument 1 is "random": + argument 2 is "random": + argument 3 is "random": + set {_ran} to a random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + set {_ranmob} to random element of {hostilemobs::*} + set {_ranname} to random element of {rannames::*} + + spawn {_ranmob} at location of player + + set display name of spawned entity to "&c%{_ranname}%" + set {spawncheck.ok} to false + + stop + + argument 3 is set: + loop {rannames::*}: + argument 3 is loop-value + set {_found} to true + {_found} is not set: + add argument 3 to {rannames::*} + + set {_ran} to a random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at location of player + set display name of spawned entity to "&c%argument 3%" + set {spawncheck.ok} to false + stop + + argument 3 is not set: + set {_ran} to random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + set {_ranmob} to random element of {hostilemobs::*} + + spawn {_ranmob} at location of player + set {spawncheck.ok} to false + stop + argument 2 is not "random": + argument 2 is set + + set {_amount} to argument 2 parsed as number + {_amount} is not set: + parse error is set: + send "&c%last parse error%" + stop + + argument 3 is "random": + set {spawncheck.ok} to true + loop {_amount} times: + set {_ranmob} to random element of {hostilemobs::*} + set {_ranname} to random element of {rannames::*} + spawn {_ranmob} at location of player + set display name of spawned entity to "&c%{_ranname}%" + set {spawncheck.ok} to false + + stop + + argument 3 is set: + loop {rannames::*}: + argument 3 is loop-value + set {_found} to true + {_found} is not set: + add argument 3 to {rannames::*} + + set {spawncheck.ok} to true + loop {_amount} times: + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at location of player + set display name of spawned entity to "&c%argument 3%" + set {spawncheck.ok} to false + stop + + argument 3 is not set: + set {spawncheck.ok} to true + loop {_amount} times: + set {_ranmob} to random element of {hostilemobs::*} + + spawn {_ranmob} at location of player + set {spawncheck.ok} to false + stop + + + argument 1 is not "random": + argument 1 is set + {hostilemobsproper::%argument 1%} is not set: + send "&cThat is not a valid mob!" + stop + + set {_mob} to {hostilemobsproper::%argument 1%} + argument 3 is not set: + argument 2 is not set: + set {spawncheck.ok} to true + spawn {_mob} at location of player + set {spawncheck.ok} to false + + + + argument 2 is "random": + argument 3 is "random": + set {_ran} to a random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + set {_ranname} to random element of {rannames::*} + + spawn {_mob} at location of player + + set display name of spawned entity to "&c%{_ranname}%" + set {spawncheck.ok} to false + + stop + + argument 3 is set: + loop {rannames::*}: + argument 3 is loop-value + set {_found} to true + {_found} is not set: + add argument 3 to {rannames::*} + + set {_ran} to a random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + spawn {_mob} at location of player + set display name of spawned entity to "&c%argument 3%" + set {spawncheck.ok} to false + stop + + argument 3 is not set: + set {_ran} to random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + + + spawn {_mob} at location of player + set {spawncheck.ok} to false + stop + argument 2 is not "random": + argument 2 is set + + set {_amount} to argument 2 parsed as number + {_amount} is not set: + parse error is set: + send "&c%last parse error%" + stop + + argument 3 is "random": + set {spawncheck.ok} to true + loop {_amount} times: + set {_ranname} to random element of {rannames::*} + spawn {_mob} at location of player + set display name of spawned entity to "&c%{_ranname}%" + set {spawncheck.ok} to false + + stop + + argument 3 is set: + loop {rannames::*}: + argument 3 is loop-value + set {_found} to true + {_found} is not set: + add argument 3 to {rannames::*} + + set {spawncheck.ok} to true + loop {_amount} times: + spawn {_mob} at location of player + set display name of spawned entity to "&c%argument 3%" + set {spawncheck.ok} to false + stop + + argument 3 is not set: + set {spawncheck.ok} to true + loop {_amount} times: + + spawn {_mob} at location of player + set {spawncheck.ok} to false + stop +command /nameadd []: + permission: obam.smod + trigger: + argument 1 is "list": + loop {rannames::*}: + send "%loop-value%" + stop + argument 1 is "delete": + argument 2 is not set: + send "&cYou must specify what to delete!" + stop + loop {rannames::*}: + loop-value is argument 2 + delete {rannames::%loop-index%} + send "&cDeleted &e%argument 2%" + stop + add argument 1 to {rannames::*} + send "&e%argument 1% &aadded" +command /doorset: + permission: obam.admin + trigger: + add location of targeted block to {fma.doors::*} + send "&aBlock added" + +command /fmaclose: + permission: obam.mod + trigger: + loop {fma.doors::*}: + set {_loc} to loop-value + set block at loop-value to locked chest:15 + send "&aDoors closed" + +command /fmaopen: + permission: obam.mod + trigger: + loop {fma.doors::*}: + set {_loc} to loop-value + set block at loop-value to air + send "&aDoors opened" +on spawn: + set {_chunk} to chunk at event-location + set {_chunk.owner} to {chunk.live.%{_chunk}%} + {_chunk.owner} is "MobArena-Arena" or "MobArena-Spawn" or "MobArena-BattleFloor" or "MobArena-Winner" or "MobArena-Twerk": + {spawn.mobarena} is false: + {spawncheck.ok} is not set: + set {spawncheck.ok} to false + {spawncheck.ok} is false + cancel event + +command /corneradd [] []: + permission: obam.admin + trigger: + argument 1 is not set: + add location of player to {fma.corners::*} + send "&aCorner added" + argument 1 is "clear": + clear {fma.corners::*} +command /fmacampers: + permission: obam.smod + trigger: + set {spawncheck.ok} to true + loop {fma.corners::*}: + set {_loc} to loop-value + set {_ran} to random integer between 1 and 30 + loop {_ran} times: + set {_ranname} to random element of {rannames::*} + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at {_loc} + set display name of spawned entity to "&c%{_ranname}%" + wait 1 second + set {spawncheck.ok} to false + +command /entitycheck: + permission: obam.free + trigger: + send "%type of target entity%" + +command /winnerchestadd: + permission: obam.admin + trigger: + set {_size} to size of {winner.chests::*} + set {_size} to {_size} + 1 + set {winner.chests::%{_size}%} to targeted block + + +on death: + {chunk.live.%chunk at location of victim%} is "MobArena-BattleFloor" + + loop drops: + set {_chest} to {winner.chests::1} + while {_chest} doesn't have space for loop-item: + {_count} is not set: + set {_count} to 1 + add 1 to {_count} + set {_chest} to {winner.chests::%{_count}%} + {_count} is 21: + remove loop-item from drops + add loop-item to {_chest} + remove loop-item from drops + +on target: + {chunk.live.%chunk at location of event-entity%} is "MobArena-BattleFloor": + {chunk.live.%chunk at location of target%} is not "MobArena-BattleFloor": + cancel event + +on right click with ender pearl: + {chunk.live.%chunk at location of player%} is "MobArena-BattleFloor" or "MobArena-Spawn" or "MobArena-Arena" or "MobArena-Winner" or "MobArea-Twerk": + cancel event + send "&cYou can not do that here" + +command /fma: + permission: obam.free + trigger: + make player execute command "f t FMA-Spawn mobarena-spawn" + +on drop: + {chunk.live.%chunk at event-location%} is "MobArena-BattleFloor" + set {_chest} to {winner.chests::1} + while {_chest} doesn't have space for item: + {_count} is not set: + set {_count} to 1 + add 1 to {_count} + set {_chest} to {winner.chests::%{_count}%} + {_count} is 21: + cancel event + remove item from player + add item to {_chest} + delete item + +on xp spawn: + {chunk.live.%chunk at event-location%} is "MobArena-BattleFloor" + cancel event + +command /special : + permission: obam.smod + trigger: + argument is "add": + add location of targeted block to {fma.special::*} + send "&aBlock Added" + stop + argument is "lava": + loop {fma.special::*}: + set block at loop-value to lava + + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + argument is "ice": + loop {fma.special::*}: + set block at loop-value to ice + + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + argument is "water": + loop {fma.special::*}: + set block at loop-value to water + + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + + argument is "soulsand": + loop {fma.special::*}: + set block at loop-value to soul sand + + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + + argument is "cobweb": + loop {fma.special::*}: + set block at loop-value to cobweb + + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + + argument is "music": + loop all players: + {chunk.live.%chunk at location of loop-player%} is "MobArena-BattleFloor": + send "&aComposition..." to loop-player + loop {fma.special::*}: + set block at loop-value to note block + wait 24 seconds + loop all players: + {chunk.live.%chunk at location of loop-player%} is "MobArena-BattleFloor": + send "&aMusic Begin..." to loop-player + loop {fma.special::*}: + set block above block above loop-value to locked chest:15 + loop 150 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 2 ticks + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + set block below loop-value to air + set block above block above loop-value to air + + argument is "lever": + loop {fma.special::*}: + set block at loop-value to redstone lamp + set block above loop-value to lever + wait 15 seconds + loop {fma.special::*}: + set block at loop-value to coal block + set block above loop-value to air + + argument is "stack": + loop {fma.special::*}: + set block above loop-value to redstone block + wait 1 tick + wait 1 second + loop {fma.special::*}: + set block above block above loop-value to redstone lamp + wait 1 tick + + wait 3 seconds + loop {fma.special::*}: + set block above block above loop-value to lava + wait 0.5 seconds + loop {fma.special::*}: + set block above block above loop-value to redstone lamp + loop {fma.special::*}: + set block above loop-value to air + wait 1 tick + wait 1 seconds + loop {fma.special::*}: + set block above block above loop-value to air + wait 1 tick + argument is "dance": + loop {fma.special::*}: + set block at loop-value to redstone lamp + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + set block at loop-value to coal block + + +on drop: + {chunk.live.%chunk at location of player%} is "MobArena-Winner": + set {_ran} to random element of {twerk.drop::*} + drop item at block below {_ran} + delete item + +command /twerkadd: + permission: obam.admin + trigger: + add location of targeted block to {twerk.drop::*} + send "&aBlock added" + +command /specialtestsword: + permission: obam.admin + trigger: + give diamond sword named "&cSpecial Test Sword" to player + +on damage: + attacker's tool is diamond sword named "&cSpecial Test Sword": + attacker has permission "obam.admin": + {chunk.live.%chunk at location of attacker%} is "MobArena-BattleFloor": + loop all entities: + {chunk.live.%chunk at location of loop-entity%} is "MobArena-BattleFloor": + loop-entity is not a player + kill loop-entity + +on sign change: + player is op + line 1 of block is "fmahelm": + set line 2 of block to "FMA Helmet" + set line 1 of block to "Click to get" + set line 3 of block to "500 Tickets" + line 1 of block is "fmachest": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Chestplate" + set line 3 of block to "500 Tickets" + line 1 of block is "fmapants": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Leggings" + set line 3 of block to "500 Tickets" + line 1 of block is "fmaboots": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Boots" + set line 3 of block to "500 Tickets" + line 1 of block is "fmasword": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Sword" + set line 3 of block to "500 Tickets" + line 1 of block is "fmabow": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Bow" + set line 3 of block to "500 Tickets" + line 1 of block is "fmaarrows": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Arrows" + set line 3 of block to "(150)" + set line 4 of block to "500 Tickets" + line 2 of block is "fmafood": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Apples" + set line 3 of block to "(150)" + set line 4 of block to "500 Tickets" + +on right click on sign: + line 1 of block is "Click to get": + set {_bal} to player's balance + {_bal} is less than 500: + send "&cYou do not have enough Tickets!" + stop + player doesn't have space for sponge: + send "&aYou do not have room!" + stop + line 2 of block is "FMA Helmet": + give player diamond helmet of protection 3 and unbreaking 3 named "&7FMA Helmet" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Helmet" + line 2 of block is "FMA Chestplate": + give player diamond chestplate of protection 3 and unbreaking 3 named "&7FMA Chestplate" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Chestplate" + line 2 of block is "FMA Leggings": + give player diamond leggings of protection 3 and unbreaking 3 named "&7FMA Leggings" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Leggings" + line 2 of block is "FMA Boots": + give player diamond boots of protection 3 and unbreaking 3 named "&7FMA Boots" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Boots" + line 2 of block is "FMA Sword": + give player diamond sword of knockback 1 and unbreaking 3 and sharpness 2 named "&7FMA Sword" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &EFMA Sword" + line 2 of block is "FMA Bow": + give player bow of punch 2 and power 3 and unbreaking 1 named "&7FMA Bow" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Bow" + line 2 of block is "FMA Arrows": + give player 150 arrows named "&7FMA Arrow" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Arrows" + line 2 of block is "FMA Apples": + give player 150 apples named "&7FMA Apple" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Apples" + + diff --git a/Obam-Survival/landclaim.sk b/Obam-Survival/landclaim.sk index 4da3ee0..2c5ecd8 100644 --- a/Obam-Survival/landclaim.sk +++ b/Obam-Survival/landclaim.sk @@ -182,40 +182,16 @@ command /front [] [] []: clear {chunk.live.%chunk at location of player%} clear {chunk.name.%chunk at location of player%} delete {loc.chunks.%player%::%chunk at location of player%} + loop {flags.%chunk at location of player%::*}: + loop {flags.%chunk at location of player%::%loop-index%::*}: + delete {flags.%chunk at location of player%::%loop-index-1%::%loop-index-2%} + delete {flags.%chunk at location of player%::%loop-index%} + loop {owned.chunks.%player%::*}: chunk at location of player is {owned.chunks.%player%::%loop-index%} delete {owned.chunks.%player%::%loop-index%} message "&6You have unclaimed this Front." stop - #subfold @add - argument 1 is "add" or "a": - if argument 2 is not set: - make player execute command "land error" - stop - if {chunk.live.%chunk at location of player%} is not set: - message "&cThis land has not been claimed." - stop - if {chunk.live.%chunk at location of player%} is not name of player: - message "&cYou do not own this land." - stop - if {played.%argument 2%} is not set: - message "&cThis player does not exist." - stop - if {chunk.live.%chunk at location of player%} is argument 2: - message "&cYou can not add yourself to your own land." - stop - set {_playersearch} to 0 - loop 10000 times: - if {land.live.%chunk at location of player%::%{_playersearch}%} is argument 2: - message "&cThis player is already a member of this land." - stop - else: - add 1 to {_playersearch} - if {_playersearch} is 10000: - message "&6%argument 2% can now build in this Front." - add "%argument 2%" to {land.live.%chunk at location of player%::*} - set {chunk.live.%chunk at location of player%.%argument 2%} to true - stop #subfold @remove argument 1 is "remove" or "r": if argument 2 is not set: @@ -259,8 +235,14 @@ command /front [] [] []: message "&cThis land has not been claimed." stop if {chunk.live.%chunk at location of player%} is not name of player: - message "&cThis is not your land!" - stop + {flags.%chunk at location of player%::admin::everyone} is not set: + set {flags.%chunk at location of player%::admin::everyone} to false + {flags.%chunk at location of player%::admin::%player%} is not set: + set {flags.%chunk at location of player%::admin::%player%} to false + {flags.%chunk at location of player%::admin::everyone} is false: + {flags.%chunk at location of player%::admin::%player%} is false: + send "&cYou do not have permission to do this!" + stop argument 2 is "set": send "&cThat is an invalid name!" to player stop @@ -322,8 +304,14 @@ command /front [] [] []: if {chunk.live.%chunk at location of player%} is not name of player: {chunk.live.%chunk at location of player%} is not "Town": {chunk.live.%chunk at location of player%.%player%} is not set: - message "&cYou can only do this in &eTown&c, or on your land!" - stop + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%player%} is not set: + set {flags.%chunk at location of player%::teleport::%player%} to false + {flags.%chunk at location of player%::teleport::%player%} is false: + message "&cYou can only do this in &eTown&c, or on your land!" + stop loop {loc.chunks.%player%::*}: set {_loc} to loop-value set {_chunk} to chunk at location of {_loc} @@ -341,16 +329,28 @@ command /front [] [] []: if {chunk.live.%chunk at location of player%} is not name of player: {chunk.live.%chunk at location of player%} is not "Town": {chunk.live.%chunk at location of player%.%player%} is not set: - message "&cYou can only do this in &eTown&c, or on your land!" - stop + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%player%} is not set: + set {flags.%chunk at location of player%::teleport::%player%} to false + {flags.%chunk at location of player%::teleport::%player%} is false: + message "&cYou can only do this in &eTown&c, or on your land!" + stop loop {loc.chunks.%argument 3%::*}: set {_loc} to loop-value set {_chunk} to chunk at location of {_loc} set {_chunk.name} to {chunk.name.%{_chunk}%} {_chunk.name} is argument 2: {chunk.live.%{_chunk}%.%player%} is not set: - send "&cYou do not have permission to go here!" to player - stop + {flags.%{_chunk}%::teleport::everyone} is not set: + set {flags.%{_chunk}%::teleport::everyone} to false + {flags.%{_chunk}%::teleport::%player%} is not set: + set {flags.%{_chunk}%::teleport::%player%} to false + {flags.%{_chunk}%::teleport::everyone} is false: + {flags.%{_chunk}%::teleport::%player%} is false + send "&cYou do not have permission to go here!" to player + stop send "&aTeleporting to &e%argument 2%" to player teleport player to {_loc} stop @@ -385,19 +385,57 @@ on quit: clear {bypassland.%player%} on place: block is not tnt + block is not water + block is not lava if {bypassland.%player%} is true: stop if {chunk.live.%chunk at location of block%} is set: if {chunk.live.%chunk at location of block%.%player%} is true: stop + {flags.%chunk at location of block%::build::everyone} is true: + stop + {flags.%chunk at location of block%::build::%player%} is true: + stop message "&cThis land is owned by %{chunk.live.%chunk at location of block%}%." cancel event + + + + on break: + block is not water or lava or milk if {bypassland.%player%} is true: stop if {chunk.live.%chunk at location of block%} is set: if {chunk.live.%chunk at location of block%.%player%} is true: stop + {flags.%chunk at location of block%::build::everyone} is true: + event-block is a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + {flags.%chunk at location of block%::container::everyone} is true: + stop + {flags.%chunk at location of block%::container::%player%} is true: + stop + event-block is a door or a anvil or a lever or a button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater: + {flags.%chunk at location of block%::use::everyone} is true: + stop + {flags.%chunk at location of block%::use::%player%} is true: + stop + else: + stop + {flags.%chunk at location of block%::build::%player%} is true: + event-block is a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + {flags.%chunk at location of block%::container::everyone} is true: + stop + {flags.%chunk at location of block%::container::player} is true: + stop + event-block is a door or a anvil or a lever or a button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater: + {flags.%chunk at location of block%::use::everyone} is true: + stop + {flags.%chunk at location of block%::use::%player%} is true: + stop + else: + stop + message "&cThis land is owned by %{chunk.live.%chunk at location of block%}%." cancel event on place of tnt: @@ -416,20 +454,34 @@ on explode: loop blocks in radius 10 of entity: if {chunk.live.%chunk at location of loop-block%} is set: cancel event + set {_safe} to true + {_safe} is set: + create safe explosion of force 3 at event-location on damage of a entity: - victim is enderman or creeper or wither or zombie or wither skeleton or blaze or slime or ghast or witch or skeleton or silverfish or spider or cave spider or magma cube: + victim is enderman or creeper or wither or zombie or wither skeleton or blaze or slime or ghast or witch or skeleton or silverfish or spider or cave spider or magma cube or zombie pigman: stop attacker is a player + victim is a cow: + attacker's tool is a empty bucket + stop loop blocks in radius 3 of victim: {bypassland.%attacker%} is true: stop - if {chunk.live.%chunk at location of loop-block%} is set: - {chunk.live.%chunk at location of loop-block%} is not attacker: - {chunk.live.%chunk at location of loop-block%.%attacker%} is set: + if {chunk.live.%chunk at location of loop-block%} is not attacker: + {chunk.live.%chunk at location of loop-block%.%attacker%} is set: + stop + {flags.%chunk at location of loop-block%::entity::everyone} is not set: + set {flags.%chunk at location of loop-block%::entity::everyone} to false + {flags.%chunk at location of loop-block%::entity::%attacker%} is not set: + set {flags.%chunk at location of loop-block%::entity::%attacker%} to false + {flags.%chunk at location of loop-block%::entity::everyone} is false: + {flags.%chunk at location of loop-block%::entity::%attacker%} is true: stop - send "&cThis area is protected!" to attacker - cancel event - stop trigger + {flags.%chunk at location of loop-block%::entity::everyone} is true: + stop + send "&cThis area is protected!" to attacker + cancel event + on right click on lead: {bypassland.%player%} is true: stop @@ -582,9 +634,16 @@ on command "/home": cancel event {chunk.live.%chunk at location of player%} is not player: {chunk.live.%chunk at location of player%} is not "Town": - {chunk.live.%chunk at location of player%.%player%} is not set: - send "&cYou can only do this in Town, or on your own land!" to player - stop + {chunk.live.%chunk at location of player%.%player%} is not set + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::%player%} is not set: + set {flags.%chunk at location of player%::teleport::%player%} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%player%} is false: + + send "&cYou can only do this in Town, or on your own land!" to player + stop if {chunk.live.%chunk at location of player%} is not set: message "&cYou must do this on your land!" @@ -649,6 +708,8 @@ command /townclaim: command /owner : permission: obam.admin trigger: + {chunks.claim.count.%argument%} is not set: + set {chunks.claim.count.%argument%} to 0 add 1 to {chunks.claim.count.%argument%} add argument to {land.live.%chunk at location of player%::*} set {chunk.live.%chunk at location of player%} to argument @@ -676,6 +737,62 @@ on command "/spawn": cancel event stop +on bucket fill: + + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not player + {chunk.live.%chunk at location of player%.%player%} is not set: + {flags.%chunk at location of player%::bucket::everyone} is not set: + set {flags.%chunk at location of player%::bucket::everyone} to false + {flags.%chunk at location of player%::bucket::%player%} is not set: + set {flags.%chunk at location of player%::bucket::%player%} to false + {flags.%chunk at location of player%::bucket::everyone} is false: + {flags.%chunk at location of player%::bucket::%player%} is true: + stop + {flags.%chunk at location of player%::bucket::everyone} is true: + stop + targeted block is water: + {flags.%chunk at location of player%::bucketwater::everyone} is true: + stop + + {flags.%chunk at location of player%::bucketwater::%player%} is true: + stop + targeted block is lava: + {flags.%chunk at location of player%::bucketlava::everyone} is true: + stop + + {flags.%chunk at location of player%::bucketlava::%player%} is true: + stop + send "&cYou do not have permission to do this!" + cancel event + + +on bucket empty: + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not player + {chunk.live.%chunk at location of player%.%player%} is not set: + {flags.%chunk at location of player%::bucket::everyone} is not set: + set {flags.%chunk at location of player%::bucket::everyone} to false + {flags.%chunk at location of player%::bucket::%player%} is not set: + set {flags.%chunk at location of player%::bucket::%player%} to false + {flags.%chunk at location of player%::bucket::everyone} is false: + {flags.%chunk at location of player%::bucket::%player%} is true: + stop + {flags.%chunk at location of player%::bucket::everyone} is true: + stop + player's tool is water bucket: + {flags.%chunk at location of player%::bucketwater::everyone} is true: + stop + {flags.%chunk at location of player%::bucketwater::%player%} is true: + stop + player's tool is lava bucket: + {flags.%chunk at location of player%::bucketlava::everyone} is true: + stop + {flags.%chunk at location of player%::bucketlava::%player%} is true: + stop + send "&cYou do not have permission to do this!" + cancel event + command /claimedset : permission: obam.admin trigger: diff --git a/Obam-Testing/backpack.sk b/Obam-Testing/backpack.sk new file mode 100644 index 0000000..a94d396 --- /dev/null +++ b/Obam-Testing/backpack.sk @@ -0,0 +1,98 @@ +options: + world: backpacks + backpack: ink sack named "&3BackPack" + enderpack: ender pearl named "&3EnderPack" with lore "&6Open your Ender Chest||&6anywhere!|| ||&5&oRight Click to open||&5&oYour portable Ender Chest" +on script load: + register new shaped recipe for {@backpack} using emerald block, emerald block, emerald block, emerald block, ink sack, emerald block, emerald block, chest, emerald block + register new shaped recipe for {@enderpack} using air, air, air, emerald block, ender pearl, emerald block, air, ender chest, air + + {db_customitems::backpack} is not set: + set {db_customitems::backpack} to {@backpack} + {db_customitems::backpack} is not {@backpack}: + set {db_customitems::backpack} to {@backpack} + {count.backpacks} is not set: + set {count.backpacks} to 1 + + + +on craft of ink sack: + name of event-item is "&3Backpack" + send "&aPlease use &e/backpack&a, to activate this backpack!" + + +command /backpack: + aliases: bp + permission: obam.free + trigger: + player's tool is ink sack + name of player's tool is "&3Backpack" + set {_lorecheck} to uncoloured lore of player's tool + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is set: + send "&cThis backpack is already assigned" to player + stop + remove {@backpack} from player + player has space for a oak sapling: + give player {@backpack} with lore "&8%{count.backpacks}%||&6Carry lots of extra stuff!|| ||&5&oRight click to open" + player doesn't have space for a oak sapling: + drop {@backpack} with lore "&8%{count.backpacks}%||&6Carry lots of extra stuff!|| ||&5&oRight click to open" at location of player + + add 2 to z-coordinate of {backpack.coordinate} + add 2 to x-coordinate of {backpack.coordinate} + set {_loc} to {backpack.coordinate} + set block at location of {_loc} to chest named "&2Backpack" + set {_chest} to block at {_loc} + set {tie.backpack.%{count.backpacks}%} to {_chest} + {tie.backpack.%{count.backpacks}%} is set: + send "&aBackpack created..." + {tie.backpack.%{count.backpacks}%} is not set: + send "&cError..." + add 1 to {count.backpacks} + +command /backpackname : + permission: obam.free + aliases: bpn, bpname + trigger: + name of player's tool contains "&3BackPack": + set {_lorecheck} to uncoloured lore of player's tool + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is not set: + send "&cThis backpack is not yet activated" to player + stop + lore of player's tool contains "&eName:": + send "&cThis backpack already has a name!" + stop + the length of argument is greater than 30: + send "&cThat name is too long!" + stop + set lore of player's tool to "%lore of player's tool%|| ||&eName:||&2%argument%" + send "&aName of backpack set to &2%argument%" + + +on right click with ink sack: + name of player's tool is "&3Backpack" or "&a&b&k&a&3Backpack": + set {_chest} to uncoloured lore of player's tool + set {_chest::*} to {_chest} split at "||" + {_chest::1} is not set: + send "&cError Opening backpack" + {tie.backpack.%{_chest::1}%} is not set: + send "&cError opening backpack" + {tie.backpack.%{_chest::1}%} is set: + block at location of {tie.backpack.%{_chest::1}%} is not chest: + set block at location of {tie.backpack.%{_chest::1}%} to chest + open {tie.backpack.%{_chest::1}%} to player + +on right click with ender pearl: + name of player's tool contains "&3EnderPack": + cancel event + open player's enderchest to player + +on shoot: + shooter's tool is ender pearl + name of shooter's tool contains "&3EnderPack": + cancel event + +command /backpackstart: + permission: obam.admin + trigger: + set {backpack.coordinate} to player's location \ No newline at end of file diff --git a/Obam-Testing/blocksave.sk b/Obam-Testing/blocksave.sk new file mode 100644 index 0000000..29b7a9c --- /dev/null +++ b/Obam-Testing/blocksave.sk @@ -0,0 +1,25 @@ +on place: + former tool's name is set: + set {information.%block%.1} to type of former tool + {debug.%player%} is true: + send "DEBUG You placed %former tool's name%" + set {information.%block%.2} to lore of former tool + set {information.%block%.3} to name of former tool + {debug.%player%} is true: + send "DEBUG %block%" + send "DEBUG %{information.%block%.1}%" + send "DEBUG %lore of former tool%" + send "DEBUG %name of former tool%" + send "DEBUG %{information.%block%.2}%" + send "DEBUG %{information.%block%.3}%" + + +on break: + {information.%block%.1} is set: + cancel event + {debug.%player%} is true: + send "DEBUG I ama message" + set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" + send "DEBUG %{_message}%" + delete block + drop {information.%block%.1} named {information.%block%.3} with lore {information.%block%.2} at event-location \ No newline at end of file diff --git a/Obam-Testing/hitsounds.sk b/Obam-Testing/hitsounds.sk new file mode 100644 index 0000000..6d960c0 --- /dev/null +++ b/Obam-Testing/hitsounds.sk @@ -0,0 +1,133 @@ +#hits + +options: + note: i;dirt;n;&7Note;l;&6Click to enable Note||&6sounds for your attacks;c;sudo %player% hitmenu note + arrowhit: i;dirt;n;&7Arrow;l;&6Click to enable Arrow||&6sounds for your attacks;c;sudo %player% hitmenu arrow + anvil: i;dirt;n;&7Anvil;l;&6Click to enable Anvil||&6sounds for your attacks;c;sudo %player% hitmenu anvil + chest: i;dirt;n;&7Chest;l;&6Click to enable Chest||&6sounds for your attacks;c;sudo %player% hitmenu chest + click: i;dirt;n;&7Click;l;&6Click to enable Click||&6sounds for your attacks;c;sudo %player% hitmenu click + levelup: i;dirt;n;&7Level;l;&6Click to enable Level||&6sounds for your attacks;c;sudo %player% hitmenu level + villager: i;dirt;n;&7Villager;l;&6Click to enable Villager||&6sounds for your attacks;c;sudo %player% hitmenu villager + clear: i;glass;n;&7Clear;l;&6Click to disable all||&6sounds for your attacks;c;sudo %player% hitmenu clear +command /hitmenu []: + permission: obam.supporter + trigger: + + argument is not set: + send "&aOpening menu..." + wait 0.3 seconds + show "s;1;{@note};s;2;{@arrowhit};s;3;{@anvil};s;4;{@chest};s;5;{@click};s;6;{@levelup};s;7;{@villager};s;9;{@clear}" with 1 row named "&1Hit Menu" to player + + argument is "note": + set {hit.%player%} to "note" + send "&aAttack sound set to &eNote!" + + argument is "arrow": + set {hit.%player%} to "arrow" + send "&aAttack sound set to &eArrow&a!" + + argument is "chest": + set {hit.%player%} to "chest" + send "&aAttack sounds set to &eChest&a!" + + argument is "anvil": + set {hit.%player%} to "anvil" + send "&aAttack sounds set to &eAnvil&a!" + + argument is "click": + set {hit.%player%} to "click" + send "&aAttack sounds set to &eClick&a!" + + argument is "level": + set {hit.%player%} to "level" + send "&aAttack sounds set to &eLevel&a!" + + argument is "villager": + set {hit.%player%} to "villager" + send "&aAttack sounds set to &eVillager&a!" + + argument is "clear": + clear {hit.%player%} + send "&aAttack sounds cleared!" + +on damage: + {hit.%attacker%} is set: + {hit.%attacker%} is "note": + chance of 14%: + play note bass at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 16%: + play note piano at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play note bass drum at location of attacker with pitch 1 + set {_play} to true + chance of 25%: + play note sticks at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play note bass guitar at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play note snare drum at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play note pling at location of attacker with pitch 1 + {hit.%attacker%} is "arrow": + chance of 50%: + play shoot arrow at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play arrow hit at location of attacker with pitch 1 + {hit.%attacker%} is "chest": + chance of 50%: + play chest close at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play chest close at location of attacker with pitch 1 + {hit.%attacker%} is "anvil": + chance of 33%: + play anvil break at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play anvil land at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play anvil use at location of attacker with pitch 1 + {hit.%attacker%} is "click": + play click at location of attacker with pitch 1 + {hit.%attacker%} is "level": + chance of 50%: + play level up at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play orb pickup at location of attacker with pitch 1 + {hit.%attacker%} is "villager": + chance of 16%: + play villager yes at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play villager no at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 25%: + play villager death at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play villager haggle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play villager idle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play villager hit at location of attacker with pitch 1 + + \ No newline at end of file diff --git a/Obam-Testing/lightbow.sk b/Obam-Testing/lightbow.sk new file mode 100644 index 0000000..1cfa37f --- /dev/null +++ b/Obam-Testing/lightbow.sk @@ -0,0 +1,55 @@ +options: + lightbow: bow named "&3Bow of Light" with lore "&6Light your way from afar||&6with this magical bow.|| ||&c-1 Torch Per Use" + +on script load: + register new shaped recipe for {@lightbow} using glowstone dust, glowstone dust, glowstone dust, glowstone dust, bow, glowstone dust, glowstone dust, glowstone dust, glowstone dust + + + +command /lightbow: + permission: obam.admin + trigger: + + give player 1 {@lightbow} + send "&aHere is your thing" + + +on right click with bow: + name of player's tool contains "&3Bow of Light": + cancel event + player does not have a torch: + send "&cYou do not have any torches" to player + stop + damage player's tool by 1 + set {_block} to player's target block + block above {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block above {_block} to torch + remove 1 torch from player + stop + block west of {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block west of {_block} to torch + remove 1 torch from player + stop + block south of {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block south of {_block} to torch + remove 1 torch from player + stop + block east of {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block east of {_block} to torch + remove 1 torch from player + stop + block north of {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block north of {_block} to torch + remove 1 torch from player + stop + diff --git a/Obam-Testing/schat2.sk b/Obam-Testing/schat2.sk index 50e8849..64a3cac 100644 --- a/Obam-Testing/schat2.sk +++ b/Obam-Testing/schat2.sk @@ -1,5 +1,5 @@ options: - p: &3[H] + p: &2[F] @@ -44,6 +44,9 @@ on chat: player is "IcecreamCow" or "Electric_Hamster" or "ISMOOCH": set {_pre} to "{@p} &d[A] %player%" + {_pre} is not set: + player is "OrigamiJoe" or "Deathtomb8953": + set {_pre} to "{@p} &a[╪] %player%" {_pre} is not set: player has permission "obam.mod": set {_pre} to "{@p} &2[M] %player%" diff --git a/Obam-Testing/soulbound.sk b/Obam-Testing/soulbound.sk new file mode 100644 index 0000000..dc7c60f --- /dev/null +++ b/Obam-Testing/soulbound.sk @@ -0,0 +1,52 @@ +on death of a player: + loop drops: + lore of loop-item contains "&2StickyItem ©" + name of loop-item contains "&a&b&k&a" + add loop-item to {soulbound.%player%::*} + remove loop-item from drops + +on respawn: + wait 1 tick + {soulbound.%player%::*} is set + loop {soulbound.%player%::*}: + give player loop-value + + clear {soulbound.%player%::*} + +command /stickyitem: + permission: obam.free + aliases: si + trigger: + set {_bal} to player's balance + {_bal} is less than 10000: + send "&cYou do not have enough tickets for this!" + stop + name of player's tool is "&3BackPack": + set {_lorecheck} to uncoloured lore of player's tool + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is not set: + send "&cThis backpack is not yet activated" to player + stop + remove 10000 from player's balance + name of player's tool is set: + set name of player's tool to "&a&b&k&a%name of player's tool%" + name of player's tool is not set: + set name of player's tool to "&a&b&k&a%type of player's tool%" + lore of player's tool contains "&2StickyItem ©": + send "&cThis is already a &2StickyItem ©" + stop + set lore of player's tool to "%lore of player's tool%|| ||&2StickyItem ©" + send "&aThank you for using &2StickyItem ©&a. Your item is now Stickied for a price of &e10000 Tickets&a!" + send "&aYour balance is now &e%player's balance%&a." + +on enchant: + lore of event-item contains "&2StickyItem ©": + send "&cYou can not enchant StickyItems!" + cancel event + stop + +on craft: + lore of event-item contains "&2StickyItem ©": + send "&cYou can not do that with a StickyItem!" + cancel event + stop \ No newline at end of file diff --git a/Obam-Testing/splash.sk b/Obam-Testing/splash.sk new file mode 100644 index 0000000..e06f53f --- /dev/null +++ b/Obam-Testing/splash.sk @@ -0,0 +1,139 @@ +#splash + +options: + heart: i;dirt;n;&7Hearts;l;&6Click to enable heart||&6effects for your splash;c;sudo %player% splashmenu hearts + flame: i;dirt;n;&7Flames;l;&6Click to enable flame||&6effects for your splash;c;sudo %player% splashmenu flames + reddust: i;dirt;n;&7Red Poof;l;&6Click to enable red poof||&6effects for your splash;c;sudo %player% splashmenu burst + smoke: i;dirt;n;&7Smoke;l;&6Click to enable smoke||&6effects for your splash;c;sudo %player% splashmenu smoke + waterdrip: i;dirt;n;&7Drip Water;l;&6Click to enable water drip||&6effects for your splash;c;sudo %player% splashmenu water + lavadrip: i;dirt;n;&7Drip Lava;l;&6Click to enable lava drip||&6effects for your splash;c;sudo %player% splashmenu lava + slime: i;dirt;n;&7Slime;l;&6Click to enable slime||&6effects for your splash;c;sudo %player% splashmenu slime + note: i;dirt;n;&7Notes;l;&6Click to enable music note||&6effects for your splash;c;sudo %player% splashmenu notes + happy: i;dirt;n;&7Happy;l;&6Click to enable Happy||&6effects for your splash;c;sudo %player% splashmenu happy + angry: i;dirt;n;&7Angry;l;&6Click to enable Angry||&6effects for your splash;c;sudo %player% splashmenu angry + explode: i;dirt;n;&7Explosion;l;&6Click to enable Explosion||&6effects for your splash;c;sudo %player% splashmenu explode + snow: i;dirt;n;&7Snow;l;&6Click to enable Snow Shovel||&6effects for your splash;c;sudo %player% splashmenu snow + portal: i;dirt;n;&7Portal;l;&6Click to enable Portal||&6effects for your splash;c;sudo %player% splashmenu portal + cloud: i;dirt;n;&7Cloud;l;&6Click to enable Cloud||&6effects for your splash;c;sudo %player% splashmenu cloud + clear: i;glass;n;&7Clear splash;l;&6Click to disable||&6effects for your splash;c;sudo %player% splashmenu clear + bubble: i;dirt;n;&7Bubble;l;&6Click to enable Bubble||&6effects for your splash;c;sudo %player% splashmenu bubble + +command /splashmenu []: + permission: obam.supporter + trigger: + + argument is not set: + send "&aOpening menu..." + wait 0.3 seconds + show "s;1;{@heart};s;2;{@flame};s;3;{@reddust};s;4;{@smoke};s;5;{@slime};s;6;{@note};s;7;{@lavadrip};s;8;{@waterdrip};s;9;{@happy};s;10;{@angry};s;11;{@explode};s;12;{@snow};s;13;{@portal};s;14;{@cloud};s;15;{@clear}" with 2 rows named "&1splash Menu" to player + + argument is "hearts": + set {splash.%player%} to "hearts" + send "&asplash set to &eHearts&a!" + + argument is "flames": + set {splash.%player%} to "flames" + send "&asplash set to &eFlames&a!" + + argument is "burst": + set {splash.%player%} to "burst" + send "&asplash set to &eRed Poof&a!" + + argument is "smoke": + set {splash.%player%} to "smoke" + send "&asplash set to &eSmoke&a!" + + argument is "slime": + set {splash.%player%} to "slime" + send "&asplash set to &eSlime&a!" + + argument is "notes": + set {splash.%player%} to "notes" + send "&asplash set to &eNotes&a!" + + argument is "lava": + set {splash.%player%} to "lava" + send "&asplash set to &eLava Drip&a!" + + argument is "water": + set {splash.%player%} to "water" + send "&asplash set to &eWater Drip&a!" + + argument is "happy": + set {splash.%player%} to "happy" + send "&asplash set to &eHappy&A!" + + argument is "angry": + set {splash.%player%} to "angry" + send "&asplash set to &eAngry&A!" + + argument is "explode": + set {splash.%player%} to "explode" + send "&asplash set to &eExplosion&a!" + + argument is "snow": + set {splash.%player%} to "snow" + send "&asplash set to &eSnow Shovel&a!" + + argument is "bubble": + set {splash.%player%} to "bubble" + send "&asplash set to &eBubble&A!" + + argument is "portal": + set {splash.%player%} to "portal" + send "&asplash set to &ePortal&a!" + + argument is "cloud": + set {splash.%player%} to "cloud" + send "&asplash set to &eCloud&A!" + + argument is "bubble": + set {splash.%player%} to "bubble" + + argument is "clear": + clear {splash.%player%} + send "&asplash disabled!" + + +every 5 seconds: + loop all players: + clear {_amt} + loop-player is not sneaking + loop-player is sprinting: + set {_amt} to 100 + {_amt} is not set: + set {_amt} to 50 + {splash.%loop-player%} is set: + {splash.%loop-player%} is "bubble": + spawn {_amt} of bubble data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "cloud": + spawn {_amt} of cloud data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "hearts": + spawn {_amt} of heart data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "flames": + spawn {_amt} of flame data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "burst": + spawn {_amt} of red dust data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "smoke": + spawn {_amt} of large smoke data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "notes": + spawn {_amt} of note data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "lava": + spawn {_amt} of drip lava data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "water": + spawn {_amt} of drip water data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "slime": + spawn {_amt} of slime data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "happy": + spawn {_amt} of happy villager data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "angry": + spawn {_amt} of angry villager data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "explode": + spawn {_amt} of large explode data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "snow": + spawn {_amt} of snow shovel data 1 offset with 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "portal": + spawn {_amt} of portal data 1 offset with 1, 1, 1 at location of loop-player + + + \ No newline at end of file diff --git a/Obam-Testing/suphorse.sk b/Obam-Testing/suphorse.sk new file mode 100644 index 0000000..a703f6c --- /dev/null +++ b/Obam-Testing/suphorse.sk @@ -0,0 +1,31 @@ +command /zombify: + permission: obam.supporter + trigger: + player is not riding: + send "&cYou must be riding a horse to do this!" + stop + player's vehicle is not a horse: + send "&cYou must be riding a horse to do this!" + stop + set {_y} to y-coordinate of player + set {_x} to x-coordinate of player + set {_z} to z-coordinate of player + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:3,Tame:1}" + delete player's vehicle + +command /skellify: + permission: obam.supporter + trigger: + player is not riding: + send "&cYou must be riding a horse to do this!" + stop + player's vehicle is not a horse: + send "&cYou must be riding a horse to do this!" + stop + set {_y} to y-coordinate of player + set {_x} to x-coordinate of player + set {_z} to z-coordinate of player + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:4,Tame:1}" + delete player's vehicle + + diff --git a/Obam-Testing/timber.sk b/Obam-Testing/timber.sk new file mode 100644 index 0000000..fc633da --- /dev/null +++ b/Obam-Testing/timber.sk @@ -0,0 +1,52 @@ +options: + timber: diamond axe named "&a&b&k&a&3Timber Axe" with lore "&6It's going down, I'm||&6yelling timber!|| ||&aUsing this powerful axe||&awill destroy &a&lALL&a logs||&aIn a 10 block radius!|| ||&2StickyItem ©" + +command /timber: + permission: obam.admin + trigger: + give player 1 {@timber} + send "&aHere is your thing" + +on break of oak wood or birch wood or spruce wood or jungle wood or acacia wood or dark oak wood: + name of player's tool is "&a&b&k&a&3Timber Axe" + add location of event-block to {_wood.blocks::*} + loop blocks in radius 10 of event-block: + loop-block is oak wood or birch wood or spruce wood or jungle wood or acacia wood or dark oak wood + {chunk.live.%chunk at location of loop-block%} is set: + {chunk.live.%chunk at location of loop-block%} is not player: + {chunk.live.%chunk at location of loop-block%.%player%} is not set: + cancel event + send "&cYou are too close to others' land!" + stop + add location of loop-block to {_wood.blocks::*} + + loop {_wood.blocks::*}: + set {_block} to block at loop-value + {_block} is oak wood: + set {_type} to oak log:0 + {_block} is birch wood: + set {_type} to birch log:2 + {_block} is spruce wood: + set {_type} to spruce log:1 + {_block} is jungle wood: + set {_type} to jungle log:3 + {_block} is acacia wood: + set {_type} to acacia log:0 + {_block} is dark oak wood: + set {_type} to dark oak log:1 + + + delete block at loop-value + drop 1 of {_type} at loop-value + + damage player's tool by 1 + + +on enchant: + name of event-item is "&a&b&k&a&3Timber Axe" + cancel event + send "&cYou can't do that dawg" + + + + \ No newline at end of file diff --git a/Obam-Testing/trails.sk b/Obam-Testing/trails.sk new file mode 100644 index 0000000..0b41a07 --- /dev/null +++ b/Obam-Testing/trails.sk @@ -0,0 +1,127 @@ +options: + heart: i;dirt;n;&7Hearts;l;&6Click to enable heart||&6trails for your bows;c;sudo %player% trailmenu hearts + flame: i;dirt;n;&7Flames;l;&6Click to enable flame||&6trails for your bows;c;sudo %player% trailmenu flames + reddust: i;dirt;n;&7Red Poof;l;&6Click to enable red poof||&6trails for your bows;c;sudo %player% trailmenu burst + smoke: i;dirt;n;&7Smoke;l;&6Click to enable smoke||&6trails for your bows;c;sudo %player% trailmenu smoke + waterdrip: i;dirt;n;&7Drip Water;l;&6Click to enable water drip||&6trails for your bows;c;sudo %player% trailmenu water + lavadrip: i;dirt;n;&7Drip Lava;l;&6Click to enable lava drip||&6trail for your bows;c;sudo %player% trailmenu lava + slime: i;dirt;n;&7Slime;l;&6Click to enable slime||&6trails for your bows;c;sudo %player% trailmenu slime + note: i;dirt;n;&7Notes;l;&6Click to enable music note||&6trails for your bows;c;sudo %player% trailmenu notes + happy: i;dirt;n;&7Happy;l;&6Click to enable Happy||&6trails for your bows;c;sudo %player% trailmenu happy + angry: i;dirt;n;&7Angry;l;&6Click to enable Angry||&6trails for your bows;c;sudo %player% trailmenu angry + explode: i;dirt;n;&7Explosion;l;&6Click to enable Explosion||&6trails for your bows;c;sudo %player% trailmenu explode + snow: i;dirt;n;&7Snow;l;&6Click to enable Snow Shovel||&6trails for your bows;c;sudo %player% trailmenu snow + portal: i;dirt;n;&7Portal;l;&6Click to enable Portal||&6trails for your bows;c;sudo %player% trailmenu portal + cloud: i;dirt;n;&7Cloud;l;&6Click to enable Cloud||&6trails for your bows;c;sudo %player% trailmenu cloud + clear: i;glass;n;&7Clear Trail;l;&6Click to disable||&6trails for you bows;c;sudo %player% trailmenu clear + + +command /trailmenu []: + permission: obam.supporter + trigger: + + argument is not set: + send "&aOpening menu..." + wait 0.3 seconds + show "s;1;{@heart};s;2;{@flame};s;3;{@reddust};s;4;{@smoke};s;5;{@slime};s;6;{@note};s;7;{@lavadrip};s;8;{@waterdrip};s;9;{@happy};s;10;{@angry};s;11;{@explode};s;12;{@snow};s;13;{@portal};s;14;{@cloud};s;15;{@clear}" with 2 rows named "&1Trail Menu" to player + + argument is "hearts": + set {trail.%player%} to "hearts" + send "&aTrail set to &eHearts&a!" + + argument is "flames": + set {trail.%player%} to "flames" + send "&aTrail set to &eFlames&a!" + + argument is "burst": + set {trail.%player%} to "burst" + send "&aTrail set to &eRed Poof&a!" + + argument is "smoke": + set {trail.%player%} to "smoke" + send "&aTrail set to &eSmoke&a!" + + argument is "slime": + set {trail.%player%} to "slime" + send "&aTrail set to &eSlime&a!" + + argument is "notes": + set {trail.%player%} to "notes" + send "&aTrail set to &eNotes&a!" + + argument is "lava": + set {trail.%player%} to "lava" + send "&aTrail set to &eLava Drip&a!" + + argument is "water": + set {trail.%player%} to "water" + send "&aTrail set to &eWater Drip&a!" + + argument is "happy": + set {trail.%player%} to "happy" + send "&aTrail set to &eHappy&A!" + + argument is "angry": + set {trail.%player%} to "angry" + send "&aTrail set to &eAngry&A!" + + argument is "explode": + set {trail.%player%} to "explode" + send "&aTrail set to &eExplosion&a!" + + argument is "snow": + set {trail.%player%} to "snow" + send "&aTrail set to &eSnow Shovel&a!" + + argument is "bubble": + set {trail.%player%} to "bubble" + send "&aTrail set to &eBubble&A!" + + argument is "portal": + set {trail.%player%} to "portal" + send "&aTrail set to &ePortal&a!" + + argument is "cloud": + set {trail.%player%} to "cloud" + send "&aTrail set to &eCloud&A!" + + argument is "clear": + clear {trail.%player%} + send "&aTrails disabled!" + + +on shoot: + {trail.%shooter%} is set: + {trail.%shooter%} is "hearts": + trail projectile with heart + {trail.%shooter%} is "flames": + trail projectile with flame + {trail.%shooter%} is "burst": + trail projectile with red dust + {trail.%shooter%} is "smoke": + trail projectile with large smoke + {trail.%shooter%} is "bubble": + trail projectile with bubble + {trail.%shooter%} is "notes": + trail projectile with note + {trail.%shooter%} is "lava": + trail projectile with drip lava + {trail.%shooter%} is "water": + trail projectile with drip water + {trail.%shooter%} is "slime": + trail projectile with slime + {trail.%shooter%} is "happy": + trail projectile with happy villager + {trail.%shooter%} is "angry": + trail projectile with angry villager + {trail.%shooter%} is "explode": + trail projectile with large explode + {trail.%shooter%} is "snow": + trail projectile with snow shovel + {trail.%shooter%} is "portal": + trail projectile with portal + {trail.%shooter%} is "cloud": + trail projectile with cloud + + + \ No newline at end of file diff --git a/Obam-Testing/wtfronts.sk b/Obam-Testing/wtfronts.sk index 7f19882..a3c7acc 100644 --- a/Obam-Testing/wtfronts.sk +++ b/Obam-Testing/wtfronts.sk @@ -909,31 +909,7 @@ on spawn: {safety.active.%chunk at event-location%} is true: cancel event -on place: - former tool's name is set: - set {information.%block%.1} to former tool - {debug.%player%} is true: - send "DEBUG You placed %former tool's name%" - set {information.%block%.2} to lore of former tool - set {information.%block%.3} to name of former tool - {debug.%player%} is true: - send "DEBUG %block%" - send "DEBUG %{information.%block%.1}%" - send "DEBUG %lore of former tool%" - send "DEBUG %name of former tool%" - send "DEBUG %{information.%block%.2}%" - send "DEBUG %{information.%block%.3}%" - set {information.%block%.1} to "%{information.%block%.1}%" - -on break: - {information.%block%.1} is set: - cancel event - {debug.%player%} is true: - send "DEBUG I ama message" - set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" - send "DEBUG %{_message}%" - delete block - drop {information.%block%.1} named {information.%block%.3} with lore {information.%block%.2} at location of block + on break of glowstone: chance of 10%: diff --git a/kitpvp/archer.sk b/kitpvp/archer.sk new file mode 100644 index 0000000..e531d93 --- /dev/null +++ b/kitpvp/archer.sk @@ -0,0 +1,25 @@ +#archer + +on teleport: + wait 3 ticks + player's world is "vacant" + {kit.%player%} is "archer": + {ingame.%player%} is not set + apply speed 1 to player for 999 days + equip player with all leather armor of unbreaking 10 named "&fArcher's Garments" + dye player's helmet (72, 11, 5) + dye player's chestplate (72, 11, 5) + dye player's leggings (72, 11, 5) + dye player's boots (72, 11, 5) + give player bow of infinity 1 and punch 1 named "&fBow of Truth" + give 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" to player + give player 2 egg named "&fStun Bomb" + apply absorption 3 to player for 999 days + give player arrow + set {ingame.%player%} to true + + + + + + diff --git a/kitpvp/firemage.sk b/kitpvp/firemage.sk new file mode 100644 index 0000000..404a195 --- /dev/null +++ b/kitpvp/firemage.sk @@ -0,0 +1,54 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "firemage": + clear player's inventory + equip player with all leather armor of unbreaking 10 named "&fFireMage's Robes" + dye player's helmet (206, 3, 30) + dye player's chestplate (206, 3, 30) + dye player's leggings (206, 3, 30) + dye player's boots (206, 3, 30) + give player stick of knockback 1 named "&fFire Wand" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + give player 3 splash potions of harming named "&fPain Juice" + apply speed 1 to player for 999 days + set player's level progress to 0.99 + +on right click with stick: + cancel event + {kit.%player%} is "firemage": + player's tool is a stick named "&fFire Wand" + player's y coordinate is greater than {kitpvp.area}'s y coordinate: + send "&cYou can not do that here. Please select an arena!" to player + stop + level progress of player is greater than or equal to 0.1: + shoot a fireball from the player + create safe explosion with force 5 at targeted block + loop entities in radius 5 of targeted block: + loop-entity is not a player: + make player damage loop-entity by 5 + {kit.%loop-entity%} is set: + loop-entity is not "%player%": + make player damage loop-entity by 2 + loop-entity is ignited: + make player damage loop-entity by 1 + ignite loop-entity + loop-entity is "%player%": + push loop-entity up with force 2 + extinguish the player + chance of 15%: + make player damage loop-entity by 1 + send "&aCritical hit!" to player + send "&cCritical hit!" to loop-entity + reduce the player's level progress by 0.1 + +on left click with a stick: + cancel event + {kit.%player%} is "firemage": + level progress of player is greater than or equal to 0.05: + shoot a egg from the player + reduce the player's level progress by 0.05 + diff --git a/kitpvp/fisherman.sk b/kitpvp/fisherman.sk new file mode 100644 index 0000000..cce928d --- /dev/null +++ b/kitpvp/fisherman.sk @@ -0,0 +1,33 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "fisherman": + {ingame.%player%} is not set + equip player with all leather armor of unbreaking 10 named "&fFishing Gear" + dye player's helmet (97, 158, 174) + dye player's chestplate (97, 158, 174) + dye player's leggings (97, 158, 174) + dye player's boots (97, 158, 174) + give player fishing rod of unbreaking 10 named "&fOld Faithful" + give player fish named "&fBig Fish" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + set {ingame.%player%} to true + +on right click with fishing rod: + world is "vacant" + {kit.%player%} is "fisherman": + player's y coordinate is greater than {kitpvp.area}'s y coordinate: + send "&cYou can not do that here. Please select an Arena!" to player + stop + set {_loc} to location of player + push targeted entity in the direction of player with speed -4 + make player damage targeted entity by 2 + chance of 20%: + send "&aIts a big one!" to player + loop players in radius 5 of targeted entity: + push loop-player in the direction of player with speed -4 + make player damage loop-player by 2 + diff --git a/kitpvp/fisherman.txt b/kitpvp/fisherman.txt new file mode 100644 index 0000000..8784b69 --- /dev/null +++ b/kitpvp/fisherman.txt @@ -0,0 +1,11 @@ +on teleport: + world is "vacant" + {kit.%player%} is "fisherman": + equip player with all leather armor of unbreaking 10 named "&fFishing Gear" + dye player's helmet (97, 158, 174) + dye player's chestplate (97, 158, 174) + dye player's leggings (97, 158, 174) + dye player's boots (97, 158, 174) + give player fishing rod of unbreaking 10 named "&fOld Faithful" + give player fish named "&fBig Fish" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" \ No newline at end of file diff --git a/kitpvp/kdss.sk b/kitpvp/kdss.sk new file mode 100644 index 0000000..74ec6bc --- /dev/null +++ b/kitpvp/kdss.sk @@ -0,0 +1,370 @@ +on damage of a player: + world is "kitspawnroom": + cancel event + {spawnsafety.%victim%} is not set: + set {spawnsafety.%victim%} to now + add 6 seconds to {spawnsafety.%victim%} + set {_check} to difference between {spawnsafety.%victim%} and now + {_check} is less than 5 seconds: + cancel event + damage cause is fall: + cancel event + damage cause is drowning: + cancel event + damage cause is suffocation: + cancel event + damage cause is block explosion: + cancel event + damage cause is entity explosion: + cancel event + + + + damage cause is fire or poison or wither or lava or burning: + damage is greater than victim's health: + cancel event + nullify score of "&3%{kit.%victim%}%" in board of victim + clear {kit.%victim%} + victim has health boost: + remove health boost from victim + victim has nausea: + remove nausea from victim + victim has poison: + remove poison from victim + victim has jump: + remove jump from victim + victim has slowness: + remove slowness from victim + victim has speed: + remove speed from victim + victim has absorption: + remove absorption from victim + victim has wither: + remove wither from victim + victim has blindness: + remove blindness from victim + heal victim by 10 hearts + {deaths.%victim%.kit} is not set: + set {deaths.%victim%.kit} to 0 + add 1 to {deaths.%victim%.kit} + {lasthit.%victim%} is not set: + clear {killstreak.%victim%} + clear {kit.%victim%} + clear {ingame.%victim%} + broadcast "&e%victim%&c met their end to the environment" + teleport victim to {kit.spawn} + {lasthit.%victim%} is set: + set {_attacker} to {lasthit.%victim%} + {kills.%{_attacker}%.kit} is not set: + set {kills.%{_attacker}%.kit} to 0 + add 1 to {kills.%{_attacker}%.kit} + {killstreak.%{_attacker}%} is not set: + set {killstreak.%{_attacker}%} to 0 + add 1 to {killstreak.%{_attacker}%} + {killstreak.%{_attacker}%} is 5: + broadcast "&e%{_attacker}%&c is on a Rampage!" + set {rampage.%{_attacker}%} to true + {killstreak.%{_attacker}%} is 10: + broadcast "&e%{_attacker}%&c is Unstoppable!" + {killstreak.%{_attacker}%} is 15: + broadcast "&e%{_attacker}%&c is Annihilating!" + {killstreak.%{_attacker}%} is 20: + broadcast "&e%{_attacker}%&c is Dominating!" + {killstreak.%{_attacker}%} is 25: + broadcast "&e%{_attacker}%&c is Destroying!" + {killstreak.%{_attacker}%} is 30: + broadcast "&e%{_attacker}%&c is Scary" + {rampage.%victim%} is true: + broadcast "&e%{_attacker}%&a has ended &e%victim%'s&a rampage!" + clear {rampage.%victim%} + nullify score of "&3RAMPAGE" in board of victim + loop all entities: + {owner.zombie.%loop-entity%} is victim: + delete loop-entity + {owner.skeleton.%loop-entity%} is victim: + delete loop-entity + {assists.%victim%::*} is set: + loop {assists.%victim%::*}: + clear {_player} + {_player} is not victim + {_player} is not {_attacker} + set {_player} to loop-value parsed as player + add 1 to {assist.%{_player}%.kp} + send "&aYou assisted in the kill of &e%victim%" + + clear {ingame.%victim%} + clear {killstreak.%victim%} + clear {lashit.%victim%} + clear {assists.%victim%::*} + + teleport victim to {kit.spawn} + set {_size} to size of {deathmessages.kitpvp::*} + set {_ran} to a random integer between 1 and {_size} + set {_message} to {deathmessages.kitpvp::%{_ran}%} + replace "ATTACKER" in {_message} with "&e%{_attacker}%&c" + replace "VICTIM" in {_message} with "&e%victim%&c" + replace "WEAPON" in {_message} with "&e%name of attacker's tool%&c" + broadcast "&c%{_message}%" + + + + + attacker is a player: + victim is a player: + {hiding.%attacker%} is set: + cancel event + {kit.%attacker%} is not set: + cancel event + {kit.%victim%} is not set: + cancel event + projectile is a arrow: + {kit.%attacker%} is "archer" or "skelemancer": + distance between attacker and victim is greater than 20: + chance of 20%: + send "&aCritical Hit!" to attacker + play anvil land at victim's location with pitch 2 + play level up at attacker's location with pitch 1 + send "&cCritical Hit!" to victim + add 3 to damage + projectile is a snowball: + {kit.%attacker%} is "ninja": + apply blindness to victim for 4 seconds + send "&cYou have been blinded by &e%attacker%&c!" to victim + send "&aYou have blinded &e%victim%&a!" to attacker + {kit.%attacker%} is "melee": + apply poison to victim for 6 seconds + send "&cYou have been poisoned by &e%attacker%&c!" to victim + send "&aYou have poisoned &e%victim%&a!" to attacker + {kit.%attacker%} is "tank": + apply slowness 8 to victim for 3 seconds + apply blindness to victim for 3 seconds + teleport victim to attacker + send "&cYou have been disabled by &e%attacker%&c!" to victim + send "&aYou have disabled &e%victim%&a!" to attacker + projectile is a egg: + {kit.%attacker%} is "firemage": + apply nausea to victim for 2 seconds + apply slowness 2 to victim for 2 seconds + {kit.%victim%} is "tank": + send "&cYou can not slow the tank!" to attacker + remove slowness from victim + apply slowness 2 to victim for 999 days + stop + send "&cYou have been confused by &e%attacker%&c!" to victim + send "&aYou have confused &e%victim%&a!" to attacker + {kit.%attacker%} is "archer": + apply slowness 8 to victim for 3 seconds + {kit.%victim%} is "tank": + send "&cYou can not slow the tank!" to attacker + remove slowness from victim + apply slowness 2 to victim for 999 days + stop + send "&aYou have stunned &e%victim%&A!" to attacker + send "&cYou have been stunned by &e%attacker%&c!" to victim + + + attacker's tool is a fish: + name of attacker's tool is "&fBig Fish": + add 1 to damage + apply nausea to victim for 2 seconds + play slime attack at location of victim with pitch 1 + send "&cYou have fish slapped!" to victim + + + + {kit.%victim%} is "tank": + {kit.%attacker%} is not "tank": + set damage to damage / 4 + {kit.%attacker%} is "tank": + set damage to damage * 3 + {kit.%attacker%} is "tank": + {kit.%victim%} is not "tank": + set damage to damage / 2 + {kit.%attacker%} is "ninja": + victim's target is attacker: + victim does not have blindness + set damage to damage / 2 + victim has blindness: + set damage to damage * 1.5 + {kit.%victim%} is "fisherman": + set damage to damage / 1.5 + {kit.%victim%} is "archer": + set damage to damage * 1.5 + {kit.%attacker%} is "fisherman": + {kit.%victim%} is "ninja": + set damage to damage * 1.5 + {kit.%victim%} is "lightningmage": + set damage to damage / 1.5 + {kit.%attacker%} is "archer": + {kit.%victim%} is "ninja": + set damage to damage / 1.5 + {kit.%victim%} is "melee": + set damage to damage * 1.5 + {kit.%attacker%} is "melee": + {kit.%victim%} is "necromancer": + set damage to damage * 1.5 + {kit.%victim%} is "archer": + set damage to damage / 1.5 + {kit.%attacker%} is "necromancer": + {kit.%victim%} is "skelemancer": + set damage to damage * 1.5 + {kit.%victim%} is "melee": + set damage to damage / 1.5 + {kit.%attacker%} is "skelemancer": + {kit.%victim%} is "necromancer": + set damage to damage / 1.5 + {kit.%victim%} is "lightningmage": + set damage to damage * 1.5 + {kit.%attacker%} is "lightningmage": + {kit.%victim%} is "skelemancer": + set damage to damage / 1.5 + {kit.%victim%} is "fisherman": + set damage to damage * 1.5 + {kit.%victim%} is "firemage": + set damage to damage * 1.5 + {kit.%attacker%} is "firemage": + {kit.%victim%} is "necromancer": + set damage to damage * 1.5 + {kit.%victim%} is "lightningmage": + set damage to damage / 1.5 + {kit.%attacker%} is "tank": + + {combo.%attacker%} is set: + set {_dif} to difference between {combo.%attacker%} and now + {combo.%attacker%.track} is victim: + {_dif} is less than 1 second: + {modifier.%attacker%} is not set: + set {modifier.%attacker%} to 0 + {modifier.%attacker%} is less than 2: + add 0.25 to {modifier.%attacker%} + add {modifier.%attacker%} to damage + {_dif} is greater than or equal to 1 second: + clear {modifier.%attacker%} + set {combo.%attacker%.track} to victim + set {combo.%attacker%} to now + {combo.%attacker%.track} is not victim: + set {combo.%attacker%.track} to victim + clear {modifier.%attacker%} + set {combo.%attacker%} to now + {combo.%attacker%} is not set: + set {combo.%attacker%} to now + set {combo.%attacker%.track} to victim + + {assists.%victim%::%attacker%} is not set: + attacker is not victim + set {assist.%victim%::%attacker%} to attacker + + set {lasthit.%victim%} to attacker + + + + + + + + damage is greater than victim's health: + cancel event + {kit.%attacker%} is "melee": + apply speed 3 to attacker for 15 seconds + victim is ignited: + extinguish victim + extinguish victim + nullify score of "&3%{kit.%victim%}%" in board of victim + clear {kit.%victim%} + victim has health boost: + remove health boost from victim + victim has nausea: + remove nausea from victim + victim has poison: + remove poison from victim + victim has jump: + remove jump from victim + victim has slowness: + remove slowness from victim + victim has speed: + remove speed from victim + victim has absorption: + remove absorption from victim + victim has wither: + remove wither from victim + victim has blindness: + remove blindness from victim + extinguish victim + heal victim by 10 hearts + {deaths.%victim%.kit} is not set: + set {deaths.%victim%.kit} to 0 + add 1 to {deaths.%victim%.kit} + {kills.%attacker%.kit} is not set: + set {kills.%attacker%.kit} to 0 + add 1 to {kills.%attacker%.kit} + {killstreak.%attacker%} is not set: + set {killstreak.%attacker%} to 0 + add 1 to {killstreak.%attacker%} + {killstreak.%attacker%} is 5: + broadcast "&e%attacker%&c is on a Rampage!" + set {rampage.%attacker%} to true + {killstreak.%attacker%} is 10: + broadcast "&e%attacker%&c is Unstoppable!" + {killstreak.%attacker%} is 15: + broadcast "&e%attacker%&c is Annihilating!" + {killstreak.%attacker%} is 20: + broadcast "&e%attacker%&c is Dominating!" + {killstreak.%attacker%} is 25: + broadcast "&e%attacker%&c is Destroying!" + {killstreak.%attacker%} is 30: + broadcast "&e%attacker%&c is Scary" + {rampage.%victim%} is true: + broadcast "&e%attacker%&a has ended &e%victim%'s&a rampage!" + clear {rampage.%victim%} + nullify score of "&3RAMPAGE" in board of victim + loop all entities: + {owner.zombie.%loop-entity%} is victim: + delete loop-entity + {owner.skeleton.%loop-entity%} is victim: + delete loop-entity + {assists.%victim%::*} is set: + loop {assists.%victim%::*}: + clear {_player} + set {_player} to loop-value parsed as a player + send "&aYou assisted on the kill of &e%victim%" to {_player} + {assist.%{_player}%.kp} is not set: + set {assist.%{_player}%.kp} to 0 + add 1 to {assist.%{_player}%.kp} + + clear {ingame.%victim%} + clear {killstreak.%victim%} + clear {assists.%victim%::*} + + teleport victim to {kit.spawn} + set {_size} to size of {deathmessages.kitpvp::*} + set {_ran} to a random integer between 1 and {_size} + set {_message} to {deathmessages.kitpvp::%{_ran}%} + replace "ATTACKER" in {_message} with "&e%attacker%&c" + replace "VICTIM" in {_message} with "&e%victim%&c" + replace "WEAPON" in {_message} with "&e%name of attacker's tool%&c" + broadcast "&c%{_message}%" + +every 1 second: + loop all players: + loop-player is sneaking: + level progress of loop-player is greater than 0.1: + {kit.%loop-player%} is "ninja" + hide loop-player from all players + set {hiding.%loop-player%} to true + spawn 50 of large smoke data 1 offset with 0, 0, 0 at location of loop-player + spawn 50 of angry villager data 1 offset with 0, 0, 0 at location of loop-player + reduce the loop-player's level progress by 0.1 + level progress of loop-player is less than 0.1: + reveal loop-player to all players + clear {hiding.%loop-player%} + + loop-player is not sneaking: + {hiding.%loop-player%} is set + reveal loop-player to all players + clear {hiding.%loop-player%} + +on death of a player: + clear {kit.%player%} + +on respawn: + teleport player to {kit.spawn} \ No newline at end of file diff --git a/kitpvp/kitpvp.sk b/kitpvp/kitpvp.sk new file mode 100644 index 0000000..a479018 --- /dev/null +++ b/kitpvp/kitpvp.sk @@ -0,0 +1,385 @@ +options: + #startfold @class-chest-stuff + ninjakit: i;leather cap;n;&9&lNinja;l;&7Click to pick the||&eNinja&7 Class|| ||&5Kit Info:||&7You are a ninja with||&7a stone sword. Turn||&7Invisible by holding shift||&7But watch your mana it||&7it is not unlimited!|| ||%{dis.%player%.1}%;c;sudo %player% kits ninja + archerkit: i;bow;n;&9&lArcher;l;&7Click to pick the||&eArcher&7 Class|| ||&5Kit Info:||&7You are an archer||&7with a Punch I bow||&7Keep your distance to||&7to get critical hits!;c;sudo %player% kits archer + meleekit: i;iron helmet;n;&9Melee;l;&7Click to pick the||&eMelee&7 Class|| ||&5Kit Info:||&7Ultimate in up close||&7combat. An iron sword||&7Unrivaled by any other||&7close combat kit;c;sudo %player% kits melee + firemagekit: i;fire charge;n;&9Fire Mage;n;&9&lFire Mage;l;&7Click to pick the||&eFire Mage&7 Class|| ||&5Kit Info:||&7The firemage tosses fireballs||&7at their opponents||&7wreaking havoc with||&7explosions and fire|| ||%{dis.%player%.1}%;c;sudo %player% kits firemage + lightningmagekit: i;nether star;n;&9&lLightning Mage;n;&9&lLightning Mage;l;&7Click to pick the||&eLightning Mage&7 class|| ||&5Kit Info:||&7Using the power of||&7Lightning, this kit||&7causes large group damage||&7and harnesses the power||&7to teleport;c;sudo %player% kits lightningmage + tankkit: i;gold chestplate;n;&9&lTank;l;&7Click to pick the||&eTank&7 class|| ||&5Kit Info:||&7The tank shows no||&7Weakness, its armor||&7pure, and its paddle||&7heavy, it guarantees||&7longer lives, but fewer||&7kills;c;sudo %player% kits tank + necrokit: i;bone;n;&9&lNecromancer;l;&7Click to pick the ||&eNecromancer&7 class|| ||&5Kit Info:||&7The Necro summons the||&7Dead from beyond to||&7assist in their domination||&7Summoning requires only||&7a little bit of mana||&7and a few drops of your||&7own blood|| ||%{dis.%player%.1}%;c;sudo %player% kits necromancer + fishermankit: i;fish;n;&9&lFisherman;l;&7Click to pick the||&eFisherman&7 class|| ||&5Kit Info:||&7The legendary fisherman||&7Relies on his trusty||&7Big Fish to deal the||&7Blows, and his Rod||&7Old Faithful, to bring||&7the enemy closer.;c;sudo %player% kits fisherman + something: i;wood hoe;n;&9&lSomething;c;sudo %player% kits something + skelemancerkit: i;wither skeleton head;n;&9&lSkele-Mancer;l;&7Click to pick the||&eSkele-Mancer&7 class|| ||&5Kit Info||&7Skelemancers take summoning||&7to a new level with||&7long range combat.||&7Fleshing the field with||&7Skeletons of fallen||&7Opponents, and trusty||&7Bow, with chances for||&7Critical hits at long||&7Range.;c;sudo %player% kits skelemancer + supporterstuff: i;diamond block;n;&9&lMore Kits for Supporters!;l;&7Purchase a Supporter membership||&7To get even more fun||&7kits from &9OBAM&7! + #endfold + #startfold @arena-chest-stuff + killingfieldarena: i;long grass;n;&9&lKilling Fields;l;&7Click to join the||&eKilling Fields&7 arena;c;spawnplayer %player% killingfields + vacantarena: i;glass bottle;n;&9&lVacant;l;&7Click to join||&eVacant&7 arena;c;spawnplayer %player% vacant + showdownarena: i;dead shrub;n;&9&lShowdown;l;&7Click to join||&eShowdown&7 arena;c;spawnplayer %player% showdown + #endfold +#kits + + +variables: + {safety.%player%} = 0 + +on join: + clear {kit.%player%} + clear {ingame.%player%} + clear {board.up.%player%.kp} + teleport player to {kit.spawn} + +on connect: + teleport player to {kit.spawn} + +on disconnect: + clear {kit.%player%} + clear {ingame.%player%} + +command /arena: + trigger: + world is "kitspawnroom": + + {kit.%player%} is not set: + send "&cPlease choose a kit first!" to player + stop + + send "&aOpening menu..." + wait 0.3 seconds + show "s;3;{@vacantarena}" with 1 row named "&9&lOBAM&9 :: Arenas" to player +command /kits []: + + executable by: players and console + trigger: + world is "kitspawnroom" + argument is not set: + player has permission "obam.kits.supporter": + set {dis.%player%.1} to " " + show "s;11;{@ninjakit};s;12;{@archerkit};s;13;{@meleekit};s;14;{@firemagekit};s;15;{@lightningmagekit};s;16;{@tankkit};s;17;{@necrokit};s;23;{@fishermankit};s;24;{@skelemancerkit}" with 4 rows named "&9&lOBAM &9:: Kits" to player + stop + + set {dis.%player%.1} to "&eUse this kit for one time for &a25&eTickets" + show "s;11;{@ninjakit};s;12;{@archerkit};s;13;{@meleekit};s;14;{@firemagekit};s;15;{@lightningmagekit};s;16;{@tankkit};s;17;{@necrokit};s;23;{@fishermankit};s;24;{@skelemancerkit}" with 4 rows named "&9&lOBAM &9:: Kits" to player + {kit.%player%} is set: + send "&cYou already have a kit D:" to player + stop + + set {_arena.run} to true + + argument is "archer": + send "&aYou have picked the &eArcher&a Kit" + set {kit.%player%} to "archer" + + + argument is "ninja": + player does not have permission "obam.supporter": + set {_bal} to player's balance + {_bal} is less than 25: + send "&cYou do not have enough tickets for this!" + stop + remove 25 from player's balance + send "&aYou have purchased the &eNinja&a kit for &e25 Tickets&a!" + send "&aYour current balance is &e%player's balance%" + send "&aYou have picked the &eNinja&a kit!" + set {kit.%player%} to "ninja" + set {ninja.poof.%player%} to true + + argument is "melee": + send "&aYou have picked the &eMelee&a kit" + set {kit.%player%} to "melee" + + argument is "firemage": + player does not have permission "obam.supporter": + set {_bal} to player's balance + {_bal} is less than 25: + send "&cYou do not have enough tickets for this!" + stop + remove 25 from player's balance + send "&aYou have purchased the &eFiremage&a kit for &e25 Tickets&a!" + send "&aYour current balance is &e%player's balance%" + send "&aYou have picked the &eFiremage&a kit!" + set {kit.%player%} to "firemage" + + argument is "tank": + send "&aYou have picked the &eTank&a kit!" + set {kit.%player%} to "tank" + + + argument is "lightningmage": + send "&aYou have picked the &eLightning Mage&a kit!" + set {kit.%player%} to "lightningmage" + + argument is "necromancer": + player does not have permission "obam.supporter": + set {_bal} to player's balance + {_bal} is less than 25: + send "&cYou do not have enough tickets for this!" + stop + remove 25 from player's balance + send "&aYou have purchased the &eNecromancere&a kit for &e25 Tickets&a!" + send "&aYour current balance is &e%player's balance%" + send "&aYou have picked the &eNecromancer&a kit!" + set {kit.%player%} to "necromancer" + + + argument is "fisherman": + send "&aYou have picked the &eFisherman&a kit!" + set {kit.%player%} to "fisherman" + + argument is "skelemancer": + send "&aYou have picked the &eSkelemancer&a kit!" + set {kit.%player%} to "skelemancer" + + {_arena.run} is true: + send "&aOpening Arena Menu...." to player + wait 1 second + make player execute command "/arena" + +on teleport: + world is "vacant" + {ingame.%player%} is not set + set {spawnsafety.%player%} to now + clear player's inventory + player is on fire: + extinguish player + player has poison: + remove poison from player + player has wither: + remove wither from player + player has health boost: + remove health boost from player + player has jump: + remove jump from player + player has speed: + remove speed from player + player has absorption: + remove absorption from player + player has blindness: + remove blindness from player + player has slowness: + remove slowness from player + player has nausea: + remove nausea from player + +on right click with mushroom soup: + cancel event + player's health is 10: + send "&aYou already have full health!" to player + clear {assits.%player%::*} + stop + remove mushroom soup from player + give player bowl + + add 5 to player's health + +on quit: + player has poison: + remove poison from player + player has wither: + remove wither from player + player has health boost: + remove health boost from player + player has jump: + remove jump from player + player has speed: + remove speed from player + player has absorption: + remove absorption from player + player has blindness: + remove blindness from player + player has slowness: + remove slowness from player + player has nausea: + remove nausea from player + clear {ingame.%player%} + clear {kit.%player%} + clear {killstreak.%player%} +on explode: + cancel event + + + +on xp spawn: + cancel event + + +on damage of a player: + damage cause is suffocation: + cancel event + +every 2 seconds: + + loop all players: + loop-player's world is not "kitspawnroom" + {kit.%loop-player%} is "firemage" or "lightningmage" or "necromancer" or "skelemancer" or "fisherman" or "ninja": + level progress of loop-player is less than 0.9: + increase loop-player's level progress by 0.05 + else: + set loop-player's level progress to 0.99 + + +on respawn: + teleport player to {kit.spawn} + +on death of a player: + victim is a player: + clear drops + teleport victim to {kit.spawn} + clear {last.attacker.%victim%} + clear {kit.%victim%} + clear {ninja.poof.%victim%} + victim has jump: + remove jump from victim + victim has blindness: + remove blindness from victim + victim has health boost: + remove health boost from victim + victim has speed: + remove speed from victim + victim has slowness: + remove slowness from victim + victim has wither: + remove wither from victim + victim has absorption: + remove absorption from victim + victim has poison: + remove poison from victim + clear {killstreak.%victim%} + {last.attacker.%victim%} is not set: + message "&cThe environment got the best of &e%victim%" to all players in victim's world + {last.attacker.%victim%} is set: + set {_size} to size of {deathmessages.kitpvp::*} + set {_temp} to random integer between 1 and {_size} + message "&e%{last.attacker.%victim%}% &chas %{deathmessages.kitpvp::%{_temp}%}% &e%victim% &cwith &b%uncoloured name of {last.attacker.%victim%}'s tool%" to all players in {last.attacker.%victim%}'s world + {last.attacker.%victim%} is not victim: + send "&aYou claim a bounty of &e%{value.%victim%.kit.live}% tickets &afrom &e%victim%" to {last.attacker.%victim%} + add {value.%victim%.kit.live} to {last.attacker.%victim%}'s balance + set {_size2} to size of {assists.%victim%::*} + {_size2} is greater than 1: + loop {assists.%victim%::*}: + {assists.%victim%::%loop-index%} is not {last.attacker.%victim%}: + set {_player} to {assists.%victim%::%loop-index%} + send "&aYou assisted in the death of &e%victim%" to {_player} + send "&aYou split the bounty &e%{_size2}% &aways with others. Your cut is &e%rounded {value.%victim%.kit.live} / {_size2}% &etickets" to {_player} + {assist.%{_player}%.kp} is not set: + set {assist.%{_player}%.kp} to 0 + add 1 to {assist.%{_player}%.kp} + set {_cut} to {value.%victim%.kit.live} / {_size2} + add rounded {_cut} to {_player}'s balance + + + + + + clear drops + set {kitpvp.dead.%player%} to false + +on target: + {kit.%target player%} is not set: + cancel event + {owner.skeleton.%event-entity%} is target player: + cancel event + {owner.zombie.%event-entity%} is target player: + cancel event + +every 1 second: + loop all players: + set loop-player's hunger level to 10 + + + +on drop: + cancel event + + + + +command /dm []: + permission: obam.admin + trigger: + argument 1 is "list": + loop {deathmessages.kitpvp::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + send "%{_count}%..%loop-value%" + stop + argument 1 is "delete": + delete {deathmessages.kitpvp::%argument 2%} + send "&cDeleted.." + stop + send "&aYou have added &e%argument 1%&a to the death message list!" + add argument 1 to {deathmessages.kitpvp::*} + + +command /clearkit : + executable by: console + trigger: + clear {kit.%player-argument%} + player-argument has poison: + remove poison from player-argument + player-argument has wither: + remove wither from player-argument + player-argument has speed: + remove speed from player-argument + player-argument has slowness: + remove slowness from player-argument + player-argument has health boost: + remove health boost from player-argument + player-argument has absorption: + remove absorption from player-argument + player-argument has jump: + remove jump from player-argument + clear {ninja.poof.%player-argument%} + clear player-argument's inventory + +command /revive : + executable by: console or players + permission: obam.admin.kp + trigger: + set {kitpvp.dead.%player-argument%} to false + +command /mapset : + permission: obam.smod + trigger: + send "&aYou have added a spawn point for '&e%argument%&a'" to player + add location of player to {map.%argument%.spawns::*} + + + +command /spawnplayer : + executable by: console + trigger: + set {_size} to size of {map.%argument 2%.spawns::*} + set {_tmp} to random integer between 1 and {_size} + teleport player-argument to {map.%argument 2%.spawns::%{_tmp}%} + +command /clearspawn : + permission: obam.admin.kp + trigger: + clear {map.%argument%.spawns::*} + + + +every 1 second: + loop all players: + set {value.%loop-player%.kit} to {kills.%loop-player%.kit} * {killstreak.%loop-player%} + set {value.%loop-player%.kit} to {value.%loop-player%.kit} / {deaths.%loop-player%.kit} + set {value.%loop-player%.kit} to {value.%loop-player%.kit} + 10 + {value.%loop-player%.kit} is greater than 100: + set {value.%loop-player%.kit} to 100 + {value.%loop-player%.kit} is less than 1: + set {value.%loop-player%.kit} to 1 + set {value.%loop-player%.kit.live} to rounded {value.%loop-player%.kit} + +command /spawnset: + permission: obam.smod + trigger: + set {kit.spawn} to player's location + +command /sudo : + permission: obam.admin + trigger: + make player-argument execute command argument 2 + + \ No newline at end of file diff --git a/kitpvp/lightningmage.sk b/kitpvp/lightningmage.sk new file mode 100644 index 0000000..c49284a --- /dev/null +++ b/kitpvp/lightningmage.sk @@ -0,0 +1,50 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "lightningmage": + {ingame.%player%} is not set + equip player with all leather armor of unbreaking 10 named "&fLightning Mage's Robes" + dye player's helmet (7, 247, 239) + dye player's chestplate (7, 247, 239) + dye player's leggings (7, 247, 239) + dye player's boots (7, 247, 239) + give player stick of knockback 1 named "&fLightning Wand" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + give player 3 splash potions of harming named "&fPain Juice" + apply jump 1 to player for 999 days + set player's level progress to 0.99 + set {ingame.%player%} to true + +on right click with stick: + cancel event + {kit.%player%} is "lightningmage": + player's tool is a stick named "&fLightning Wand" + level progress of player is greater than or equal to 0.1: + strike lightning effect at targeted block + reduce the player's level progress by 0.1 + loop entities in radius 5 of targeted block: + loop-entity is not a player: + make player damage loop-entity by 6 + {kit.%loop-entity%} is set: + create safe explosion of force 2 at location of loop-entity + push loop-entity up with force 1 + make player damage loop-entity by 6 + apply wither to loop-entity for 3 seconds + strike lightning effect at location of loop-entity + +on left click with stick: + cancel event + {kit.%player%} is "lightningmage": + level progress of player is greater than or equal to 0.5: + targeted block is air or glass: + send "&cYou can not go there!" to player + stop + the distance between targeted block and player is less than or equal to 30: + teleport player to block above targeted block + + reduce the player's level progress by 0.5 + stop + send "&cThat is too far!" to player \ No newline at end of file diff --git a/kitpvp/melee.sk b/kitpvp/melee.sk new file mode 100644 index 0000000..e259753 --- /dev/null +++ b/kitpvp/melee.sk @@ -0,0 +1,19 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "melee": + {ingame.%player%} is not set + clear player's inventory + equip player with all leather armor of unbreaking 10 named "&fMelee Greaves" + dye player's helmet (172, 172, 172) + dye player's chestplate (172, 172, 172) + dye player's leggings (172, 172, 172) + dye player's boots (172, 172, 172) + give player iron sword named "&fBlade of Justice &b[Sharpness I]" + give 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" to player + give 2 snowball named "&fPoison Pills" to player + set {ingame.%player%} to true + diff --git a/kitpvp/necromancer.sk b/kitpvp/necromancer.sk new file mode 100644 index 0000000..419655f --- /dev/null +++ b/kitpvp/necromancer.sk @@ -0,0 +1,82 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + {kit.%player%} is "necromancer": + {ingame.%player%} is not set + equip player with all leather armor of unbreaking 10 named "&fNecromancer's Robes" + dye player's helmet (0, 159, 37) + dye player's chestplate (0, 159, 37) + dye player's leggings (0, 159, 37) + dye player's boots (0, 159, 37) + give player blaze rod of knockback 1 named "&fSummoning Rod" + give player stone sword of knockback 1 named "&fSummoner's Trust" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + apply speed 1 to player for 999 days + set player's level progress to 0.99 + set {ingame.%player%} to true + +on right click with blaze rod: + {kit.%player%} is "necromancer": + targeted block is glass: + stop + level progress of player is greater than or equal to 0.3: + {zombie.%player%.active} is greater than or equal to 5: + send "&cYou have too many zombies!" to player + stop + spawn a zombie at block above targeted block + set {_zombie.%player%} to spawned zombie + equip {_zombie.%player%} with leather helmet + set name of spawned zombie to "&cNecroSpawn" + make player damage player by 2 + + apply speed 3 to spawned zombie for 999 days + send "&aYou Summon the dead!" to player + set {owner.zombie.%spawned zombie%} to player + {zombie.%player%.active} is not set: + set {zombie.%player%.active} to 0 + add 1 to {zombie.%player%.active} + reduce player's level progress by 0.3 + +on left click with blaze rod: + {kit.%player%} is "necromancer": + + {zombie.%player%.active} is not set: + send "&cYou have no zombies out!" to player + stop + {zombie.%player%.active} is 0: + send "&cYou have no zombies out!" to player + stop + level progress of player is greater than or equal to {zombie.%player%.active} / 10: + loop all zombies: + {owner.zombie.%loop-entity%} is player: + delete loop-entity + make player damage player by {zombie.%player%.active} + reduce player's level progress by {zombie.%player%.active} / 10 + clear {zombie.%player%.active} + send "&aYou call back the dead!" to player + +on damage of a player: + attacker is a zombie: + cancel event + set {_player} to {owner.zombie.%attacker%} + make {_player} damage victim by 2 + +on death of a zombie: + clear drops + +on damage of a zombie: + {kit.%attacker%} is not set: + send "&cYou can not do that!" to attacker + cancel event + stop + + damage is greater than victim's health + cancel event + set {_player} to {owner.zombie.%victim%} + make attacker damage {_player} by 2 + send "&c%attacker% has slain your spawn!" to {_player} + send "&a%{_player}%'s spawn has died to your hand." to attacker + subtract 1 from {zombie.%{_player}%.active} + delete victim \ No newline at end of file diff --git a/kitpvp/ninja.sk b/kitpvp/ninja.sk new file mode 100644 index 0000000..224d0d4 --- /dev/null +++ b/kitpvp/ninja.sk @@ -0,0 +1,32 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + {kit.%player%} is "ninja": + {ingame.%player%} is not set + apply speed 3 to player for 999 days + equip player with all leather armor of unbreaking 10 named "&fNinja Cloaks" + dye player's helmet (0, 0, 0) + dye player's chestplate (0, 0, 0) + dye player's leggings (0, 0, 0) + dye player's boots (0, 0, 0) + apply jump 2 to player for 999 days + apply absorption 3 to player for 999 days + give stone sword of unbreaking 10 named "&fSharp Knife" to player + give 3 snowball named "&fBlindness Balls" to player + give 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" to player + give potion of poison named "&fJump Potion" to player + set {ingame.%player%} to true + +on consume: + item is potion of poison named "&fJump Potion": + cancel event + remove potion of poison from player + give glass bottle named "&fEmpty Jump Potion Bottle" to player + remove jump from player + apply jump 5 to player for 10 seconds + wait 10 seconds + remove jump from player + apply jump 2 to player for 999 days + diff --git a/kitpvp/skelemancer.sk b/kitpvp/skelemancer.sk new file mode 100644 index 0000000..b863a7a --- /dev/null +++ b/kitpvp/skelemancer.sk @@ -0,0 +1,93 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + {kit.%player%} is "skelemancer": + {ingame.%player%} is not set + equip player with all leather armor of unbreaking 10 named "&fSkelemancer's Robes" + dye player's helmet (124, 2, 205) + dye player's chestplate (124, 2, 205) + dye player's leggings (124, 2, 205) + dye player's boots (124, 2, 205) + give player bone of knockback 1 named "&fSummoning Bone" with lore "&aInstructions:|| ||&5Right Click:||&3Summon a mob at||&3targeted location|| ||&5Left Click:||&3Call back your summoned||&3Mobs." + give player bow of infinity 1 and punch 1 named "&fSummoner's Sidekick" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + give player 1 arrow + apply speed 1 to player for 999 days + set player's level progress to 0.99 + set {ingame.%player%} to true + +on right click with a bone: + {kit.%player%} is "skelemancer": + targeted block is glass: + cancel event + level progress of player is greater than or equal to 0.3: + {skeleton.%player%.active} is greater than or equal to 5: + send "&cYou have too many Skeletons!" to player + stop + spawn a wither skeleton at block above targeted block + set {_skeleton.%player%} to spawned wither skeleton + equip {_skeleton.%player%} with leather helmet + set {_skeleton.%player%}'s tool to stone sword + set name of spawned wither skeleton to "&cNecroSpawn" + set {_loc} to block 20 meters above player + spawn 1 of large explode data 1 offset with 0, 0, 0 at {_loc} + make player damage player by 2 + + apply speed 3 to spawned wither skeleton for 999 days + send "&aYou Summon the dead!" to player + set {owner.skeleton.%spawned wither skeleton%} to player + {skeleton.%player%.active} is not set: + set {skeleton.%player%.active} to 0 + add 1 to {skeleton.%player%.active} + reduce player's level progress by 0.3 + +on left click with bone: + + {kit.%player%} is "skelemancer": + {skeleton.%player%.active} is not set: + send "&cYou have no Skeletons out!" to player + stop + {skeleton.%player%.active} is 0: + send "&cYou have no Skeletons out!" to player + stop + level progress of player is greater than or equal to {skeleton.%player%.active} / 10: + loop all wither skeletons: + {owner.skeleton.%loop-entity%} is player: + delete loop-entity + make player damage player by {skeleton.%player%.active} + reduce player's level progress by {skeleton.%player%.active} / 10 + clear {skeleton.%player%.active} + send "&aYou call back the dead!" to player + + + +on damage of a player: + attacker is a wither skeleton: + cancel event + set {_player} to {owner.skeleton.%attacker%} + + {kit.%victim%} is not set: + stop + {kit.%{_player}%} is not set: + stop + make {_player} damage victim by 2 + +on death of a wither skeleton: + clear drops + + +on damage of a wither skeleton: + {kit.%attacker%} is not set: + send "&cYou can not do that!" to attacker + cancel event + stop + damage is greater than victim's health + cancel event + set {_player} to {owner.skeleton.%victim%} + make attacker damage {_player} by 2 + send "&c%attacker% has slain your spawn!" to {_player} + subtract 1 from {skeleton.%{_player}%.active} + send "&a%{_player}%'s spawn has died to your hand." to attacker + delete victim \ No newline at end of file diff --git a/kitpvp/tank.sk b/kitpvp/tank.sk new file mode 100644 index 0000000..e06ea66 --- /dev/null +++ b/kitpvp/tank.sk @@ -0,0 +1,22 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "tank": + {ingame.%player%} is not set + clear player's inventory + equip player with all leather armor of unbreaking 10 named "&fArmor of Density" + dye player's helmet (255, 255, 0) + dye player's chestplate (255, 255, 0) + dye player's leggings (255, 255, 0) + dye player's boots (255, 255, 0) + give player wood shovel of knockback 1 and unbreaking 10 named "&fTank's Paddle" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + apply slowness 1 to player for 999 days + apply health boost 3 to player for 999 days + give player 5 snowballs named "&fDisabling Bombs" + heal player by 10 hearts + set {ingame.%player%} to true +