Facebook
From Fan Staaff, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 563
  1.  #------------------------SETTINGS------------------------
  2.  
  3. variables:
  4.  
  5. #! --- GUI BACKGROUND FRAME
  6.         {frame} = gray stained glass pane
  7.  
  8. options:
  9.  
  10. #! --- SKRIPT PREFIX
  11.   p: &7[&b&lCrates&7]
  12.  
  13. #! --- CRATE DENY MESSAGE
  14.   denymsg: &cYou are not holding any keys for this crate!
  15.  
  16. #! --- FULL INVENTORY MESSAGE
  17.   fullinvmsg: &cYour inventory is full!
  18.  
  19. #! --- REGION NAME
  20.   region: crates
  21.  
  22. #! --- Crate Key Lore
  23.   keylore: &7[&e!&7] Rightclick a crate to use.
  24.  
  25. #! --- Crate Key Names
  26.   iron: &f&lIron &7Crate Key
  27.   gold: &6&lGold &7Crate Key
  28.   diamond: &b&lDiamond &7Crate Keyzo
  29.  
  30. #------------------------SETTINGS------------------------
  31.  
  32. #------------------------WARPS------------------------
  33.  
  34. command /setcrates:
  35.     permission: op
  36.     trigger:
  37.         set {crates.loc} to location of block at location of player
  38.         set {crates.loc}'s yaw to player's yaw
  39.         set {crates.loc}'s pitch to player's pitch
  40.         send "{@p}: &fCrate location has been set to &6%{crates.loc}%" to player
  41.  
  42. command /crates:
  43.   trigger:
  44.     send "{@p}: &fTeleporting to Crates..." to player
  45.     teleport player to {crates.loc}
  46.  
  47. #------------------------WARPS------------------------
  48.  
  49. #------------------------VIEW CRATES------------------------
  50.  
  51. on leftclick:
  52.         if event-block is iron block:
  53.                 cancel event
  54.                 viewCrate(player, "iron")
  55.         if event-block is gold block:
  56.                 cancel event
  57.                 viewCrate(player, "gold")
  58.         if event-block is diamond block:
  59.                 cancel event
  60.                 viewCrate(player, "diamond")
  61.  
  62.  
  63. function viewCrate(p: player, crate: text):
  64.  
  65.         if {_crate} is "iron":
  66.                 open virtual chest inventory with size 3 named "&f&lIron&7 Crate" to {_p}
  67.                 format gui slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 17 and 18 and 19 and 20 and 21 and 23 and 24 and 25 and 26 of {_p} with {frame} named "&6"
  68.                 format gui slot 10 of {_p} with paper named "&a&l$500" with lore "" and "&7Chance:" and "&7[&a33%%&7]"
  69.                 format gui slot 11 of {_p} with paper named "&a&l$1000" with lore "" and "&7Chance:" and "&7[&a25%%&7]"
  70.                 format gui slot 12 of {_p} with iron ingot named "&r&l1 Iron Ingot" with lore "" and "&7Chance:" and "&7[&e20%%&7]"
  71.                 format gui slot 13 of {_p} with paper named "&a&l$3000" with lore "" and "&7Chance:" and "&7[&e15%%&7]"
  72.                 format gui slot 14 of {_p} with tripwire hook named "&72x {@iron}" with lore "" and "&7Chance:" and "&7[&c5%%&7]"
  73.                 format gui slot 15 of {_p} with tripwire hook named "{@gold}" with lore "" and "&7Chance:" and "&7[&c1.99%%&7]"
  74.                 format gui slot 16 of {_p} with nametag named "&f&lIron &7Rank" with lore "" and "&7Chance:" and "&7[&c0.01%%&7]"
  75.                 format gui slot 22 of {_p} with barrier named "&4Close" to run:
  76.                         close {_p}'s inventory
  77.         if {_crate} is "gold":
  78.                 open virtual chest inventory with size 3 named "&6&lGold&7 Crate" to {_p}
  79.                 format gui slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 17 and 18 and 19 and 20 and 21 and 23 and 24 and 25 and 26 of {_p} with {frame} named "&6"
  80.                 format gui slot 10 of {_p} with paper named "&a&l$3500" with lore "" and "&7Chance:" and "&7[&a33%%&7]"
  81.                 format gui slot 11 of {_p} with paper named "&a&l$4000" with lore "" and "&7Chance:" and "&7[&a25%%&7]"
  82.                 format gui slot 12 of {_p} with paper named "&a&l$6500" with lore "" and "&7Chance:" and "&7[&e20%%&7]"
  83.                 format gui slot 13 of {_p} with gold ingot named "&6&l1 Gold Ingot" with lore "" and "&7Chance:" and "&7[&e15%%&7]"
  84.                 format gui slot 14 of {_p} with tripwire hook named "&72x {@gold}" with lore "" and "&7Chance:" and "&7[&c5%%&7]"
  85.                 format gui slot 15 of {_p} with tripwire hook named "{@diamond}" with lore "" and "&7Chance:" and "&7[&c1.99%%&7]"
  86.                 format gui slot 16 of {_p} with nametag named "&6&lGold &7Rank" with lore "" and "&7Chance:" and "&7[&c0.01%%&7]"
  87.                 format gui slot 22 of {_p} with barrier named "&4Close" to run:
  88.                         close {_p}'s inventory
  89.         if {_crate} is "diamond":
  90.                 open virtual chest inventory with size 3 named "&b&lDiamond&7 Crate" to {_p}
  91.                 format gui slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 17 and 18 and 19 and 20 and 21 and 23 and 24 and 25 and 26 of {_p} with {frame} named "&6"
  92.                 format gui slot 10 of {_p} with paper named "&a&l$6000" with lore "" and "&7Chance:" and "&7[&a33%%&7]"
  93.                 format gui slot 11 of {_p} with paper named "&a&l$7000" with lore "" and "&7Chance:" and "&7[&a25%%&7]"
  94.                 format gui slot 12 of {_p} with diamond named "&b&l1 Diamond" with lore "" and "&7Chance:" and "&7[&e20%%&7]"
  95.                 format gui slot 13 of {_p} with paper named "&a&l$9000" with lore "" and "&7Chance:" and "&7[&e15%%&7]"
  96.                 format gui slot 14 of {_p} with tripwire hook named "&72x {@diamond}" with lore "" and "&7Chance:" and "&7[&c5%%&7]"
  97.                 format gui slot 15 of {_p} with diamond block named "&b&l1 Diamond Block" with lore "" and "&7Chance:" and "&7[&c1.99%%&7]"
  98.                 format gui slot 16 of {_p} with nametag named "&b&lDiamond &7Rank" with lore "" and "&7Chance:" and "&7[&c0.01%%&7]"
  99.                 format gui slot 22 of {_p} with barrier named "&4Close" to run:
  100.                         close {_p}'s inventory
  101.  
  102. #------------------------VIEW CRATES------------------------
  103.  
  104. #------------------------OPEN CRATES------------------------
  105.  
  106. on rightclick:
  107.   if "%region at clicked block%" contains "{@region}":
  108.     if clicked block is iron block:
  109.       if player is holding tripwire hook named "{@iron}" with lore "" and "{@keylore}":
  110.         if inventory of player doesn't have enough space for 1 of blue shulker box:
  111.           send "{@p}: {@fullinvmsg}" to player
  112.           play sound "ENTITY_VILLAGER_NO" at volume 100 and pitch 1 for player
  113.         else:
  114.           cancel event
  115.           remove 1 of tripwire hook named "{@iron}" with lore "" and "{@keylore}" from player's inventory
  116.           openCrate(player, "iron")
  117.       else:
  118.         send "{@p}: {@denymsg}" to player
  119.         play sound "ENTITY_VILLAGER_NO" at volume 100 and pitch 1 for player
  120.     if clicked block is gold block:
  121.       if player is holding tripwire hook named "{@gold}" with lore "" and "{@keylore}":
  122.         if inventory of player doesn't have enough space for 1 of blue shulker box:
  123.           send "{@p}: {@fullinvmsg}" to player
  124.           play sound "ENTITY_VILLAGER_NO" at volume 100 and pitch 1 for player
  125.         else:
  126.           cancel event
  127.           remove 1 of tripwire hook named "{@gold}" with lore "" and "{@keylore}" from player's inventory
  128.           openCrate(player, "gold")
  129.       else:
  130.         send "{@p}: {@denymsg}" to player
  131.         play sound "ENTITY_VILLAGER_NO" at volume 100 and pitch 1 for player
  132.     if clicked block is diamond block:
  133.       if player is holding tripwire hook named "{@diamond}" with lore "" and "{@keylore}":
  134.         if inventory of player doesn't have enough space for 1 of blue shulker box:
  135.           send "{@p}: {@fullinvmsg}" to player
  136.           play sound "ENTITY_VILLAGER_NO" at volume 100 and pitch 1 for player
  137.         else:
  138.           cancel event
  139.           remove 1 of tripwire hook named "{@diamond}" with lore "" and "{@keylore}" from player's inventory
  140.           openCrate(player, "diamond")
  141.       else:
  142.         send "{@p}: {@denymsg}" to player
  143.         play sound "ENTITY_VILLAGER_NO" at volume 100 and pitch 1 for player
  144.  
  145. function openCrate(p: player, crate: text):
  146.  
  147.         if {_crate} is "iron":
  148.                 wait 5 ticks
  149.                 set {_random} to a random integer from 0 to 10000
  150.                 if {_random} is 0:
  151.                         send "" to {_p}
  152.                         send "{@p}: &aYou won the &f&lIron &7Rank&a!" to {_p}
  153.                         send "" to {_p}
  154.                         play sound "UI_TOAST_CHALLENGE_COMPLETE" at volume 50 and pitch 1 for {_p}
  155.                         broadcast "{@p}: &a%{_p}% got &f&lIron &7Rank&a in a crate!"
  156.                         if {_p} has permission "group.iron":
  157.                                 send "" to {_p}
  158.                                 send "{@p}: &cYou already have this rank!" to {_p}
  159.                                 send "{@p}: &7You have been awarded &a$10000&7 instead!" to {_p}
  160.                                 send "" to {_p}
  161.                                 add 10000 to {balance.tot::%{_p}%}
  162.                         else:
  163.                                 make console execute command "/lp user %{_p}% permission set group.iron true"
  164.                 if {_random} is between 1 and 200:
  165.                         send "" to {_p}
  166.                         send "{@p}: &aYou won a {@gold}&a!" to {_p}
  167.                         send "" to {_p}
  168.                         give {_p} 1 of tripwire hook named "{@gold}" with lore "" and "{@keylore}"
  169.                         play sound "ENTITY_PLAYER_LEVELUP" at volume 100 and pitch 1 for {_p}
  170.                 if {_random} is between 201 and 700:
  171.                         send "" to {_p}
  172.                         send "{@p}: &aYou won 2x {@iron}&a!" to {_p}
  173.                         send "" to {_p}
  174.                         give {_p} 2 of tripwire hook named "{@iron}" with lore "" and "{@keylore}"
  175.                         play sound "ENTITY_PLAYER_LEVELUP" at volume 100 and pitch 1 for {_p}
  176.                 if {_random} is between 701 and 2200:
  177.                         send "" to {_p}
  178.                         send "{@p}: &aYou won $3000!" to {_p}
  179.                         send "" to {_p}
  180.                         add 3000 to {balance.tot::%{_p}%}
  181.                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for {_p}
  182.                 if {_random} is between 2201 and 4200:
  183.                         send "" to {_p}
  184.                         send "{@p}: &aYou won &f1 Iron Ingot&a!" to {_p}
  185.                         send "" to {_p}
  186.                         give {_p} 1 iron ingot
  187.                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for {_p}
  188.                 if {_random} is between 4201 and 6700:
  189.                         send "" to {_p}
  190.                         send "{@p}: &aYou won $1000!" to {_p}
  191.                         send "" to {_p}
  192.                         add 1000 to {balance.tot::%{_p}%}
  193.                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for {_p}
  194.                 if {_random} is between 6701 and 10000:
  195.                         send "" to {_p}
  196.                         send "{@p}: &aYou won $500!" to {_p}
  197.                         send "" to {_p}
  198.                         add 500 to {balance.tot::%{_p}%}
  199.                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for {_p}
  200.         if {_crate} is "gold":
  201.                 wait 5 ticks
  202.                 set {_random} to a random integer from 0 to 10000
  203.                 if {_random} is 0:
  204.                         send "" to {_p}
  205.                         send "{@p}: &aYou won the &6&lGold &7Rank&a!" to {_p}
  206.                         send "" to {_p}
  207.                         play sound "UI_TOAST_CHALLENGE_COMPLETE" at volume 50 and pitch 1 for {_p}
  208.                         broadcast "{@p}: &a%{_p}% got &6&lGold &7Rank&a in a crate!"
  209.                         if {_p} has permission "group.gold":
  210.                                 send "" to {_p}
  211.                                 send "{@p}: &cYou already have this tag!" to {_p}
  212.                                 send "{@p}: &7You have been awarded &a$50000&7 instead!" to {_p}
  213.                                 send "" to {_p}
  214.                                 add 50000 to {balance.tot::%{_p}%}
  215.                         else:
  216.                                 make console execute command "/lp user %{_p}% permission set group.gold true"
  217.                 if {_random} is between 1 and 200:
  218.                         send "" to {_p}
  219.                         send "{@p}: &aYou won a {@diamond}&a!" to {_p}
  220.                         send "" to {_p}
  221.                         give {_p} 1 of tripwire hook named "{@diamond}" with lore "" and "{@keylore}"
  222.                         play sound "ENTITY_PLAYER_LEVELUP" at volume 100 and pitch 1 for {_p}
  223.                 if {_random} is between 201 and 700:
  224.                         send "" to {_p}
  225.                         send "{@p}: &aYou won 2x {@gold}&a!" to {_p}
  226.                         send "" to {_p}
  227.                         give {_p} 2 of tripwire hook named "{@gold}" with lore "" and "{@keylore}"
  228.                         play sound "ENTITY_PLAYER_LEVELUP" at volume 100 and pitch 1 for {_p}
  229.                 if {_random} is between 701 and 2200:
  230.                         send "" to {_p}
  231.                         send "{@p}: &aYou won &61 Gold Ingot&a!" to {_p}
  232.                         send "" to {_p}
  233.                         give {_p} 1 of gold ingot
  234.                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for {_p}
  235.                 if {_random} is between 2201 and 4200:
  236.                         send "" to {_p}
  237.                         send "{@p}: &aYou won $6500!" to {_p}
  238.                         send "" to {_p}
  239.                         add 6500 to {balance.tot::%{_p}%}
  240.                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for {_p}
  241.                 if {_random} is between 4201 and 6700:
  242.                         send "" to {_p}
  243.                         send "{@p}: &aYou won $4000!" to {_p}
  244.                         send "" to {_p}
  245.                         add 4000 to {balance.tot::%{_p}%}
  246.                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for {_p}
  247.                 if {_random} is between 6701 and 10000:
  248.                         send "" to {_p}
  249.                         send "{@p}: &aYou won $3500!" to {_p}
  250.                         send "" to {_p}
  251.                         add 3500 to {balance.tot::%{_p}%}
  252.                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for {_p}
  253.         if {_crate} is "diamond":
  254.                 wait 5 ticks
  255.                 set {_random} to a random integer from 0 to 10000
  256.                 if {_random} is 0:
  257.                         send "" to {_p}
  258.                         send "{@p}: &aYou won the &b&lDiamond &7Rank&a!" to {_p}
  259.                         send "" to {_p}
  260.                         play sound "UI_TOAST_CHALLENGE_COMPLETE" at volume 50 and pitch 1 for {_p}
  261.                         broadcast "{@p}: &a%{_p}% got &b&lDiamond &7Rank&a in a crate!"
  262.                         if {_p} has permission "group.diamond":
  263.                                 send "" to {_p}
  264.                                 send "{@p}: &cYou already have this tag!" to {_p}
  265.                                 send "{@p}: &7You have been awarded &a$75000&7 instead!" to {_p}
  266.                                 send "" to {_p}
  267.                                 add 75000 to {balance.tot::%{_p}%}
  268.                         else:
  269.                                 make console execute command "/lp user %{_p}% permission set group.diamond true"
  270.                 if {_random} is between 1 and 200:
  271.                         send "" to {_p}
  272.                         send "{@p}: &aYou won a &b1 Diamond Block&a!" to {_p}
  273.                         send "" to {_p}
  274.                         give {_p} 1 diamond block
  275.                         play sound "ENTITY_PLAYER_LEVELUP" at volume 100 and pitch 1 for {_p}
  276.                 if {_random} is between 201 and 700:
  277.                         send "" to {_p}
  278.                         send "{@p}: &aYou won 2x {@diamond}&a!" to {_p}
  279.                         send "" to {_p}
  280.                         give {_p} 2 of tripwire hook named "{@diamond}" with lore "" and "{@keylore}"
  281.                         play sound "ENTITY_PLAYER_LEVELUP" at volume 100 and pitch 1 for {_p}
  282.                 if {_random} is between 701 and 2200:
  283.                         send "" to {_p}
  284.                         send "{@p}: &aYou won $9000!" to {_p}
  285.                         send "" to {_p}
  286.                         add 9000 to {balance.tot::%{_p}%}
  287.                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for {_p}
  288.                 if {_random} is between 2201 and 4200:
  289.                         send "" to {_p}
  290.                         send "{@p}: &aYou won &b1 diamond&a!" to {_p}
  291.                         send "" to {_p}
  292.                         give {_p} 1 diamond
  293.                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for {_p}
  294.                 if {_random} is between 4201 and 6700:
  295.                         send "" to {_p}
  296.                         send "{@p}: &aYou won $7000!" to {_p}
  297.                         send "" to {_p}
  298.                         add 7000 to {balance.tot::%{_p}%}
  299.                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for {_p}
  300.                 if {_random} is between 6701 and 10000:
  301.                         send "" to {_p}
  302.                         send "{@p}: &aYou won $6000!" to {_p}
  303.                         send "" to {_p}
  304.                         add 6000 to {balance.tot::%{_p}%}
  305.                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for {_p}
  306.  
  307. #------------------------OPEN CRATES------------------------
  308.  
  309. #------------------------GIVE KEY COMMAND------------------------
  310.  
  311. command /key [<text>] [<player>] [<text>] [<number>]:
  312.         permission: key.give
  313.         permission message: "&7[&bKEYS&7]: &cYou don't have permission to do this!"
  314.         trigger:
  315.                 if arg 1 is "list":
  316.                         send "" to player
  317.                         send "&7-------[&b&lKeys&7]-------" to player
  318.                         send " &7» &fIron" to player
  319.                         send " &7» &6Gold" to player
  320.                         send " &7» &bDiamond" to player
  321.                         send "" to player
  322.                         send "&7 /key give <player> <key> <amount>" to player
  323.                         send "&7-------[&b&lKeys&7]-------" to player
  324.                         send "" to player
  325.                 if arg 1 is not set:
  326.                         send "" to player
  327.                         send "{@p}: &c/key [list/give] <player> <key> <amount>" to player
  328.                         send "" to player
  329.                 if arg 1 is "give":
  330.                         if arg 2 is set:
  331.                                 if arg 3 is "iron":
  332.                                         if arg 4 is set:
  333.                                                 give arg-2 arg-4 of tripwire hook named "{@iron}" with lore "" and "{@keylore}"
  334.                                                 send "{@p}: &a%player% &7gave you &b%arg-4%&7 of {@iron}!" to arg-2
  335.                                                 send "{@p}: &7You gave &b%arg-4%&7 of {@iron} to &a%arg-2%&7!" to player
  336.                                                 play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for player
  337.                                                 play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for arg-2
  338.                                         if arg 4 is not set:
  339.                                                 make player execute "key"
  340.                                 if arg 3 is "gold":
  341.                                         if arg 4 is set:
  342.                                                 give arg-2 arg-4 of tripwire hook named "{@gold}" with lore "" and "{@keylore}"
  343.                                                 send "{@p}: &a%player% &7gave you &b%arg-4%&7 of {@gold}!" to arg-2
  344.                                                 send "{@p}: &7You gave &b%arg-4%&7 of {@gold} to &a%arg-2%&7!" to player
  345.                                                 play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for player
  346.                                                 play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for arg-2
  347.                                         if arg 4 is not set:
  348.                                                 make player execute "key"
  349.                                 if arg 3 is "diamond":
  350.                                         if arg 4 is set:
  351.                                                 give arg-2 arg-4 of tripwire hook named "{@diamond}" with lore "" and "{@keylore}"
  352.                                                 send "{@p}: &a%player% &7gave you &b%arg-4%&7 of {@diamond}!" to arg-2
  353.                                                 send "{@p}: &7You gave &b%arg-4%&7 of {@diamond} to &a%arg-2%&7!" to player
  354.                                                 play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for player
  355.                                                 play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for arg-2
  356.                                         if arg 4 is not set:
  357.                                                 make player execute "key"
  358.                                 if arg 3 is not set:
  359.                                         make player execute "key"
  360.                         if arg 2 is not set:
  361.                                 make player execute "key"
  362.  
  363.  
  364. command /keyall [<text>] [<number>]:
  365.         permission: key.all
  366.         permission message: "&7[&bKEYS&7]: &cYou don't have permission to do this!"
  367.         trigger:
  368.                 if arg 1 is "list":
  369.                         send "" to player
  370.                         send "&7-------[&b&lKeys&7]-------" to player
  371.                         send " &7» &f&lIron" to player
  372.                         send " &7» &6&lGold" to player
  373.                         send " &7» &b&lDiamond" to player
  374.                         send "" to player
  375.                         send "&7 /keyall <key> <amount>" to player
  376.                         send "&7-------[&b&lKeys&7]-------" to player
  377.                         send "" to player
  378.                 if arg 1 is not set:
  379.                         send "" to player
  380.                         send "{@p}: &c/keyall <key> <amount>" to player
  381.                         send "" to player
  382.                 if arg 1 is "iron":
  383.                         if arg 2 is set:
  384.                                 send "{@p}: &7You gave &b%arg-2%&7 of {@iron} to &aall players&7!" to player
  385.                                 loop all players:
  386.                                         give loop-player arg-2 of tripwire hook named "{@iron}" with lore "" and "{@keylore}"
  387.                                         send "{@p}: &a%player% &7gave you &b%arg-2%&7 of {@iron}!" to loop-player
  388.                                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for player
  389.                                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for loop-player
  390.                         if arg 2 is not set:
  391.                                 make player execute "keyall"
  392.                 if arg 1 is "gold":
  393.                         if arg 2 is set:
  394.                                 send "{@p}: &7You gave &b%arg-2%&7 of {@gold} to &aall players&7!" to player
  395.                                 loop all players:
  396.                                         give loop-player arg-2 of tripwire hook named "{@gold}" with lore "" and "{@keylore}"
  397.                                         send "{@p}: &a%player% &7gave you &b%arg-2%&7 of {@gold}!" to loop-player
  398.                                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for player
  399.                                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for loop-player
  400.                         if arg 2 is not set:
  401.                                 make player execute "keyall"
  402.                 if arg 1 is "diamond":
  403.                         if arg 2 is set:
  404.                                 send "{@p}: &7You gave &b%arg-2%&7 of {@diamond} to &aall players&7!" to player
  405.                                 loop all players:
  406.                                         give loop-player arg-2 of tripwire hook named "{@diamond}" with lore "" and "{@keylore}"
  407.                                         send "{@p}: &a%player% &7gave you &b%arg-2%&7 of {@diamond}!" to loop-player
  408.                                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for player
  409.                                         play sound "ENTITY_EXPERIENCE_ORB_PICKUP" at volume 100 and pitch 1 for loop-player
  410.                         if arg 2 is not set:
  411.                                 make player execute "keyall"
  412.  
  413. #------------------------GIVE KEY COMMAND------------------------

Replies to Advanced Crates rss

Title Name Language When
Re: Advanced Crates Sloppy Agouti text 2 Years ago.
Re: Advanced Crates Beige Octupus text 2 Years ago.
Re: Advanced Crates Colorant Moth text 2 Years ago.