Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # For most updated version, join the TroopCraft server at troopcraft.gamename.net
- # cost:cooldown
- # droom = anvil attack = (Spell_Level / 2) + 1 Explosion_Size 40:15
- # lance = lance of explosions = Spell_Level * 6 Lance_Size 75:50
- # magic missile = (Spell_Level / 2) + 2.5 Damage, Spell_Level * 15 Length 15:5
- # rumble!!!
- on first join:
- give player 1 blaze rod named "&6&lWand &7No active spell" with lore "&bLeft click to cast a spell, &3Right click to choose one!"
- set {mana::%player%} to 128
- on join:
- delete {converting.%player%}
- options:
- protection.level: 6 #This is the level of protection mana mobs will have on their armor#
- droprate.min: 10 #this is the minimum amount of mana a manamob will drop#
- droprate.max: 128 #this is the maximum amount of mana a manamob will drop#
- convert.rate: 1 #this is the amount of redstone required to make 1 mana in a mana converter#
- fragment.rate: 1% #this is the percent chance of a mana mob dropping a wand fragment#
- #below are the mana costs per spell#
- mana.Warp: 120
- mana.heal: 50
- mana.feed: 50
- mana.rapidfire: 15
- mana.speedboost: 20
- mana.minibomb: 20
- mana.raindance: 128 #note: this is very high because players changing the weather constantly is annoying#
- mana.droom: 40
- mana.fireball: 30
- mana.lance: 75
- mana.lightning_strike: 50
- mana.magic_blast: 15
- mana.implode: 50
- mana.leap: 40
- mana.ghost: 180
- mana.nofall: 45
- mana.gust: 40
- mana.nova: 240
- mana.earthquake: 512
- mana.iceprison: 80
- mana.witherskull: 40
- mana.fireball: 40
- mana.starcrash: 200
- mana.starstorm: 2500
- mana.armageddon: 10000
- #below are the cooldowns per spell (in seconds)#
- timer.Warp: 60
- timer.heal: 30
- timer.feed: 30
- timer.rapidfire: 5
- timer.speedboost: 30
- timer.minibomb: 15
- timer.raindance: 3600
- timer.implode: 30
- timer.leap: 8
- timer.ghost: 16
- timer.nofall: 20
- timer.gust: 20
- timer.nova: 360
- timer.earthquake: 200
- timer.iceprison: 120
- timer.witherskull: 60
- timer.fireball: 8
- timer.starcrash: 300
- timer.starstorm: 900
- timer.armageddon: 259200
- on spawn of skeleton or zombie:
- chance of 7%:
- equip event-entity with leather helmet of protection {@protection.level} named "&4Mana Helmet"
- equip event-entity with leather chestplate of protection {@protection.level} named "&4Mana Chestplate"
- equip event-entity with leather leggings of protection {@protection.level} named "&4Mana Leggings"
- equip event-entity with leather boots of protection {@protection.level} named "&4Mana Boots"
- dye event-entity's helmet red
- dye event-entity's chestplate red
- dye event-entity's leggings red
- dye event-entity's boots red
- if event-entity is a zombie:
- set tool of event-entity to iron sword of sharpness 2 and fire aspect 1 named "&4Mana Sword"
- else if event-entity is a skeleton:
- set tool of event-entity to bow of punch 1 and flame 1 named "&4Mana Bow"
- set {manamob.%event-entity%} to true
- on death:
- if {manamob.%victim%} is true:
- set {_count} to a random integer between {@droprate.min} and {@droprate.max}
- loop {_count} times:
- add redstone named "&4Mana" to drops
- chance of {@fragment.rate}:
- add 1 blaze powder named "&6&oWand Fragment" to drops
- on death:
- world is "troopcraft" or "troopcraft_nether" or "troopcraf_the_end":
- chance of 5%:
- add 3 redstone named "&4Mana" to drops
- chance of 1%:
- set {_count} to a random integer between {@droprate.min} and {@droprate.max}
- loop {_count} times:
- add redstone named "&4Mana" to drops
- chance of 1%:
- chance of 1%:
- add 1 blaze powder named "&6&oWand Fragment" to drops
- #on right click on stone button:
- # loop blocks in radius 3 around event-block:
- # if loop-block is stone brick stairs:
- # add 1 to {_count.stonebrick} #should be 6#
- # if loop-block is double stone slab:
- # add 1 to {_count.stoneslab} #should be 2#
- # if loop-block is a chest:
- # set {_chest} to location of loop-block
- # if loop-block is a dropper:
- # set {_output} to location of loop-block
- # if {_count.stonebrick} > 5:
- # if {_count.stoneslab} > 1:
- # if {_output} is set:
- # if {_chest} is set:
- # loop all items in block at {_chest}:
- # if loop-item is redstone:
- # set {_count.stack} to amount of loop-item in block at {_chest}
- # add {_count.stack} to {_count.redstone}
- # while {_count.redstone} > {@convert.rate} - 1:
- # remove 10 redstone from block at {_chest}
- # remove 10 from {_count.redstone}
- # add 1 redstone named "&4Mana" to block at {_output}
- on right click:
- world is "troopcraft" or "troopcraft_nether" or "troopcraf_the_end"
- {manachest.picking.%uuid of player%} is true:
- set {manachest.%uuid of player%} to event-block
- message "&3You set your mana chest to the %event-block% at &b%{manachest.%uuid of player%}%"
- set {manachest.picking.%uuid of player%} to false
- command /wand:
- aliases: /wandgive
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- give player 1 blaze rod named "&6&lWand &7No active spell" with lore "&bLeft click to cast a spell, &3Right click to choose one!"
- command /convert: #123
- aliases: /c, /c!
- trigger:
- {converting.%player%} is not set
- set {converting.%player%} to true
- set {_mana} to redstone named "&4Mana"
- loop items in player's inventory:
- if loop-value is {_mana}:
- set {_itemstack} to "%loop-value%"
- set {_split::*} to {_itemstack} split at " "
- add {_split::1} parsed as integer to {_numb}
- if parse error is set:
- add 1 to {_numb}
- remove {_numb} of {_mana} from player
- add {_numb} to {mana::%player%}
- {_numb} is greater than 0
- send "&2You just gained &c%{_numb}%&2 mana!"
- send "&2Now you have &4%{mana::%player%}%&2 total mana!"
- delete {converting.%player%}
- on pickup of redstone:
- set {_mana} to redstone named "&4Mana"
- event-item is {_mana}:
- wait 5 ticks
- execute player command "/c"
- delete {converting.%player%}
- command /mana [<text>] [<integer>]:
- aliases: /magic, /magicka, /magik, /magick
- trigger:
- if arg 1 is not set:
- send "&cYou have &4%{mana::%player%}%&c mana!"
- else if arg 1 is "handset" or "set" or "chest":
- set {manachest.picking.%uuid of player%} to true
- message "&3Click a &bchest &3to select your chest!"
- else if arg 1 is "open":
- if {manachest.%uuid of player%} isn't set:
- message "&3You need to set a &bMana Chest &3to open your mana storage!"
- message "&3To do this, look at your specified chest and type ""&b/mana set&3""!"
- stop
- open inventory of block at {manachest.%uuid of player%} to player
- message "&bHere you go!"
- else if arg 1 is "give":
- if player doesn't have permission "skript.op":
- message "Unknown command. Type ""/help"" for help."
- stop
- if arg 2 isn't set:
- message "&cError! Invalid amount of redstone!"
- stop
- if arg 2 < 1:
- message "&cError! Invalid amount of redstone!"
- stop
- set {_count} to arg 2
- loop {_count} times:
- give player 1 redstone named "&4Mana"
- else:
- send "&3You need a wand to perform the most basic of magic! &4The easiest way to get a wand is by killing mobs. &2Of course there is a cost, which is called mana. &cYou can either kill mobs or convert redstone in a converter to gain this mana. &6You then run the /convert command to this mana to convert is to a usable form!"
- on click:
- player's tool is redstone named "&4Mana":
- cancel the event
- execute player command "/c"
- on mine:
- if block is a dispenser:
- if block contains 4 diamond blocks:
- if block contains 1 blaze rod:
- if block contains 4 gold blocks:
- if block contains 1 emerald:
- set {_loc} to location of target block
- cancel the event
- clear block's inventory
- set block to air
- wait 1 tick
- drop a blaze rod named "&6&lWand &7No active spell" at {_loc}
- if block contains 4 diamonds:
- if block contains 4 gold ingots:
- if block contains 1 emerald:
- if block contains 3 blaze powder named "&6&oWand Fragment":
- set {_loc} to location of target block
- cancel the event
- clear block's inventory
- set block to air
- wait 1 tick
- drop a blaze rod named "&6&lWand &7No active spell" at {_loc}
- on right click with feather:
- player has permission "spell.test":
- send "No spell is waiting"
- command /spell-Warp:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.Warp}:
- message "&3You need at least &4{@mana.Warp}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.Warp.%player%} and now
- if {_difference} is less than {@timer.Warp} seconds:
- set {_difference} to difference between {_difference} and {@timer.Warp} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.Warp.%player%} to now
- remove {@mana.Warp} from {mana::%player%}
- shoot an enderpearl with velocity 4
- set {nofall.%player%} to true
- set {enderwand.%projectile%} to true
- command /spell-feed:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.feed}:
- message "&3You need at least &4{@mana.feed}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.feed.%player%} and now
- if {_difference} is less than {@timer.feed} seconds:
- set {_difference} to difference between {_difference} and {@timer.feed} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.feed.%player%} to now
- remove {@mana.feed} from {mana::%player%}
- apply saturation 20 to the player for 3 seconds
- send "&2Care Package Received!"
- command /spell-heal:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.heal}:
- message "&3You need at least &4{@mana.heal}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.heal.%player%} and now
- if {_difference} is less than {@timer.heal} seconds:
- set {_difference} to difference between {_difference} and {@timer.heal} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.heal.%player%} to now
- remove {@mana.heal} from {mana::%player%}
- heal the player by 40 hearts
- send "&2First Aid Received!"
- command /spell-rapidfire:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.rapidfire}:
- message "&3You need at least &4{@mana.rapidfire}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.rapidfire.%player%} and now
- if {_difference} is less than {@timer.rapidfire} seconds:
- set {_difference} to difference between {_difference} and {@timer.rapidfire} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.rapidfire.%player%} to now
- remove {@mana.rapidfire} from {mana::%player%}
- loop 20 times:
- if {mana::%player%} >= {@mana.rapidfire}:
- if {mana::%player%} > 0:
- make player shoot arrow at velocity 3
- set {rapidfire.%last shot projectile%} to true
- play raw sound "random.bow" at player with pitch 1 volume 1
- if {_mana.inv} > 0:
- remove 1 from {mana::%player%}
- else if {_mana.inv} < 1:
- remove 1 from {mana::%player%}
- wait 2 ticks
- if {mana::%player%} < 0:
- send "&3Mana is out"
- stop
- command /spell-speedboost:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.speedboost}:
- message "&3You need at least &4{@mana.speedboost}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.speedboost.%player%} and now
- if {_difference} is less than {@timer.speedboost} seconds:
- set {_difference} to difference between {_difference} and {@timer.speedboost} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.speedboost.%player%} to now
- remove {@mana.speedboost} from {mana::%player%}
- set player's walk speed to 0.6
- wait 30 seconds
- set player's walk speed to 0.2
- on join:
- set player's walk speed to 0.2
- command /spell-minibomb:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.minibomb}:
- message "&3You need at least &4{@mana.minibomb}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.minibomb.%player%} and now
- if {_difference} is less than {@timer.minibomb} seconds:
- set {_difference} to difference between {_difference} and {@timer.minibomb} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.minibomb.%player%} to now
- remove {@mana.minibomb} from {mana::%player%}
- shoot a snowball at velocity 1.5
- set {minibomb.%last shot projectile%} to true
- command /spell-raindance:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.raindance}:
- message "&3You need at least &4{@mana.raindance}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.raindance.%player%} and now
- if {_difference} is less than {@timer.raindance} seconds:
- set {_difference} to difference between {_difference} and {@timer.raindance} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.raindance.%player%} to now
- remove {@mana.raindance} from {mana::%player%}
- run player command "/td" as op
- broadcast "&9&o%player% has performed a rain dance . . ."
- command /spell-nova:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.nova}:
- message "&3You need at least &4{@mana.nova}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.nova.%player%} and now
- if {_difference} is less than {@timer.nova} seconds:
- set {_difference} to difference between {_difference} and {@timer.nova} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.nova.%player%} to now
- remove {@mana.nova} from {mana::%player%}
- loop blocks in radius 2 around player:
- loop-block is air:
- block below loop-block is not air
- create fake explosion at loop-block
- chance of 50%:
- create safe explosion of force 1 at loop-block
- strike lightning effect at loop-block
- wait 4 ticks
- loop blocks in radius 3 around player:
- loop-block is air:
- block below loop-block is not air
- distance between player and loop-block is greater than 2
- create fake explosion at loop-block
- chance of 75%:
- create safe explosion of force 1 at loop-block
- strike lightning effect at loop-block
- wait 4 ticks
- loop blocks in radius 4 around player:
- loop-block is air:
- create fake explosion at loop-block
- loop blocks in radius 4 around player:
- loop-block is air:
- block below loop-block is not air
- distance between player and loop-block is greater than 3
- create fake explosion at loop-block
- create safe explosion of force 1 at loop-block
- strike lightning effect at loop-block
- loop entities in radius 5 around player:
- damage loop-entity by 5
- push player up at speed 1
- wait 15 ticks
- loop blocks in radius 4 around player:
- loop-block is air:
- block below loop-block is not air
- create fake explosion at loop-block
- wait 1 tick
- command /spell-gust:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.gust}:
- message "&3You need at least &4{@mana.gust}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.gust.%player%} and now
- if {_difference} is less than {@timer.gust} seconds:
- set {_difference} to difference between {_difference} and {@timer.gust} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.gust.%player%} to now
- remove {@mana.gust} from {mana::%player%}
- loop entities in radius 8 around player:
- push the loop-entity upwards at speed 0.5
- push the loop-entity backwards at speed 1
- apply slowness 4 to loop-entity for 3 seconds
- push player forward at speed .5
- push player up at speed .3
- command /spell-earthquake:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.earthquake}:
- message "&3You need at least &4{@mana.earthquake}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.earthquake.%player%} and now
- if {_difference} is less than {@timer.earthquake} seconds:
- set {_difference} to difference between {_difference} and {@timer.earthquake} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.earthquake.%player%} to now
- remove {@mana.earthquake} from {mana::%player%}
- set {_x.%player%} to the player's x-coordinate
- set {_y.%player%} to the player's y-coordinate - 5
- set {_z.%player%} to the player's z-coordinate
- set {_quaketime.%player%} to 60
- while {_quaketime.%player%} is greater than 0:
- subtract 1 from {_quaketime.%player%}
- loop all entities in radius 16 around the targeted block or entity:
- if {_list::*} doesn't contain loop-entity:
- add loop-entity to {_list::*}
- distance between loop-entity and the targeted block or entity is less than 12
- block below loop-entity is not air
- chance of 33%
- execute console command "playsound random.explode %player% %{_x.%player%}% %{_y.%player%}% %{_z.%player%}% 0.5 0.1"
- push loop-entity up at speed 0.25
- damage loop-entity by 7
- apply slowness 4 to the loop-entity for 1 second
- wait 1 tick
- execute console command "particle lava %{_x.%player%}% %{_y.%player%}% %{_z.%player%}% 12 12 12 1 100 force"
- wait 3 ticks
- loop {_list::*}:
- set {_p} to loop-value
- send "The Earthquake of %player% is over!" to {_p}
- clear {_list::*}
- command /spell-iceprison:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.iceprison}:
- message "&3You need at least &4{@mana.iceprison}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.iceprison.%player%} and now
- if {_difference} is less than {@timer.iceprison} seconds:
- set {_difference} to difference between {_difference} and {@timer.iceprison} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.iceprison.%player%} to now
- remove {@mana.iceprison} from {mana::%player%}
- if player's targeted entity exists:
- apply slowness 10 to the player's targeted entity for 2 seconds
- set {_spell2.%player%} to the altitude of the player's targeted entity
- set {_l} to block at player's targeted entity
- make player shoot a snowball at speed 50
- damage targeted entity by 3
- else:
- spawn a chicken at player's targeted block
- set {_l} to last spawned entity
- execute console command "playsound mob.wither.shoot %player%"
- wait 3 ticks
- execute console command "playsound random.glass %player%"
- loop blocks in radius 2 around {_l}:
- loop-block is air or long grass:
- add location of loop-block to {_blocks::*}
- set loop-block to ice
- loop 4 times:
- wait 1 second
- loop {_blocks::*}:
- set block at loop-value to air
- execute console command "playsound random.glass %player%"
- wait 1 tick
- if last spawned entity is alive:
- kill last spawned entity
- command /spell-witherskull:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.witherskull}:
- message "&3You need at least &4{@mana.witherskull}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.witherskull.%player%} and now
- if {_difference} is less than {@timer.witherskull} seconds:
- set {_difference} to difference between {_difference} and {@timer.witherskull} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.witherskull.%player%} to now
- remove {@mana.witherskull} from {mana::%player%}
- shoot a wither skull at speed 1
- execute console command "playsound mob.blaze.death %player%"
- command /spell-fireball:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.fireball}:
- message "&3You need at least &4{@mana.fireball}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.fireball.%player%} and now
- if {_difference} is less than {@timer.fireball} seconds:
- set {_difference} to difference between {_difference} and {@timer.fireball} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.fireball.%player%} to now
- remove {@mana.fireball} from {mana::%player%}
- shoot a fireball at speed 3
- execute console command "playsound mob.wither.shoot %player%"
- command /spell-starstorm:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.starstorm}:
- message "&3You need at least &4{@mana.starstorm}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.starstorm.%player%} and now
- if {_difference} is less than {@timer.starstorm} seconds:
- set {_difference} to difference between {_difference} and {@timer.starstorm} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.starstorm.%player%} to now
- remove {@mana.starstorm} from {mana::%player%}
- set {_l} to player's targeted block
- set {_o} to {_l}
- loop entities in radius 12 around the block at {_l}:
- push loop-entity up at speed 1
- create a safe explosion of force 1 10 meters above the loop-entity's head
- wait 1 ticks
- create a safe explosion of force 1 8 meters above the loop-entity's head
- wait 1 ticks
- create a safe explosion of force 1 6 meters above the loop-entity's head
- wait 1 ticks
- create a safe explosion of force 1 4 meters above the loop-entity's head
- wait 1 ticks
- create a safe explosion of force 1 2 meters above the loop-entity's head
- wait 1 ticks
- create a safe explosion of force 3 at the loop-entity
- set {_n} to 0
- loop 5 times:
- create a safe explosion of force 1 10 meters above {_l}
- wait 1 ticks
- create a safe explosion of force 1 8 meters above {_l}
- wait 1 ticks
- create a safe explosion of force 1 6 meters above {_l}
- wait 1 ticks
- create a safe explosion of force 1 4 meters above {_l}
- wait 1 ticks
- create a safe explosion of force 1 2 meters above {_l}
- wait 1 ticks
- create a safe explosion of force 3 at {_l}
- add 1 to {_n}
- wait 5 ticks
- if {_n} is 1:
- set {_l} to block 5 meters north of {_o}
- if {_n} is 2:
- set {_l} to block 5 meters south of {_o}
- if {_n} is 3:
- set {_l} to block 5 meters east of {_o}
- if {_n} is 4:
- set {_l} to block 5 meters west of {_o}
- command /spell-starcrash:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.starcrash}:
- message "&3You need at least &4{@mana.starcrash}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.starcrash.%player%} and now
- if {_difference} is less than {@timer.starcrash} seconds:
- set {_difference} to difference between {_difference} and {@timer.starcrash} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.starcrash.%player%} to now
- remove {@mana.starcrash} from {mana::%player%}
- set {_t} to player's targeted block
- create a safe explosion of force 5 15 meters above {_t}
- wait 6 ticks
- create a safe explosion of force 5 12 meters above {_t}
- wait 6 ticks
- create a safe explosion of force 5 9 meters above {_t}
- wait 6 ticks
- create a safe explosion of force 5 6 meters above {_t}
- wait 6 ticks
- create a safe explosion of force 5 3 meters above {_t}
- wait 6 ticks
- create a safe explosion of force 10 at {_t}
- command /spell-armageddon:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.armageddon}:
- message "&3You need at least &4{@mana.armageddon}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.armageddon.%player%} and now
- if {_difference} is less than {@timer.armageddon} seconds:
- set {_difference} to difference between {_difference} and {@timer.armageddon} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.armageddon.%player%} to now
- remove {@mana.armageddon} from {mana::%player%}
- set {_targeted} to target of player
- if {_targeted} is not set:
- spawn a chicken at player's targeted block
- set {_targeted} to last spawned entity
- if {_targeted} is not set:
- set {_targeted} to player
- send "&cYour spell backfired... &4&l&n&oRUN!!!"
- set {chat.%player%} to false
- loop 100 times:
- set {_target} to location of {_targeted}
- increase y-coordinate of {_target} by 50
- reduce x-coordinate of {_target} by 10
- reduce z-coordinate of {_target} by 10
- set {_MinimumLoc} to {_target}
- increase x-coordinate of {_target} by a random number between 20 and 0
- increase z-coordinate of {_target} by a random number between 20 and 0
- set {_x} to x-coordinate of {_target}
- set {_z} to z-coordinate of {_target}
- set {_y} to y-coordinate of {_target}
- run player command "/summon Fireball %{_x}% %{_y}% %{_z}% {ExplosionPower:5,direction: [0.0,-5.0,0.0]}" as op
- set shooter of the last shot projectile to player
- wait 15 ticks
- set {chat.%player%} to true
- on server chat send:
- {chat.%player%} is false:
- packet message contains "commands.summon.success"
- cancel event
- command /spell-implode:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.implode}:
- message "&3You need at least &4{@mana.implode}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.implode.%player%} and now
- if {_difference} is less than {@timer.implode} seconds:
- set {_difference} to difference between {_difference} and {@timer.implode} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.implode.%player%} to now
- remove {@mana.implode} from {mana::%player%}
- make player shoot tnt at speed 1
- if 1 is 1:
- stop
- add east to {_listofdirections::*}
- add west to {_listofdirections::*}
- add south to {_listofdirections::*}
- add north to {_listofdirections::*}
- set {_loc} to targeted block
- play raw sound "random.explode" at {_loc} with pitch 1 volume 10
- # play 60 of effect "blockcrack_35_14" with data 1 at {_loc}
- # play 55 of effect "lava" with data 1 at {_loc}
- #loop blocks in radius 4 around block at {_loc}:
- loop blocks in radius 3 around block at {_loc}:
- #message "%loop-block's type%" to all players
- "%loop-block%" does not contain "air" or "bedrock" or "obsidian" or "barrier":
- clear {_check}
- distance between loop-block and {_loc} is greater than 3.2:
- chance of 50%:
- set {_check} to true
- distance between loop-block and {_loc} is greater than 5:
- set {_check} to true
- if "%loop-block%" contains "torch" or "lever" or "sign" or "wheat" or "carrot" or "layer" or "potato" or "cake" or "button" or "long" or "stem" or "redstone" or "fire" or "wire" or "diode" or "door" or "sand" or "gravel" or "sapling" or "leaves" or "mushroom" or "poppy" or "dandelion" or "fern" or "orchid" or "allium" or "bluet" or "tulip" or "daisy" or "ladder" or "carpet" or "vine" or "lily" or "anvil" or "lilac" or "flower" or "rose" or "peony" or "bed" or "diode" or "comparator" or "plate" or "hook" or "rail":
- if "%loop-block%" does not contain "block":
- if "%loop-block%" contains "sign":
- set {fallingblocks.soft.sign.1::%location of loop-block%} to "%line 1 of loop-block%"
- set {fallingblocks.soft.sign.2::%location of loop-block%} to "%line 2 of loop-block%"
- set {fallingblocks.soft.sign.3::%location of loop-block%} to "%line 3 of loop-block%"
- set {fallingblocks.soft.sign.4::%location of loop-block%} to "%line 4 of loop-block%"
- #message "Soft" to all players
- set {fallingblocks.soft.location::%location of loop-block%} to location of loop-block
- set {fallingblocks.soft.blocktype::%location of loop-block%} to loop-block's type
- set {fallingblocks.soft.time::%location of loop-block%} to now
- add loop-block's location to {_blocks.soft::*}
- if {fallingblocks.soft.location::%location of loop-block%} is not set:
- if {_check} is not set:
- #message "Hard" to all players
- set {fallingblocks.hard.location::%location of loop-block%} to location of loop-block
- #message "%loop-block's type%" to all players
- set {fallingblocks.hard.blocktype::%location of loop-block%} to loop-block's type
- set {fallingblocks.hard.time::%location of loop-block%} to now
- add loop-block's location to {_blocks.hard::*}
- else if "%loop-block%" is "air":
- if {fallingblocks.hard.time::%location of loop-block%} is set:
- set {fallingblocks.hard.time::%location of loop-block%} to now
- else if {fallingblocks.soft.time::%location of loop-block%} is set:
- set {fallingblocks.soft.time::%location of loop-block%} to now
- loop {_blocks.soft::*}:
- # make player break block at loop-value
- block at loop-value is air
- set {_looploc} to location 1 above block at loop-value
- set {_block} to type of block at loop-value
- spawn falling block of {_block} at {_looploc}
- wait 1 tick
- loop {_blocks.hard::*}:
- # make player break block at loop-value
- block at loop-value is air
- set {_looploc} to location 1 above block at loop-value
- set {_block} to type of block at loop-value
- set block at loop-value to air
- spawn falling block of {_block} at {_looploc}
- wait 1 tick
- play raw sound "random.explode" at {_loc} with pitch 1 volume 10
- #play 60 of effect "blockcrack_35_14" with data 1 at {_loc}
- #play 55 of effect "lava" with data 1 at {_loc}
- loop entities in radius 6 around block at {_loc}:
- #message "%loop-entity%"
- "%loop-entity%" is "falling block":
- set {listoffallingblock::%loop-entity%} to true
- set {_speed} to a random number between .3 and 1.2
- push loop-entity up at speed {_speed}
- set {_dir.1} to random element out of {_listofdirections::*}
- set {_dir.2} to random element out of {_listofdirections::*}
- set {_dir.3} to random element out of {_listofdirections::*}
- set {_dir.1.speed} to random number between .1 and .6
- set {_dir.2.speed} to random number between .1 and .6
- set {_dir.3.speed} to random number between .1 and .6
- push loop-entity {_dir.1} at speed {_dir.1.speed}
- push loop-entity {_dir.2} at speed {_dir.2.speed}
- push loop-entity {_dir.3} at speed {_dir.3.speed}
- wait 1 tick
- play raw sound "random.explode" at {_loc} with pitch 1 volume 10
- #play 60 of effect "blockcrack_35_14" with data 1 at {_loc}
- #play 55 of effect "lava" with data 1 at {_loc}
- if size of {fallingblocks.hard.location::*} is greater than 0:
- set {fallingblocks.activate} to true
- command /spell-leap:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.leap}:
- message "&3You need at least &4{@mana.leap}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.leap.%player%} and now
- if {_difference} is less than {@timer.leap} seconds:
- set {_difference} to difference between {_difference} and {@timer.leap} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.leap.%player%} to now
- remove {@mana.leap} from {mana::%player%}
- push player forward at speed 5
- push player up at speed 1
- set {nofall.%player%} to true
- wait 28 seconds
- delete {nofall.%player%}
- command /spell-ghost:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {mana::%player%} < {@mana.Warp}:
- message "&3You need at least &4{@mana.Warp}&c Mana&3 to use this spell! &6Don't forget to convert it with /c!"
- stop
- set {_difference} to difference between {spell.timer.Warp.%player%} and now
- if {_difference} is less than {@timer.Warp} seconds:
- set {_difference} to difference between {_difference} and {@timer.Warp} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.Warp.%player%} to now
- remove {@mana.Warp} from {mana::%player%}
- set {_loc} to location of player
- set {no.gm.msg.%player%} to true
- run player command "/gmsp" as op
- delete {no.gm.msg.%player%}
- send "&7You are now a ghost!"
- apply water breathing to player for 10 seconds
- wait 10 seconds
- teleport player to {_loc}
- set {no.gm.msg.%player%} to true
- run player command "/gms" as op
- delete {no.gm.msg.%player%}
- teleport player to {_loc}
- send "&6You are a player again!"
- apply hunger 28 to player for 3 seconds
- on server chat send:
- {no.gm.msg.%player%} is true
- packet message contains "Set game mode":
- cancel event
- set {no.gm.msg.%player%} to false
- command /spell-nofall:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- set {_mana.inv} to amount of redstone named "&4Mana" in player's inventory
- set {_mana.chest} to amount of redstone named "&4Mana" in block at {manachest.%uuid of player%}
- set {_mana} to {_mana.inv} + {_mana.chest}
- if {_mana} < {@mana.nofall}:
- message "&3You need at least &c{@mana.nofall} Mana &3to use this spell!"
- stop
- set {_difference} to difference between {spell.timer.nofall.%player%} and now
- if {_difference} is less than {@timer.nofall} seconds:
- set {_difference} to difference between {_difference} and {@timer.nofall} seconds
- message "&3Cooldown: &b%{_difference}%"
- stop
- set {spell.timer.nofall.%player%} to now
- if {_mana.inv} >= {@mana.nofall}:
- remove {@mana.nofall} of redstone named "&4Mana" from player
- else if {_mana.inv} < {@mana.nofall}:
- remove {@mana.nofall} of redstone named "&4Mana" from block at {manachest.%uuid of player%}
- set {nofall.%player%} to true
- set {nofall.msg.%player%} to true
- send "&2Your Feather Falling is &lenabled&2!"
- on projectile hit:
- if {rapidfire.%projectile%} is true:
- delete projectile
- delete {rapidfire.%projectile%}
- if {minibomb.%projectile%} is true:
- create safe explosion of force 3.5 at projectile
- # spell run / executing
- on left click:
- player's tool is a blaze rod:
- name of player's tool contains "&6&lWand":
- cancel the event
- if player's world is "troopcraft" or "troopcraft_nether" or "troopcraft_the_end":
- if name of player's tool contains "No active":
- send "&3Right Click to select a spell, &bleft click to cast!"
- stop
- #if {spell.%player%} is "Warp" or "heal" or "rapidfire" or "speedboost" or "minibomb" or "raindance" or "ghost" or "leap" or "nofall" or "gust":
- if {spell.%player%} is set:
- run player command "/spell-%{spell.%player%}%" as op
- else:
- send "&cThis can only be used in the factions world!"
- stop
- # if {spell.%player%} is "Warp":
- # run player command "/spell-Warp" as op
- # else if {spell.%player%} is "heal":
- # run player command "/spell-heal" as op
- # else if {spell.%player%} is "rapidfire":
- # run player command "/spell-rapidfire" as op
- # else if {spell.%player%} is "speedboost":
- # run player command "/spell-speedboost" as op
- # else if {spell.%player%} is "minibomb":
- # run player command "/spell-minibomb" as op
- # else if {spell.%player%} is "raindance":
- # run player command "/spell-raindance" as op
- # else if {spell.%player%} is "implode":
- # run player command "/spell-implode" as op
- # else if {spell.%player%} is "leap":
- # run player command "/spell-leap" as op
- # format slot of player with named "" with lore "" to run "%player%"
- # spell name and changing # filler = light gray glass
- command /spell-select <player> <text>:
- permission: skript.op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- set name of {_p}'s tool to "%{_spell}%"
- set slot in {_p}'s hand bar to {magik.select.slot.%{_p}%}
- set {_p} to arg 1
- set {_spell} to arg 2
- set {spell.%{_p}%} to "%{_spell}%"
- close {_p}'s inventory
- wait 1 tick
- if {_p}'s tool is blaze rod:
- if name of {_p}'s tool contains "&6&lWand":
- set name of {_p}'s tool to "&6&lWand &3&o %{_spell}%"
- execute console command "title %{_p}% title {""text"":"""",""extra"":[{""text"":""%{_spell}%!"",""color"":""aqua"",""bold"":""true""}]}"
- execute console command "title %{_p}% subtitle {""text"":"""",""extra"":[{""text"":""selected!"",""color"":""aqua"",""bold"":""true""}]}"
- set {magik.inv.open.%player%} to false
- stop
- send "&4&lDon't change your wand around while selecting a spell!!!" to {_p}
- on inventory close:
- set {_1} to diamond sword named "&4&lOffensive Spells!"
- set {_2} to diamond chestplate named "&2&lDefensive Spells!"
- set {_3} to healing potion named "&2Health Boost"
- set {_4} to ghast tear named "&7Ghost"
- set {_5} to end portal frame named "&5Warp"
- set {_6} to gunpowder named "&0ForcePush<gold><bold>[WIP]"
- set {_7} to tnt named "&0Implode&6&l[WIP]"
- set {_8} to diamond chestplate named "&2&lDefensive Spells!"
- wait 5 ticks
- loop items in player's inventory:
- loop-item is {_1} or {_2} or {_3} or {_4} or {_5} or {_6} or {_7} or {_8}
- remove loop-item from player
- send "&4&l&n&oYOU ARE NOT SUPPOSED TO HAVE THAT"
- execute console command "kick %player% Abusing the Server"
- broadcast "&4&l&n%player% was kicked for abusing the server!"
- {magik.inv.open.%player%} is true
- set {magik.inv.open.%player%} to false
- every 30 seconds:
- set {_1} to diamond sword named "&4&lOffensive Spells!"
- set {_2} to diamond chestplate named "&2&lDefensive Spells!"
- set {_3} to healing potion named "&2Health Boost"
- set {_4} to ghast tear named "&7Ghost"
- set {_5} to end portal frame named "&5Warp"
- set {_6} to gunpowder named "&0ForcePush<gold><bold>[WIP]"
- set {_7} to tnt named "&0Implode&6&l[WIP]"
- set {_8} to diamond chestplate named "&2&lDefensive Spells!"
- loop all players:
- loop items in loop-player's inventory:
- loop-item is {_1} or {_2} or {_3} or {_4} or {_5} or {_6} or {_7} or {_8}
- remove loop-item from loop-player
- send "&4&l&n&oYOU ARE NOT SUPPOSED TO HAVE THAT" to loop-player
- execute console command "kick %loop-player% Abusing the Server"
- broadcast "&4&l&n%loop-player% was kicked for abusing the server!"
- {magik.inv.open.%loop-player%} is true
- set {magik.inv.open.%loop-player%} to false
- on inventory click:
- {magik.inv.open.%player%} is true:
- cancel event
- on right click: # beacon - armageddon #cobble -earthquake #ice - iceprison #witherskull - witherskull #fire charge - fireball
- player's tool is a blaze rod:
- name of player's tool contains "&6&lWand":
- set {magik.select.slot.%player%} to player's current hotbar slot
- cancel the event
- wait 1 tick
- set {magik.inv.open.%player%} to true
- open chest with 5 rows named "<black><magic>___<purple><bold>Spell Selector<black><magic>___" to player
- format slot 0 of player with diamond sword named "&4&lOffensive Spells!" with lore "These spells cause damage!" to be unstealable
- format slot 1 of player with diamond sword named "&4&lOffensive Spells!" with lore "These spells cause damage!" to be unstealable
- format slot 2 of player with diamond chestplate named "&2&lDefensive Spells!" with lore "These spells defend / support!" to be unstealable
- format slot 3 of player with diamond chestplate named "&2&lDefensive Spells!" with lore "These spells defend / support!" to be unstealable
- format slot 4 of player with white glass pane named "<black><magic><i>filler" with lore "<white><bold><magic>__________" to be unstealable
- format slot 5 of player with grass block named "&2&lTerrain Spells!" with lore "These spells älter the environment!" to be unstealable
- format slot 6 of player with grass block named "&2&lTerrain Spells!" with lore "These spells älter the environment!" to be unstealable
- format slot 7 of player with gold boots named "&2&lMovement Spells!" with lore "These spells do stuff to how you move!" to be unstealable
- format slot 8 of player with gold boots named "&2&lMovement Spells!" with lore "These spells do stuff to how you move!" to be unstealable
- format slot 9 of player with arrow named "&cRapid Fire" with lore "Quickly shoot arrows at the cost of 1 mana/arrow! ||&3Mana Cost: {@mana.rapidfire} ||&3Cooldown: {@timer.rapidfire}" to run "spell-select %player% rapidfire"
- format slot 10 of player with snowball named "&cMini-Bomb" with lore "Shoot a terrain-safe grenade! ||&3Mana Cost: {@mana.minibomb} ||&3Cooldown: {@timer.minibomb}" to run "spell-select %player% minibomb"
- format slot 11 of player with healing potion named "&2Health Boost" with lore "Heals you to double natural heats! ||&3Mana Cost: {@mana.heal} ||&3Cooldown: {@timer.heal}" to run "spell-select %player% heal"
- format slot 12 of player with feather named "&fFeather Falling" with lore "Suffer no fall damage on your ||next other-wise damaging fall! ||&3Mana Cost: {@mana.nofall} ||&3Cooldown: {@timer.nofall}" to run "spell-select %player% nofall"
- format slot 13 of player with white glass pane named "<black><magic><i>filler" with lore "<white><bold><magic>__________" to run "%player%"
- format slot 14 of player with water bucket named "&9Rain Dance" with lore "Perform a ritual to the Aztec god, Tlaloc! ||&3Mana Cost: {@mana.raindance} ||&3Cooldown: {@timer.raindance}" to run "spell-select %player% raindance"
- format slot 15 of player with ghast tear named "&7Ghost" with lore "Become a spectral Ghost for 10 seconds! ||&3Mana Cost: {@mana.ghost} ||&3Cooldown: {@timer.ghost}" to run "spell-select %player% ghost"
- format slot 16 of player with end portal frame named "&5Warp" with lore "Teleport and hope the chunks are loaded! ||&3Mana Cost: {@mana.Warp} ||&3Cooldown: {@timer.Warp}" to run "spell-select %player% Warp"
- format slot 17 of player with sugar named "&3Speed Boost" with lore "Run faster for 30 seconds! ||&3Mana Cost: {@mana.speedboost} ||&3Cooldown: {@timer.speedboost}" to run "spell-select %player% speedboost"
- format slot 18 of player with firework star named "&6&lStarCrash" with lore "&6&lSummon a fallen angel ||&6&lin the form of a Star! ||&3Mana Cost: {@mana.starcrash} ||&3Cooldown: {@timer.starcrash}" to run "spell-select %player% starcrash"
- format slot 19 of player with 64 firework star named "&5&k_|_&6&lStarStorm&5&k_|_" with lore "&4&lThe deadliest of all spells! ||&4&lSummon a league of fallen angels ||&4<o decimate your foes! ||&3Mana Cost: {@mana.starstorm} ||&3Cooldown: {@timer.starstorm}" to run "spell-select %player% starstorm"
- format slot 20 of player with {banner.angy_bird} to run "spell-select %player% gust"
- format slot 21 of player with prismarine crystals named "&6&lNova" with lore "&6&l&nThis Spell is the ||&6&l&nUltimate Close quarters defense! ||&3Mana Cost: {@mana.nova} ||&3Cooldown: {@timer.nova}" to run "spell-select %player% nova"
- format slot 22 of player with white glass pane named "<black><magic><i>filler" with lore "<white><bold><magic>__________" to run "%player%"
- format slot 23 of player with tnt named "&3&lImplode&4&n[Unfinished]" with lore "Watch the blocks fly! ||(The actual spell is not ready...) ||&3Mana Cost: {@mana.implode} ||&3Cooldown: {@timer.implode}" to run "spell-select %player% implode"
- format slot 24 of player with ender dragon egg named "&f☢☢☢&4&lA&c&lr&4&lm&c&la&4&lg&c&le&4&ld&c&ld&4&lo&c&ln&f☢☢☢" with lore "&6&l&oSUMMON THE END UPON THY ENEMIES! ||&3Mana Cost: {@mana.armageddon} ||&3Cooldown: {@timer.armageddon}" to run "spell-select %player% armageddon"
- format slot 25 of player with rabbit's foot named "&fLeap" with lore "Leap far and suffer no fall damage! ||&3Mana Cost: {@mana.leap} ||&3Cooldown: {@timer.leap}" to run "spell-select %player% leap"
- format slot 26 of player with steak named "&2&oFill 'er up!" with lore "Refill that old sprint bar! ||&3Mana Cost: {@mana.feed} ||&3Cooldown: {@timer.feed}" to run "spell-select %player% feed"
- format slot 27 of player with dirt:1 named "&2EARTHQUAKE" with lore "Quake the Earth! ||&3Mana Cost: {@mana.earthquake} ||&3Cooldown: {@timer.earthquake}" to run "spell-select %player% earthquake"
- format slot 28 of player with fire charge named "&cFireBall" with lore "&4&lFyah-POWER!!! ||&3Mana Cost: {@mana.fireball} ||&3Cooldown: {@timer.fireball}" to run "spell-select %player% fireball"
- format slot 29 of player with ice named "&3Prison on Ice" with lore "&3&oLet it jailllll, let it jaillllll! ||&3Mana Cost: {@mana.iceprison} ||&3Cooldown: {@timer.iceprison}" to run "spell-select %player% iceprison"
- format slot 30 of player with black glass pane named "<magic><i>filler" with lore "<black><bold><magic>__________" to run "%player%"
- format slot 31 of player with white glass pane named "<black><magic><i>filler" with lore "<white><bold><magic>__________" to run "%player%"
- format slot 32 of player with black glass pane named "<magic><i>filler" with lore "<black><bold><magic>__________" to run "%player%"
- format slot 33 of player with black glass pane named "<magic><i>filler" with lore "<black><bold><magic>__________" to run "%player%"
- format slot 34 of player with black glass pane named "<magic><i>filler" with lore "<black><bold><magic>__________" to run "%player%"
- format slot 35 of player with black glass pane named "<magic><i>filler" with lore "<black><bold><magic>__________" to run "%player%"
- format slot 36 of player with coal named "&0&lShoot a WitherSkull!" with lore "Become a wither! ||(Not actually, that'll cost real money...) ||&3Mana Cost: {@mana.witherskull} ||&3Cooldown: {@timer.witherskull}" to run "spell-select %player% witherskull"
- format slot 37 of player with black glass pane named "<magic><i>filler" with lore "<black><bold><magic>__________" to run "%player%"
- format slot 38 of player with black glass pane named "<magic><i>filler" with lore "<black><bold><magic>__________" to run "%player%"
- format slot 39 of player with black glass pane named "<magic><i>filler" with lore "<black><bold><magic>__________" to run "%player%"
- format slot 40 of player with white glass pane named "<black><magic><i>filler" with lore "<white><bold><magic>__________" to run "%player%"
- format slot 41 of player with black glass pane named "<magic><i>filler" with lore "<black><bold><magic>__________" to run "%player%"
- format slot 42 of player with black glass pane named "<magic><i>filler" with lore "<black><bold><magic>__________" to run "%player%"
- format slot 43 of player with black glass pane named "<magic><i>filler" with lore "<black><bold><magic>__________" to run "%player%"
- format slot 44 of player with black glass pane named "<magic><i>filler" with lore "<black><bold><magic>__________" to run "%player%"
- stop
- if player is sneaking:
- execute player command "/mana open"
- stop
- if {spellnum.%player%} is 10:
- set {spell.%player%} to "Equal Exchange"
- set name of player's tool to "&6&lWand of &2Equal Exchange"
- set lore of player's tool to "Use your Thaumaturgy and change the environment! ||&7&oNext spell: &3Warp"
- # set {spell.%player%} to "implode"
- # set name of player's tool to "&6&lWand &8Implode"
- on damage:
- if damage was caused by fall:
- if {nofall.%victim%} is true:
- cancel the event
- delete {nofall.%victim%}
- if {nofall.msg.%victim%} is true:
- send "&cYou used up your anti-fall!"
- delete {nofall.msg.%victim%}
- function mana_converter_south(l: location):
- block north of {mana.stone.button.converter.block} is air
- block north east of {mana.stone.button.converter.block} is air
- block east of {mana.stone.button.converter.block} is air
- block south east of {mana.stone.button.converter.block} is air
- block south of {mana.stone.button.converter.block} is double stone slab item
- block south west of {mana.stone.button.converter.block} is air
- block west of {mana.stone.button.converter.block} is air
- block north west of {mana.stone.button.converter.block} is air
- block at {mana.stone.button.converter.block} is stone button
- set {_chest} to block below {mana.stone.button.converter.block}
- set {_output} to block north of {_chest}
- block north of {_chest} is dropper
- block north east of {_chest} is stone brick stairs
- block east of {_chest} is stone brick stairs
- block south east of {_chest} is stone brick stairs
- block south of {_chest} is double stone slab item
- block south west of {_chest} is stone brick stairs
- block west of {_chest} is stone brick stairs
- block north west of {_chest} is stone brick stairs
- block at {_chest} is a chest
- loop all items in block at {_chest}:
- if loop-item is redstone:
- set {_count.stack} to amount of loop-item in block at {_chest}
- add {_count.stack} to {_count.redstone}
- if loop-item is exp bottle:
- set {_count.stack} to amount of loop-item in block at {_chest}
- add {_count.stack} to {_count.exp}
- while {_count.redstone} > {@convert.rate} - 1:
- remove 1 redstone from block at {_chest}
- remove 1 from {_count.redstone}
- add 1 redstone named "&4Mana" to block at {_output}
- while {_count.exp} > 0:
- remove 1 exp bottle from block at {_chest}
- remove 1 from {_count.exp}
- add 16 redstone named "&4Mana" to block at {_output}
- add 1 glass bottle to block at {_output}
- function mana_converter_north(l: location):
- block south of {mana.stone.button.converter.block} is air
- block south west of {mana.stone.button.converter.block} is air
- block west of {mana.stone.button.converter.block} is air
- block north west of {mana.stone.button.converter.block} is air
- block north of {mana.stone.button.converter.block} is double stone slab item
- block north east of {mana.stone.button.converter.block} is air
- block east of {mana.stone.button.converter.block} is air
- block south east of {mana.stone.button.converter.block} is air
- block at {mana.stone.button.converter.block} is stone button
- set {_chest} to block below {mana.stone.button.converter.block}
- set {_output} to block south of {_chest}
- block south of {_chest} is dropper
- block south west of {_chest} is stone brick stairs
- block west of {_chest} is stone brick stairs
- block north west of {_chest} is stone brick stairs
- block north of {_chest} is double stone slab item
- block north east of {_chest} is stone brick stairs
- block east of {_chest} is stone brick stairs
- block south east of {_chest} is stone brick stairs
- block at {_chest} is a chest
- loop all items in block at {_chest}:
- if loop-item is redstone:
- set {_count.stack} to amount of loop-item in block at {_chest}
- add {_count.stack} to {_count.redstone}
- if loop-item is exp bottle:
- set {_count.stack} to amount of loop-item in block at {_chest}
- add {_count.stack} to {_count.exp}
- while {_count.redstone} > {@convert.rate} - 1:
- remove 10 redstone from block at {_chest}
- remove 10 from {_count.redstone}
- add 1 redstone named "&4Mana" to block at {_output}
- while {_count.exp} > 0:
- remove 1 exp bottle from block at {_chest}
- remove 1 from {_count.exp}
- add 1 redstone named "&4Mana" to block at {_output}
- add 1 glass bottle to block at {_output}
- function mana_converter_west(l: location):
- block east of {mana.stone.button.converter.block} is air
- block south east of {mana.stone.button.converter.block} is air
- block south of {mana.stone.button.converter.block} is air
- block south west of {mana.stone.button.converter.block} is air
- block west of {mana.stone.button.converter.block} is double stone slab item
- block north west of {mana.stone.button.converter.block} is air
- block north of {mana.stone.button.converter.block} is air
- block north east of {mana.stone.button.converter.block} is air
- block at {mana.stone.button.converter.block} is stone button
- set {_chest} to block below {mana.stone.button.converter.block}
- set {_output} to block east of {_chest}
- block east of {_chest} is dropper
- block south east of {_chest} is stone brick stairs
- block south of {_chest} is stone brick stairs
- block south west of {_chest} is stone brick stairs
- block west of {_chest} is double stone slab item
- block north west of {_chest} is stone brick stairs
- block north of {_chest} is stone brick stairs
- block north east of {_chest} is stone brick stairs
- block at {_chest} is a chest
- loop all items in block at {_chest}:
- if loop-item is redstone:
- set {_count.stack} to amount of loop-item in block at {_chest}
- add {_count.stack} to {_count.redstone}
- if loop-item is exp bottle:
- set {_count.stack} to amount of loop-item in block at {_chest}
- add {_count.stack} to {_count.exp}
- while {_count.redstone} > {@convert.rate} - 1:
- remove 10 redstone from block at {_chest}
- remove 10 from {_count.redstone}
- add 1 redstone named "&4Mana" to block at {_output}
- while {_count.exp} > 0:
- remove 1 exp bottle from block at {_chest}
- remove 1 from {_count.exp}
- add 1 redstone named "&4Mana" to block at {_output}
- add 1 glass bottle to block at {_output}
- function mana_converter_east(l: location):
- block west of {mana.stone.button.converter.block} is air
- block north west of {mana.stone.button.converter.block} is air
- block north of {mana.stone.button.converter.block} is air
- block north east of {mana.stone.button.converter.block} is air
- block east of {mana.stone.button.converter.block} is double stone slab item
- block south east of {mana.stone.button.converter.block} is air
- block south of {mana.stone.button.converter.block} is air
- block south east of {mana.stone.button.converter.block} is air
- block at {mana.stone.button.converter.block} is stone button
- set {_chest} to block below {mana.stone.button.converter.block}
- set {_output} to block west of {_chest}
- block west of {_chest} is dropper
- block north west of {_chest} is stone brick stairs
- block north of {_chest} is stone brick stairs
- block north east of {_chest} is stone brick stairs
- block east of {_chest} is double stone slab item
- block south east of {_chest} is stone brick stairs
- block south of {_chest} is stone brick stairs
- block south west of {_chest} is stone brick stairs
- block at {_chest} is a chest
- loop all items in block at {_chest}:
- if loop-item is redstone:
- set {_count.stack} to amount of loop-item in block at {_chest}
- add {_count.stack} to {_count.redstone}
- if loop-item is exp bottle:
- set {_count.stack} to amount of loop-item in block at {_chest}
- add {_count.stack} to {_count.exp}
- while {_count.redstone} > {@convert.rate} - 1:
- remove 10 redstone from block at {_chest}
- remove 10 from {_count.redstone}
- add 1 redstone named "&4Mana" to block at {_output}
- while {_count.exp} > 0:
- remove 1 exp bottle from block at {_chest}
- remove 1 from {_count.exp}
- add 1 redstone named "&4Mana" to block at {_output}
- add 1 glass bottle to block at {_output}
- on right click on stone button:
- if block south of event-block is double stone slab item:
- set {mana.stone.button.converter.block} to event-block
- mana_converter_south({mana.stone.button.converter.block})
- if block north of event-block is double stone slab item:
- set {mana.stone.button.converter.block} to event-block
- mana_converter_north({mana.stone.button.converter.block})
- if block east of event-block is double stone slab item:
- set {mana.stone.button.converter.block} to event-block
- mana_converter_east({mana.stone.button.converter.block})
- if block west of event-block is double stone slab item:
- set {mana.stone.button.converter.block} to event-block
- mana_converter_west({mana.stone.button.converter.block})
Advertisement
Add Comment
Please, Sign In to add comment