Advertisement
lNockl

OverTNT

Feb 28th, 2017
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     SuperTNT_Tamanho: 10
  3.     SuperTNT_Nome: &aSuper TNT
  4.    
  5.    
  6.     MegaTNT_Tamanho: 15
  7.     MegaTNT_Nome: &bMega TNT
  8.    
  9.    
  10.     UltraTNT_Tamanho: 20
  11.     UltraTNT_Nome: &6Ultra TNT
  12.    
  13.  
  14. #variavel remover
  15. #PODE SER REMOVIDO SE QUISER, EU COLOQUEI CASO ALGUMA
  16. #DAS VARIAVEIS BUG ELE REMOVE ELA DEPOIS DE UNS MINUTOS
  17. every 5 minutes:
  18.     delete {supertnt::*}
  19.     delete {megatnt::*}
  20.     delete {ultratnt::*}
  21.  
  22.  
  23. command /overtnt [<text>] [<player>] [<text>]:
  24.     trigger:
  25.         if arg 1 is not set:
  26.             send "&6/overtnt givesuper <player> 10"
  27.             send "&6/overtnt givemega <player> 10"
  28.             send "&6/overtnt giveultra <player> 10"
  29.         if arg 1 is "givesuper":
  30.             if arg 2 is set:
  31.                 if arg 3 is set:
  32.                     set {_quant} to "%arg-3%" parsed as integer
  33.                     give {_quant} of tnt named "{@SuperTNT_Nome}" to arg-2
  34.                     send "&eVoce recebeu %arg-3% {@SuperTNT_Nome}" to arg-2
  35.                 else:
  36.                     send "&c/overtnt givesuper <player> <quantidade>"
  37.             else:
  38.                 send "&c/overtnt givesuper <player> <quantidade>"
  39.                
  40.         if arg 1 is "givemega":
  41.             if arg 2 is set:
  42.                 if arg 3 is set:
  43.                     set {_quant} to "%arg-3%" parsed as integer
  44.                     give {_quant} of tnt named "{@MegaTNT_Nome}" to arg-2
  45.                     send "&eVoce recebeu %arg-3% {@MegaTNT_Nome}" to arg-2
  46.                 else:
  47.                     send "&c/overtnt givemega <player> <quantidade>"
  48.             else:
  49.                 send "&c/overtnt givemega <player> <quantidade>"
  50.            
  51.         if arg 1 is "giveultra":
  52.             if arg 2 is set:
  53.                 if arg 3 is set:
  54.                     set {_quant} to "%arg-3%" parsed as integer
  55.                     give {_quant} of tnt named "{@UltraTNT_Nome}" to arg-2
  56.                     send "&eVoce recebeu %arg-3% {@UltraTNT_Nome}" to arg-2
  57.                 else:
  58.                     send "&c/overtnt giveultra <player> <quantidade>"
  59.             else:
  60.                 send "&c/overtnt giveultra <player> <quantidade>"
  61.                
  62.                
  63.  
  64. #---------------------------[SUPER]-------------------------------------
  65. on place of tnt:
  66.     if name of tool of player is "{@SuperTNT_Nome}":
  67.         set {supertnt::%location of event-block%} to location of event-block
  68.        
  69. on break of tnt:
  70.     loop {supertnt::*}:
  71.         if "%location of event-block%" = "%loop-value%":
  72.             cancel event
  73.             set block at event-block to air
  74.             drop 1 tnt named "{@SuperTNT_Nome}" at event-block
  75.             remove location of event-block from {supertnt::*}
  76.            
  77. on explode:
  78.     loop all blocks in radius 3 of event-location:
  79.         loop {supertnt::*}:
  80.             if "%location of loop-value-1%" = "%loop-value-2%":
  81.                 create an explosion of force {@SuperTNT_Tamanho} at event-location
  82.                 delete {supertnt::%location of loop-value-1%}
  83.                
  84. #---------------------------[MEGA]-------------------------------------
  85. on place of tnt:
  86.     if name of tool of player is "{@MegaTNT_Nome}":
  87.         set {megatnt::%location of event-block%} to location of event-block
  88.        
  89. on break of tnt:
  90.     loop {megatnt::*}:
  91.         if "%location of event-block%" = "%loop-value%":
  92.             cancel event
  93.             set block at event-block to air
  94.             drop 1 tnt named "{@MegaTNT_Nome}" at event-block
  95.             remove location of event-block from {megatnt::*}
  96.            
  97. on explode:
  98.     loop all blocks in radius 3 of event-location:
  99.         loop {megatnt::*}:
  100.             if "%location of loop-value-1%" = "%loop-value-2%":
  101.                 create an explosion of force {@MegaTNT_Tamanho} at event-location
  102.                 delete {megatnt::%location of loop-value-1%}
  103.  
  104. #--------------------------[ULTRA]--------------------------------------
  105.  
  106. on place of tnt:
  107.     if name of tool of player is "{@UltraTNT_Nome}":
  108.         set {ultratnt::%location of event-block%} to location of event-block
  109.        
  110. on break of tnt:
  111.     loop {ultratnt::*}:
  112.         if "%location of event-block%" = "%loop-value%":
  113.             cancel event
  114.             set block at event-block to air
  115.             drop 1 tnt named "{@UltraTNT_Nome}" at event-block
  116.             remove location of event-block from {ultratnt::*}
  117.            
  118. on explode:
  119.     loop all blocks in radius 3 of event-location:
  120.         loop {ultratnt::*}:
  121.             if "%location of loop-value-1%" = "%loop-value-2%":
  122.                 create an explosion of force {@UltraTNT_Tamanho} at event-location
  123.                 delete {ultratnt::%location of loop-value-1%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement