Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Obam-General/autohub.sk
Original file line number Diff line number Diff line change
@@ -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

2 changes: 1 addition & 1 deletion Obam-General/liv.sk
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ command /livalert <text> [<integer>]:
stop
argument 1 is "list":
loop {db_liv.alerts::*}:
send "%loop-index%......&6&l'LiV: &3%{db_liv.alerts::%loop-index%}%" to player
send "%loop-index%......&6&l'LiV: &3%{db_liv.alerts::%loop-index%}%"
stop
add argument 1 to {db_liv.alerts::*}
send "&aYou have added &6&l'LiV: &3%argument 1% &ato the alert system"
Expand Down
36 changes: 12 additions & 24 deletions Obam-Survival/fortune.sk
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,20 @@ on break:
set {for.ran.%player%} to random integer between 5 and 15
{current.aura.%player%} is "fortune":
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
Expand All @@ -111,27 +123,18 @@ on break:
block is diamond ore:
add 1 to {fortune.spam.%player%}
chance of {fortune.chance.%player%}%:
player's tool is a pickaxe of silk touch:
send "&cYour fortune aura has no effect with this enchantment!" to player
stop
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%}%:
player's tool is a pickaxe of silk touch:
send "&cYour fortune aura has no effect with this enchantment!" to player
stop
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%}%:
player's tool is a pickaxe of silk touch:
send "&cYour fortune aura has no effect with this enchantment!" to player
stop
cancel event
delete event-block
drop 1 gold ingot
Expand All @@ -141,9 +144,6 @@ on break:
block is iron ore:
add 1 to {fortune.spam.%player%}
chance of {fortune.chance.%player%}%:
player's tool is a pickaxe of silk touch:
send "&cYour fortune aura has no effect with this enchantment!" to player
stop
cancel event
delete event-block
drop 1 iron ingot
Expand All @@ -153,36 +153,24 @@ on break:
block is lapis ore:
add 1 to {fortune.spam.%player%}
chance of {fortune.chance.%player%}%:
player's tool is a pickaxe of silk touch:
send "&cYour fortune aura has no effect with this enchantment!" to player
stop
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%}%:
player's tool is a pickaxe of silk touch:
send "&cYour fortune aura has no effect with this enchantment!" to player
stop
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%}%:
player's tool is a pickaxe of silk touch:
send "&cYour fortune aura has no effect with this enchantment!" to player
stop
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%}%:
player's tool is a pickaxe of silk touch:
send "&cYour fortune aura has no effect with this enchantment!" to player
stop
send "&aFortune favours you!" to player
drop 1 nether quartz
add 1 to {fortune.spam.%player%}
53 changes: 51 additions & 2 deletions Obam-Survival/heads.sk
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,61 @@ on death of a player:
replace "DATE" in {_item} with "%now%"
add named item stack from {_item} to drops

on death of a creeper or skeleton or zombie:
on death of a living entity:
attacker is a player:
chance of 2%:
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

6 changes: 6 additions & 0 deletions Obam-Survival/landclaim.sk
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ command /front [<text>] [<text>] [<text>]:
argument 2 is "set":
send "&cThat is an invalid name!" to player
stop
argument 2 is not set:
send "&cPlease choose a name!" to player
stop
message "&aYou have named this Front to &e%argument 2%"
set {chunk.name.%chunk at location of player%} to "%argument 2%"
add {chunk.name.%chunk at location of player%} to {name.list.%player%::*}
Expand All @@ -266,6 +269,9 @@ command /front [<text>] [<text>] [<text>]:
{_count} is not set:
set {_count} to 0
add 1 to {_count}
{chunk.name.%{_chunk}%} is not set:
set {chunk.name.%{_chunk}%} to "%{_count}%"
set {_chunk.name} to {chunk.name.%{_chunk}%}
{_chunk.name} is not set:
set {_chunk.name} to "&cNot Named"
send "&a%{_count}%.......%{_chunk}%....%{_chunk.name}%" to player
Expand Down
2 changes: 2 additions & 0 deletions Obam-Testing/powerpick.sk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on script load:





on mine:
name of player's tool is "&cPower Pick":
x-coordinate of event-block is not x-coordinate of player:
Expand Down
Loading