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