Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Parkour! Skript criado por @Theluksabm ...
- # Versão 0.1 - Sem Dependencias!
- options:
- Server: &7[Server] #Nome do Servidor
- CheckpointBlock: light blue wool #Bloco de Checkpoint
- WinBlock: diamond block #O Bloco em que o player pisa e ganha
- DeathBlock: gold block #O Bloco em que o player pisa e morre
- #JOIN E LEAVE
- on sign change:
- if player has permission "builder.minigame.placa.parkour":
- if line 1 is "jparkour":
- set line 1 to "&0&l====="
- set line 2 to "&4&l&oParkour!"
- set line 4 to "&0&l====="
- else if line 1 is "lparkour":
- set line 1 to "&0&l====="
- set line 2 to "&4&l&oParkour Leave!"
- set line 4 to "&0&l====="
- on rightclick on sign:
- if line 2 is "&4&l&oParkour!":
- teleport player to {lobby.parkour}
- send "{@Server} &cVocê foi teletransportado ao Lobby de Parkour!"
- set {minigames.parkour.%player%} to true
- wait 20 tick
- set {parkour.checkpoint.%player%} to player's location
- else if line 2 is "&4&l&oParkour Leave!":
- if {minigames.parkour.%player%} is true:
- set {minigames.parkour.%player%} to false
- send "{@Server} &cVocê saiu do Parkour!"
- else:
- send "{@Server} &cVocê não está no Parkour e portanto não pode sair!"
- command /parkour:
- trigger:
- teleport player to {lobby.parkour}
- set {minigames.parkour.%player%} to true
- send "{@Server} &cVocê foi teletransportado ao Lobby de Parkour!"
- set {parkour.checkpoint.%player%} to player's location
- command /sair:
- trigger:
- if {minigames.parkour.%player%} is true:
- set {minigames.parkour.%player%} to false
- send "{@Server} &cVocê saiu do Parkour!"
- else:
- send "{@Server} &cVocê não está no Parkour e portanto não pode sair!"
- #Placa de Checkpoint
- on sign change:
- if line 1 is "jpcheck":
- set line 1 to "&0&l====="
- set line 2 to "&4&l&oCheckpoint!"
- set line 4 to "&0&l====="
- on rightclick on sign:
- if line 2 is "&4&l&oCheckpoint!":
- if {minigames.parkour.%player%} is true:
- if {parkour.checkpoint.%player%} is "~ ~ ~":
- send "{@Server} &4&lRoubar é feio!"
- else:
- teleport player to {parkour.checkpoint.%player%}
- send "{@Server} &3Você foi ao Checkpoint!"
- else:
- send "{@Server} &cVocê não está no Parkour e portanto não pode ir ao Checkpoint!"
- #Configurações
- command /setparkour:
- permission: builder.lobby.parkour
- trigger:
- set {lobby.parkour} to player's location
- send "{@Server} &cLobby de Parkour Setado!"
- #Eventos
- on quit:
- set {minigames.parkour.%player%} to false
- on walk on {@DeathBlock}:
- if {minigames.parkour.%player%} is true:
- teleport player to {parkour.checkpoint.%player%}
- on walk on {@WinBlock}:
- if {minigames.parkour.%player%} is true:
- send "&7[Server]&6&l VOCÊ TERMINOU O PARKOUR!"
- set {minigames.parkour.%player%} to false
- set {parkour.checkpoint.%player%} to "~ ~ ~"
- wait 3 seconds
- send "{@Server} &cVocê saiu do Parkour!"
- on walk on {@CheckpointBlock}:
- if {minigames.parkour.%player%} is true:
- set {parkour.checkpoint.%player%} to player's location
- send "{@Server} &6&l-=-Checkpoint-=="
Advertisement
Add Comment
Please, Sign In to add comment