Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /q:
- trigger:
- if {%player%.jim} = 3:
- message "&eJim's Coal Challenge: &7Mine 5 Coal Ore &a(%{%player%.jimcoal}%&a/5)" to player
- else:
- message "&eYou do not have any quests started." to player
- variables:
- {%player%.jim} = 0
- {%player%.jimclick} = false
- {%player%.jimcoal} = 0
- on rightclick on entity:
- if name of entity is "&7Jim":
- if {%player%.jimclick} = false:
- set {%player%.jimclick} to true
- if {%player%.jim} = 4:
- message "&eJim: &7Thanks again for completing that task, but I don't have anything else to say" to player
- play sound "entity.villager.trade" with volume 1 and pitch 1 to player
- wait 5 ticks
- set {%player%.jimclick} to false
- if {%player%.jim} = 3:
- if {%player%.jimcoal} is less than 5:
- message "&eJim: &7You haven't mined all 5 coal ore yet." to player
- play sound "entity.villager.no" with volume 1 and pitch 1 to player
- else:
- set {%player%.jim} to 4
- play sound "entity.villager.yes" with volume 1 and pitch 1 to player
- message "&eJim: &7I guess you are a pretty good miner! Here is your reward!" to player
- give player 1 diamond
- message "&b+1 Diamond" to player
- if {%player%.jim} = 2:
- message "&eJim: &7Can you mine 5 coal ore? If so, I will pay you well. (3/3)" to player
- set {%player%.jim} to 3
- play sound "entity.villager.yes" with volume 1 and pitch 1 to player
- message "&eQuest Started: &aJim's Coal Challenge" to player
- if {%player%.jim} = 1:
- 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
- set {%player%.jim} to 2
- play sound "entity.villager.trade" with volume 1 and pitch 1 to player
- if {%player%.jim} = 0:
- message "&ejim: &7Hello fellow miner! I have been mining here for a very long time. (1/3)" to player
- set {%player%.jim} to 1
- play sound "entity.villager.trade" with volume 1 and pitch 1 to player
- on mine of coal ore:
- if {%player%.jim} = 3:
- add 1 to {%player%.jimcoal}
- on mine of coal ore:
- if {%player%.jimcoal} is equal to 5:
- message "&eQuest Completed: &aJim's Coal Challenge" to player
- play sound "entity.experience.collect" with volume 1 and pitch 1 to player
- command /resetmyquest:
- permission: op
- trigger:
- set {%player%.jimclick} to false
- set {%player%.jim} to 0
- set {%player%.jimcoal} to 0
Advertisement
Add Comment
Please, Sign In to add comment