Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Command /push [<player>] [<number>]:
- trigger:
- player has permission "lobby.push":
- push arg-1 in direction of player with speed arg-2
- else:
- send "&cYou do not have permission."
- on join:
- refreshBoard()
- set {cooldown-slime.%player%} to now
- Command /cosmetics:
- trigger:
- close player's inventory
- open virtual chest inventory with size 1 named "&6&lCOSMETICS" to player
- make gui slot 2 of player with gunpowder named "&6&lTrails" with lore "&7Click to open Trails menu" to close then run function trailsGui(player)
- make gui slot 4 of player with white wool named "&6&lWings" with lore "&7Click to open Wings menu" to close then run function wingsGui(player)
- make gui slot 6 of player with slimeball named "&6&lGadgets" with lore "&7Click to open Gadgets menu" to close then run function gadgetsGui(player)
- on sneak toggle:
- player's held item is slime block
- difference between now and {cooldown-slime.%player%} >= 5 seconds:
- push the player upwards with force 1
- wait 1 tick
- push the player in direction of player with force 0.4
- set {cooldown-slime.%player%} to now
- else:
- {cooldown-slime.%player%} is not set:
- set {cooldown-slime.%player%} to now
- else:
- send "&cThis item is on cooldown!"
- function gadgetsGui(p: player):
- close {_p}'s inventory
- open virtual chest inventory with size 1 named "&6&lTRAILS" to {_p}
- make gui slot 0 of {_p} with ender pearl named "&6&lEthereal Pearl" with lore "&7Click to get" and "&aLion rank only!" to close then run function cosmetic("pearl", {_p})
- make gui slot 1 of {_p} with slime block named "&6&lLeaper" with lore "&7Click to get" and "&aLion rank only!" to close then run function cosmetic("leap", {_p})
- make gui slot 2 of {_p} with tnt named "&6&lThrowing TNT" with lore "&7Click to get" and "&aLion rank only!" to close then run function cosmetic("tnt", {_p})
- make gui slot 7 of {_p} with barrier named "&6&lRemove gadgets" with lore "&7Click to remove" and "&aLion rank only!" to close then run function removeCosmetics({_p})
- make gui slot 8 of {_p} with arrow named "&cGO BACK" with lore "&7Click to go back to main cosmetics" to run {_p} command "/cosmetics"
- function trailsGui(p: player):
- close {_p}'s inventory
- open virtual chest inventory with size 1 named "&6&lTRAILS" to {_p}
- make gui slot 0 of {_p} with feather named "&6&lSmoke Trail" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("lava", {_p})
- make gui slot 1 of {_p} with end rod named "&6&lEnd Rod Trail" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("end", {_p})
- make gui slot 2 of {_p} with web named "&6&lCloud" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("Cloud", {_p})
- make gui slot 3 of {_p} with lava bucket named "&6&lLavaDrip" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("lavadrip", {_p})
- make gui slot 4 of {_p} with redstone dust named "&6&lHearts" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("heart", {_p})
- make gui slot 5 of {_p} with note block named "&6&lNote" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("note", {_p})
- make gui slot 7 of {_p} with barrier named "&6&lNote" with lore "&7Click to toggle" and "&aLion rank only!" to run {_p} command "/togglecosmetics"
- make gui slot 8 of {_p} with arrow named "&cGO BACK" with lore "&7Click to go back to main cosmetics" to run {_p} command "/cosmetics"
- function wingsGui(p: player):
- open virtual chest inventory with size 1 named "&6&lWINGS" to {_p}
- make gui slot 0 of {_p} with white wool named "&6&lWhite Wings" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("Wings1", {_p})
- make gui slot 1 of {_p} with red wool named "&6&lRed Wings" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("Wings2", {_p})
- make gui slot 2 of {_p} with blue wool named "&6&lBlue Wings" with lore "&7Click to toggle" and "&aLion rank only!" to close then run function cosmetic("Wings3", {_p})
- make gui slot 8 of {_p} with arrow named "&cGO BACK" with lore "&7Click to go back to main cosmetics" to run {_p} command "/cosmetics"
- on right click with tnt:
- difference between {cooldown.%player%} and now >= 5 seconds:
- spawn a primed tnt at the player
- push last spawned entity upwards with force 0.3
- push last spawned tnt in direction of player with force 0.7
- set {cooldown.%player%} to now
- else:
- {cooldown.%player%} is not set:
- set {cooldown.%player%} to now
- else:
- send "&cThis item is on cooldown!"
- function removeCosmetics(p: player):
- send "&cRemoved cosmetics." to {_p}
- remove all slime block from {_p}
- remove all ender pearl from {_p}
- remove all tnt from {_p}
- on drop:
- cancel event
- Command /togglecosmetics:
- trigger:
- {show.%player%} is true:
- send "&c&lCOSMETICS &7Cosmetics disabled."
- set {show.%player%} to false
- else:
- send "&c&lCOSMETICS &7Cosmetics enabled."
- set {show.%player%} to true
- on shoot:
- projectile exists
- if projectile is ender pearl:
- make shooter ride the projectile
- give 1 ender pearl named "&d&lETHEREAL PEARL" to shooter
- function cosmetic(c: text, p: player):
- {_c} is "end":
- set {smoke.%{_p}%} to false
- set {cloud.%{_p}%} to false
- set {lava.%{_p}%} to false
- set {note.%{_p}%} to false
- set {heart.%{_p}%} to false
- {end.%{_p}%} is true:
- set {end.%{_p}%} to false
- send "&c&lPARTICLE &7End rod disabled." to {_p}
- else:
- set {smoke.%{_p}%} to false
- set {end.%{_p}%} to true
- send "&c&lPARTICLE &7End rod enabled." to {_p}
- else if {_c} is "lava":
- set {end.%{_p}%} to false
- set {cloud.%{_p}%} to false
- set {lava.%{_p}%} to false
- set {heart.%{_p}%} to false
- set {note.%{_p}%} to false
- {smoke.%{_p}%} is true:
- set {smoke.%{_p}%} to false
- send "&c&lPARTICLE &7Smoke disabled." to {_p}
- else:
- set {smoke.%{_p}%} to true
- send "&c&lPARTICLE &7Smoke enabled." to {_p}
- else if {_c} is "cloud":
- set {end.%{_p}%} to false
- set {smoke.%{_p}%} to false
- set {lava.%{_p}%} to false
- set {heart.%{_p}%} to false
- set {note.%{_p}%} to false
- {cloud.%{_p}%} is true:
- set {cloud.%{_p}%} to false
- send "&c&lPARTICLE &7Cloud disabled." to {_p}
- else:
- set {cloud.%{_p}%} to true
- send "&c&lPARTICLE &7Cloud enabled." to {_p}
- else if {_c} is "lavadrip":
- set {end.%{_p}%} to false
- set {smoke.%{_p}%} to false
- set {cloud.%{_p}%} to false
- set {heart.%{_p}%} to false
- set {note.%{_p}%} to false
- {lava.%{_p}%} is true:
- set {lava.%{_p}%} to false
- send "&c&lPARTICLE &7LavaDrip disabled." to {_p}
- else:
- set {lava.%{_p}%} to true
- send "&c&lPARTICLE &7LavaDrip enabled." to {_p}
- else if {_c} is "heart":
- set {end.%{_p}%} to false
- set {smoke.%{_p}%} to false
- set {cloud.%{_p}%} to false
- set {lava.%{_p}%} to false
- set {note.%{_p}%} to false
- {heart.%{_p}%} is true:
- set {heart.%{_p}%} to false
- send "&c&lPARTICLE &7Heart disabled." to {_p}
- else:
- set {heart.%{_p}%} to true
- send "&c&lPARTICLE &7Heart enabled." to {_p}
- else if {_c} is "note":
- set {end.%{_p}%} to false
- set {smoke.%{_p}%} to false
- set {cloud.%{_p}%} to false
- set {lava.%{_p}%} to false
- set {heart.%{_p}%} to false
- {note.%{_p}%} is true:
- set {note.%{_p}%} to false
- send "&c&lPARTICLE &7Heart disabled." to {_p}
- else:
- set {note.%{_p}%} to true
- send "&c&lPARTICLE &7Heart enabled." to {_p}
- else if {_c} is "pearl":
- remove all ender pearl from {_p}
- remove all tnt from {_p}
- remove all slime block from {_p}
- give 1 ender pearl named "&d&lETHEREAL PEARL" to {_p}
- else if {_c} is "leap":
- remove all ender pearl from {_p}
- remove all slime block from {_p}
- remove all tnt from {_p}
- give 1 slime block named "&a&lLEAPER &7&o(Sneak to leap)" to {_p}
- else if {_c} is "tnt":
- remove all ender pearl from {_p}
- remove all tnt from {_p}
- remove all slime block from {_p}
- give 1 tnt named "&c&lTHROWABLE TNT &7&o(Right click)" to {_p}
- else if {_c} is "wings1": #WHITEWINGS
- set {wings3.%{_p}%} to false
- set {wings2.%{_p}%} to false
- set {wings.%{_p}%} to false
- {wings.%{_p}%}
- else:
- send "&c&lWINGS &7Wings enabled." to {_p}
- set {wings1.%{_p}%} to true
- stopEffect id "%{_p}%"
- else if {_c} is "wings2": #REDWINGS
- set {wings1.%{_p}%} to false
- set {wings3.%{_p}%} to false
- set {wings.%{_p}%} to false
- {wings2.%{_p}%} is true:
- send "&c&lWINGS &7Wings disabled." to {_p}
- set {wings2.%{_p}%} to false
- stopEffect id "%{_p}%"
- else:
- send "&c&lWINGS &7Wings enabled." to {_p}
- set {wings2.%{_p}%} to true
- stopEffect id "%{_p}%"
- else if {_c} is "wings3": #BLUEWINGS
- set {wings1.%{_p}%} to false
- set {wings2.%{_p}%} to false
- set {wings.%{_p}%} to false
- {wings3.%{_p}%} is true:
- send "&c&lWINGS &7Wings disabled." to {_p}
- set {wings3.%{_p}%} to false
- stopEffect id "%{_p}%"
- else:
- send "&c&lWINGS &7Wings enabled." to {_p}
- set {wings3.%{_p}%} to true
- stopEffect id "%{_p}%"
- every 3 ticks:
- loop all players:
- {wings3.%loop-player%} is true:
- loop all players:
- drawWings style 3, particle1 "redstone", RGB 0, 0, 255, particle2 "redstone", RGB2 0, 0, 255, particle3 "redstone", RGB3 0, 0, 255, center loop-player-1, isSingle true, loop-player-2, id "%{_p}%", angle 110, height 0, space 0.2, visibleRange 30, tps 0, second 3
- loop all players:
- {wings2.%loop-player%} is true:
- loop all players:
- drawWings style 3, particle1 "redstone", RGB 255, 0, 0, particle2 "redstone", RGB2 255, 0, 0, particle3 "redstone", RGB3 255, 0, 0, center loop-player-1, isSingle true, loop-player-2, id "%{_p}%", angle 110, height 0, space 0.2, visibleRange 30, tps 0, second 3
- loop all players:
- {wings1.%loop-player%} is true:
- loop all players:
- drawWings style 3, particle1 "redstone", RGB 255, 255, 255, particle2 "redstone", RGB2 255, 255, 255, particle3 "redstone", RGB3 255, 255, 255, center loop-player-1, isSingle true, loop-player-2, id "%{_p}%", angle 110, height 0, space 0.2, visibleRange 30, tps 0, second 3
- loop all players:
- {heart.%loop-player%} is true:
- loop all players:
- drawDot count 3, particle "heart", XYZ 0, 0, 0, center loop-player-1, isSingle true, loop-player-2, visibleRange 32, pulseDelay 3, keepFor 10 ticks
- loop all players:
- {lava.%loop-player%} is true:
- loop all players:
- drawDot count 3, particle "lavadrip", XYZ 0, 0, 0, center loop-player-1, isSingle true, loop-player-2, visibleRange 32, pulseDelay 3, keepFor 10 ticks
- loop all players:
- {cloud.%loop-player%} is true:
- loop all players:
- drawDot count 3, particle "Cloud", XYZ 0, 0, 0, center loop-player-1, isSingle true, loop-player-2, visibleRange 32, pulseDelay 3, keepFor 10 ticks
- loop all players:
- {smoke.%loop-player%} is true:
- loop all players:
- drawDot count 3, particle "Smoke", XYZ 0, 0, 0, center loop-player-1, isSingle true, loop-player-2, visibleRange 32, pulseDelay 3, keepFor 10 ticks
- loop all players:
- {end.%loop-player%} is true:
- loop all players:
- drawDot count 3, particle "endrod", XYZ 0.2, 0, 0.2, center loop-player-1, isSingle true, loop-player-2, visibleRange 32, pulseDelay 3, keepFor 15 ticks
- loop all players:
- {note.%loop-player%} is true:
- loop all players:
- drawDot count 3, particle "note", XYZ 0, 0, 0, center loop-player-1, isSingle true, loop-player-2, visibleRange 32, pulseDelay 3, keepFor 10 ticks
- on join:
- clear the player's inventory
- give 1 nether star named "&b&lCOSMETICS &7&o(Right click)" to player
- on right click with nether star:
- execute player command "cosmetics"
- on explode:
- cancel event
- on bungeecord player switch server:
- set {smoke.%player%} to false
- set {cloud.%player%} to false
- set {end.%player%} to false
- set {lava.%player%} to false
- set {note.%player%} to false
- set {heart.%player%} to false
- set {wings.%player%} to false
- set {wings1.%player%} to false
- set {wings2.%player%} to false
- set {wings3.%player%} to false
- stopEffect id "%player%"
- on quit:
- refreshBoard()
- set {smoke.%player%} to false
- set {cloud.%player%} to false
- set {end.%player%} to false
- set {lava.%player%} to false
- set {note.%player%} to false
- set {heart.%player%} to false
- set {wings.%player%} to false
- set {wings1.%player%} to false
- set {wings2.%player%} to false
- set {wings3.%player%} to false
- stopEffect id "%player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement