Oxalist

Untitled

Jan 6th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. command /quests-1:
  2. trigger:
  3. while amount of wheat in player's inventory is bigger than 30:
  4. make console execute command "scoreboard players add %player% money 100"
  5. make console execute command "manuaddp %player% quest-1.complete"
  6. remove 30 wheat from player's inventory
  7. set 250 to xp of player
  8. send "&6Β» &eSuccess! you have completed the quest"
  9. else:
  10. send "&6Β» &eError! &eyou do not have enough wheat"
  11.  
  12.  
  13. command /quests:
  14. trigger:
  15. open chest with 6 rows named "&6&lQuests" to player
  16. wait 5 ticks
  17. format slot 4 of player with player's skull named "&6&l%player%" with lore "" to be unstealable
  18. if player has permission "quest-1.complete":
  19. format slot 10 of player with enchant_book of thorns 1 named "&6&lQuests &7(&81&7)" with lore " ||&eObjective &fGet 30 Wheat ||&eReward &f250 XP and $100 ||&eStatus &a&lUNLOCKED" to close
  20. if player doesn't have permission "quest-1.complete":
  21. format slot 10 of player with enchant_book named "&6&lQuests &7(&81&7)" with lore " ||&eObjective &fGet 30 Wheat ||&eReward &f250 XP and $100 ||&eStatus &c&lLOCKED" to close then run [make player execute "/quests-1"]
Advertisement
Add Comment
Please, Sign In to add comment