Advertisement
Guest User

Untitled

a guest
May 10th, 2021
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. on death of sheep:
  2. give attacker 1 raw mutton named "&7Sheep Guts" with lore "&f&lCOMMON"
  3. play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at attacker for attacker
  4. add 1 to {sheep.killed::%attacker's uuid%}
  5. send "&8(&c*&8) &7Killed 1 sheep. ##%{sheep.killed::%attacker's uuid%}% &7total sheep killed." to attacker
  6. cancel drops
  7.  
  8. on death of pig:
  9. give attacker 1 raw porkchop named "&7Pig Guts" with lore "&f&lCOMMON"
  10. play sound "entity.experience_orb.pickup" with volume 1 and pitch 1 at attacker for attacker
  11. add 1 to {pig.killed::%attacker's uuid%}
  12. send "&8(&c*&8) &7Killed 1 pig. ##%{pig.killed::%attacker's uuid%}% &7total pig killed." to attacker
  13. cancel drops
  14.  
  15. command /balance:
  16. trigger:
  17. send "&8(&c*&8) &7Your balance is $%{bal::%player's uuid%}%" to player
  18.  
  19. on join:
  20. if {joined::%player's uuid%} is not set:
  21. give player wooden sword named "&7Starter Sword"
  22. set {joined::%player's uuid%} to true
  23.  
  24.  
  25. command /spawnregion [<text>]:
  26. permission: smelly.region.axe
  27. trigger:
  28. if arg-1 is "sheep":
  29. give player stone axe named "&8(&c*&8) &7Sheep Spawn &8(&c*&8)"
  30. if arg-1 is "pig":
  31. give player stone axe named "&8(&c*&8) &7Pig Spawn &8(&c*&8)"
  32.  
  33. on leftclick:
  34. if player's tool is stone axe named "&8(&c*&8) &7Pig Spawn &8(&c*&8)":
  35. set {pigspawn} to block above event-block's location
  36. send "&8(&c*&8) &7Set pig spawn to %{loc2}%&7." to player
  37. cancel event
  38.  
  39. on leftclick:
  40. if player's tool is stone axe named "&8(&c*&8) &7Sheep Spawn &8(&c*&8)":
  41. set {sheepspawn} to block above event-block's location
  42. send "&8(&c*&8) &7Set sheep spawn to %{loc2}%&7." to player
  43. cancel event
  44.  
  45. every 30 seconds:
  46. spawn sheep at {sheepspawn}
  47. spawn pig at {pigspawn}
  48.  
  49. command /vendor:
  50. trigger:
  51. open virtual chest inventory with size 3 named "Meat Buyer" to player
  52. format gui slot 10 of player with raw mutton named "&7Sheep Guts &8| &71$" to run:
  53. if player's inventory contains raw mutton named "&7Sheep Guts" with lore "&f&lCOMMON":
  54. set {_r} to amount of raw mutton named "&7Sheep Guts" with lore "&f&lCOMMON" in player's inventory
  55. set {_g} to {_r} * 1
  56. add {_g} to {bal::%player's uuid%}
  57. send "&8(&c*&8) &7Sold %{_r}%&7 sheep guts for, $%{_g}%&7." to player
  58. remove {_r} of raw mutton named "&7Sheep Guts" with lore "&f&lCOMMON" from player's inventory
  59. close player's inventory
  60. else:
  61. send "&8(&c*&8) &7You have no sheep guts." to player
  62. close player's inventory
  63. if {sheep.killed::%player's uuid%} is less than 25:
  64. format gui slot 11 of player with barrier named "&cLocked" with lore "&7Kill 25 Sheep to unlock." to run:
  65. close player's inventory
  66. send "&8(&c*&8) &7You've only killed %{sheep.killed::%player's uuid%}%&7 sheep." to player
  67. else:
  68. format gui slot 11 of player with raw porkchop named "&7Sheep Guts &8| &72$" to run:
  69. if player's inventory contains raw porkchop named "&7Pig Guts" with lore "&f&lCOMMON":
  70. set {_r} to amount of raw porkchop named "&7Pig Guts" with lore "&f&lCOMMON" in player's inventory
  71. set {_g} to {_r} * 2
  72. add {_g} to {bal::%player's uuid%}
  73. send "&8(&c*&8) &7Sold %{_r}%&7 pig guts for, $%{_g}%&7." to player
  74. remove {_r} of raw porkchop named "&7Pig Guts" with lore "&f&lCOMMON" from player's inventory
  75. close player's inventory
  76. else:
  77. send "&8(&c*&8) &7You have no pig guts." to player
  78. close player's inventory
  79.  
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement