Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- kaboom: &c[Admin] &c
- lenh1: kaboom
- lenh2: launch
- permission1: script.admin
- permission2: script.admin
- permission message: &cNo permission!
- tocdo: 5
- thoigian: 7
- doithoai1: &c&lKABOOM &7%loop-player% &c!
- doithoai2: &c&lLAUNCH &7%arg-1% &c!
- command /{@lenh1}:
- permission: {@permission1}
- trigger:
- send "{@kaboom} &7"
- loop all players in world:
- send "{@kaboom} {@doithoai1}"
- strike lightning effect at loop-player
- strike lightning effect at loop-player
- strike lightning effect at loop-player
- push loop-player up at speed {@tocdo}
- set {nodamage.launch.%loop-player%} to {@thoigian}
- command /{@lenh2} <player>:
- permission: {@permission2}
- trigger:
- send "{@kaboom} "
- send "{@kaboom} {@doithoai2}"
- strike lightning effect at arg-1
- push arg-1 up at speed {@tocdo}
- set {nodamage.launch.%arg-1%} to {@thoigian}
- every second:
- loop all players:
- {nodamage.launch.%loop-player%} is set
- set {nodamage.launch.%loop-player%} to {nodamage.launch.%loop-player%} - 1
- if {nodamage.launch.%loop-player%} is less than 1:
- delete {nodamage.launch.%loop-player%}
- on quit:
- {nodamage.launch.%player%} is set
- delete {nodamage.launch.%player%}
- broadcast: "{%player%} &ehas left the game."
- on damage:
- {nodamage.launch.%victim%} is set
- cancel event
- on join:
- teleport player to world's spawn point
- broadcast: "{%player%} &ehas joined the game!"
- strike lightning effect at player
- options:
- Stone: 10
- Stone2: 10
- command /shop:
- trigger:
- Shop(player)
- function Shop(p: player):
- open virtual chest inventory with size 3 named "&3&lShop" to {_p}
- wait 1 tick
- create a gui slot 4 of {_p} with glowing stone named "&f10x Stone" with Lore "&7Preis: &a{@Stone}"
- create a gui slot 5 of {_p} with glowing stone named "&f10x Stone" with Lore "&7Preis: &a{@Stone2} Sticks"
- on inventory click:
- inventory name of player's current inventory is "&3&lShop":
- cancel event
- clicked slot is 4:
- player's balance is more than {@Stone}-1
- player can hold 10 stone
- remove {@Stone} from player's balance
- give player 10 stone
- clicked slot is 5:
- player has {@Stone2} sticks
- player can hold 10 stone
- remove {@Stone2} sticks from player
- give player 10 stoneoptions:
- Stone: 10
- Stone2: 10
- command /shop:
- trigger:
- Shop(player)
- function Shop(p: player):
- open virtual chest inventory with size 3 named "&3&lShop" to {_p}
- wait 1 tick
- create a gui slot 4 of {_p} with glowing stone named "&f10x Stone" with Lore "&7Preis: &a{@Stone}"
- create a gui slot 5 of {_p} with glowing stone named "&f10x Stone" with Lore "&7Preis: &a{@Stone2} Sticks"
- on inventory click:
- inventory name of player's current inventory is "&3&lShop":
- cancel event
- clicked slot is 4:
- player's balance is more than {@Stone}-1
- player can hold 10 stone
- remove {@Stone} from player's balance
- give player 10 stone
- clicked slot is 5:
- player has {@Stone2} sticks
- player can hold 10 stone
- remove {@Stone2} sticks from player
- give player 10 stone
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement