ExtrayeaMC

Linternas

Jan 25th, 2014
2,614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. clear @p minecraft:torch 0 0
  2.  
  3. testfor @a {SelectedItemSlot:1}
  4.  
  5. /effect @p 16 10000 0
  6.  
  7. /effect @p 16 0 0
  8.  
  9. scoreboard objectives setdisplay sidebar Bateria
  10.  
  11. scoreboard objectives setdisplay sidebar Bateria1
  12.  
  13. scoreboard players remove @p Bateria 1
  14.  
  15. testfor @p[score_Bateria_min=1,score_Bateria=1]
  16.  
  17. setblock -514 57 639 minecraft:redstone_block
  18.  
  19. tellraw @a {text:"Te has quedado sin bateria",color:red}
  20.  
  21. tellraw @a {"text":"","extra":[{"text":"Quieres recargar la bateria?","color":"white"},{"text":"[SI]","color":"green","clickEvent":{"action":"run_command","value":"/scoreboard players set @p recarga 1"},"hoverEvent":{"action":"show_text","value":"1 diamante"}},{"text":"[NO]","color":"red"}]}
  22.  
  23. testfor @a[score_recarga_min=1,score_recarga=1]
  24.  
  25. clear @p minecraft:diamond 0 1
  26.  
  27. scoreboard players set @p Bateria 1000
  28.  
  29. scoreboard players set @p recarga 0
  30.  
  31. setblock -514 57 639 minecraft:air
  32.  
  33. effect @p 16 100000 0
Advertisement
Add Comment
Please, Sign In to add comment