Advertisement
Guest User

Multiples Autosell (Fully Functional) | BreakfastDeliqht

a guest
Jul 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. #
  2. # Multiples Autosell | BreakfastDeliqht
  3. #
  4.  
  5. command /autosell:
  6. permission: rank.vip
  7. trigger:
  8. if {autosell.%player%} is false:
  9. set {autosell.%player%} to true
  10. send "&aAutosell has been enabled."
  11. else:
  12. set {autosell.%player%} to false
  13. send "&aAutosell has been disabled."
  14.  
  15. every second:
  16. loop all players:
  17. if {autosell.%loop-player%} is true:
  18. loop all items in the inventory of loop-player:
  19. if loop-item is sugar canes:
  20. set {amount} to amount of sugar canes in loop-player's inventory
  21. set {money} to {amount} * 5
  22. remove all sugar canes from loop-player's inventory
  23. set action bar of loop-player to "&aYou sold %{amount}% Sugarcane for $%{money}%!"
  24. add {money} to loop-player's balance
  25. if loop-item is cactus:
  26. set {amount} to amount of cactus in loop-player's inventory
  27. set {money} to {amount} * 6
  28. remove all cactus from loop-player's inventory
  29. set action bar of loop-player to "&aYou sold %{amount}% Cactus for $%{money}%!"
  30. add {money} to loop-player's balance
  31. if loop-item is redstone:
  32. set {amount} to amount of redstone in loop-player's inventory
  33. set {money} to {amount} * 32
  34. remove all redstone from loop-player's inventory
  35. set action bar of loop-player to "&aYou sold %{amount}% Redstone for $%{money}%!"
  36. add {money} to loop-player's balance
  37. if loop-item is cobble:
  38. set {amount} to amount of cobble in loop-player's inventory
  39. set {money} to {amount}
  40. remove all cobble from loop-player's inventory
  41. set action bar of loop-player to "&aYou sold %{amount}% Cobblestone for $%{money}%!"
  42. add {money} to loop-player's balance
  43. if loop-item is iron_ingot:
  44. set {amount} to amount of iron_ingot in loop-player's inventory
  45. set {money} to {amount} * 10
  46. remove all iron_ingot from loop-player's inventory
  47. set action bar of loop-player to "&aYou sold %{amount}% Iron for $%{money}%!"
  48. add {money} to loop-player's balance
  49. if loop-item is gold_ingot:
  50. set {amount} to amount of gold_ingot in loop-player's inventory
  51. set {money} to {amount} * 105
  52. remove all gold_ingot from loop-player's inventory
  53. set action bar of loop-player to "&aYou sold %{amount}% Gold for $%{money}%!"
  54. add {money} to loop-player's balance
  55. if loop-item is coal:
  56. set {amount} to amount of coal in loop-player's inventory
  57. set {money} to {amount} * 2
  58. remove all coal from loop-player's inventory
  59. set action bar of loop-player to "&aYou sold %{amount}% Coal for $%{money}%!"
  60. add {money} to loop-player's balance
  61. if loop-item is ink_sack:
  62. set {amount} to amount of ink_sack in loop-player's inventory
  63. set {money} to {amount} * 2
  64. remove all ink_sack from loop-player's inventory
  65. set action bar of loop-player to "&aYou sold %{amount}% Ink Sack(s) for $%{money}%!"
  66. add {money} to loop-player's balance
  67. if loop-item is diamond:
  68. set {amount} to amount of diamond in loop-player's inventory
  69. set {money} to {amount} * 20
  70. remove all diamond from loop-player's inventory
  71. set action bar of loop-player to "&aYou sold %{amount}% Diamond(s) for $%{money}%!"
  72. add {money} to loop-player's balance
  73. if loop-item is sugar:
  74. set {amount} to amount of sugar in loop-player's inventory
  75. set {money} to {amount} * 10
  76. remove all sugar from loop-player's inventory
  77. set action bar of loop-player to "&aYou sold %{amount}% Sugar for $%{money}%!"
  78. add {money} to loop-player's balance
  79. if loop-item is wheat:
  80. set {amount} to amount of wheat in loop-player's inventory
  81. set {money} to {amount} * 3
  82. remove all wheat from loop-player's inventory
  83. set action bar of loop-player to "&aYou sold %{amount}% Wheat for $%{money}%!"
  84. add {money} to loop-player's balance
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement