Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #©
- #- Reselling/Reuploading while claiming that it is yours or made by you is disallowed
- #- Do not edit it and upload it as your own
- #- While using it in a video, please feature everything under "Video"
- #©
- #
- #Video:
- #Skript made by Zeldaboy111
- #More content of the creator: https://forums.skunity.com/search/26443679/
- options:
- logo: &a&lWands &8:&7
- on enable:
- set {wands.distanceLock.IceWand::*} to 30 and 12
- set {wands.distanceLock.MobilityWand::*} to 17 and 0
- set {wands.cooldown.IceWand::*} to 0.7 and 2.4
- set {wands.cooldown.MobilityWand::*} to 4.2 and 6.7
- function spawnFallingBlock_Ice(loc: Location, p: Player):
- spawn falling ice at {_loc}
- set {_block} to last spawned falling ice
- loop entities in radius 2.6 around {_loc}:
- set {_damage} to 5
- if loop-entity is not {_p}:
- set {_dist} to (distance between location of loop-entity and {_loc})
- remove {_dist} from {_damage}
- damage loop-entity by {_damage} hearts
- wait 3 ticks
- play sound "block.glass.break" with volume 4 at {_loc}
- if {_block} is alive:
- kill {_block}
- else:
- if block at {_loc} is ice:
- set block at {_loc} to air
- function checkSpell(p: Player, wand: String, spellAmount: Number, spell: String):
- set {_spells::*} to {_spell} split at ", "
- if {wands.%{_p}%.spellSelected::%{_wand}%} is not set:
- set {wands.%{_p}%.spellSelected::%{_wand}%} to 1
- send "{@logo} Spell &2&l%{_spells::1}% &7Selected!" to {_p}
- if {wands.%{_p}%.spellSelected::%{_wand}%} < {_spellAmount}:
- send "{@logo} Spell &2&l%{_spells::%{wands.%{_p}%.spellSelected::%{_wand}%}%}% &7Selected!" to {_p}
- add 1 to {wands.%{_p}%.spellSelected::%{_wand}%}
- else:
- send "{@logo} Spell &2&l%{_spells::%{wands.%{_p}%.spellSelected::%{_wand}%}%}% &7Selected!" to {_p}
- set {wands.%{_p}%.spellSelected::%{_wand}%} to 1
- command /wands [<text>] [<text>] [<text>] [<text>] [<text>] [<text>]:
- aliases: /wand
- trigger:
- if executor is not a player:
- send "{@logo} This command can only be executed by a player."
- if player has permission "wand.*":
- if arg-1 is "help":
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- send "<ttp:&7Get a guide about this Skript><sgt:/wand guide>&2/wand guide [page]"
- send "<ttp:&7Get a list of all wands><sgt:/wand list>&2/wand list"
- send "<ttp:&7Get a list of all spells><sgt:/wand spells><sgt:/wand spells>&2/wand spells [wand]"
- send "<ttp:&7Get a wand><sgt:/wand get >&2/wand get <wand>"
- send "%nl%&7Try clicking and hovering over them."
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- else if arg-1 is "guide":
- if arg-2 is "1":
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- send "&7The Wands Skript is user friendly, herefore there are added some tweaks for you to use. In this guide there will be explained how it works."
- send "&7Wands can be used by any player when it is given to them. The command execution has a <ttp:&7wand.*>&2permission&r&7, so not every player can get a wand by using this command."
- send "%nl%&7Next Page <ttp:&7Next Page><cmd:/wands guide 2>&a>>"
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- else if arg-2 is "2":
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- send "&a&lGetting a Wand&8:%nl% "
- send "&7Getting a wand can be done in two ways, either by executing the <ttp:&7Click to Autofill><sgt:/wand get <wand>>&2get-command &r&7or by clicking the <ttp:&7Click to Autofill><sgt:/wand list>&2Wands List&7."
- send "%nl%&a&lUsing a Wand&8:"
- send "%nl%&7Every player can use a wand. The controls are as follows&8:%nl%"
- send "&8♦ &aLeft-Click &8|| &7Left-Clicking will execute the spell."
- send "&8♦ &aRight-Click &8|| &7Right-Clicking will let you cycle through all spells."
- send "%nl%<ttp:&7Next Page><cmd:/wands guide 1>&a<<&r &7Previous Page"
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- else:
- execute player command "/wand guide 1"
- else if arg-1 is "list":
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- send "&7These are all current wands:%nl%"
- send "&8♦ <ttp:&7Click to Get><cmd:/wand get ice>&2&lIce Wand &8|| <ttp:&7Click to get the Spell List><cmd:/wand spells ice>&2Spell List%nl%&8♦ <ttp:&7Click to Get><cmd:/wand get mobility>&2&lMobility Wand &8|| <ttp:&7Click to get the Spell List><cmd:/wand spells mobility>&2Spell List"
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- else if arg-1 is "get":
- if arg-2 is "ice":
- give player iron axe named "&bIce Wand" with lore "&5&kl"
- else if arg-2 is "mobility":
- give player a feather named "&7Mobility Wand" with lore "&5&kl"
- else if arg-1 is "spells":
- if arg-2 is "ice":
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- send "&8♦ <ttp:&7Damages your opponent>&2&lIce Spark"
- send "&8♦ <ttp:&7Summon a snake to attack your opponent>&2&lIce Snake"
- #Freeze spell??
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- else if arg-2 is "mobility":
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- send "&8♦ <ttp:&7Teleports you to a location>&2&lTeleport"
- send "&8♦ <ttp:&7Makes you fast and agile>&2&lAssassin"
- #Other player teleport
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- else:
- if arg-2 is set:
- send "{@logo} Invalid Wand! Do <sgt:&7Click to Execute><cmd:/wand list>&2/wand list &r&7for a full list with all wands."
- else:
- send "{@logo} Incorrect Usage! &2/wand spells <wand>&7."
- else:
- send "{@logo} Incorrect Usage! Do <ttp:&7Click to Execute><cmd:/wand help>&2/wand help&r &7for more info."
- on right click:
- if player is holding an iron axe named "&bIce Wand" with lore "&5&kl":
- checkSpell(player, "IceWand", 2, "Ice Snake, Ice Spark")
- else if player is holding a feather named "&7Mobility Wand" with lore "&5&kl":
- checkSpell(player, "MobilityWand", 2, "Assassin, Teleport")
- on left click:
- if player is holding an iron axe named "&bIce Wand" with lore "&5&kl":
- if {wands.%player%.lastSpellUsed} is set:
- if difference between now and {wands.%player%.lastSpellUsed} < {wands.%player%.lastSpellCooldown}:
- send "{@logo} You are too tired to use this spell."
- stop
- set {_spell} to 1
- if {wands.%player%.spellSelected::IceWand} is set:
- set {_spell} to {wands.%player%.spellSelected::IceWand}
- set {_target} to location of targeted block of player
- if distance between location of targeted entity of player and {_target} >= {wands.distanceLock.IceWand::%{_spell}%}:
- set {_target} to location of block {wands.distanceLock.IceWand::%{_spell}%} meters in front of player
- else if block at {_target} is not set:
- set {_target} to location of block {wands.distanceLock.IceWand::%{_spell}%} meters in front of player
- else if distance between location of player and {_target} >= {wands.distanceLock.IceWand::%{_spell}%}:
- set {_target} to location of block {wands.distanceLock.IceWand::%{_spell}%} meters in front of player
- set {wands.%player%.lastSpellUsed} to now
- set {wands.%player%.lastSpellCooldown} to "%{wands.cooldown.IceWand::%{_spell}%}% seconds" parsed as a timespan
- if {_spell} is 1:
- loop entities in radius 2.1 around {_target}:
- set {_damage} to 3
- if loop-entity is not player:
- set {_dist} to (distance between location of loop-entity and {_target})
- remove {_dist} from {_damage}
- damage loop-entity by {_damage} hearts
- else if {_spell} is 2:
- loop blocks from block at location 0.8 meter above player to block at {_target}:
- spawnFallingBlock_Ice(location of loop-block, player)
- wait 1 ticks
- #PARTICLES
- #show mob spawner flames at the player
- #show 10 note at the player
Add Comment
Please, Sign In to add comment