Guest User

Untitled

a guest
Mar 7th, 2020
2,773
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. command /q:
  2. trigger:
  3. if {%player%.jim} = 3:
  4. message "&eJim's Coal Challenge: &7Mine 5 Coal Ore &a(%{%player%.jimcoal}%&a/5)" to player
  5. else:
  6. message "&eYou do not have any quests started." to player
  7.  
  8.  
  9. variables:
  10. {%player%.jim} = 0
  11. {%player%.jimclick} = false
  12. {%player%.jimcoal} = 0
  13.  
  14.  
  15. on rightclick on entity:
  16. if name of entity is "&7Jim":
  17. if {%player%.jimclick} = false:
  18. set {%player%.jimclick} to true
  19.  
  20.  
  21.  
  22. if {%player%.jim} = 4:
  23. message "&eJim: &7Thanks again for completing that task, but I don't have anything else to say" to player
  24. play sound "entity.villager.trade" with volume 1 and pitch 1 to player
  25. wait 5 ticks
  26. set {%player%.jimclick} to false
  27.  
  28.  
  29. if {%player%.jim} = 3:
  30. if {%player%.jimcoal} is less than 5:
  31. message "&eJim: &7You haven't mined all 5 coal ore yet." to player
  32. play sound "entity.villager.no" with volume 1 and pitch 1 to player
  33. else:
  34. set {%player%.jim} to 4
  35. play sound "entity.villager.yes" with volume 1 and pitch 1 to player
  36. message "&eJim: &7I guess you are a pretty good miner! Here is your reward!" to player
  37. give player 1 diamond
  38. message "&b+1 Diamond" to player
  39.  
  40.  
  41. if {%player%.jim} = 2:
  42. message "&eJim: &7Can you mine 5 coal ore? If so, I will pay you well. (3/3)" to player
  43. set {%player%.jim} to 3
  44. play sound "entity.villager.yes" with volume 1 and pitch 1 to player
  45. message "&eQuest Started: &aJim's Coal Challenge" to player
  46.  
  47. if {%player%.jim} = 1:
  48. message "&eJim: &7I am looking for someone who can help me mine some things, as it is much harder in my old age. (2/3)" to player
  49. set {%player%.jim} to 2
  50. play sound "entity.villager.trade" with volume 1 and pitch 1 to player
  51.  
  52. if {%player%.jim} = 0:
  53. message "&ejim: &7Hello fellow miner! I have been mining here for a very long time. (1/3)" to player
  54. set {%player%.jim} to 1
  55. play sound "entity.villager.trade" with volume 1 and pitch 1 to player
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. on mine of coal ore:
  63. if {%player%.jim} = 3:
  64. add 1 to {%player%.jimcoal}
  65.  
  66. on mine of coal ore:
  67. if {%player%.jimcoal} is equal to 5:
  68. message "&eQuest Completed: &aJim's Coal Challenge" to player
  69. play sound "entity.experience.collect" with volume 1 and pitch 1 to player
  70.  
  71.  
  72. command /resetmyquest:
  73. permission: op
  74. trigger:
  75. set {%player%.jimclick} to false
  76. set {%player%.jim} to 0
  77. set {%player%.jimcoal} to 0
Advertisement
Add Comment
Please, Sign In to add comment