SHARE
TWEET

Untitled

a guest Nov 19th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. variables:
  3.     {floor.%player%} = 0
  4.     {prefix.%player%} = "&7&l[-]"
  5.  
  6. on join:
  7.     set slot 4 of player to emerald named "&aBack to checkpoint"
  8.     set slot 0 of player to air
  9.     set slot 1 of player to air
  10.     set slot 2 of player to air
  11.     set slot 3 of player to air
  12.     set slot 5 of player to air
  13.     set slot 6 of player to air
  14.     set slot 7 of player to air
  15.     set slot 8 of player to air
  16.     if event-player hasn't played before:
  17.         set join message to "&d%event-player%が初参加したぜ!"
  18.         teleport player to location (0.5, 4, 0.5)
  19.     else:
  20.         set join message to "&e%event-player%が参加したぜ!"
  21.  
  22. on chat:
  23.     set {_mes} to message
  24.     cancel event
  25.     if {floor.%player%} is not 0:
  26.         if {floor.%player%} is 1:
  27.             set {prefix.%player%} to "&7&l[&7-&b&lI&7-&7&l]"
  28.         if {floor.%player%} is 2:
  29.             set {prefix.%player%} to "&7&l[&7-&a&lII&7-&7&l]"
  30.         if {floor.%player%} is 3:
  31.             set {prefix.%player%} to "&7&l[&7-&9&lIII&7-&7&l]"
  32.         if {floor.%player%} is 4:
  33.             set {prefix.%player%} to "&7&l[&7-&d&lIV&7-&7&l]"
  34.         if {floor.%player%} is 5:
  35.             set {prefix.%player%} to "&7&l[&7-&c&lV&7-&7&l]"
  36.         if {floor.%player%} is 6:
  37.             set {prefix.%player%} to "&7&l[&7-&3&lVI-&7-&7&l]"
  38.         if {floor.%player%} is 7:
  39.             set {prefix.%player%} to "&7&l[&7-&2&lVII&7-&7&l]"
  40.         if {floor.%player%} is 8:
  41.             set {prefix.%player%} to "&7&l[&7-&1&lVIII&7-&7&l]"
  42.         if {floor.%player%} is 9:
  43.             set {prefix.%player%} to "&7&l[&7-&5&lIX&7-&7&l]"
  44.         if {floor.%player%} is 10:
  45.             set {prefix.%player%} to "&7&l[&7-&4&lX&7-&7&l]"
  46.     else:
  47.         set {prefix.%player%} to "&7&l[-]"
  48.     broadcast "%{prefix.%player%}%&7 : %player% >> &f%message%"
  49.  
  50. command /evaluate <string>:
  51.     permission: admin
  52.     trigger:
  53.         evaluate arg
  54.  
  55. command /setflo <number>:
  56.     permission: admin
  57.     trigger:
  58.         if arg is not 0:
  59.             set {floor.%player%} to arg
  60.         else:
  61.             set {floor.%player%} to 0
  62.  
  63. command /resetpref:
  64.     permission: admin
  65.     trigger:
  66.         set {prefix.%player%} to "&7&l[-]"
  67.  
  68. command /sendflopre <string>:
  69.     permission: admin
  70.     aliases: sfp
  71.     trigger:
  72.         if arg is "flo" or "floor":
  73.             send "%{floor.%player%}%"
  74.         if arg is "pre" or "prefix":
  75.             send "%{prefix.%player%}%"
  76.  
  77. on walking on gold block or bottom quartz slab:
  78.     set {cp.%player%} to location of event-block
  79.     if event-block is gold block:
  80.         add 0.5 to y-coord of {cp.%player%}
  81.  
  82. on right click with emerald:
  83.     name of tool is "&aBack to checkpoint":
  84.         teleport player to {cp.%player%}
  85.  
  86. command /givebackemerald:
  87.     permission: admin
  88.     aliases: gbe
  89.     trigger:
  90.         give emerald named "&aBack to checkpoint" to player
  91.  
  92. command /motteru:
  93.     permission: admin
  94.     trigger:
  95.         message "おめえが持ってるのは%player's tool%だ" to player
  96.  
  97. on hunger meter change:
  98.     cancel event
  99.  
  100. on damage:
  101.     if attacker is player:
  102.         cancel event
  103.     if damage cause is fall:
  104.         cancel event
  105.  
  106. on drop:
  107.     cancel event
  108.  
  109. on respawn:
  110.     set slot 4 of player to emerald named "&aBack to checkpoint"
  111.     set slot 0 of player to air
  112.     set slot 1 of player to air
  113.     set slot 2 of player to air
  114.     set slot 3 of player to air
  115.     set slot 5 of player to air
  116.     set slot 6 of player to air
  117.     set slot 7 of player to air
  118.     set slot 8 of player to air
  119.  
  120. on teleport:
  121.     if {floor.%player%} is 1:
  122.         set player's tab name to "&7&l[&7-&b&lI&7-&7&l]&7 : &f%player%"
  123.     if {floor.%player%} is 2:
  124.         set player's tab name to "&7&l[&7-&a&lII&7-&7&l]&7 : &f%player%"
  125.     if {floor.%player%} is 3:
  126.         set player's tab name to "&7&l[&7-&9&lIII&7-&7&l]&7 : &f%player%"
  127.     if {floor.%player%} is 4:
  128.         set player's tab name to "&7&l[&7-&d&lIV&7-&7&l]&7 : &f%player%"
  129.     if {floor.%player%} is 5:
  130.         set player's tab name to "&7&l[&7-&c&lV&7-&7&l]&7 : &f%player%"
  131.     if {floor.%player%} is 6:
  132.         set player's tab name to "&7&l[&7-&3&lVI-&7-&7&l]&7 : &f%player%"
  133.     if {floor.%player%} is 7:
  134.         set player's tab name to "&7&l[&7-&2&lVII&7-&7&l]&7 : &f%player%"
  135.     if {floor.%player%} is 8:
  136.         set player's tab name to "&7&l[&7-&1&lVIII&7-&7&l]&7 : &f%player%"
  137.     if {floor.%player%} is 9:
  138.         set player's tab name to "&7&l[&7-&5&lIX&7-&7&l]&7 : &f%player%"
  139.     if {floor.%player%} is 10:
  140.         set player's tab name to "&7&l[&7-&4&lX&7-&7&l]&7 : &f%player%"
  141.     if {floor.%player%} is 0:
  142.         set player's tab name to "&7&l[-]&7 : &f%player%"
  143.  
  144. on right click on sign:
  145.     if line 1 of clicked block is "&6&lClear!":
  146.         set {_xcp} to x-coordinate of location of player
  147.         set {_ycp} to y-coordinate of location of player
  148.         set {_zcp} to z-coordinate of location of player
  149.         set {cp.%player%} to location ({_xcp}, {_ycp}, {_zcp})
  150.         add 1 to {floor.%player%}
  151.         if line 3 of clicked block is "&1&llevel is II":
  152.             teleport player to {floor2}
  153.         if line 3 of clicked block is "&1&llevel is III":
  154.             teleport player to {floor3}
  155.         if line 3 of clicked block is "&1&llevel is IV":
  156.             teleport player to {floor4}
  157.         if line 3 of clicked block is "&1&llevel is V":
  158.             teleport player to {floor5}
  159.         if line 3 of clicked block is "&1&llevel is VI":
  160.             teleport player to {floor6}
  161.         if line 3 of clicked block is "&1&llevel is VII":
  162.             teleport player to {floor7}
  163.         if line 3 of clicked block is "&1&llevel is VIII":
  164.             teleport player to {floor8}
  165.         if line 3 of clicked block is "&1&llevel is IX":
  166.             teleport player to {floor9}
  167.         if line 3 of clicked block is "&1&llevel is X":
  168.             teleport player to {floor10}
  169.  
  170. command /floorset <number>:
  171.     permission: admin
  172.     aliases: flos
  173.     trigger:
  174.         set {_xfloor} to x-coordinate of location of player
  175.         set {_yfloor} to y-coordinate of location of player
  176.         set {_zfloor} to z-coordinate of location of player
  177.         set {floor%arg%} to location ({_xfloor}, {_yfloor}, {_zfloor})
  178.  
  179. command /testfloor <number>:
  180.     permission: admin
  181.     aliases: tflo
  182.     trigger:
  183.         teleport player to {floor%arg%}
  184.  
  185. command /sendfloor <number>:
  186.     permission: admin
  187.     aliases: sendf
  188.     trigger:
  189.         send "%{floor%arg%}%" to player
  190.  
  191. command /floorupy <number>:
  192.     permission: admin
  193.     aliases: fpy
  194.     trigger:
  195.         add 0.1 to y-coordinate of {floor%arg%}
  196.  
  197. on rightclick on a sign:
  198.     if {signset.%player%} is true:
  199.         message "&4Signs &8» &7You have selected a sign!"
  200.         set {sign.%player%} to the event-block
  201.         clear {signset.%player%}
  202.         stop
  203.  
  204. command /sign [<string>] [<int>] [<string>]:
  205.     permission: admin
  206.     trigger:
  207.         if arg-1 is "select":
  208.             message "&4Signs &8» &7Please select a sign now!"
  209.             set {signset.%player%} to true
  210.             stop
  211.         if arg-1 is "redo":
  212.             if {redo.%player%} is not set:
  213.                 message "&4Signs &8» &7You have not done anything to redo!"
  214.                 stop
  215.             else:
  216.                 set {undos.%player%} to {s.%player%}
  217.                 set {undol.%player%} to {arg2.%player%}
  218.                 set {undo.%player%} to line {undol.%player%} of {undos.%Player%}
  219.                 message "&4Signs &8» &7You have redo'd what you've just done!"
  220.                 set line {undol.%player%} of {undos.%player%} to {redo.%player%}
  221.                 clear {arg2.%player%}
  222.                 clear {s.%player%}
  223.                 stop
  224.         if arg-1 is "undo":
  225.             if {undo.%player%} is not set:
  226.                 message "&4Signs &8» &7You have not done anything to undo!"
  227.                 stop
  228.             else:
  229.                 set {redo.%player%} to line {undol.%player%} of {undos.%player%}
  230.                 message "&4Signs &8» &7You've undo'd what you've just done!"
  231.                 set line {undol.%player%} of {undos.%player%} to {undo.%player%}
  232.                 clear {undos.%player%}
  233.                 clear {undol.%player%}
  234.                 clear {undo.%player%}
  235.                 stop
  236.  
  237.         if arg-1 is "editline" or "el":
  238.             if arg-3 is set:
  239.                 if {sign.%player%} is set:
  240.                     if arg-2 is greater than or equal to 5:
  241.                         message "&4Signs &8» &7There are only 4 lines on a sign!"
  242.                         stop
  243.                     set {s.%player%} to {sign.%player%}
  244.                     set {arg2.%player%} to arg-2
  245.                     set {undos.%player%} to {sign.%player%}
  246.                     set {undol.%player%} to arg-2
  247.                     set {undo.%player%} to line arg-2 of {sign.%Player%}
  248.                     set {arg.%player%} to arg-3
  249.                     replace all "&" with "§" in {arg.%player%}
  250.                     set line arg-2 of {sign.%Player%} to {arg.%player%}
  251.                     message "&4Signs &8» &7You have updated the line %arg-2% of the sign you selected!"
  252.                     clear {arg.%player%}
  253.                     stop
  254.                 else:
  255.                     message "&4Signs &8» &7You need to select a sign before using this command! /sign select."
  256.                     stop
  257.         if arg-1 is "reload":
  258.             execute console command "sk reload %script%"
  259.             message "&4Signs &8» &7Signs has been reloaded successfully!"
  260.             stop
  261.         if arg-1 is not set:
  262.             message "&7&m----------------------"
  263.             message ""
  264.             message "&6/sign editline|el <line> <text>"
  265.             message "&6/sign select"
  266.             message "&6/sign undo"
  267.             message "&6/sign redo"
  268.             message "&6/sign reload"
  269.             message ""
  270.             message "&7&m----------------------"
  271.             stop
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
 
Top