Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear @p minecraft:torch 0 0
- testfor @a {SelectedItemSlot:1}
- /effect @p 16 10000 0
- /effect @p 16 0 0
- scoreboard objectives setdisplay sidebar Bateria
- scoreboard objectives setdisplay sidebar Bateria1
- scoreboard players remove @p Bateria 1
- testfor @p[score_Bateria_min=1,score_Bateria=1]
- setblock -514 57 639 minecraft:redstone_block
- tellraw @a {text:"Te has quedado sin bateria",color:red}
- 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"}]}
- testfor @a[score_recarga_min=1,score_recarga=1]
- clear @p minecraft:diamond 0 1
- scoreboard players set @p Bateria 1000
- scoreboard players set @p recarga 0
- setblock -514 57 639 minecraft:air
- effect @p 16 100000 0
Advertisement
Add Comment
Please, Sign In to add comment