Advertisement
yukki10

Untitled

Apr 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.43 KB | None | 0 0
  1. on first join:
  2. set {skillnum.%player%} to 1
  3. set {asaruto.%player%} to 0
  4. on right click on an anvil:
  5. cancel event
  6.  
  7. on rightclick:
  8. if name of item is "3*3*3スキル":
  9. set {skillnum.%player%} to 3
  10. else if name of item is "5*5*5スキル":
  11. set {skillnum.%player%} to 5
  12. else if name of item is "7*7*7スキル":
  13. set {skillnum.%player%} to 7
  14. else if name of item is "9*9*9スキル":
  15. set {skillnum.%player%} to 9
  16. else if name of item is "11*11*11スキル":
  17. set {skillnum.%player%} to 11
  18. else if name of item is "13*13*13スキル":
  19. set {skillnum.%player%} to 13
  20. else if name of item is "15*15*15スキル":
  21. set {skillnum.%player%} to 15
  22. else if name of item is "&1ア&2サ&3ル&4ト":
  23. set {asaruto.%player%} to 1
  24. else if name of item is "&1ア&2サ&3ル&4ト&5改":
  25. set {asaruto.%player%} to 2
  26. else if name of item is "&2ワールド&3エ&4ン&5ダ&8ー":
  27. set {asaruto.%player%} to 3
  28. set {skillnum.%player%} to 30
  29.  
  30. command /ef1:
  31. trigger:
  32. execute console command "/effect %player% 16 99999 255"
  33.  
  34. command /gomi:
  35. trigger:
  36. open chest with 3 rows named "ゴミ箱" to player
  37.  
  38. command /tpn:
  39. trigger:
  40. teleport player to {spawn1}
  41.  
  42. command /tpe:
  43. trigger:
  44. teleport player to {spawn2}
  45.  
  46. command /tptest:
  47. permission:admin
  48. trigger:
  49. if world of player is "world":
  50. set {spawn} to location of player
  51. if world of player is "world_nether":
  52. set {spawn1} to location of player
  53. if world of player is "world_the_end":
  54. set {spawn2} to location of player
  55.  
  56.  
  57. command /skillnumset <number>:
  58. permission:admin
  59. trigger:
  60. set {skillnum.%player%} to arg-1
  61. command /asaruto:
  62. trigger:
  63. set {asaruto.%player%} to 0
  64. command /hani:
  65. trigger:
  66. set {skillnumset.%player%} to 0
  67.  
  68. command /sp <number> <text>:
  69. trigger:
  70. if arg-2 is "n":
  71. execute console command "/give @p[name=%player%,score_SeichiP_min=%arg-1%] minecraft:gold_nugget %arg-1% 0 {display:{Name:""1SP""},Unbreakable:1b,ench:[{id:32s,lvl:0s}],HideFlags:7}"
  72. execute console command "/scoreboard players remove @p[name=%player%,score_SeichiP_min=%arg-1%] SeichiP %arg-1%"
  73. if arg-2 is "i":
  74. execute console command "/give @p[name=%player%,score_SeichiP_min=%arg-1*9%] minecraft:gold_ingot %arg-1% 0 {display:{Name:""9SP""},Unbreakable:1b,ench:[{id:32s,lvl:0s}],HideFlags:7}"
  75. execute console command "/scoreboard players remove @p[name=%player%,score_SeichiP_min=%arg-1*9%] SeichiP %arg-1*9%"
  76. if arg-2 is "b":
  77. execute console command "/give @p[name=%player%,score_SeichiP_min=%arg-1*81%] minecraft:gold_block %arg-1% 0 {display:{Name:""81SP""},Unbreakable:1b,ench:[{id:32s,lvl:0s}],HideFlags:7}"
  78. execute console command "/scoreboard players remove @p[name=%player%,score_SeichiP_min=%arg-1*81%] SeichiP %arg-1*81%"
  79. if arg-2 is "b2":
  80. execute console command "/give @p[name=%player%,score_SeichiP_min=%arg-1*729%] minecraft:gold_block %arg-1% 0 {display:{Name:""729SP""},Unbreakable:1b,ench:[{id:32s,lvl:0s}],HideFlags:7}"
  81. execute console command "/scoreboard players remove @p[name=%player%,score_SeichiP_min=%arg-1*729%] SeichiP %arg-1*729%"
  82. if arg-2 is "b3":
  83. execute console command "/give @p[name=%player%,score_SeichiP_min=%arg-1*6561%] minecraft:gold_block %arg-1% 0 {display:{Name:""6561SP""},Unbreakable:1b,ench:[{id:32s,lvl:0s}],HideFlags:7}"
  84. execute console command "/scoreboard players remove @p[name=%player%,score_SeichiP_min=%arg-1*6561%] SeichiP %arg-1*6561%"
  85. if arg-2 is "b4":
  86. execute console command "/give @p[name=%player%,score_SeichiP_min=%arg-1*59049%] minecraft:gold_block %arg-1% 0 {display:{Name:""59049SP""},Unbreakable:1b,ench:[{id:32s,lvl:0s}],HideFlags:7}"
  87. execute console command "/scoreboard players remove @p[name=%player%,score_SeichiP_min=%arg-1*59049%] SeichiP %arg-1*59049%"
  88.  
  89. if arg-2 is "b5":
  90. execute console command "/give @p[name=%player%,score_SeichiP_min=%arg-1*531441%] minecraft:gold_block %arg-1% 0 {display:{Name:""531441SP""},Unbreakable:1b,ench:[{id:32s,lvl:0s}],HideFlags:7}"
  91. execute console command "/scoreboard players remove @p[name=%player%,score_SeichiP_min=%arg-1*531441%] SeichiP %arg-1*531441%"
  92.  
  93. on mine:
  94. set {_waited} to difference between {skill.%player%.lastused} and now
  95. if {skillnum.%player%} is 1:
  96. execute console command "/scoreboard players add %player% SeichiP 1"
  97. execute console command "/scoreboard players add %player% SeichiAll 1"
  98. stop
  99. if {skillnum.%player%} is 3:
  100. if {_waited} is less than 1 seconds:
  101. stop
  102. else if {skillnum.%player%} is 5:
  103. if {_waited} is less than 2 seconds:
  104. stop
  105. else if {skillnum.%player%} is 7:
  106. if {_waited} is less than 3 seconds:
  107. stop
  108. else if {skillnum.%player%} is 9:
  109. if {_waited} is less than 4 seconds:
  110. stop
  111. else if {skillnum.%player%} is 11:
  112. if {_waited} is less than 5 seconds:
  113. stop
  114. else if {skillnum.%player%} is 13:
  115. if {_waited} is less than 6 seconds:
  116. stop
  117. else if {skillnum.%player%} is 15:
  118. if {_waited} is less than 7 seconds:
  119. stop
  120. set {_1} to location of event-block
  121. set {_2} to location of event-block
  122. if player's pitch is between -50 and 50:
  123. add ({skillnum.%player%}-2) to y-coord of {_1}
  124. subtract 1 from y-coord of {_2}
  125. if player's horizontal facing is west or east:
  126. add ({skillnum.%player%}/2-0.5) to z-coord of {_1}
  127. add ({skillnum.%player%}/2-0.5) to x-coord of {_1}
  128. subtract ({skillnum.%player%}/2-0.5) from z-coord of {_2}
  129. subtract ({skillnum.%player%}/2-0.5) from x-coord of {_2}
  130. loop blocks within {_1} to {_2}:
  131. loop-block is not bedrock
  132. loop-block is not air
  133. set loop-block to air
  134. execute console command "/scoreboard players add %player% SeichiP 1"
  135. execute console command "/scoreboard players add %player% SeichiAll 1"
  136. set {skill.%player%.lastused} to now
  137. else if player's horizontal facing is north or south:
  138. add ({skillnum.%player%}/2-0.5) to x-coord of {_1}
  139. add ({skillnum.%player%}/2-0.5) to z-coord of {_1}
  140. subtract ({skillnum.%player%}/2-0.5) from x-coord of {_2}
  141. subtract ({skillnum.%player%}/2-0.5) from z-coord of {_2}
  142. loop blocks within {_1} to {_2}:
  143. loop-block is not bedrock
  144. loop-block is not air
  145. set loop-block to air
  146. execute console command "/scoreboard players add %player% SeichiP 1"
  147. execute console command "/scoreboard players add %player% SeichiAll 1"
  148. set {skill.%player%.lastused} to now
  149. else:
  150. add ({skillnum.%player%}/2-0.5) to x-coord of {_1}
  151. add ({skillnum.%player%}/2-0.5) to z-coord of {_1}
  152. subtract ({skillnum.%player%}/2-0.5) from x-coord of {_2}
  153. subtract ({skillnum.%player%}/2-0.5) from z-coord of {_2}
  154. loop blocks within {_1} to {_2}:
  155. loop-block is not bedrock
  156. loop-block is not air
  157. set loop-block to air
  158. execute console command "/scoreboard players add %player% SeichiP 1"
  159. execute console command "/scoreboard players add %player% SeichiAll 1"
  160. set {skill.%player%.lastused} to now
  161. on any movement:
  162. if {asaruto.%player%} is 1:
  163. set {_5} to location of player
  164. set {_6} to location of player
  165. add 11 to y-coord of {_6}
  166. add 5 to x-coord of {_5}
  167. add 5 to z-coord of {_5}
  168. subtract 5 from x-coord of {_6}
  169. subtract 5 from z-coord of {_6}
  170. loop blocks within {_5} to {_6}:
  171. loop-block is not bedrock
  172. loop-block is not command block
  173. loop-block is not lever
  174. loop-block is not ender chest
  175. loop-block is not chest
  176. loop-block is not air
  177. loop-block is not repeating command block
  178. loop-block is not chain command block
  179. set loop-block to air
  180.  
  181. execute console command "/scoreboard players add %player% SeichiP 1"
  182. execute console command "/scoreboard players add %player% SeichiAll 1"
  183. if {asaruto.%player%} is 2:
  184. set {_5} to location of player
  185. set {_6} to location of player
  186. add 20 to y-coord of {_6}
  187. add 10 to x-coord of {_5}
  188. add 10 to z-coord of {_5}
  189. subtract 10 from x-coord of {_6}
  190. subtract 10 from z-coord of {_6}
  191. loop blocks within {_5} to {_6}:
  192. loop-block is not bedrock
  193. loop-block is not command block
  194. loop-block is not lever
  195. loop-block is not ender chest
  196. loop-block is not chest
  197. loop-block is not air
  198. loop-block is not repeating command block
  199. loop-block is not chain command block
  200. set loop-block to air
  201.  
  202. execute console command "/scoreboard players add %player% SeichiP 1"
  203. execute console command "/scoreboard players add %player% SeichiAll 1"
  204. if {asaruto.%player%} is 3:
  205. set {_7} to location of player
  206. set {_8} to location of player
  207. add 30 to y-coord of {_8}
  208. add 15 to x-coord of {_7}
  209. add 15 to z-coord of {_7}
  210. subtract 15 from x-coord of {_8}
  211. subtract 15 from z-coord of {_8}
  212. loop blocks within {_7} to {_8}:
  213. loop-block is not bedrock
  214. loop-block is not command block
  215. loop-block is not lever
  216. loop-block is not ender chest
  217. loop-block is not chest
  218. loop-block is not air
  219. loop-block is not repeating command block
  220. loop-block is not chain command block
  221. set loop-block to air
  222.  
  223. execute console command "/scoreboard players add %player% SeichiP 1"
  224. execute console command "/scoreboard players add %player% SeichiAll 1"
  225. set {_3} to location of player
  226. set {_4} to location of player
  227. subtract {skillnum.%player%} from y-coord of {_4}
  228. add ({skillnum.%player%}/2-0.5) to x-coord of {_3}
  229. add ({skillnum.%player%}/2-0.5) to z-coord of {_3}
  230. subtract ({skillnum.%player%}/2-0.5) from x-coord of {_4}
  231. subtract ({skillnum.%player%}/2-0.5) from z-coord of {_4}
  232. loop blocks within {_3} to {_4}:
  233. loop-block is water or lava
  234. set loop-block to packed ice
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement