Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: §aConviction §8»§7
- on right click:
- if {Conviction::%player%} is not set:
- if event-block is a dispenser:
- delete {_num}
- delete {_diap}
- set {_num} to number of golden apple in player's inventory
- set {_num2} to number of gold ingot in player's inventory
- set {_num3} to number of diamond in player's inventory
- if helmet slot of player is a diamond helmet:
- add 1 to {_diap}
- if chestplate slot of player is a diamond chestplate:
- add 1 to {_diap}
- if legging slot of player is a diamond leggings:
- add 1 to {_diap}
- if boots slot of player is a diamond boots:
- add 1 to {_diap}
- if player is holding a diamond:
- set {Conviction::%player%} to true
- remove 1 diamond from player
- send "{@prefix} §c3§8..."
- wait 1 second
- send "{@prefix} §e2§8..."
- wait 1 second
- send "{@prefix} §a1§8..."
- wait 1 second
- delete {Conviction::%player%}
- set {_diachance} to a random number between 0 and 100
- if {_diachance} is between 0 and 30:
- send "{@prefix} §cYou got nothing"
- chance of 30%:
- broadcast "{@prefix} §a%player% §7got §cnothing §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
- launch ball large firework colored red at player timed 1
- if {_diachance} is between 30 and 65:
- send "{@prefix} §2You got §a1 §bdiamond§7!"
- chance of 30%:
- broadcast "{@prefix} §a%player% §7got §a1 diamond §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
- launch ball large firework colored yellow at player timed 1
- give 1 diamond to player
- if {_diachance} is between 65 and 85:
- send "{@prefix} §2You got §a2 §bdiamond§7!"
- chance of 30%:
- broadcast "{@prefix} §a%player% §7got §a2 diamond §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
- launch ball large firework colored orange at player timed 1
- give 2 diamond to player
- if {_diachance} is between 85 and 100:
- send "{@prefix} §2You got §a3 §bdiamond§7!"
- chance of 30%:
- broadcast "{@prefix} §a%player% §7got §a3 diamond §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
- launch ball large firework colored green at player timed 1
- give 3 diamond to player
- if player is holding a gold ingot:
- set {Conviction::%player%} to true
- remove 1 gold ingot from player
- send "{@prefix} §c3§8..."
- wait 1 second
- send "{@prefix} §e2§8..."
- wait 1 second
- send "{@prefix} §a1§8..."
- wait 1 second
- delete {Conviction::%player%}
- set {_goldchance} to a random number between 0 and 100
- if {_goldchance} is between 0 and 30:
- send "{@prefix} §cYou got nothing"
- chance of 30%:
- broadcast "{@prefix} §a%player% §7got §cnothing §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
- launch ball large firework colored red at player timed 1
- if {_goldchance} is between 30 and 65:
- send "{@prefix} §2You got §a1 §6gold§7!"
- chance of 30%:
- broadcast "{@prefix} §a%player% §7got §a1 gold §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
- launch ball large firework colored yellow at player timed 1
- give 1 gold ingot to player
- if {_goldchance} is between 65 and 85:
- send "{@prefix} §2You got §a2 §6gold§7!"
- chance of 30%:
- broadcast "{@prefix} §a%player% §7got §a2 gold §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
- launch ball large firework colored orange at player timed 1
- give 2 gold ingot to player
- if {_goldchance} is between 85 and 100:
- send "{@prefix} §2You got §a3 §6gold§7!"
- chance of 30%:
- broadcast "{@prefix} §a%player% §7got §a3 gold §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
- launch ball large firework colored green at player timed 1
- give 3 gold ingot to player
- if player is holding a iron ingot:
- set {Conviction::%player%} to true
- remove 1 iron ingot from player
- send "{@prefix} §c3§8..."
- wait 1 second
- send "{@prefix} §e2§8..."
- wait 1 second
- send "{@prefix} §a1§8..."
- wait 1 second
- delete {Conviction::%player%}
- set {_ironchance} to a random number between 0 and 100
- if {_ironchance} is between 0 and 30:
- send "{@prefix} §cYou got nothing"
- chance of 30%:
- broadcast "{@prefix} §a%player% §7got §cnothing §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
- launch ball large firework colored red at player timed 1
- if {_ironchance} is between 30 and 65:
- send "{@prefix} §2You got §a1 §7iron§7!"
- chance of 30%:
- broadcast "{@prefix} §a%player% §7got §a1 iron §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
- launch ball large firework colored yellow at player timed 1
- give 1 iron ingot to player
- if {_ironchance} is between 65 and 85:
- send "{@prefix} §2You got §a2 §7iron§7!"
- chance of 30%:
- broadcast "{@prefix} §a%player% §7got §a1 iron §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
- launch ball large firework colored orange at player timed 1
- give 2 iron ingot to player
- if {_ironchance} is between 85 and 100:
- send "{@prefix} §2You got §a3 §7iron§7!"
- chance of 30%:
- broadcast "{@prefix} §a%player% §7got §a1 iron §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
- launch ball large firework colored green at player timed 1
- give 3 iron ingot to player
- on skript load:
- delete {Conviction::*}
- on craft of dispenser:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement