Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /maquina:
- Aliases: Maquina, Maquinas, LMaquinas, Maq
- Executable by: Player
- Trigger:
- wait 2 ticks
- open chest with 3 row named "&lMAQUINAS:" to player
- wait 5 ticks
- set {_Slot.LMaq} to 0
- loop 27 times:
- format slot {_Slot.LMaq} of player with Black Stained glass pane with name "&a " with lore "&a " to close then run ""
- wait 0.5 ticks
- add 1 to {_Slot.LMaq}
- format slot 11 of player with Stone named "&b&lMAQUINA Stone" with lore "" to close then run [Make player execute command "/§MaqStone"]
- format slot 12 of player with Iron ore named "" to close then run ""
- format slot 13 of player with Gold ore named "&e&lMAQUINA Gold" with lore "" to close then run ""
- format slot 14 of player with emerald ore named "&2&lMAQUINA Emerald" with lore "" to close then run ""
- format slot 15 of player with end stone named "&4&lMAQUINA Minerador" with lore "" to close then run ""
- command /§MaqStone:
- trigger:
- wait 2 ticks
- open chest with 3 row named "&lCONFIRMAR COMPRA:" to player
- wait 1 ticks
- format slot 0 of player with Stone named "" with lore "" to close then run ""
- format slot 12 of player with light green clay named "&aCONFIRMAR" to close then run [make player execute command "/§MaqStoneBuy"]
- format slot 14 of player with red clay named "&cCANCELAR" to close then run [make player execute command "/Maquina"]
- command /§MaqStoneBuy:
- trigger:
- set {_Money.%player%} to player's balance
- if player's balance is more or equal to 100:
- remove 100 from player's balance
- add 1 stone named "" with lore "" to player's inventory
- send "&b&lMAQUINA Stone &aRecebida com sucesso."
- else:
- send "&cVocê precisa de &a100.0 &cpara comprar está maquina!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement