SHARE
TWEET

blocks

a guest Dec 3rd, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on leftclick on white concrete or orange concrete or magenta concrete or light blue concrete or yellow concrete or lime concrete or pink concrete or gray concrete or light gray concrete or cyan concrete or purple concrete or blue concrete or brown concrete or green concrete or red concrete or black concrete:
  2.    if player is holding a stick named "&5Wand":
  3.       cancel event
  4.       if {timer::%player%} is 0:
  5.          if {block::%player%} is 1:
  6.             set event-block to white concrete
  7.             set {timer::%player%} to {setter::%player%}
  8.             add 1 to {semicoin::%player%}
  9.          else if {block::%player%} is 2:
  10.             set event-block to orange concrete
  11.             set {timer::%player%} to {setter::%player%}
  12.             add 1 to {semicoin::%player%}
  13.          else if {block::%player%} is 3:
  14.             set event-block to magenta concrete
  15.             set {timer::%player%} to {setter::%player%}
  16.             add 1 to {semicoin::%player%}
  17.          else if {block::%player%} is 4:
  18.             set event-block to light blue concrete
  19.             set {timer::%player%} to {setter::%player%}
  20.             add 1 to {semicoin::%player%}
  21.          else if {block::%player%} is 5:
  22.             set event-block to yellow concrete
  23.             set {timer::%player%} to {setter::%player%}
  24.             add 1 to {semicoin::%player%}
  25.          else if {block::%player%} is 6:
  26.             set event-block to lime concrete
  27.             set {timer::%player%} to {setter::%player%}
  28.             add 1 to {semicoin::%player%}
  29.          else if {block::%player%} is 7:
  30.             set event-block to pink concrete
  31.             set {timer::%player%} to {setter::%player%}
  32.             add 1 to {semicoin::%player%}
  33.          else if {block::%player%} is 8:
  34.             set event-block to gray concrete
  35.             set {timer::%player%} to {setter::%player%}
  36.             add 1 to {semicoin::%player%}
  37.          else if {block::%player%} is 9:
  38.             set event-block to light gray concrete
  39.             set {timer::%player%} to {setter::%player%}
  40.             add 1 to {semicoin::%player%}
  41.          else if {block::%player%} is 10:
  42.             set event-block to cyan concrete
  43.             set {timer::%player%} to {setter::%player%}
  44.             add 1 to {semicoin::%player%}
  45.          else if {block::%player%} is 11:
  46.             set event-block to purple concrete
  47.             set {timer::%player%} to {setter::%player%}
  48.             add 1 to {semicoin::%player%}
  49.          else if {block::%player%} is 12:
  50.             set event-block to blue concrete
  51.             set {timer::%player%} to {setter::%player%}
  52.             add 1 to {semicoin::%player%}
  53.          else if {block::%player%} is 13:
  54.             set event-block to brown concrete
  55.             set {timer::%player%} to {setter::%player%}
  56.             add 1 to {semicoin::%player%}
  57.          else if {block::%player%} is 14:
  58.             set event-block to green concrete
  59.             set {timer::%player%} to {setter::%player%}
  60.             add 1 to {semicoin::%player%}
  61.          else if {block::%player%} is 15:
  62.             set event-block to red concrete
  63.             set {timer::%player%} to {setter::%player%}
  64.             add 1 to {semicoin::%player%}
  65.          else if {block::%player%} is 16:
  66.             set event-block to black concrete
  67.             set {timer::%player%} to {setter::%player%}
  68.             add 1 to {semicoin::%player%}
  69.       else:
  70.          send player title "&4&lError" with subtitle "&6&l%{timer::%player%}% &6&lseconds left" for 1 second
  71.    else:
  72.       stop
  73.  
  74. command /setblock [<integer>]:
  75.    permission: *
  76.    trigger:
  77.       set {block::%player%} to arg 1
  78.  
  79. every second:
  80.    loop all players:
  81.       if {timer::%loop-player%} > 0:
  82.          subtract 1 from {timer::%loop-player%}
  83.       else:
  84.          stop
  85.       if {semicoin::%loop-player%} = 25:
  86.          add 1 to {coin::%loop-player%}
  87.          subtract 25 from {semicoin::%loop-player%}
  88.          send "&aYou have gained 1 Coin!" to loop-player
  89.  
  90. command /reset [<offlineplayer>]:
  91.    permission: *
  92.    trigger:
  93.       set {timer::%arg 1%} to 0
  94.       set {setter::%arg 1%} to 30
  95.  
  96. on right click holding a stick:
  97.    open virtual chest inventory with size 5 named "&6&lBlock Chooser" to player
  98.    format gui slot 10 of player with white concrete with lore "&6Sets the block you click to White Concrete" and "%{colorlock1::%player%}%" to close:
  99.       if {colorlock::%player%} is "&clocked":
  100.          send player title "&4&lError" with subtitle "&c&lThat Color is Locked" for 2 seconds
  101.       else:
  102.          set {block::%player%} to 1
  103.    format gui slot 11 of player with orange concrete with lore "&6Sets the block you click to Orange Concrete" and "%{colorlock2::%player%}%" to close:
  104.       set {block::%player%} to 2
  105.    format gui slot 12 of player with magenta concrete with lore "&6Sets the block you click to Magenta Concrete" and "%{colorlock3::%player%}%" to close:
  106.       set {block::%player%} to 3
  107.    format gui slot 13 of player with light blue concrete with lore "&6Sets the block you click to Light Blue Concrete" and "%{colorlock4::%player%}%" to close:
  108.       set {block::%player%} to 4
  109.    format gui slot 14 of player with yellow concrete with lore "&6Sets the block you click to Yellow Concrete" and "%{colorlock5::%player%}%" to close:
  110.       set {block::%player%} to 5
  111.    format gui slot 15 of player with lime concrete with lore "&6Sets the block you click to Lime Concrete" and "%{colorlock6::%player%}%" to close:
  112.       set {block::%player%} to 6
  113.    format gui slot 16 of player with pink concrete with lore "&6Sets the block you click to Pink Concrete" and "%{colorlock7::%player%}%" to close:
  114.       set {block::%player%} to 7
  115.    format gui slot 19 of player with gray concrete with lore "&6Sets the block you click to Gray Concrete" and "%{colorlock8::%player%}%" to close:
  116.       set {block::%player%} to 8
  117.    format gui slot 20 of player with light gray concrete with lore "&6Sets the block you click to Light Gray Concrete" and "%{colorlock9::%player%}%" to close:
  118.       set {block::%player%} to 9
  119.    format gui slot 21 of player with cyan concrete with lore "&6Sets the block you click to Cyan Concrete" and "%{colorlock10::%player%}%" to close:
  120.       set {block::%player%} to 10
  121.    format gui slot 22 of player with purple concrete with lore "&6Sets the block you click to Purple Concrete" and "%{colorlock11::%player%}%" to close:
  122.       set {block::%player%} to 11
  123.    format gui slot 23 of player with blue concrete with lore "&6Sets the block you click to Blue Concrete" and "%{colorlock12::%player%}%" to close:
  124.       set {block::%player%} to 12
  125.    format gui slot 24 of player with brown concrete with lore "&6Sets the block you click to Brown Concrete" and "%{colorlock13::%player%}%" to close:
  126.       set {block::%player%} to 13
  127.    format gui slot 25 of player with green concrete with lore "&6Sets the block you click to Green Concrete" and "%{colorlock14::%player%}%" to close:
  128.       set {block::%player%} to 14
  129.    format gui slot 30 of player with red concrete with lore "&6Sets the block you click to Red Concrete" and "%{colorlock15::%player%}%" to close:
  130.       set {block::%player%} to 15
  131.    format gui slot 32 of player with black concrete with lore "&6Sets the block you click to Black Concrete" and "%{colorlock16::%player%}%" to close:
  132.       set {block::%player%} to 16
  133.  
  134.  
  135. command /setcolorlock [<integer>] [<offlineplayer>] <text>:
  136.    trigger:
  137.       if arg 1 is 1:
  138.          if arg 3 is "locked":
  139.             set {colorlock1::%arg 2%} to "&cLocked"
  140.          else if arg 3 is "Unlocked":
  141.             set {colorlock1::%arg 2%} to "&aUnlocked"
  142.       else if arg 1 is 2:
  143.          if arg 3 is "locked":
  144.             set {colorlock2::%arg 2%} to "&cLocked"
  145.          else if arg 3 is "Unlocked":
  146.             set {colorlock2::%arg 2%} to "&aUnlocked"
  147.       else if arg 1 is 3:
  148.          if arg 3 is "locked":
  149.             set {colorlock3::%arg 2%} to "&cLocked"
  150.          else if arg 3 is "Unlocked":
  151.             set {colorlock3::%arg 2%} to "&aUnlocked"
  152.       else if arg 1 is 4:
  153.          if arg 3 is "locked":
  154.             set {colorlock4::%arg 2%} to "&cLocked"
  155.          else if arg 3 is "Unlocked":
  156.             set {colorlock4::%arg 2%} to "&aUnlocked"
  157.       else if arg 1 is 5:
  158.          if arg 3 is "locked":
  159.             set {colorlock5::%arg 2%} to "&cLocked"
  160.          else if arg 3 is "Unlocked":
  161.             set {colorlock5::%arg 2%} to "&aUnlocked"
  162.       else if arg 1 is 6:
  163.          if arg 3 is "locked":
  164.             set {colorlock6::%arg 2%} to "&cLocked"
  165.          else if arg 3 is "Unlocked":
  166.             set {colorlock6::%arg 2%} to "&aUnlocked"
  167.       else if arg 1 is 7:
  168.          if arg 3 is "locked":
  169.             set {colorlock7::%arg 2%} to "&cLocked"
  170.          else if arg 3 is "Unlocked":
  171.             set {colorlock7::%arg 2%} to "&aUnlocked"
  172.       else if arg 1 is 8:
  173.          if arg 3 is "locked":
  174.             set {colorlock8::%arg 2%} to "&cLocked"
  175.          else if arg 3 is "Unlocked":
  176.             set {colorlock8::%arg 2%} to "&aUnlocked"
  177.       else if arg 1 is 9:
  178.          if arg 3 is "locked":
  179.             set {colorlock9::%arg 2%} to "&cLocked"
  180.          else if arg 3 is "Unlocked":
  181.             set {colorlock9::%arg 2%} to "&aUnlocked"
  182.       else if arg 1 is 10:
  183.          if arg 3 is "locked":
  184.             set {colorlock10::%arg 2%} to "&cLocked"
  185.          else if arg 3 is "Unlocked":
  186.             set {colorlock10::%arg 2%} to "&aUnlocked"
  187.       else if arg 1 is 11:
  188.          if arg 3 is "locked":
  189.             set {colorlock11::%arg 2%} to "&cLocked"
  190.          else if arg 3 is "Unlocked":
  191.             set {colorlock12::%arg 2%} to "&aUnlocked"
  192.       else if arg 1 is 12:
  193.          if arg 3 is "locked":
  194.             set {colorlock12::%arg 2%} to "&cLocked"
  195.          else if arg 3 is "Unlocked":
  196.             set {colorlock12::%arg 2%} to "&aUnlocked"
  197.       else if arg 1 is 13:
  198.          if arg 3 is "locked":
  199.             set {colorlock13::%arg 2%} to "&cLocked"
  200.          else if arg 3 is "Unlocked":
  201.             set {colorlock13::%arg 2%} to "&aUnlocked"
  202.       else if arg 1 is 14:
  203.          if arg 3 is "locked":
  204.             set {colorlock14::%arg 2%} to "&cLocked"
  205.          else if arg 3 is "Unlocked":
  206.             set {colorlock14::%arg 2%} to "&aUnlocked"
  207.       else if arg 1 is 15:
  208.          if arg 3 is "locked":
  209.             set {colorlock15::%arg 2%} to "&cLocked"
  210.          else if arg 3 is "Unlocked":
  211.             set {colorlock15::%arg 2%} to "&aUnlocked"
  212.       else if arg 1 is 16:
  213.          if arg 3 is "locked":
  214.             set {colorlock16::%arg 2%} to "&cLocked"
  215.          else if arg 3 is "Unlocked":
  216.             set {colorlock16::%arg 2%} to "&aUnlocked"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top