Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ▒██████ ▒██████████ #
- # ▒██ ▒██ ▒████ ▒███████ ▒████ ▒███████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒████████ ▒████████ #
- # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▀▀ #
- # ▒██ ▒██ ▒██ ▒██ ▒███████ ▒██ ▒██ ▒███████ ▒██ ▒██████████ ▒████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
- # ▒██████ ▒████████ ▒██ ▒████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒██ ▒██ #
- # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ #
- # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒███████ ▒███████ ▒██████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
- #
- # Skript feito por rafael2425
- #
- #
- on leftclick on chest:
- if tool of player is shiny stick named "&6Setador de Caixas Misteriosas" with lore "||&7Esse stick é utilizado para setar e deletar||&7a localização de uma caixa misteriosa.||||&7Direito deleta||&7Esquerdo deleta||&f":
- cancel event
- send "&erCaixasMisteriosas &7A localização da caixa misteriosa foi setada."
- set {caixa.%location of block%} to true
- set {abrindocaixa.%location of block%} to false
- create holo object "&eCaixa Misteriosa" with id "CaixaMisteriosa" at location 2.0 meters above location of block
- create holo object "&fUtilize um chave para abrir essa caixa!" with id "CaixaMisteriosa1" at location 1.7 meters above location of block
- create holo object "&fUltimo que abriu: &7Ninguem" with id "CaixaMisteriosa2" at location 1.3 meters above location of block
- on rightclick on chest:
- if tool of player is shiny stick named "&6Setador de Caixas Misteriosas" with lore "||&7Esse stick é utilizado para setar e deletar||&7a localização de uma caixa misteriosa.||||&7Direito deleta||&7Esquerdo deleta||&f":
- if {caixa.%location of block%} is true:
- cancel event
- set event-block to air
- delete holo object "CaixaMisteriosa"
- delete holo object "CaixaMisteriosa1"
- delete holo object "CaixaMisteriosa2"
- delete holo object "CaixaMisteriosa3"
- send "&erCaixasMisteriosas &7A localização da caixa misteriosa foi deletada."
- set {caixa.%location of block%} to false
- else:
- send "&erCaixasMisteriosas &7A localização da caixa misteriosa não é aqui."
- on rightclick on chest:
- if tool of player is shiny tripwire hook named "&6Key Misteriosa":
- if {caixa.%location of block%} is true:
- if {abrindocaixa.%location of block%} is false:
- play level up at location of block with pitch 1
- cancel event
- set {abrindocaixa.%location of block%} to true
- remove 1 of shiny tripwire hook named "&6Key Misteriosa" from player
- delete holo object "CaixaMisteriosa2"
- play level up at location of block with pitch 1
- delete holo object "CaixaMisteriosa1"
- create holo object "&fItem do jogador: &6%player%" with id "CaixaMisteriosa1" at location 1.7 meters above location of block
- create holo object "&6Sorteando..." with id "CaixaMisteriosa2" at location 1.3 meters above location of block
- play level up at location of block with pitch 1
- wait 2 seconds
- delete holo object "CaixaMisteriosa2"
- #AQUI NAS LINHA DE BAIXO AE È ONDE BOA OS ITENS AS CHANCE PEGA ESSE EXEMPLO AE E VAI FAZENDO, SE FAZER CERTO N DA ERRO PEGUE ATE A PALAVRA STOP
- chance of 50%:
- set {abrindocaixa.%location of block%} to false
- play explode at location of block with pitch 1
- give 64 diamond to player
- create holo object "&7Item recebido: &f64 Diamantes" with id "CaixaMisteriosa2" at location 1.3 meters above location of block
- create holo object "&7Raridade: &e:::&f:" with id "CaixaMisteriosa3" at location 1.0 meters above location of block
- wait 2 second
- delete holo object "CaixaMisteriosa1"
- delete holo object "CaixaMisteriosa2"
- delete holo object "CaixaMisteriosa3"
- create holo object "&fUtilize um chave para abrir essa caixa!" with id "CaixaMisteriosa1" at location 1.7 meters above location of block
- create holo object "&fUltimo que abriu: &7%player%" with id "CaixaMisteriosa2" at location 1.3 meters above location of block
- stop
- chance of 50%:
- set {abrindocaixa.%location of block%} to false
- play explode at location of block with pitch 1
- give 5 diamond to player
- create holo object "&7Item recebido: &f5 Diamantes" with id "CaixaMisteriosa2" at location 1.3 meters above location of block
- create holo object "&7Raridade: &e:&f:::" with id "CaixaMisteriosa3" at location 1.0 meters above location of block
- wait 2 second
- delete holo object "CaixaMisteriosa1"
- delete holo object "CaixaMisteriosa2"
- delete holo object "CaixaMisteriosa3"
- create holo object "&fUtilize um chave para abrir essa caixa!" with id "CaixaMisteriosa1" at location 1.7 meters above location of block
- create holo object "&fUltimo que abriu: &7%player%" with id "CaixaMisteriosa2" at location 1.3 meters above location of block
- stop
- else:
- send "&erCaixasMisteriosas &7Aguarde, algum jogador já esta abrindo a caixa."
- else:
- if {caixa.%location of block%} is true:
- cancel event
- send "&erCaixasMisteriosas &7Você precisa de uma &6Key misteriosa &7para poder abrir"
- command /rCaixasMisteriosas [<text>]:
- trigger:
- if arg 1 is not set:
- send ""
- send "&e /rCaixasMisteriosas setador &f- &7pegar o stick pra setar."
- send "&e /rCaixasMisteriosas key &f- &7Pegar key."
- send ""
- if arg 1 is "setador":
- send "&erCaixasMisteriosas &7Você pegou o stick setador."
- give shiny stick named "&6Setador de Caixas Misteriosas" with lore "||&7Esse stick é utilizado para setar e deletar||&7a localização de uma caixa misteriosa.||||&7Direito deleta||&7Esquerdo deleta||&f" to player
- if arg 1 is "key":
- send "&erCaixasMisteriosas &7Você pegou uma key"
- give 1 of shiny tripwire hook named "&6Key Misteriosa" to player
Add Comment
Please, Sign In to add comment