Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /missions:
- trigger:
- open chest with 6 row named "&e&lMISSIONS" to player
- wait 3 ticks
- format slot 4 of player with player's skull named "&f&l%player%" with lore "&eMoney: &f%player's money%" to be unstealable
- format slot 10 of player with iron ore named "&6&lMISSION &8(&71&8)" with lore "||&eObjective: &f64 Iron Ore||&f||&7Click here to conplete the misson||&f||&eReward: &f$130" to close then run [make player execute command "mission1"]
- format slot 11 of player with coal ore named "&6&lMISSION &8(&72&8)" with lore "||&eObjective: &f64 Coal Ore||&f||&7Click here to conplete the misson||&f||&eReward: &f$80" to close then run [make player execute command "mission2"]
- format slot 12 of player with gold ore named "&6&lMISSION &8(&73&8)" with lore "||&eObjective: &f64 Gold Ore||&f||&7Click here to conplete the misson||&f||&eReward: &f$200" to close then run [make player execute command "mission2"]
- command /mission1:
- trigger:
- while amount of iron ore in player's inventory is bigger than 64:
- remove 64 iron ore from player's inventory
- add 130 to player's balance
- send "&6» &eSuccess! you have completed the mission"
- else:
- send "&6» &eError! &eyou do not have enough iron ore"
- command /mission2:
- trigger:
- while amount of coal in player's inventory is bigger than 64:
- remove 64 coal from player's inventory
- add 80 to player's balance
- send "&6» &eSuccess! you have completed the mission"
- else:
- send "&6» &eError! &eyou do not have enough coal ore"
- command /mission3:
- trigger:
- while amount of gold ore in player's inventory is bigger than 64:
- remove 64 gold ore from player's inventory
- add 200 to player's balance
- send "&6» &eSuccess! you have completed the mission"
- else:
- send "&6» &eError! &eyou do not have enough gold ore"
Advertisement
Add Comment
Please, Sign In to add comment