Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2016
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.94 KB | None | 0 0
  1. on load:
  2. set {adminhaus.eingang.oben} to false
  3.  
  4.  
  5. on right click on mob head block:
  6. if "%world%" is "world":
  7. if "%location of event-block%" is "x: -553.5, y: 117.5, z: 208.5":
  8. if x-coordinate of player is less than -551:
  9. if player has permission "gminer.spieler":
  10. if {eingabe.adminhaus.oben::%player%} isn't set:
  11. cancel event
  12. set {eingabe.adminhaus.oben::%player%} to ""
  13. open chest with 6 rows named "&cPIN eingeben &7(Adminhaus-Dach)" to player
  14. loop 54 times:
  15. set slot loop-value - 1 of player's current inventory to gray stained glass pane named "&c"
  16. set slot 12 of player's current inventory to 1 of white stained glass pane named "&c&l1"
  17. set slot 13 of player's current inventory to 2 of white stained glass pane named "&c&l2"
  18. set slot 14 of player's current inventory to 3 of white stained glass pane named "&c&l3"
  19.  
  20. set slot 12+9 of player's current inventory to 4 of white stained glass pane named "&c&l4"
  21. set slot 13+9 of player's current inventory to 5 of white stained glass pane named "&c&l5"
  22. set slot 14+9 of player's current inventory to 6 of white stained glass pane named "&c&l6"
  23.  
  24. set slot 12+9+9 of player's current inventory to 7 of white stained glass pane named "&c&l7"
  25. set slot 13+9+9 of player's current inventory to 8 of white stained glass pane named "&c&l8"
  26. set slot 14+9+9 of player's current inventory to 9 of white stained glass pane named "&c&l9"
  27.  
  28. set slot 12+9+9+9 of player's current inventory to 0 of white stained glass pane named "&c&l0"
  29. set slot 13+9+9+9 of player's current inventory to red stained glass pane named "&c&lLÖSCHEN"
  30. set slot 14+9+9+9 of player's current inventory to 1 of green stained glass pane named "&a&lEINGABE"
  31.  
  32. while inventory name of player's current inventory is "&cPIN eingeben &7(Adminhaus-Dach)":
  33. if {eingabe.adminhaus.oben::%player%} is set:
  34. send action bar from "&e&lEingabe: &f%{eingabe.adminhaus.oben::%player%}%" to player
  35. else:
  36. exit
  37. wait 2 ticks
  38.  
  39. else:
  40. send action bar from "&4&l✖&f &c&lZUGRIFF VERWEIGERT" to player
  41.  
  42. on inventory click:
  43. if inventory name of player's current inventory is "&cPIN eingeben &7(Adminhaus-Dach)":
  44. cancel event
  45. set {_blockloc} to location at -553.5, 117.5, 208.5 in world "world"
  46. if clicked inventory isn't inventory of player:
  47. if clicked item is white stained glass pane:
  48. playRadius({_blockloc}, 10, "Beep", 0.6)
  49. if {eingabe.adminhaus.oben::%player%} isn't set:
  50. set {eingabe.adminhaus.oben::%player%} to "%uncolored name of clicked item%"
  51. else:
  52. if length of {eingabe.adminhaus.oben::%player%} is less than 4:
  53. set {eingabe.adminhaus.oben::%player%} to "%{eingabe.adminhaus.oben::%player%}%%uncolored name of clicked item%"
  54.  
  55. if clicked item is green stained glass pane named "&a&lEINGABE":
  56. playRadius({_blockloc}, 10, "Beep", 0.5, 0.7)
  57. if {eingabe.adminhaus.oben::%player%} is set:
  58. close inventory of player
  59. set {_eingabe} to {eingabe.adminhaus.oben::%player%}
  60. delete {eingabe.adminhaus.oben::%player%}
  61. if "%{_eingabe}%" is "1501":
  62. if {adminhaus.eingang.oben} is true:
  63. send action bar from "&4&l✖&f &c&lDie Tür ist gerade in Benutzung!" to player
  64. exit
  65. set {adminhaus.eingang.oben} to true
  66.  
  67. set block at location at -554.5, 118.5, 207.5 to air
  68. set block at location at -554.5, 118.5, 206.5 to air
  69. set block at location at -554.5, 118.5, 205.5 to air
  70.  
  71. set block at location at -554.5, 117.5, 207.5 to air
  72. set block at location at -554.5, 117.5, 206.5 to air
  73. set block at location at -554.5, 117.5, 205.5 to air
  74.  
  75. set block at location at -554.5, 116.5, 207.5 to air
  76. set block at location at -554.5, 116.5, 206.5 to air
  77. set block at location at -554.5, 116.5, 205.5 to air
  78.  
  79. set block at location at -554.5, 115.5, 207.5 to stone slab
  80. set block at location at -554.5, 115.5, 206.5 to stone slab
  81. set block at location at -554.5, 115.5, 205.5 to stone slab
  82.  
  83.  
  84. playRadius({_blockloc}, 10, "Erfolg", 0.7, 1.1)
  85.  
  86. if {eingabe.adminhaus.oben::%player%} isn't set:
  87. send action bar from "&2&l✔&f &a&lZUGRIFF GESTATTET" to player
  88. wait 1 second
  89. wait 1 seconds
  90.  
  91. set block at location at -554.5, 118.5, 207.5 to bars
  92. set block at location at -554.5, 118.5, 206.5 to bars
  93. set block at location at -554.5, 118.5, 205.5 to bars
  94.  
  95. set block at location at -554.5, 117.5, 207.5 to bars
  96. set block at location at -554.5, 117.5, 206.5 to bars
  97. set block at location at -554.5, 117.5, 205.5 to bars
  98.  
  99. set block at location at -554.5, 116.5, 207.5 to bars
  100. set block at location at -554.5, 116.5, 206.5 to bars
  101. set block at location at -554.5, 116.5, 205.5 to bars
  102.  
  103. set block at location at -554.5, 115.5, 207.5 to bars
  104. set block at location at -554.5, 115.5, 206.5 to bars
  105. set block at location at -554.5, 115.5, 205.5 to bars
  106.  
  107.  
  108.  
  109. set {adminhaus.eingang.oben} to false
  110.  
  111. else:
  112. playRadius({_blockloc}, 10, "Fehler", 0.4)
  113. loop 2 times:
  114. if {eingabe.adminhaus.oben::%player%} isn't set:
  115. send action bar from "&4&l✖&f &c&lZUGRIFF VERWEIGERT" to player
  116. wait 1 second
  117. delete {eingabe.adminhaus.oben::%player%}
  118.  
  119. if clicked item is red stained glass pane named "&c&lLÖSCHEN":
  120. playRadius({_blockloc}, 10, "Beep", 0.6, 0.8)
  121. if {eingabe.adminhaus.oben::%player%} is set:
  122. if length of {eingabe.adminhaus.oben::%player%} is less than 2:
  123. set {eingabe.adminhaus.oben::%player%} to ""
  124. else:
  125. set {eingabe.adminhaus.oben::%player%} to "%subtext of {eingabe.adminhaus.oben::%player%} from characters 1 to (the length of {eingabe.adminhaus.oben::%player%} - 1)%"
  126.  
  127. on inventory close:
  128. if inventory name of player's current inventory is "&cPIN eingeben &7(Adminhaus-Dach)":
  129. wait 1 tick
  130. if {eingabe.adminhaus.oben::%player%} is set:
  131. send action bar from "" to player
  132. delete {eingabe.adminhaus.oben::%player%}
  133.  
  134. on load:
  135. delete {eingabe.adminhaus.oben::*}
  136.  
  137. on right click on mob head block:
  138. if "%world%" is "world":
  139. if "%location of event-block%" is "x: -555.5, y: 116.5, z: 205.5":
  140. if x-coordinate of player is less than -554.8:
  141. if player has permission "gminer.spieler":
  142. if {adminhaus.eingang.oben} is true:
  143. exit
  144. else:
  145. set {adminhaus.eingang.oben} to true
  146. set block at location at -554.5, 118.5, 207.5 to air
  147. set block at location at -554.5, 118.5, 206.5 to air
  148. set block at location at -554.5, 118.5, 205.5 to air
  149.  
  150. set block at location at -554.5, 117.5, 207.5 to air
  151. set block at location at -554.5, 117.5, 206.5 to air
  152. set block at location at -554.5, 117.5, 205.5 to air
  153.  
  154. set block at location at -554.5, 116.5, 207.5 to air
  155. set block at location at -554.5, 116.5, 206.5 to air
  156. set block at location at -554.5, 116.5, 205.5 to air
  157.  
  158. set block at location at -554.5, 115.5, 207.5 to stone slab
  159. set block at location at -554.5, 115.5, 206.5 to stone slab
  160. set block at location at -554.5, 115.5, 205.5 to stone slab
  161.  
  162. playRadius(location of event-block, 10, "Erfolg", 0.7, 1.1)
  163. loop 2 times:
  164. if {eingabe.adminhaus.oben::%player%} isn't set:
  165. send action bar from "&2&l✔&f &a&lZUGRIFF GESTATTET" to player
  166. wait 1 second
  167. wait 1 seconds
  168.  
  169. set block at location at -554.5, 118.5, 207.5 to bars
  170. set block at location at -554.5, 118.5, 206.5 to bars
  171. set block at location at -554.5, 118.5, 205.5 to bars
  172.  
  173. set block at location at -554.5, 117.5, 207.5 to bars
  174. set block at location at -554.5, 117.5, 206.5 to bars
  175. set block at location at -554.5, 117.5, 205.5 to bars
  176.  
  177. set block at location at -554.5, 116.5, 207.5 to bars
  178. set block at location at -554.5, 116.5, 206.5 to bars
  179. set block at location at -554.5, 116.5, 205.5 to bars
  180.  
  181. set block at location at -554.5, 115.5, 207.5 to bars
  182. set block at location at -554.5, 115.5, 206.5 to bars
  183. set block at location at -554.5, 115.5, 205.5 to bars
  184.  
  185.  
  186.  
  187. set {adminhaus.eingang.oben} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement