FrostedWeFall

Ore Broadcast

Oct 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.65 KB | None | 0 0
  1. options:
  2. broadcast: true
  3.  
  4.  
  5. on join:
  6. if {ores.gold.%player%} is not set:
  7. set {ores.gold.%player%} to 0
  8. if {ores.iron.%player%} is not set:
  9. set {ores.iron.%player%} to 0
  10. if {ores.coal.%player%} is not set:
  11. set {ores.coal.%player%} to 0
  12. if {ores.lapis.%player%} is not set:
  13. set {ores.lapis.%player%} to 0
  14. if {ores.diamond.%player%} is not set:
  15. set {ores.diamond.%player%} to 0
  16. if {ores.redstone.%player%} is not set:
  17. set {ores.redstone.%player%} to 0
  18. if {ores.emerald.%player%} is not set:
  19. set {ores.emerald.%player%} to 0
  20. if {ores.quartz.%player%} is not set:
  21. set {ores.quartz.%player%} to 0
  22.  
  23. on mine of gold ore:
  24. increase {ores.gold.%player%} by 1
  25. if {@broadcast} is true:
  26. broadcast "&6%player% &7has found &6Gold"
  27.  
  28. on mine of iron ore:
  29. increase {ores.iron.%player%} by 1
  30. if {@broadcast} is true:
  31. broadcast "&7%player% has found Iron"
  32.  
  33. on mine of coal ore:
  34. increase {ores.coal.%player%} by 1
  35. if {@broadcast} is true:
  36. broadcast "&0%player% &7has found &0Coal"
  37.  
  38. on mine of lapis ore:
  39. increase {ores.lapis.%player%} by 1
  40. if {@broadcast} is true:
  41. broadcast "&1%player% &7has found &1Lapis"
  42.  
  43. on mine of diamond ore:
  44. increase {ores.diamond.%player%} by 1
  45. if {@broadcast} is true:
  46. broadcast "&b%player% &7has found &bDiamond"
  47.  
  48. on mine of redstone ore:
  49. increase {ores.redstone.%player%} by 1
  50. if {@broadcast} is true:
  51. broadcast "&c%player% &7has found &cRedstone"
  52.  
  53. on mine of emerald ore:
  54. increase {ores.emerald.%player%} by 1
  55. if {@broadcast} is true:
  56. broadcast "&a%player% &7has found &aEmerald"
  57.  
  58. on mine of quartz ore:
  59. increase {ores.quartz.%player%} by 1
  60. if {@broadcast} is true:
  61. broadcast "&f%player% &7has found &fQuartz"
  62.  
  63. command /ores [<offlineplayer>]:
  64. trigger:
  65. if player has permission "ores.see":
  66. if arg 1 is not set:
  67. set {_player} to "%player%" parsed as offline player
  68. open chest with 3 rows named "&e&lYour &7&lOres" to player
  69. format slot 13 of player with skull of {_player} named "&e&lYour &7&lOres" to be unstealable
  70. format slot 12 of player with gold ingot named "&6&lGold: &f%{ores.gold.%player%}%" with lore "&eYou &7have||&7mined &e%{ores.gold.%player%}% &7gold" to be unstealable
  71. format slot 14 of player with iron ingot named "&7&lIron: &f%{ores.iron.%player%}%" with lore "&7You &7have||&7mined &e%{ores.iron.%player%}% &7iron" to be unstealable
  72. format slot 4 of player with coal item named "&8&lCoal: &f%{ores.coal.%player%}%" with lore "&8You &7have||&7mined &e%{ores.coal.%player%}% &8coal" to be unstealable
  73. format slot 22 of player with lapis named "&1&lLapis: &f%{ores.lapis.%player%}%" with lore "&1You &7have||&7mined &e%{ores.lapis.%player%}% &8lapis" to be unstealable
  74. format slot 0 of player with diamond named "&b&lDiamond: &f%{ores.diamond.%player%}%" with lore "&bYou &7have||&7mined &e%{ores.diamond.%player%}% &8diamond" to be unstealable
  75. format slot 8 of player with redstone named "&c&lRedstone: &f%{ores.redstone.%player%}%" with lore "&cYou &7have||&7mined &e%{ores.redstone.%player%}% &8redstone" to be unstealable
  76. format slot 18 of player with emerald named "&a&lEmerald: &f%{ores.emerald.%player%}%" with lore "&aYou &7have||&7mined &e%{ores.emerald.%player%}% &8emerald" to be unstealable
  77. format slot 26 of player with quartz named "&f&lQuartz: &f%{ores.quartz.%player%}%" with lore "&fYou &7have||&7mined &e%{ores.quartz.%player%}% &8emerald" to be unstealable
  78. if arg 1 is set:
  79. set {_head} to "%arg-1%" parsed as offline player
  80. if {ores.gold.%arg-1%} is not set:
  81. set {ores.gold.%arg-1%} to 0
  82. if {ores.iron.%arg-1%} is not set:
  83. set {ores.iron.%arg-1%} to 0
  84. if {ores.coal.%arg-1%} is not set:
  85. set {ores.coal.%arg-1%} to 0
  86. if {ores.lapis.%arg-1%} is not set:
  87. set {ores.lapis.%arg-1%} to 0
  88. if {ores.diamond.%arg-1%} is not set:
  89. set {ores.diamond.%arg-1%} to 0
  90. if {ores.redstone.%arg-1%} is not set:
  91. set {ores.redstone.%arg-1%} to 0
  92. if {ores.emerald.%arg-1%} is not set:
  93. set {ores.emerald.%arg-1%} to 0
  94. if {ores.quartz.%arg-1%} is not set:
  95. set {ores.quartz.%arg-1%} to 0
  96. open chest with 3 rows named "&e&l%arg-1%'s &7&lOres" to player
  97. format slot 13 of player with skull of {_head} named "&e&l%arg-1%'s &7&lOres" to be unstealable
  98. format slot 12 of player with gold ingot named "&6&lGold: &f%{ores.gold.%arg-1%}%" with lore "&e%arg-1% &7has||&7mined &e%{ores.gold.%arg-1%}% &7gold" to be unstealable
  99. format slot 14 of player with iron ingot named "&7&lIron: &f%{ores.iron.%arg-1%}%" with lore "&7%arg-1% &7has||&7mined &e%{ores.iron.%arg-1%}% &7iron" to be unstealable
  100. format slot 4 of player with coal item named "&8&lCoal: &f%{ores.coal.%arg-1%}%" with lore "&8%arg-1% &7has||&7mined &e%{ores.coal.%arg-1%}% &8coal" to be unstealable
  101. format slot 22 of player with lapis named "&1&lLapis: &f%{ores.lapis.%arg-1%}%" with lore "&1%arg-1% &7has||&7mined &e%{ores.lapis.%arg-1%}% &8lapis" to be unstealable
  102. format slot 0 of player with diamond named "&b&lDiamond: &f%{ores.diamond.%arg-1%}%" with lore "&b%arg-1% &7has||&7mined &e%{ores.diamond.%arg-1%}% &8diamond" to be unstealable
  103. format slot 8 of player with redstone named "&c&lRedstone: &f%{ores.redstone.%arg-1%}%" with lore "&c%arg-1% &7has||&7mined &e%{ores.redstone.%arg-1%}% &8redstone" to be unstealable
  104. format slot 18 of player with emerald named "&a&lEmerald: &f%{ores.emerald.%arg-1%}%" with lore "&a%arg-1% &7has||&7mined &e%{ores.emerald.%arg-1%}% &8emerald" to be unstealable
  105. format slot 26 of player with quartz named "&f&lQuartz: &f%{ores.quartz.%arg-1%}%" with lore "&f%arg-1% &7has||&7mined &e%{ores.quartz.%arg-1%}% &8emerald" to be unstealable
Add Comment
Please, Sign In to add comment