Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Multiples Autosell | BreakfastDeliqht
- #
- command /autosell:
- permission: rank.vip
- trigger:
- if {autosell.%player%} is false:
- set {autosell.%player%} to true
- send "&aAutosell has been enabled."
- else:
- set {autosell.%player%} to false
- send "&aAutosell has been disabled."
- every second:
- loop all players:
- if {autosell.%loop-player%} is true:
- loop all items in the inventory of loop-player:
- if loop-item is sugar canes:
- set {amount} to amount of sugar canes in loop-player's inventory
- set {money} to {amount} * 5
- remove all sugar canes from loop-player's inventory
- set action bar of loop-player to "&aYou sold %{amount}% Sugarcane for $%{money}%!"
- add {money} to loop-player's balance
- if loop-item is cactus:
- set {amount} to amount of cactus in loop-player's inventory
- set {money} to {amount} * 6
- remove all cactus from loop-player's inventory
- set action bar of loop-player to "&aYou sold %{amount}% Cactus for $%{money}%!"
- add {money} to loop-player's balance
- if loop-item is redstone:
- set {amount} to amount of redstone in loop-player's inventory
- set {money} to {amount} * 32
- remove all redstone from loop-player's inventory
- set action bar of loop-player to "&aYou sold %{amount}% Redstone for $%{money}%!"
- add {money} to loop-player's balance
- if loop-item is cobble:
- set {amount} to amount of cobble in loop-player's inventory
- set {money} to {amount}
- remove all cobble from loop-player's inventory
- set action bar of loop-player to "&aYou sold %{amount}% Cobblestone for $%{money}%!"
- add {money} to loop-player's balance
- if loop-item is iron_ingot:
- set {amount} to amount of iron_ingot in loop-player's inventory
- set {money} to {amount} * 10
- remove all iron_ingot from loop-player's inventory
- set action bar of loop-player to "&aYou sold %{amount}% Iron for $%{money}%!"
- add {money} to loop-player's balance
- if loop-item is gold_ingot:
- set {amount} to amount of gold_ingot in loop-player's inventory
- set {money} to {amount} * 105
- remove all gold_ingot from loop-player's inventory
- set action bar of loop-player to "&aYou sold %{amount}% Gold for $%{money}%!"
- add {money} to loop-player's balance
- if loop-item is coal:
- set {amount} to amount of coal in loop-player's inventory
- set {money} to {amount} * 2
- remove all coal from loop-player's inventory
- set action bar of loop-player to "&aYou sold %{amount}% Coal for $%{money}%!"
- add {money} to loop-player's balance
- if loop-item is ink_sack:
- set {amount} to amount of ink_sack in loop-player's inventory
- set {money} to {amount} * 2
- remove all ink_sack from loop-player's inventory
- set action bar of loop-player to "&aYou sold %{amount}% Ink Sack(s) for $%{money}%!"
- add {money} to loop-player's balance
- if loop-item is diamond:
- set {amount} to amount of diamond in loop-player's inventory
- set {money} to {amount} * 20
- remove all diamond from loop-player's inventory
- set action bar of loop-player to "&aYou sold %{amount}% Diamond(s) for $%{money}%!"
- add {money} to loop-player's balance
- if loop-item is sugar:
- set {amount} to amount of sugar in loop-player's inventory
- set {money} to {amount} * 10
- remove all sugar from loop-player's inventory
- set action bar of loop-player to "&aYou sold %{amount}% Sugar for $%{money}%!"
- add {money} to loop-player's balance
- if loop-item is wheat:
- set {amount} to amount of wheat in loop-player's inventory
- set {money} to {amount} * 3
- remove all wheat from loop-player's inventory
- set action bar of loop-player to "&aYou sold %{amount}% Wheat for $%{money}%!"
- add {money} to loop-player's balance
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement