Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # _ _ _____ _
- # | | | | | __ \ | |
- # | | __ _ _ _ _ __ ___| |__ | |__) |_ _ __| |___
- # | | / _` | | | | '_ \ / __| '_ \ | ___/ _` |/ _` / __|
- # | |___| (_| | |_| | | | | (__| | | | | | | (_| | (_| \__ \
- # |______\__,_|\__,_|_| |_|\___|_| |_| |_| \__,_|\__,_|___/
- #
- # Version 2.0
- # Made by: lapisguy
- # Requirements:
- #
- # Skript (Bensku Fork) - Required for the script to function, latest supported version of Skript.
- # SkDragon - Required for the particle effects used in the script.
- options:
- # ######################################################################################
- #
- # Configuration
- #
- # ######################################################################################
- # PREFIX:
- prefix: &8[&e&oLaunch&6Pads&8]&r
- # ######################################################################################
- # PERMISSIONS:
- use permissions: false
- # If this is set to "false", users wont need a permission to use launch pads.
- usage permission: launchpads.use
- admin permission: launchpads.admin
- # ######################################################################################
- # LAUNCH PAD POWERS:
- forward speed: 0.5
- upward speed: 0.4
- # ######################################################################################
- # PARTICLE EFFECTS:
- wooden pressure plate particle: flame
- stone pressure plate particle: explosionlarge
- iron pressure plate particle: flame
- golden pressure plate particle: flame
- # LIST OF PARTICLE EFFECTS
- # explosion
- # explosionlarge
- # explosionhuge
- # fireworkspark
- # waterbubble
- # watersplash
- # waterwake
- # suspended
- # suspenddepth
- # crit
- # critmagic
- # smoke
- # smokelarge
- # spell
- # spellinstant
- # mobspell
- # mobspellambient
- # witchspell
- # waterdrip
- # lavadrip
- # angryvillager
- # happyvillager
- # townaura
- # note
- # portal
- # enchantmenttable
- # flame
- # lava
- # footstep
- # cloud
- # redstone
- # snowball
- # snowshovel
- # slime
- # heart
- # barrier
- # itemcrack
- # blockcrack
- # blockdust
- # waterdrop
- # itemtake
- # mobappearance
- # dragonbreath - Minecraft version 1.9 or later
- # endrod - Minecraft version 1.9 or later
- # damage - Minecraft version 1.9 or later
- # sweep - Minecraft version 1.9 or later
- # ######################################################################################
- # CODE
- # TRY NOT TO EDIT IT IF YOU DONT KNOW WHAT YOU ARE DOING!
- command /launchpads [<text>] [<text>]:
- aliases: launchpad, lp
- trigger:
- if player has permission "{launchpads.admin}":
- if arg-1 is not set:
- message "&cDo &4/launchpads help &cfor a list of commands."
- stop
- else:
- if arg-1 is "give":
- if arg-2 is not set:
- message ""
- message "{@prefix} &cIncorrect usage, please specify launch pad type:"
- message ""
- message "&c/launchpads &e&ogive &6(pressure plate type)"
- message ""
- message "&cTypes&8: &6Wood &8Stone &7Iron &eGold"
- message ""
- if arg-2 is "wood" or "wooden":
- message "{@prefix} &aYou have recieved&8: &6&oWooden &e&oLaunch Pad"
- give 1 wooden pressure plate of unbreaking 10 named "&6&oWooden &e&oLaunch Pad" to player
- stop
- if arg-2 is "stone":
- message "{@prefix} &aYou have recieved&8: &8&oStone &e&oLaunch Pad"
- give 1 stone pressure plate of unbreaking 10 named "&8&oStone &e&oLaunch Pad" to player
- stop
- if arg-2 is "iron":
- message "{@prefix} &aYou have recieved&8: &7&oIron &e&oLaunch Pad"
- give 1 iron pressure plate of unbreaking 10 named "&7&oIron &e&oLaunch Pad" to player
- stop
- if arg-2 is "gold" or "golden":
- message "{@prefix} &aYou have recieved&8: &e&oGolden &e&oLaunch Pad"
- give 1 gold pressure plate of unbreaking 10 named "&e&oGolden &e&oLaunch Pad" to player
- stop
- if arg-1 is "help":
- message ""
- message "{@prefix} &8- &c&oAdmin Commands"
- message ""
- message "&7- &c/launchpads &e&ogive &6(pressure plate type)"
- message ""
- stop
- if arg-1 is not "help" or "give":
- message "{@prefix} &cDo &4/launchpads help &cfor a list of commands."
- stop
- else:
- message "{@prefix} &cYou do not have permission."
- stop
- on place:
- if player's tool is a wooden pressure plate or stone pressure plate or iron pressure plate or golden pressure plate:
- if name of player's tool contains "&e&oLaunch Pad":
- if player's tool is enchanted with unbreaking 10:
- if player has permission "{@admin permission}":
- remove player's tool from player
- set {launchpad.pad.%location of event-block%} to 1
- message "{@prefix} &aLaunch Pad has been successfully set."
- stop
- else:
- cancel event
- message "{@prefix} &cYou do not have permission to place a launch pad."
- set player's tool to air
- stop
- on break:
- if event-block is a wooden pressure plate, stone pressure plate, iron pressure plate or golden pressure plate:
- if {launchpad.pad.%location of event-block%} is 1:
- if player has permission "{@admin permission}":
- cancel event
- set event-block to air
- delete {launchpad.pad.%location of event-block%}
- message "{@prefix} &cLaunch Pad has been successfully removed."
- stop
- on pressure plate:
- if {@use permissions} is true:
- if player has permission "{usage permission}":
- if {launchpad.pad.%location of event-block%} is 1:
- cancel event
- set {launchpad.damage.check.%player%} to 1
- push player forward at speed {@forward speed}
- push player upwards at speed {@upward speed}
- set {_launchpad.pad.location.particle} to location of event-block
- if event-block is a wooden pressure plate:
- drawDot count 3, particle "{@wooden pressure plate particle}", XYZ 0.5, 1, 0.5, center {_launchpad.pad.location.particle}, visibleRange 320, pulseDelay 0, keepFor 2 ticks
- if event-block is a stone pressure plate:
- drawDot count 3, particle "{@stone pressure plate particle}", XYZ 0.5, 1, 0.5, center {_launchpad.pad.location.particle}, visibleRange 320, pulseDelay 0, keepFor 2 ticks
- if event-block is a iron pressure plate:
- drawDot count 3, particle "{@iron pressure plate particle}", XYZ 0.5, 1, 0.5, center {_launchpad.pad.location.particle}, visibleRange 320, pulseDelay 0, keepFor 2 ticks
- if event-block is a gold pressure plate:
- drawDot count 3, particle "{@golden pressure plate particle}", XYZ 0.5, 1, 0.5, center {_launchpad.pad.location.particle}, visibleRange 320, pulseDelay 0, keepFor 2 ticks
- stop
- if {@use permissions} is false:
- if {launchpad.pad.%location of event-block%} is 1:
- cancel event
- set {launchpad.damage.check.%player%} to 1
- push player forward at speed {@forward speed}
- push player upwards at speed {@upward speed}
- set {_launchpad.pad.location.particle} to location of event-block
- if event-block is a wooden pressure plate:
- drawDot count 5, particle "{@wooden pressure plate particle}", XYZ 0.5, 1, 0.5, center {_launchpad.pad.location.particle}, visibleRange 320, pulseDelay 0, keepFor 10 ticks
- if event-block is a stone pressure plate:
- drawDot count 5, particle "{@stone pressure plate particle}", XYZ 0.5, 1, 0.5, center {_launchpad.pad.location.particle}, visibleRange 320, pulseDelay 0, keepFor 10 ticks
- if event-block is a iron pressure plate:
- drawDot count 5, particle "{@iron pressure plate particle}", XYZ 0.5, 1, 0.5, center event-block, visibleRange 320, pulseDelay 0, keepFor 10 ticks
- if event-block is a iron pressure plate:
- drawDot count 5, particle "{@golden pressure plate particle}", XYZ 0.5, 1, 0.5, center event-block, visibleRange 320, pulseDelay 0, keepFor 10 ticks
- stop
- on damage:
- if victim is a player:
- if damage is caused by fall:
- if {launchpad.damage.check.%victim%} is 1:
- cancel event
- set {launchpad.damage.check.%victim%} to 0
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement