Advertisement
Guest User

LMaquinas error

a guest
Oct 30th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. command /maquina:
  2. Aliases: Maquina, Maquinas, LMaquinas, Maq
  3. Executable by: Player
  4. Trigger:
  5. wait 2 ticks
  6. open chest with 3 row named "&lMAQUINAS:" to player
  7. wait 5 ticks
  8. set {_Slot.LMaq} to 0
  9. loop 27 times:
  10. format slot {_Slot.LMaq} of player with Black Stained glass pane with name "&a " with lore "&a " to close then run ""
  11. wait 0.5 ticks
  12. add 1 to {_Slot.LMaq}
  13. format slot 11 of player with Stone named "&b&lMAQUINA Stone" with lore "" to close then run [Make player execute command "/§MaqStone"]
  14. format slot 12 of player with Iron ore named "" to close then run ""
  15. format slot 13 of player with Gold ore named "&e&lMAQUINA Gold" with lore "" to close then run ""
  16. format slot 14 of player with emerald ore named "&2&lMAQUINA Emerald" with lore "" to close then run ""
  17. format slot 15 of player with end stone named "&4&lMAQUINA Minerador" with lore "" to close then run ""
  18. command /§MaqStone:
  19. trigger:
  20. wait 2 ticks
  21. open chest with 3 row named "&lCONFIRMAR COMPRA:" to player
  22. wait 1 ticks
  23. format slot 0 of player with Stone named "" with lore "" to close then run ""
  24. format slot 12 of player with light green clay named "&aCONFIRMAR" to close then run [make player execute command "/§MaqStoneBuy"]
  25. format slot 14 of player with red clay named "&cCANCELAR" to close then run [make player execute command "/Maquina"]
  26.  
  27. command /§MaqStoneBuy:
  28. trigger:
  29. set {_Money.%player%} to player's balance
  30. if player's balance is more or equal to 100:
  31. remove 100 from player's balance
  32. add 1 stone named "" with lore "" to player's inventory
  33. send "&b&lMAQUINA Stone &aRecebida com sucesso."
  34. else:
  35. send "&cVocê precisa de &a100.0 &cpara comprar está maquina!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement