Guest User

RCaixaMisteriosa

a guest
Aug 24th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.82 KB | None | 0 0
  1. # ▒██████ ▒██████████ #
  2. # ▒██ ▒██ ▒████ ▒███████ ▒████ ▒███████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒████████ ▒████████ #
  3. # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▀▀ #
  4. # ▒██ ▒██ ▒██ ▒██ ▒███████ ▒██ ▒██ ▒███████ ▒██ ▒██████████ ▒████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
  5. # ▒██████ ▒████████ ▒██ ▒████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒██ ▒██ #
  6. # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ #
  7. # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒███████ ▒███████ ▒██████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
  8.  
  9. #
  10. # Skript feito por rafael2425
  11. #
  12. #
  13.  
  14.  
  15. on leftclick on chest:
  16. 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":
  17. cancel event
  18. send "&erCaixasMisteriosas &7A localização da caixa misteriosa foi setada."
  19. set {caixa.%location of block%} to true
  20. set {abrindocaixa.%location of block%} to false
  21. create holo object "&eCaixa Misteriosa" with id "CaixaMisteriosa" at location 2.0 meters above location of block
  22. create holo object "&fUtilize um chave para abrir essa caixa!" with id "CaixaMisteriosa1" at location 1.7 meters above location of block
  23. create holo object "&fUltimo que abriu: &7Ninguem" with id "CaixaMisteriosa2" at location 1.3 meters above location of block
  24.  
  25. on rightclick on chest:
  26. 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":
  27. if {caixa.%location of block%} is true:
  28. cancel event
  29. set event-block to air
  30. delete holo object "CaixaMisteriosa"
  31. delete holo object "CaixaMisteriosa1"
  32. delete holo object "CaixaMisteriosa2"
  33. delete holo object "CaixaMisteriosa3"
  34. send "&erCaixasMisteriosas &7A localização da caixa misteriosa foi deletada."
  35. set {caixa.%location of block%} to false
  36. else:
  37. send "&erCaixasMisteriosas &7A localização da caixa misteriosa não é aqui."
  38.  
  39. on rightclick on chest:
  40. if tool of player is shiny tripwire hook named "&6Key Misteriosa":
  41. if {caixa.%location of block%} is true:
  42. if {abrindocaixa.%location of block%} is false:
  43. play level up at location of block with pitch 1
  44. cancel event
  45. set {abrindocaixa.%location of block%} to true
  46. remove 1 of shiny tripwire hook named "&6Key Misteriosa" from player
  47. delete holo object "CaixaMisteriosa2"
  48. play level up at location of block with pitch 1
  49. delete holo object "CaixaMisteriosa1"
  50. create holo object "&fItem do jogador: &6%player%" with id "CaixaMisteriosa1" at location 1.7 meters above location of block
  51. create holo object "&6Sorteando..." with id "CaixaMisteriosa2" at location 1.3 meters above location of block
  52. play level up at location of block with pitch 1
  53. wait 2 seconds
  54. delete holo object "CaixaMisteriosa2"
  55. #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
  56. chance of 50%:
  57. set {abrindocaixa.%location of block%} to false
  58. play explode at location of block with pitch 1
  59. give 64 diamond to player
  60. create holo object "&7Item recebido: &f64 Diamantes" with id "CaixaMisteriosa2" at location 1.3 meters above location of block
  61. create holo object "&7Raridade: &e:::&f:" with id "CaixaMisteriosa3" at location 1.0 meters above location of block
  62. wait 2 second
  63. delete holo object "CaixaMisteriosa1"
  64. delete holo object "CaixaMisteriosa2"
  65. delete holo object "CaixaMisteriosa3"
  66. create holo object "&fUtilize um chave para abrir essa caixa!" with id "CaixaMisteriosa1" at location 1.7 meters above location of block
  67. create holo object "&fUltimo que abriu: &7%player%" with id "CaixaMisteriosa2" at location 1.3 meters above location of block
  68. stop
  69. chance of 50%:
  70. set {abrindocaixa.%location of block%} to false
  71. play explode at location of block with pitch 1
  72. give 5 diamond to player
  73. create holo object "&7Item recebido: &f5 Diamantes" with id "CaixaMisteriosa2" at location 1.3 meters above location of block
  74. create holo object "&7Raridade: &e:&f:::" with id "CaixaMisteriosa3" at location 1.0 meters above location of block
  75. wait 2 second
  76. delete holo object "CaixaMisteriosa1"
  77. delete holo object "CaixaMisteriosa2"
  78. delete holo object "CaixaMisteriosa3"
  79. create holo object "&fUtilize um chave para abrir essa caixa!" with id "CaixaMisteriosa1" at location 1.7 meters above location of block
  80. create holo object "&fUltimo que abriu: &7%player%" with id "CaixaMisteriosa2" at location 1.3 meters above location of block
  81. stop
  82. else:
  83. send "&erCaixasMisteriosas &7Aguarde, algum jogador já esta abrindo a caixa."
  84. else:
  85. if {caixa.%location of block%} is true:
  86. cancel event
  87. send "&erCaixasMisteriosas &7Você precisa de uma &6Key misteriosa &7para poder abrir"
  88.  
  89. command /rCaixasMisteriosas [<text>]:
  90. trigger:
  91. if arg 1 is not set:
  92. send ""
  93. send "&e /rCaixasMisteriosas setador &f- &7pegar o stick pra setar."
  94. send "&e /rCaixasMisteriosas key &f- &7Pegar key."
  95. send ""
  96. if arg 1 is "setador":
  97. send "&erCaixasMisteriosas &7Você pegou o stick setador."
  98. 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
  99. if arg 1 is "key":
  100. send "&erCaixasMisteriosas &7Você pegou uma key"
  101. give 1 of shiny tripwire hook named "&6Key Misteriosa" to player
Add Comment
Please, Sign In to add comment