diff --git a/Creative/RANK UP ELITE b/Creative/RANK UP ELITE new file mode 100644 index 0000000..b8d3041 --- /dev/null +++ b/Creative/RANK UP ELITE @@ -0,0 +1,9 @@ +command /rankup []: + permission: obam.admin + description: ranks up player if their build is good + trigger: + if %argument% is set: + set {_valenian.rank.%argument%} to {_valenian.rank.%argument%} + 1 + send "%argument% is now rank {_valenian.rank.%argument%}" to player + if %argument% is not set: + send "Please type in a playername." to player diff --git a/Creative/rank up b/Creative/rank up new file mode 100644 index 0000000..57fe8e8 --- /dev/null +++ b/Creative/rank up @@ -0,0 +1,9 @@ +variables: + {rank.%player} = 0 + +command /rankup [] + permission: obam.admin + description: ranks up player if their build is good + + trigger: + set {rank.%player} to {rank.%player} + 1 diff --git a/Obam-Testing/Crafting Aura b/Obam-Testing/Crafting Aura new file mode 100644 index 0000000..2192e5a --- /dev/null +++ b/Obam-Testing/Crafting Aura @@ -0,0 +1,289 @@ + + +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 + + + {current.aura.%player%} is "crafting": + send "&7You have the &eCrafting Aura&7 activated" 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 "crafting": + argument 2 is not set: + send "&cYou must choose &6on&c or &6off&c." to player + + argument 2 is "on": + + {current.aura.%player%} is "crafting": + send "&cYou already have a Crafting Aura active." to player + stop + + set {current.aura.%player%} to "crafting" + send "&aYou have activated the &eCrafting&a Aura!" to player + + + argument 2 is "off": + clear {current.aura.%player%} + send "&aYou have deactivated your Creative Aura!" to player + + +on break: + {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%} + 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 + + {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 + {current.aura.%player%} is "fortune" + + block is diamond ore: + add 1 to {fortune.spam.%player%} + chance of {fortune.chance.%player%}%: + send "&aFortune favours you!" to player + drop 1 diamond + add 1 to {fortune.spam.%player%} + + 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: + 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%} + + block is iron ore: + + 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%} + + 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: + 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: + 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: + 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%} + + + +on loop-player crafting of tool: + {current.aura.%player%} is "crafting" + + + set {_ran} to random integer between 1 and 200 + + {_ran} is 1 + players tool is sword: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + players tool is pickaxe: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + players tool is axe: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + players tool is shovel: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + + {_ran} is 2 + players tool is sword: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + players tool is pickaxe: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + players tool is axe: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + players tool is shovel: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + + {_ran} is 3 + players tool is sword: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + players tool is pickaxe: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + players tool is axe: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + players tool is shovel: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + + {_ran} is 4 + players tool is sword: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + players tool is pickaxe: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + players tool is axe: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + players tool is shovel: + enchant tool with #RANDOM ENCHANT THAT WE WILL CHOSE + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Obam-Testing/break the hands b/Obam-Testing/break the hands new file mode 100644 index 0000000..c8a4775 --- /dev/null +++ b/Obam-Testing/break the hands @@ -0,0 +1,5 @@ +on leftclick on a stone or netherbrick or ore or end stone with air +set {_ran} to a random integer between 1 and 5 + +{_ran} is 1 +damage player by 1 heart diff --git a/Obam-Testing/disenchant b/Obam-Testing/disenchant new file mode 100644 index 0000000..de68ea9 --- /dev/null +++ b/Obam-Testing/disenchant @@ -0,0 +1,28 @@ +command /unenchant: + executable by: players + permission: obam.free + aliases: /disenchant + 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 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-Testing/heal b/Obam-Testing/heal new file mode 100644 index 0000000..acfba78 --- /dev/null +++ b/Obam-Testing/heal @@ -0,0 +1,34 @@ +variables: + {heal.%player%} = false + {check.%player%} = false + {use.%player%} = true + {abstain.%player%} = true + + + +command /heal: + executable by: players + permission: obam.free + trigger: + {abstain.%player%} = true + {use.%player%} = 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 + set {use.%player%} to false + send "&aYou have been healed" to player + send "&aYou have &e%player's balance%&a remaining" to player + stop + +every 1 hour: + + loop all players: + set {_check} to difference between {heal.%player%} and now + {_check} is less than 12 hours + set {use.%player%} to false: + + set {use.%players%} to true diff --git a/Obam-Testing/soap b/Obam-Testing/soap new file mode 100644 index 0000000..6e3ae23 --- /dev/null +++ b/Obam-Testing/soap @@ -0,0 +1,44 @@ +variable: + {dirty.%player%} = 25 + + +options: + soap1: nether brick;&3Soap;&6Makes it so you don't stink||&6by tossing it when you are in water. + +on script load: + + register new shaped recipe for named item stack from "{@soap1}" using air,air,air,air,milk bucket,dandelion,air,air,water bottle + register new shaped recipe for named item stack from "{@soap1}" using air,air,air,air,milk bucket,poppy,air,air,water bottle + +on craft: + event-item is named item stack from "{@soap1}": + drop 1 bucket at locaiton of event-player + + + + +on drop: + + player's tool is named item stack from "{@soap1}": + + on walking on water block: + {dirty.%player%} = 25 + +on break of coal ore or dirt: + set {dirty.%loop-player%} to {dirty.%loop-player%} - 1 + + +walking on dirt or grass: + every 5 seconds: + set {dirty.%loop-player%} to {dirty.%loop-player%} - 1 + + +every 60 seconds: + if {dirty.%player%} is less than 10: + apply nausea 2 for 3 seconds + send "&cYour stench affects you, you might want to get some soap" to loop-player + + + #Eventually want to make it so it can repel passive mobs + + diff --git a/Obam-Testing/wtfronts.sk b/Obam-Testing/wtfronts.sk index e75214d..4391704 100644 --- a/Obam-Testing/wtfronts.sk +++ b/Obam-Testing/wtfronts.sk @@ -263,6 +263,14 @@ every 3 seconds: apply mining fatigue 2 to loop-player for 1 minute apply weakness to loop-player for 30 seconds +every 120 seconds: + loop all players: + biome is swamp at location of player + set {_ran} to a random integer between 1 and 5 + {_ran} is 1: + apply hunger 2 for 20 seconds + + on spawn of a creeper or a skeleton or a spider or zombie: {unstable.%chunk at event-location%} is true: @@ -540,4 +548,4 @@ command /debug: - \ No newline at end of file +