Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on click on a entity:
- if entity's name is "%{mm.npc}%":
- make player execute command "minemission m"
- command /minemission [<text>] [<text>]:
- trigger:
- If arg 1 is not set:
- message "&cFejl"
- else if arg 1 is "Npc":
- if player has permission "*":
- if arg 2 is set:
- set {mm.npc} to arg 2
- else:
- send "&4Brug: &c/minemission npc (navn)"
- else if arg 1 is "m":
- if {mm2.%player%} is 1:
- if player is holding a coal:
- if player has 20 coal in his inventory:
- message "&7[&9Mine mission&7] &a du har afleveret 30 kul og modtager din belønning på 300 kr"
- remove 20 coal from player's inventory
- set {mm2.%player%} to 2
- set {mm2_c_klared::%player%} to 1440
- add 300 to player's balance
- else:
- message "&7[&9Mine Mission&7] Du skal have 20 kul på dig for at klare mission"
- else if {mm3.%player%} is 1:
- if player is holding a iron ore:
- if player has 15 iron ore in his inventory:
- message "&7[&9Mine mission&7] &a du har afleveret 15 iron ores og modtager din belønning på 300 kr"
- remove 15 iron ore from player's inventory
- set {mm3.%player%} to 2
- set {mm3_c_klared::%player%} to 1440
- add 300 to player's balance
- else:
- message "&7[&9Mine Mission&7] Du skal have 15 jern ores på dig for at klare mission"
- else if {mm4.%player%} is 1:
- if player is holding a iron pickaxe named "Iron Pickaxe":
- message "&7[&9Mine mission&7] &a du har afleveret 1 jern hakke og modtager din belønning på 150 kr"
- remove 1 iron pickaxe named "Iron Pickaxe" from player's inventory
- set {mm4.%player%} to 2
- set {mm4_c_klared::%player%} to 1440
- add 150 to player's balance
- else:
- wait 2 ticks
- open chest with 3 rows named "&8Mine mission" to player
- format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- make player execute command "setminemenu m"
- format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- else:
- wait 2 ticks
- open chest with 3 rows named "&8Mine mission" to player
- format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- make player execute command "setminemenu m"
- format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- else if {mm4.%player%} is 1:
- if player is holding a iron pickaxe:
- message "&7[&9Mine mission&7] &a du har afleveret 1 jern hakke og modtager din belønning på 150 kr"
- remove 1 iron pickaxe from player's inventory
- set {mm4.%player%} to 2
- set {mm4_c_klared::%player%} to 1440
- add 150 to player's balance
- wait 2 ticks
- open chest with 3 rows named "&8Mine mission" to player
- format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- make player execute command "setminemenu m"
- format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- else:
- wait 2 ticks
- open chest with 3 rows named "&8Mine mission" to player
- format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- make player execute command "setminemenu m"
- format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- else if {mm3.%player%} is 1:
- if player is holding a iron ore:
- if player has 15 iron ore in his inventory:
- message "&7[&9Mine mission&7] &a du har afleveret 15 iron ores og modtager din belønning på 300 kr"
- remove 15 iron ore from player's inventory
- set {mm3.%player%} to 2
- set {mm3_c_klared::%player%} to 1440
- add 300 to player's balance
- else:
- message "&7[&9Mine Mission&7] Du skal have 15 jern ores på dig for at klare mission"
- else if {mm4.%player%} is 1:
- if player is holding a iron pickaxe:
- message "&7[&9Mine mission&7] &a du har afleveret 1 jern hakke og modtager din belønning på 150 kr"
- remove 1 iron pickaxe from player's inventory
- set {mm4.%player%} to 2
- set {mm4_c_klared::%player%} to 1440
- add 150 to player's balance
- else:
- wait 2 ticks
- open chest with 3 rows named "&8Mine mission" to player
- format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- make player execute command "setminemenu m"
- format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- else:
- wait 2 ticks
- open chest with 3 rows named "&8Mine mission" to player
- format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- make player execute command "setminemenu m"
- format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- else if {mm4.%player%} is 1:
- if player is holding a iron pickaxe:
- message "&7[&9Mine mission&7] &a du har afleveret 1 jern hakke og modtager din belønning på 150 kr"
- remove 1 iron pickaxe from player's inventory
- set {mm4.%player%} to 2
- set {mm4_c_klared::%player%} to 1440
- add 150 to player's balance
- else:
- wait 2 ticks
- open chest with 3 rows named "&8Mine mission" to player
- format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- make player execute command "setminemenu m"
- format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- else:
- wait 2 ticks
- open chest with 3 rows named "&8Mine mission" to player
- format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- make player execute command "setminemenu m"
- format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
- else:
- message "no"
- command /mreset:
- permission: *
- trigger:
- delete {mm1.%player%}
- delete {mm2.%player%}
- delete {mm3.%player%}
- delete {mm4.%player%}
- command /setminemenu [<text>]:
- trigger:
- wait 3 tick
- If arg 1 is not set:
- message "&4no"
- else if arg 1 is "m":
- if {mm1.%player%} is not set:
- format slot 11 of player with 1 of stone named "&9Mine &b200 &7sten" with lore "||&3du modtager:||&B250 &3KR" to run [make player execute command "/minemissionr 1 m"]
- else if {mm1.%player%} is 1:
- format slot 11 of player with 1 of stone of unbreaking 1 named "&aMission i gang" with lore "&3mine &b200 &7sten||&3du modtager:||&B250 &3KR" to run [make player execute command "/minemissions 1 m"]
- else if {mm1.%player%} is 2:
- format slot 11 of player with 1 block of emerald of unbreaking 1 named "&aMission klaret" with lore "&3du kan klare den igen om:||%{mm1_c_klared::%player%}% min" to be unstealable
- else:
- format slot 11 of player with 1 of stone named "fail" to be unstealable
- if {mm2.%player%} is not set:
- format slot 12 of player with 20 of coal item named "&9Aflever &b20 &8kul" with lore "||&3du modtager:||&B300 &3KR" to run [make player execute command "/minemissionr 2 m"]
- else if {mm2.%player%} is 1:
- format slot 12 of player with 20 of coal item of unbreaking 1 named "&aMission i gang" with lore "&9Aflever &b20 &8kul||&3du modtager:||&B300 &3KR" to run [make player execute command "/minemissions 2 m"]
- else if {mm2.%player%} is 2:
- format slot 12 of player with 1 block of emerald of unbreaking 1 named "&aMission klaret" with lore "&3du kan klare den igen om:||%{mm2_c_klared::%player%}% min" to be unstealable
- else:
- format slot 12 of player with 1 of stone named "fail" to be unstealable
- if {mm3.%player%} is not set:
- format slot 14 of player with 15 of iron ore named "&3Aflever &b15 &fjern ore" with lore "||&3du modtager:||&B300 &3KR" to run [make player execute command "/minemissionr 3 m"]
- else if {mm3.%player%} is 1:
- format slot 14 of player with 15 of iron ore of unbreaking 1 named "&aMission i gang" with lore "&3Aflever &b15 &fjern ore||&3du modtager:||&B300 &3KR" to run [make player execute command "/minemissions 3 m"]
- else if {mm3.%player%} is 2:
- format slot 14 of player with 1 block of emerald of unbreaking 1 named "&aMission klaret" with lore "&3du kan klare den igen om:||%{mm3_c_klared::%player%}% min" to be unstealable
- if {mm4.%player%} is not set:
- format slot 15 of player with 1 of iron pickaxe named "&3Aflever &b1 &3hel ny &firon pickaxe" with lore "||&3du modtager:||&B150 &3KR" to run [make player execute command "/minemissionr 4 m"]
- else if {mm4.%player%} is 1:
- format slot 15 of player with 1 of iron pickaxe of unbreaking 1 named "&AMission i gang" with lore "&3Aflever &b1 &3hel ny &firon pickaxe||&3du modtager:||&B150 &3KR" to run [make player execute command "/minemissions 4 m"]
- else if {mm4.%player%} is 2:
- format slot 15 of player with 1 block of emerald of unbreaking 1 named "&aMission klaret" with lore "&3du kan klare den igen om:||%{mm4_c_klared::%player%}% min" to be unstealable
- format slot 10 of player with 1 of air to be unstealable
- format slot 13 of player with 1 of air to be unstealable
- format slot 16 of player with 1 of air to be unstealable
- command /minemissionr [<text>] [<text>]:
- trigger:
- If arg 1 is not set:
- message "no"
- else if arg 1 is "1":
- If arg 2 is not set:
- message "no"
- else if arg 2 is "m":
- if {mm1.%player%} is not set:
- message "&7[&9Mine mission&7] &7Mine 200 sten så får du en belønning"
- set {mm1.%player%} to 1
- set {mm1.started.%player%} to 0
- execute player command "/setminemenu m"
- else if arg 1 is "2":
- If arg 2 is not set:
- message "no"
- else if arg 2 is "m":
- message "&7[&9Mine mission&7] &7Aflever 20 cul så får du en belønning"
- set {mm2.%player%} to 1
- set {mm2.started.%player%} to 0
- execute player command "/setminemenu m"
- else if arg 1 is "3":
- If arg 2 is not set:
- message "no"
- else if arg 2 is "m":
- message "&7[&9Mine mission&7] &7Aflever 15 jern ores så får du en belønning"
- set {mm3.%player%} to 1
- set {mm3.started.%player%} to 0
- execute player command "/setminemenu m"
- else if arg 1 is "4":
- If arg 2 is not set:
- message "no"
- else if arg 2 is "m":
- message "&7[&9Mine mission&7] &7Aflever 1 jern hakke så får du en belønning"
- set {mm4.%player%} to 1
- set {mm4.started.%player%} to 0
- execute player command "/setminemenu m"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement