Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Hi, I'm Nik116ita and this is my script SkJumpOnBlock
- # Thanks for download
- # Contact me for bug:
- # Spigot: https://www.spigotmc.org/members/nik116ita.172470/
- # Telegram: @Nik116ita
- # E-Mail: Nik116info@gmail.com
- # Donations
- # PaySafeCard: Nik116info@gmail.com
- # PayPal: nicolasgiuliani116@gmai.com
- options:
- JumpBlock: melon block
- Permission-Default: SkJump.Block #Don't touch, please
- Permission-Admin: SkJump.Admin #Don't touch, please
- Permission-Message: &cYou don't have permission.
- World-All: false
- World: "World"
- Prefix-Yes: &7[&aSkJump&7]&f
- Prefix-No: &7[&cSkJump&7]&f
- Particle-Type: cloud
- ActionBar-Message: &aJump!
- #
- # Configuration + Don't touch, please
- #
- command /JumpBlock:
- aliases: /jb
- trigger:
- loop 3 times:
- message ""
- message "&7[&aSkript&7] &fThanks for install this script."
- message "&7[&aSkJumpOnBlock&7]&f Created by Nik116ita"
- message "&7[&aSkJumpOnBlock&7]&f http://bitly.com/JumpOnBlock"
- message "&a/jbg&7 |&f For open the principal GUI &7|&f {@Permission-Admin}"
- command /JumpBlockGUI:
- permission: {@Permission-Admin}
- permission message: {@Permission-Message}
- aliases: /jbg
- trigger:
- open chest with 1 row named "JumpBlock | Menu" to player
- format slot 0 of player with {@JumpBlock} named "&aJumpBlock" with lore "&7Give the block of JumpBlock||&7[&aSkript&7]" to close then run [make player execute command "/jb2"]
- format slot 1 of player with redstone named "&aON | OFF" with lore "&7Active or disable the script||&7[&aSkript&7]" to close then run [make player execute command "/jb3"]
- format slot 2 of player with feather named "&aFall" with lore "&7Active or disable fall damage||&7[&aSkript&7]" to close then run [make player execute command "/jb5"]
- format slot 3 of player with experience bottle named "&aParticle | ActionBar" with lore "&7Active or disable particle and actionbar||&7[&aSkript&7] &7[&cUmbaska&7]" to close then run [make player execute command "/jb6"]
- command /jb2:
- permission: {@Permission-Admin}
- permission message: {@Permission-Message}
- trigger:
- give a {@JumpBlock} named "&aJumpBlock" to player
- command /jb3:
- permission: {@Permission-Admin}
- permission message: {@Permission-Message}
- trigger:
- if {ActiveJump} is set:
- delete {ActiveJump}
- message "{@Prefix-No} Disabled JumpBlock"
- else:
- set {ActiveJump} to true
- message "{@Prefix-Yes} Actived JumpBlock"
- command /jb4:
- permission: {@Permission-Admin}
- permission message: {@Permission-Message}
- trigger:
- if {World-All} is false:
- set {World-All} to true
- message "{@Prefix-Yes} Enabled in all world"
- else:
- set {World-All} to false
- message "{@Prefix-No} Enable only in the world of config"
- command /jb5:
- permission: {@Permission-Admin}
- permission message: {@Permission-Message}
- trigger:
- if {JumpNoFall} is true:
- set {JumpNoFall} to false
- message "{@Prefix-No} Fall damage enabled"
- else:
- set {JumpNoFall} to true
- message "{@Prefix-Yes} Fall damage disabled"
- command /jb6:
- permission: {@Permission-Admin}
- permission message: {@Permission-Message}
- trigger:
- if {Particle} is true:
- set {Particle} to false
- message "{@Prefix-No} Particle disabled"
- else:
- set {Particle} to true
- message "{@Prefix-Yes} Particle enabled"
- on place of {@JumpBlock}:
- if name of player's tool is "&aJumpBlock":
- if player has permission "{@Permission-Admin}":
- if {@World-All} is false:
- if player is in {@World}:
- set {SkJump.%event-block%} to 1
- else:
- set {SkJump.%event-block%} to 1
- else:
- cancel event
- on break of {@JumpBlock}:
- if {SkJump.%event-block%} is set:
- if player has permission "{@Permission-Admin}":
- clear {SkJump.%event-block%}
- else:
- cancel event
- on walk on {@JumpBlock}:
- if {ActiveJump} is true:
- if {@World-All} is false:
- if player is in {@World}:
- if {SkJump.%event-block%} is set:
- if {Particle} is true:
- 1.8 spawn 100 of particle {@Particle-Type}:0 offset by 1, 1, 1 at player for player with data 0
- send action bar from "{@ActionBar-Message}" to player
- push the player upwards at speed 1.5
- wait 2.5 ticks
- push the player forwards at speed 1.5
- set {JumpPlayer} to player
- wait 7 seconds
- delete {JumpPlayer}
- else:
- push the player upwards at speed 1.5
- wait 2.5 ticks
- push the player forwards at speed 1.5
- set {JumpPlayer} to player
- wait 7 seconds
- delete {JumpPlayer}
- else:
- push the player upwards at speed 0.5
- else:
- if {SkJump.%event-block%} is set:
- push the player upwards at speed 1.5
- wait 2.5 ticks
- push the player forwards at speed 1.5
- set {JumpPlayer} to player
- wait 7 seconds
- delete {JumpPlayer}
- else:
- push the player upwards at speed 0.5
- on break:
- block 1 up event-block is {@JumpBlock}
- if {SkJump.%block 1 up event-block%} is set:
- cancel event
- on damage:
- if damage cause is fall:
- if {JumpPlayer} is set:
- if {JumpNoFall} is true:
- cancel the event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement