Facebook
From Obese Marmoset, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 178
  1. command /contract [<text>] [<player>] [<text>] [<text>]::
  2.         trigger:
  3.                 if arg-1 is "help":
  4.                         send "&7/contract give <player> <type> <amount>"
  5.                         send "&7/contract accept <player>"
  6.                         send "&7/contract deny <player>"
  7.                 if arg-1 is "give":
  8.                         send "&7You have sent a &a%arg-3% &7contract to &a%arg-2%&7!"
  9.                         send "&7You have recieved a &a%arg-3% &7contract from &a%player% &7for &a%arg-4% &7tokens!" to arg-2
  10.                         send "&7/contract accept <player> <type> <amount>" to arg-2
  11.                 if arg-1 is "accept":
  12.                         send "&7You have accepted &a%arg-2%&7's contract for &a%arg-3%&7!"
  13.                         remove arg-4 from {tokens.%player%}
  14.                         send "&a%player% &7has accepted &ayour &7contract!" to arg-2
  15.                         add arg-4 to {tokens.%arg-2%}
  16.                 if arg-1 is "deny":
  17.                         send "&7You have &adenied this contract!"
  18.                         stop
  19.                        
  20. command /tokenpay [<player>] <text>]:
  21.         trigger:
  22.                 if arg-1 is not set:
  23.                         send "&7Correct format: &c/tokenpay <player> <amount>"
  24.                 if arg-1 is set:
  25.                         if {tokens.%player%} is less than arg-2:
  26.                                 send player title "&7You don't have enough" with subtitle "&e&lTOKENS&7!" for 3 seconds
  27.                                 broadcast "&c%player% &7tried to pay someone &e&l%arg-2% TOKENS&7!"
  28.                         if {tokens.%player%} is more than arg-2:
  29.                                 send player title "&7You have paid &a%arg-1%" with subtitle "&e&l%arg-2% TOKENS&7!" for 3 seconds
  30.                                 play sound "" with volume 10 at player
  31.                                 play sound "" with volume 10 at arg-1
  32.                                 send player title "&a%player% &7paid you" with subtitle "&e&l%arg-2% TOKENS&7!" to arg-1 for 3 seconds
  33.                                                
  34. every second in "world":
  35.         loop all players:
  36.                 wipe loop-player's sidebar
  37.                 set name of sidebar of loop-player to "&eTokens: &8| &e%{tokens.%loop-player%}%"
  38.                 set score "&c&m---------------" in sidebar of loop-player to 14
  39.                 set score "&7" in sidebar of loop-player to 13
  40.                 set score "  &ePlayer: &8» &e%loop-player%" in sidebar of loop-player to 12
  41.                 set score "  &eKills: &8» &e%{kills.%loop-player%}%" in sidebar of loop-player to 11
  42.                 set score "  &eDeaths &8» &e%{deaths.%loop-player%}%" in sidebar of loop-player to 10
  43.                 set score "  &ePlaytime &8» &e%{playtime.%loop-player%}%" in sidebar of loop-player to 9
  44.                 set score "&f" in sidebar of loop-player to 8
  45.                 set score "&7&oyeetblue.minehut.gg" in sidebar of loop-player to 7
  46.                 set score "&c&m---------------" in sidebar of loop-player to 6
  47.  
  48.  
  49. command /sell:
  50.         trigger:
  51.                 open chest with 5 row named "&cTokenSell" to player
  52.                 set {Inventory.%player%.Open} to true
  53.                 format slot 1 of player with diamond named "&aSell: Diamond" with lore "&7Value: &a$500" to close then run [make player execute command "/selldiamond12"]      
  54.                 format slot 2 of player with emerald named "&aSell: Emerald" with lore "&7Value: &a$250" to close then run [make player execute command "/sellemerald12"]
  55.                 format slot 3 of player with iron ingot named "&aSell: Iron Ingot" with lore "&7Value: &a$100" to close then run [make player execute command "/selliron12"]
  56.                 format slot 4 of player with gold ingot named "&aSell: Gold Ingot" with lore "&7Value: &a$50" to close then run [make player execute command "/sellgold12"]
  57.                 format slot 5 of player with coal named "&aSell: Coal" with lore "&7Value: &a$25" to close then run [make player execute command "/sellcoal12"]
  58.                 format slot 6 of player with stone named "&aSell: Stone" with lore "&7Value: &a$5" to close then run [make player execute command "/sellstone12"]
  59.                 format slot 12 of player with diamond block named "&aMade by: %player%" with lore "&7" to be unstealable
  60.                
  61. command /sellstone12:
  62.     trigger:
  63.         loop all items in the inventory of player:
  64.             if loop-item is stone:
  65.                                 open chest with 1 row named "&cHow many items?" to player
  66.                     format slot 1 of player with lever named "&aItems: 1" with lore "&7Click to choose!" to close then run [make player execute command "/1itemstone"]
  67.                                         format slot 2 of player with grass named "&aItems: 10" with lore "&7Click to choose!" to close then run [make player execute command "/10itemstone"]
  68.                                        
  69. command /1itemstone:
  70.         trigger:
  71.                 loop all items in the inventory of player:
  72.                         if loop-item is stone:
  73.                                 remove 1 stone from player's inventory
  74.                                 add 5 to {tokens.%player%}
  75.                                 send player title "&7You sold &aStone &7for" with subtitle "&a$5 Dollars!" for 3 seconds
  76.                                
  77. command /10itemstone:
  78.         trigger:
  79.                 loop all items in the inventory of player:
  80.                         if loop-item is stone:
  81.                                 remove 10 stone from player's inventory
  82.                                 add 50 to {tokens.%player%}
  83.                                 send player title "&7You sold &aStone &7for" with subtitle "&a$50 Dollars!" for 3 seconds
  84.                
  85. command /sellcoal12:
  86.     trigger:
  87.         loop all items in the inventory of player:
  88.             if loop-item is coal:
  89.                                 open chest with 1 row named "&cHow many items?" to player
  90.                     format slot 1 of player with lever named "&aItems: 1" with lore "&7Click to choose!" to close then run [make player execute command "/1itemcoal"]
  91.                                         format slot 2 of player with grass named "&aItems: 10" with lore "&7Click to choose!" to close then run [make player execute command "/10itemcoal"]
  92.                                        
  93. command /1itemcoal:
  94.         trigger:
  95.                 loop all items in the inventory of player::
  96.                         if loop-item is coal:
  97.                                 remove 1 coal from player's inventory
  98.                                 add 25 to {tokens.%player%}
  99.                                 send player title "&7You sold &aCoal &7for" with subtitle "&a$25 Dollars!" for 3 seconds
  100.                                
  101. command /10itemcoal:
  102.         trigger:
  103.                 loop all items in the inventory of player:
  104.                         if loop-item is coal:
  105.                                 remove 10 coal from player's inventory
  106.                                 add 250 to {tokens.%player%}
  107.                                 send player title "&7You sold &aCoal &7for" with subtitle "&a$250 Dollars!" for 3 seconds
  108.                                
  109. command /selliron12:
  110.     trigger:
  111.         loop all items in the inventory of player:
  112.             if loop-item is iron ingot:
  113.                                 open chest with 1 row named "&cHow many items?" to player
  114.                     format slot 1 of player with lever named "&aItems: 1" with lore "&7Click to choose!" to close then run [make player execute command "/1itemiron"]
  115.                                         format slot 2 of player with grass named "&aItems: 10" with lore "&7Click to choose!" to close then run [make player execute command "/10itemiron"]
  116.                                        
  117. command /10itemiron:
  118.         trigger:
  119.                 loop all items in the inventory of player:
  120.                         if loop-item is iron ingot:
  121.                                 remove 10 iron ingot from player's inventory
  122.                                 add 1000 to {tokens.%player%}
  123.                                 send player title "&7You sold &aIron &7for" with subtitle "&a$1000 Dollars!" for 3 seconds
  124.                                
  125. command /1itemiron:
  126.         trigger:
  127.                 loop all items in the inventory of player:
  128.                         if loop-item is iron ingot:
  129.                                 remove 1 iron ingot from player's inventory
  130.                                 add 100 to {tokens.%player%}
  131.                                 send player title "&7You sold &aIron &7for" with subtitle "&a$100 Dollars!" for 3 seconds
  132.  
  133.                        
  134. command /sellgold12:
  135.     trigger:
  136.         loop all items in the inventory of player:
  137.             if loop-item is gold ingot:
  138.                                 open chest with 1 row named "&cHow many items?" to player
  139.                     format slot 1 of player with lever named "&aItems: 1" with lore "&7Click to choose!" to close then run [make player execute command "/1itemgold"]
  140.                                         format slot 2 of player with grass named "&aItems: 10" with lore "&7Click to choose!" to close then run [make player execute command "/10itemgold"]
  141.                                        
  142. command /1itemgold:
  143.         trigger:
  144.                 loop all items in the inventory of player:
  145.                         if loop-item is gold ingot:
  146.                                 remove 1 gold ingot from player's inventory
  147.                                 add 50 to {tokens.%player%}
  148.                                 send player title "&7You sold &aGold &7for" with subtitle "&a$50 Dollars!" for 3 seconds
  149.                                
  150. command /10itemgold:
  151.         trigger:
  152.                 loop all items in the inventory of player:
  153.                         if loop-item is gold ingot:
  154.                                 remove 10 gold ingot from player's inventory
  155.                                 add 500 to {tokens.%player%}
  156.                                 send player title "&7You sold &aGold &7for" with subtitle "&a$500 Dollars!" for 3 seconds
  157.                                
  158. command /selldiamond12:
  159.     trigger:
  160.         loop all items in the inventory of player:
  161.             if loop-item is diamond:
  162.                                 open chest with 1 row named "&cHow many items?" to player
  163.                     format slot 1 of player with lever named "&aItems: 1" with lore "&7Click to choose!" to close then run [make player execute command "/1itemdiamond"]
  164.                                         format slot 2 of player with grass named "&aItems: 10" with lore "&7Click to choose!" to close then run [make player execute command "/10itemdiamond"]
  165.                        
  166. command /10itemdiamond:
  167.     trigger:
  168.                 loop all items in the inventory of player:
  169.                         if loop-item is diamond:
  170.                                 remove 10 diamond from player's inventory
  171.                                 add 5000 to {tokens.%player%}
  172.                                 send player title "&7You sold &aDiamond &7for" with subtitle "&a$5000 Dollars!" for 3 seconds
  173.                                
  174. command /1itemdiamond:
  175.     trigger:
  176.                 loop all items in the inventory of player:
  177.                         if loop-item is diamond:
  178.                                 remove 1 diamond from player's inventory
  179.                                 add 500 to {tokens.%player%}
  180.                                 send player title "&7You sold &aDiamond &7for" with subtitle "&a$500 Dollars!" for 3 seconds
  181.                        
  182. command /sellemerald12:
  183.     trigger:
  184.         loop all items in the inventory of player:
  185.             if loop-item is emerald:
  186.                                 open chest with 1 row named "&cHow many items?" to player
  187.                     format slot 1 of player with lever named "&aItems: 1" with lore "&7Click to choose!" to close then run [make player execute command "/1itememerald"]
  188.                                         format slot 2 of player with grass named "&aItems: 10" with lore "&7Click to choose!" to close then run [make player execute command "/10itememerald"]
  189.                                        
  190. command /10itememerald:
  191.     trigger:
  192.                 loop all items in the inventory of player:
  193.                         if loop-item is emerald:
  194.                                 remove 10 emerald from player's inventory
  195.                                 add 2500 to {tokens.%player%}
  196.                                 send player title "&7You sold &aEmerald &7for" with subtitle "&a$2500 Dollars!" for 3 seconds
  197.                                
  198. command /getitem [<item>]:
  199.         trigger:
  200.                 give player arg-1
  201.                 send player title "&7You got gifted" with subtitle "&c%arg-1%&7!" for 3 seconds
  202.                                
  203. command /1itemdiamond:
  204.     trigger:
  205.                 loop all items in the inventory of player:
  206.                         if loop-item is emerald:
  207.                                 remove 1 emerald from player's inventory
  208.                                 add 250 to {tokens.%player%}
  209.                                 send player title "&7You sold &aEmerald &7for" with subtitle "&a$250 Dollars!" for 3 seconds