Advertisement
tihi_

Untitled

Jun 18th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.98 KB | None | 0 0
  1. on fishing:
  2. if "%fishing state%" is "CAUGHT_FISH":
  3. clear caught item
  4.  
  5. on rightclick:
  6. if name of held item is "§e§l天使の羽 §a§lLv1":
  7. if {fall.%player%} is not set:
  8. set {fall.%player%} to 0
  9. {fall.%player%} is 0
  10. block below location of player is air
  11. push player upwards at speed 0.5
  12. push player horizontally forwards at speed 0.7
  13. set {fall.%player%} to 1
  14. while block below location of player is air:
  15. wait 3 ticks
  16. set {fall.%player%} to 0
  17. else if name of held item is "§e§l天使の羽 §a§lLv2":
  18. if {fall.%player%} is not set:
  19. set {fall.%player%} to 0
  20. {fall.%player%} is 0 or 1
  21. block below location of player is air
  22. push player upwards at speed 0.5
  23. push player horizontally forwards at speed 0.7
  24. add 1 to {fall.%player%}
  25. while block below location of player is air:
  26. wait 3 ticks
  27. set {fall.%player%} to 0
  28. else if name of held item is "§e§l大天使の羽 §a§lLv1":
  29. if {fall.%player%} is not set:
  30. set {fall.%player%} to 0
  31. {fall.%player%} is 0
  32. block below location of player is air
  33. push player upwards at speed 1
  34. push player horizontally forwards at speed 1.5
  35. set {fall.%player%} to 1
  36. while block below location of player is air:
  37. wait 3 ticks
  38. set {fall.%player%} to 0
  39. else if name of held item is "§e§l大天使の羽 §a§lLv2":
  40. if {fall.%player%} is not set:
  41. set {fall.%player%} to 0
  42. {fall.%player%} is 0 or 1
  43. block below location of player is air
  44. push player upwards at speed 1
  45. push player horizontally forwards at speed 1.5
  46. add 1 to {fall.%player%}
  47. while block below location of player is air:
  48. wait 3 ticks
  49. set {fall.%player%} to 0
  50. else if name of held item is "§e§l主天使の羽 §a§lLv1":
  51. if {fall.%player%} is not set:
  52. set {fall.%player%} to 0
  53. {fall.%player%} is 0
  54. block below location of player is air
  55. push player upwards at speed 1.5
  56. push player horizontally forwards at speed 2
  57. set {fall.%player%} to 1
  58. while block below location of player is air:
  59. wait 3 ticks
  60. set {fall.%player%} to 0
  61. else if name of held item is "§e§l主天使の羽 §a§lLv2":
  62. if {fall.%player%} is not set:
  63. set {fall.%player%} to 0
  64. {fall.%player%} is 0 or 1
  65. block below location of player is air
  66. push player upwards at speed 1.5
  67. push player horizontally forwards at speed 2
  68. add 1 to {fall.%player%}
  69. while block below location of player is air:
  70. wait 3 ticks
  71. set {fall.%player%} to 0
  72. else if name of held item is "§e§l主天使の羽 §a§lLv3":
  73. if {fall.%player%} is not set:
  74. set {fall.%player%} to 0
  75. {fall.%player%} is 0 or 1 or 2
  76. block below location of player is air
  77. push player upwards at speed 1.5
  78. push player horizontally forwards at speed 2
  79. add 1 to {fall.%player%}
  80. while block below location of player is air:
  81. wait 3 ticks
  82. set {fall.%player%} to 0
  83. else if name of held item is "§c§l熾天使の羽":
  84. if {fall.%player%} is not set:
  85. set {fall.%player%} to 0
  86. {fall.%player%} is 0 or 1 or 2 or 3
  87. block below location of player is air
  88. push player upwards at speed 2
  89. push player horizontally forwards at speed 3
  90. add 1 to {fall.%player%}
  91. while block below location of player is air:
  92. wait 3 ticks
  93. set {fall.%player%} to 0
  94. else if name of held item is "§c§l§n神の羽":
  95. if {fall.%player%} is not set:
  96. set {fall.%player%} to 0
  97. block below location of player is air
  98. push player upwards at speed 2
  99. push player horizontally forwards at speed 3
  100.  
  101. command /feater:
  102. usage: /feater
  103. permission: skript.admin
  104. executable by: player
  105. trigger:
  106. give feather of Feather Falling 1 named "§e§l天使の羽 §a§lLv1" to player
  107. give feather of Feather Falling 1 named "§e§l天使の羽 §a§lLv2" to player
  108. give feather of Feather Falling 1 named "§e§l大天使の羽 §a§lLv1" to player
  109. give feather of Feather Falling 1 named "§e§l大天使の羽 §a§lLv2" to player
  110. give feather of Feather Falling 1 named "§e§l主天使の羽 §a§lLv1" to player
  111. give feather of Feather Falling 1 named "§e§l主天使の羽 §a§lLv2" to player
  112. give feather of Feather Falling 1 named "§e§l主天使の羽 §a§lLv3" to player
  113. give feather of Feather Falling 1 named "§c§l熾天使の羽" to player
  114.  
  115. command /featergod:
  116. usage: /feater god
  117. permission: skript.admin
  118. executable by: player
  119. trigger:
  120. give feather of Feather Falling 1 named "§c§l§n神の羽" to player
  121.  
  122. on damage:
  123. victim has feather of Feather Falling
  124. damage was caused by fall
  125. cancel event
  126.  
  127. on rightclick:
  128. block is a sign
  129. line 1 of clicked block is "§3§l=========="
  130. line 2 of clicked block is "§b§lスポーンポイント"
  131. line 3 of clicked block is "§a§l[右クリック]"
  132. line 4 of clicked block is "§3§l=========="
  133. execute console command "/spawnpoint %player%"
  134. message "<aqua>スポーンポイントを設定しました!"
  135. command "/playsound minecraft:block.note.pling master %player% ~ ~ ~ 1 2 1"
  136.  
  137. on damage:
  138. {damagelog.%attacker%} is 1
  139. wait a tick
  140. loop blocks in radius 1 around head of victim:
  141. add location of loop-block to {_blocks::*}
  142. set {_bl} to random element of {_blocks::*}
  143. set {damage.%attacker%} to {damage.%attacker%}*2
  144. set {damage2.%attacker%} to {damage.%attacker%}
  145. createHolo({_bl}, "&c&l-%{damage.%attacker%}%", 25 ticks)
  146. set {maxhpvic.%attacker%} to max health of victim * 2
  147. set {hpvic.%attacker%} to health of victim * 2
  148. send "%name of victim% &c&l-%{damage2.%attacker%}% &a&l%{maxhpvic.%attacker%}%/%{hpvic.%attacker%}% " to attacker
  149.  
  150. command /damagelog [<string>]:
  151. trigger:
  152. if arg 1 is not set:
  153. if {damagelog.%player%} is 1:
  154. set {damagelog.%player%} to 0
  155. message "&6&lダメージログをオフにしました"
  156. else if {damagelog.%player%} is 0:
  157. set {damagelog.%player%} to 1
  158. message "&6&lダメージログをオンにしました"
  159. else if arg 1 is "on":
  160. set {damagelog.%player%} to 1
  161. message "&6&lダメージログをオンにしました"
  162. else if arg 1 is "off":
  163. set {damagelog.%player%} to 0
  164. message "&6&lダメージログをオフにしました"
  165.  
  166. function createHolo(l: Location, t: Text, length: Timespan):
  167. create hologram "%{_t}%" at {_l} for {_length}
  168.  
  169. on break:
  170. player do not have permission "skript.builder"
  171. cancel event
  172.  
  173. on place:
  174. player do not have permission "skript.builder"
  175. cancel event
  176.  
  177. on craft:
  178. cancel event
  179.  
  180. on spread:
  181. cancel event
  182.  
  183. on burn:
  184. cancel event
  185. on explosion prime:
  186. cancel event
  187.  
  188. command /c:
  189. description: コマンドブロックを入手する
  190. usage: /c
  191. permission: skript.admin
  192. executable by: player
  193. trigger:
  194. give command block to player
  195. give redstone block to player
  196.  
  197. command /en:
  198. description: エンダーチェストを開く
  199. usage: /en
  200. executable by: player
  201. trigger:
  202. open the player's ender chest to the player
  203. command "/playsound minecraft:block.enderchest.open voice %player% ~ ~ ~ 1 1 1"
  204.  
  205. on command "/pl":
  206. if player doesn't have permission "skript.admin":
  207. cancel event
  208. message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
  209.  
  210. on command "/plugins":
  211. if player doesn't have permission "skript.admin":
  212. cancel event
  213. message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
  214.  
  215. on command "/?":
  216. if player doesn't have permission "skript.admin":
  217. cancel event
  218. message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
  219.  
  220. on command "/help":
  221. if player doesn't have permission "skript.admin":
  222. cancel event
  223. message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
  224.  
  225. on command "/bukkit:?":
  226. if player doesn't have permission "skript.admin":
  227. cancel event
  228. message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
  229.  
  230. on command "/bukkit:pl":
  231. if player doesn't have permission "skript.admin":
  232. cancel event
  233. message "§cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error."
  234.  
  235. on join:
  236. if {join.%player%} is 1:
  237. set the join message to "&e%player%さんがサーバーに参加しました。"
  238. else:
  239. command "/tp %player% 0 4 0"
  240. set the join message to "&d%player%さんがサーバーに初参加しました。"
  241. wait a tick
  242. set {checkpoint.%player%} to location of player
  243. set {join.%player%} to 1
  244.  
  245. on quit:
  246. set the quit message to "&e%player%さんがサーバーから退出しました。"
  247.  
  248. on rightclick on anvil:
  249. block under the event-block is iron block
  250. cancel event
  251. if name of held item contains "&r&c&l":
  252. if {tool.%player%} is set:
  253. message "&c既に武器がセットされています"
  254. else if {tool.%player%} is not set:
  255. set {tool.%player%} to player's tool
  256. set {tool.name.%player%} to name of player's tool
  257. delete player's tool
  258. message "&a武器をセットしました"
  259. stop
  260. else if name of held item is "§c§l§n強化石":
  261. if {tool.%player%} is not set:
  262. message "&c武器がセットされていません"
  263. else:
  264. {tool.name.%player%} contains "&r&c&l"
  265. set {tool.name.%player%} to name of {tool.%player%}
  266. set {retool.name.%player%} to {tool.name.%player%}
  267. replace "§1" with "" in {tool.name.%player%}
  268. replace "§2" with "" in {tool.name.%player%}
  269. replace "§3" with "" in {tool.name.%player%}
  270. replace "§4" with "" in {tool.name.%player%}
  271. replace "§5" with "" in {tool.name.%player%}
  272. replace "§6" with "" in {tool.name.%player%}
  273. replace "§7" with "" in {tool.name.%player%}
  274. replace "§8" with "" in {tool.name.%player%}
  275. replace "§9" with "" in {tool.name.%player%}
  276. message "%{tool.name.%player%}%"
  277. if name of {tool.%player%} contains "10":
  278. message "&cこの武器はすでに強化値が10なのでこれ以上強化でません"
  279. message "&cこれ以上強化するには限界突破をしてください"
  280. else if {tool.name.%player%} contains "1":
  281. play sound "block.anvil.use" with pitch 2 at player
  282. execute console command "/clear tihi1059 minecraft:dye 1 1"
  283. set {percent.%player%} to random integer between 1 and 10
  284. if {percent.%player%} is between 1 and 2:
  285. replace "&r&c&l+1" with "&r&c&l+3" in {retool.name.%player%}
  286. set the name of {tool.%player%} to {retool.name.%player%}
  287. message "&c&l[強化大成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l3"
  288. else if {percent.%player%} is between 3 and 6:
  289. replace "&r&c&l+1" with "&r&c&l+2" in {retool.name.%player%}
  290. set the name of {tool.%player%} to {retool.name.%player%}
  291. message "&c&l[強化成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l2"
  292. else if {percent.%player%} is between 7 and 9:
  293. replace "&r&c&l+1" with "&r&c&l" in {retool.name.%player%}
  294. set the name of {tool.%player%} to {retool.name.%player%}
  295. message "&3&l[強化失敗] &c&l強化後 +&6&l0"
  296. else if {percent.%player%} is 10:
  297. replace "&r&c&l+1" with "&r&c&l" in {retool.name.%player%}
  298. set the name of {tool.%player%} to {retool.name.%player%}
  299. message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
  300. else if {tool.name.%player%} contains "2":
  301. play sound "block.anvil.use" with pitch 2 at player
  302. execute console command "/clear tihi1059 minecraft:dye 1 1"
  303. set {percent.%player%} to random integer between 1 and 10
  304. if {percent.%player%} is between 1 and 2:
  305. replace "&r&c&l+2" with "&r&c&l+4" in {retool.name.%player%}
  306. set the name of {tool.%player%} to {retool.name.%player%}
  307. message "&c&l[強化大成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l4"
  308. else if {percent.%player%} is between 3 and 6:
  309. replace "&r&c&l+2" with "&r&c&l+3" in {retool.name.%player%}
  310. set the name of {tool.%player%} to {retool.name.%player%}
  311. message "&c&l[強化成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l3"
  312. else if {percent.%player%} is between 7 and 9:
  313. replace "&r&c&l+2" with "&r&c&l+1" in {retool.name.%player%}
  314. set the name of {tool.%player%} to {retool.name.%player%}
  315. message "&3&l[強化失敗] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l1"
  316. else if {percent.%player%} is 10:
  317. replace "&r&c&l+2" with "&r&c&l" in {retool.name.%player%}
  318. set the name of {tool.%player%} to {retool.name.%player%}
  319. message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
  320. else if {tool.name.%player%} contains "3":
  321. play sound "block.anvil.use" with pitch 2 at player
  322. execute console command "/clear tihi1059 minecraft:dye 1 1"
  323. set {percent.%player%} to random integer between 1 and 10
  324. if {percent.%player%} is between 1 and 2:
  325. replace "&r&c&l+3" with "&r&c&l+5" in {retool.name.%player%}
  326. set the name of {tool.%player%} to {retool.name.%player%}
  327. message "&c&l[強化大成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l5"
  328. else if {percent.%player%} is between 3 and 6:
  329. replace "&r&c&l+3" with "&r&c&l+4" in {retool.name.%player%}
  330. set the name of {tool.%player%} to {retool.name.%player%}
  331. message "&c&l[強化成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l4"
  332. else if {percent.%player%} is between 7 and 9:
  333. replace "&r&c&l+3" with "&r&c&l+2" in {retool.name.%player%}
  334. set the name of {tool.%player%} to {retool.name.%player%}
  335. message "&3&l[強化失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l2"
  336. else if {percent.%player%} is 10:
  337. replace "&r&c&l+3" with "&r&c&l+1" in {retool.name.%player%}
  338. set the name of {tool.%player%} to {retool.name.%player%}
  339. message "&3&l[強化大失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l1"
  340. else if {tool.name.%player%} contains "4":
  341. play sound "block.anvil.use" with pitch 2 at player
  342. execute console command "/clear tihi1059 minecraft:dye 1 1"
  343. set {percent.%player%} to random integer between 1 and 10
  344. if {percent.%player%} is between 1 and 2:
  345. replace "&r&c&l+4" with "&r&c&l+6" in {retool.name.%player%}
  346. set the name of {tool.%player%} to {retool.name.%player%}
  347. message "&c&l[強化大成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l6"
  348. else if {percent.%player%} is between 3 and 6:
  349. replace "&r&c&l+4" with "&r&c&l+5" in {retool.name.%player%}
  350. set the name of {tool.%player%} to {retool.name.%player%}
  351. message "&c&l[強化成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l5"
  352. else if {percent.%player%} is between 7 and 9:
  353. replace "&r&c&l+4" with "&r&c&l+3" in {retool.name.%player%}
  354. set the name of {tool.%player%} to {retool.name.%player%}
  355. message "&3&l[強化失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l3"
  356. else if {percent.%player%} is 10:
  357. replace "&r&c&l+4" with "&r&c&l+2" in {retool.name.%player%}
  358. set the name of {tool.%player%} to {retool.name.%player%}
  359. message "&3&l[強化大失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l2"
  360. else if {tool.name.%player%} contains "5":
  361. play sound "block.anvil.use" with pitch 2 at player
  362. execute console command "/clear tihi1059 minecraft:dye 1 1"
  363. set {percent.%player%} to random integer between 1 and 10
  364. if {percent.%player%} is between 1 and 2:
  365. replace "&r&c&l+5" with "&r&c&l+7" in {retool.name.%player%}
  366. set the name of {tool.%player%} to {retool.name.%player%}
  367. message "&c&l[強化大成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l7"
  368. else if {percent.%player%} is between 3 and 6:
  369. replace "&r&c&l+5" with "&r&c&l+6" in {retool.name.%player%}
  370. set the name of {tool.%player%} to {retool.name.%player%}
  371. message "&c&l[強化成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l6"
  372. else if {percent.%player%} is between 7 and 9:
  373. replace "&r&c&l+5" with "&r&c&l+4" in {retool.name.%player%}
  374. set the name of {tool.%player%} to {retool.name.%player%}
  375. message "&3&l[強化失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l4"
  376. else if {percent.%player%} is 10:
  377. replace "&r&c&l+5" with "&r&c&l+3" in {retool.name.%player%}
  378. set the name of {tool.%player%} to {retool.name.%player%}
  379. message "&3&l[強化大失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l3"
  380. else if {tool.name.%player%} contains "6":
  381. play sound "block.anvil.use" with pitch 2 at player
  382. execute console command "/clear tihi1059 minecraft:dye 1 1"
  383. set {percent.%player%} to random integer between 1 and 10
  384. if {percent.%player%} is between 1 and 2:
  385. replace "&r&c&l+6" with "&r&c&l+8" in {retool.name.%player%}
  386. set the name of {tool.%player%} to {retool.name.%player%}
  387. message "&c&l[強化大成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l8"
  388. else if {percent.%player%} is between 3 and 6:
  389. replace "&r&c&l+6" with "&r&c&l+7" in {retool.name.%player%}
  390. set the name of {tool.%player%} to {retool.name.%player%}
  391. message "&c&l[強化成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l7"
  392. else if {percent.%player%} is between 7 and 9:
  393. replace "&r&c&l+6" with "&r&c&l+5" in {retool.name.%player%}
  394. set the name of {tool.%player%} to {retool.name.%player%}
  395. message "&3&l[強化失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l5"
  396. else if {percent.%player%} is 10:
  397. replace "&r&c&l+6" with "&r&c&l+4" in {retool.name.%player%}
  398. set the name of {tool.%player%} to {retool.name.%player%}
  399. message "&3&l[強化大失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l4"
  400. else if {tool.name.%player%} contains "7":
  401. play sound "block.anvil.use" with pitch 2 at player
  402. execute console command "/clear tihi1059 minecraft:dye 1 1"
  403. set {percent.%player%} to random integer between 1 and 10
  404. if {percent.%player%} is between 1 and 2:
  405. replace "&r&c&l+7" with "&r&c&l+9" in {retool.name.%player%}
  406. set the name of {tool.%player%} to {retool.name.%player%}
  407. message "&c&l[強化大成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l9"
  408. else if {percent.%player%} is between 3 and 6:
  409. replace "&r&c&l+7" with "&r&c&l+8" in {retool.name.%player%}
  410. set the name of {tool.%player%} to {retool.name.%player%}
  411. message "&c&l[強化成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l8"
  412. else if {percent.%player%} is between 7 and 9:
  413. replace "&r&c&l+7" with "&r&c&l+6" in {retool.name.%player%}
  414. set the name of {tool.%player%} to {retool.name.%player%}
  415. message "&3&l[強化失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l6"
  416. else if {percent.%player%} is 10:
  417. replace "&r&c&l+7" with "&r&c&l+5" in {retool.name.%player%}
  418. set the name of {tool.%player%} to {retool.name.%player%}
  419. message "&3&l[強化大失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l5"
  420. else if {tool.name.%player%} contains "8":
  421. message "%{tool.name.%player%}%"
  422. play sound "block.anvil.use" with pitch 2 at player
  423. execute console command "/clear tihi1059 minecraft:dye 1 1"
  424. set {percent.%player%} to random integer between 1 and 10
  425. if {percent.%player%} is between 1 and 2:
  426. replace "&r&c&l+8" with "&r&c&l+10" in {retool.name.%player%}
  427. set the name of {tool.%player%} to {retool.name.%player%}
  428. message "&c&l[強化大成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l10"
  429. else if {percent.%player%} is between 3 and 6:
  430. replace "&r&c&l+8" with "&r&c&l+9" in {retool.name.%player%}
  431. set the name of {tool.%player%} to {retool.name.%player%}
  432. message "&c&l[強化成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l9"
  433. else if {percent.%player%} is between 7 and 9:
  434. replace "&r&c&l+8" with "&r&c&l+7" in {retool.name.%player%}
  435. set the name of {tool.%player%} to {retool.name.%player%}
  436. message "&3&l[強化失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l7"
  437. else if {percent.%player%} is 10:
  438. replace "&r&c&l+8" with "&r&c&l+6" in {retool.name.%player%}
  439. set the name of {tool.%player%} to {retool.name.%player%}
  440. message "&3&l[強化大失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l6"
  441. else if {tool.name.%player%} contains "9":
  442. play sound "block.anvil.use" with pitch 2 at player
  443. execute console command "/clear tihi1059 minecraft:dye 1 1"
  444. set {percent.%player%} to random integer between 1 and 10
  445. if {percent.%player%} is between 1 and 2:
  446. replace "&r&c&l+9" with "&r&c&l+10" in {retool.name.%player%}
  447. set the name of {tool.%player%} to {retool.name.%player%}
  448. message "&c&l[強化大成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
  449. else if {percent.%player%} is between 3 and 6:
  450. replace "&r&c&l+9" with "&r&c&l+10" in {retool.name.%player%}
  451. set the name of {tool.%player%} to {retool.name.%player%}
  452. message "&c&l[強化成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
  453. else if {percent.%player%} is between 7 and 9:
  454. replace "&r&c&l+9" with "&r&c&l+8" in {retool.name.%player%}
  455. set the name of {tool.%player%} to {retool.name.%player%}
  456. message "&3&l[強化失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l8"
  457. else if {percent.%player%} is 10:
  458. replace "&r&c&l+9" with "&r&c&l+7" in {retool.name.%player%}
  459. set the name of {tool.%player%} to {retool.name.%player%}
  460. message "&3&l[強化大失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l7"
  461. else:
  462. play sound "block.anvil.use" with pitch 2 at player
  463. execute console command "/clear tihi1059 minecraft:dye 1 1"
  464. set {percent.%player%} to random integer between 1 and 10
  465. if {percent.%player%} is between 1 and 2:
  466. replace "&r&c&l" with "&r&c&l+2" in {retool.name.%player%}
  467. set the name of {tool.%player%} to {retool.name.%player%}
  468. message "&c&l[強化大成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l2"
  469. else if {percent.%player%} is between 3 and 6:
  470. replace "&r&c&l" with "&r&c&l+1" in {retool.name.%player%}
  471. set the name of {tool.%player%} to {retool.name.%player%}
  472. message "&c&l[強化成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l1"
  473. else if {percent.%player%} is between 7 and 9:
  474. message "&3&l[強化失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
  475. else if {percent.%player%} is 10:
  476. message "&3&l[強化大失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
  477. if name of held item contains "&r&4&l":
  478. if {tool.%player%} is set:
  479. message "&c既に武器がセットされています"
  480. else if {tool.%player%} is not set:
  481. set {tool.%player%} to player's tool
  482. set {tool.name.%player%} to name of player's tool
  483. delete player's tool
  484. message "&a武器をセットしました"
  485. stop
  486. else if name of held item is "§c§l§n強化石":
  487. if {tool.%player%} is not set:
  488. message "&c武器がセットされていません"
  489. else:
  490. {tool.name.%player%} contains "&r&4&l"
  491. set {tool.name.%player%} to name of {tool.%player%}
  492. set {retool.name.%player%} to {tool.name.%player%}
  493. replace "§1" with "" in {tool.name.%player%}
  494. replace "§2" with "" in {tool.name.%player%}
  495. replace "§3" with "" in {tool.name.%player%}
  496. replace "§4" with "" in {tool.name.%player%}
  497. replace "§5" with "" in {tool.name.%player%}
  498. replace "§6" with "" in {tool.name.%player%}
  499. replace "§7" with "" in {tool.name.%player%}
  500. replace "§8" with "" in {tool.name.%player%}
  501. replace "§9" with "" in {tool.name.%player%}
  502. if name of {tool.%player%} contains "20":
  503. message "&cこの武器はすでに強化値が20なのでこれ以上強化でません"
  504. message "&cこれ以上強化するには限界突破をしてください"
  505. else if {tool.name.%player%} contains "1":
  506. play sound "block.anvil.use" with pitch 2 at player
  507. execute console command "/clear tihi1059 minecraft:dye 1 1"
  508. set {percent.%player%} to random integer between 1 and 10
  509. if {percent.%player%} is between 1 and 2:
  510. replace "&r&4&l+1" with "&r&4&l+3" in {retool.name.%player%}
  511. set the name of {tool.%player%} to {retool.name.%player%}
  512. message "&c&l[強化大成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l3"
  513. else if {percent.%player%} is between 3 and 6:
  514. replace "&r&4&l+1" with "&r&4&l+2" in {retool.name.%player%}
  515. set the name of {tool.%player%} to {retool.name.%player%}
  516. message "&c&l[強化成功] &a&l強化前 +&6&l1 &6→ &c&l強化後 +&6&l2"
  517. else if {percent.%player%} is between 7 and 9:
  518. replace "&r&4&l+1" with "&r&4&l" in {retool.name.%player%}
  519. set the name of {tool.%player%} to {retool.name.%player%}
  520. message "&3&l[強化失敗] &c&l強化後 +&6&l0"
  521. else if {percent.%player%} is 10:
  522. replace "&r&4&l+1" with "&r&4&l" in {retool.name.%player%}
  523. set the name of {tool.%player%} to {retool.name.%player%}
  524. message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
  525. else if {tool.name.%player%} contains "2":
  526. play sound "block.anvil.use" with pitch 2 at player
  527. execute console command "/clear tihi1059 minecraft:dye 1 1"
  528. set {percent.%player%} to random integer between 1 and 10
  529. if {percent.%player%} is between 1 and 2:
  530. replace "&r&4&l+2" with "&r&4&l+4" in {retool.name.%player%}
  531. set the name of {tool.%player%} to {retool.name.%player%}
  532. message "&c&l[強化大成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l4"
  533. else if {percent.%player%} is between 3 and 6:
  534. replace "&r&4&l+2" with "&r&4&l+3" in {retool.name.%player%}
  535. set the name of {tool.%player%} to {retool.name.%player%}
  536. message "&c&l[強化成功] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l3"
  537. else if {percent.%player%} is between 7 and 9:
  538. replace "&r&4&l+2" with "&r&4&l+1" in {retool.name.%player%}
  539. set the name of {tool.%player%} to {retool.name.%player%}
  540. message "&3&l[強化失敗] &a&l強化前 +&6&l2 &6→ &c&l強化後 +&6&l1"
  541. else if {percent.%player%} is 10:
  542. replace "&r&4&l+2" with "&r&4&l" in {retool.name.%player%}
  543. set the name of {tool.%player%} to {retool.name.%player%}
  544. message "&3&l[強化大失敗] &c&l強化後 +&6&l0"
  545. else if {tool.name.%player%} contains "3":
  546. play sound "block.anvil.use" with pitch 2 at player
  547. execute console command "/clear tihi1059 minecraft:dye 1 1"
  548. set {percent.%player%} to random integer between 1 and 10
  549. if {percent.%player%} is between 1 and 2:
  550. replace "&r&4&l+3" with "&r&4&l+5" in {retool.name.%player%}
  551. set the name of {tool.%player%} to {retool.name.%player%}
  552. message "&c&l[強化大成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l5"
  553. else if {percent.%player%} is between 3 and 6:
  554. replace "&r&4&l+3" with "&r&4&l+4" in {retool.name.%player%}
  555. set the name of {tool.%player%} to {retool.name.%player%}
  556. message "&c&l[強化成功] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l4"
  557. else if {percent.%player%} is between 7 and 9:
  558. replace "&r&4&l+3" with "&r&4&l+2" in {retool.name.%player%}
  559. set the name of {tool.%player%} to {retool.name.%player%}
  560. message "&3&l[強化失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l2"
  561. else if {percent.%player%} is 10:
  562. replace "&r&4&l+3" with "&r&4&l+1" in {retool.name.%player%}
  563. set the name of {tool.%player%} to {retool.name.%player%}
  564. message "&3&l[強化大失敗] &a&l強化前 +&6&l3 &6→ &c&l強化後 +&6&l1"
  565. else if {tool.name.%player%} contains "4":
  566. play sound "block.anvil.use" with pitch 2 at player
  567. execute console command "/clear tihi1059 minecraft:dye 1 1"
  568. set {percent.%player%} to random integer between 1 and 10
  569. if {percent.%player%} is between 1 and 2:
  570. replace "&r&4&l+4" with "&r&4&l+6" in {retool.name.%player%}
  571. set the name of {tool.%player%} to {retool.name.%player%}
  572. message "&c&l[強化大成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l6"
  573. else if {percent.%player%} is between 3 and 6:
  574. replace "&r&4&l+4" with "&r&4&l+5" in {retool.name.%player%}
  575. set the name of {tool.%player%} to {retool.name.%player%}
  576. message "&c&l[強化成功] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l5"
  577. else if {percent.%player%} is between 7 and 9:
  578. replace "&r&4&l+4" with "&r&4&l+3" in {retool.name.%player%}
  579. set the name of {tool.%player%} to {retool.name.%player%}
  580. message "&3&l[強化失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l3"
  581. else if {percent.%player%} is 10:
  582. replace "&r&4&l+4" with "&r&4&l+2" in {retool.name.%player%}
  583. set the name of {tool.%player%} to {retool.name.%player%}
  584. message "&3&l[強化大失敗] &a&l強化前 +&6&l4 &6→ &c&l強化後 +&6&l2"
  585. else if {tool.name.%player%} contains "5":
  586. play sound "block.anvil.use" with pitch 2 at player
  587. execute console command "/clear tihi1059 minecraft:dye 1 1"
  588. set {percent.%player%} to random integer between 1 and 10
  589. if {percent.%player%} is between 1 and 2:
  590. replace "&r&4&l+5" with "&r&4&l+7" in {retool.name.%player%}
  591. set the name of {tool.%player%} to {retool.name.%player%}
  592. message "&c&l[強化大成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l7"
  593. else if {percent.%player%} is between 3 and 6:
  594. replace "&r&4&l+5" with "&r&4&l+6" in {retool.name.%player%}
  595. set the name of {tool.%player%} to {retool.name.%player%}
  596. message "&c&l[強化成功] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l6"
  597. else if {percent.%player%} is between 7 and 9:
  598. replace "&r&4&l+5" with "&r&4&l+4" in {retool.name.%player%}
  599. set the name of {tool.%player%} to {retool.name.%player%}
  600. message "&3&l[強化失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l4"
  601. else if {percent.%player%} is 10:
  602. replace "&r&4&l+5" with "&r&4&l+3" in {retool.name.%player%}
  603. set the name of {tool.%player%} to {retool.name.%player%}
  604. message "&3&l[強化大失敗] &a&l強化前 +&6&l5 &6→ &c&l強化後 +&6&l3"
  605. else if {tool.name.%player%} contains "6":
  606. play sound "block.anvil.use" with pitch 2 at player
  607. execute console command "/clear tihi1059 minecraft:dye 1 1"
  608. set {percent.%player%} to random integer between 1 and 10
  609. if {percent.%player%} is between 1 and 2:
  610. replace "&r&4&l+6" with "&r&4&l+8" in {retool.name.%player%}
  611. set the name of {tool.%player%} to {retool.name.%player%}
  612. message "&c&l[強化大成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l8"
  613. else if {percent.%player%} is between 3 and 6:
  614. replace "&r&4&l+6" with "&r&4&l+7" in {retool.name.%player%}
  615. set the name of {tool.%player%} to {retool.name.%player%}
  616. message "&c&l[強化成功] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l7"
  617. else if {percent.%player%} is between 7 and 9:
  618. replace "&r&4&l+6" with "&r&4&l+5" in {retool.name.%player%}
  619. set the name of {tool.%player%} to {retool.name.%player%}
  620. message "&3&l[強化失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l5"
  621. else if {percent.%player%} is 10:
  622. replace "&r&4&l+6" with "&r&4&l+4" in {retool.name.%player%}
  623. set the name of {tool.%player%} to {retool.name.%player%}
  624. message "&3&l[強化大失敗] &a&l強化前 +&6&l6 &6→ &c&l強化後 +&6&l4"
  625. else if {tool.name.%player%} contains "7":
  626. play sound "block.anvil.use" with pitch 2 at player
  627. execute console command "/clear tihi1059 minecraft:dye 1 1"
  628. set {percent.%player%} to random integer between 1 and 10
  629. if {percent.%player%} is between 1 and 2:
  630. replace "&r&4&l+7" with "&r&4&l+9" in {retool.name.%player%}
  631. set the name of {tool.%player%} to {retool.name.%player%}
  632. message "&c&l[強化大成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l9"
  633. else if {percent.%player%} is between 3 and 6:
  634. replace "&r&4&l+7" with "&r&4&l+8" in {retool.name.%player%}
  635. set the name of {tool.%player%} to {retool.name.%player%}
  636. message "&c&l[強化成功] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l8"
  637. else if {percent.%player%} is between 7 and 9:
  638. replace "&r&4&l+7" with "&r&4&l+6" in {retool.name.%player%}
  639. set the name of {tool.%player%} to {retool.name.%player%}
  640. message "&3&l[強化失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l6"
  641. else if {percent.%player%} is 10:
  642. replace "&r&4&l+7" with "&r&4&l+5" in {retool.name.%player%}
  643. set the name of {tool.%player%} to {retool.name.%player%}
  644. message "&3&l[強化大失敗] &a&l強化前 +&6&l7 &6→ &c&l強化後 +&6&l5"
  645. else if {tool.name.%player%} contains "8":
  646. play sound "block.anvil.use" with pitch 2 at player
  647. execute console command "/clear tihi1059 minecraft:dye 1 1"
  648. set {percent.%player%} to random integer between 1 and 10
  649. if {percent.%player%} is between 1 and 2:
  650. replace "&r&4&l+8" with "&r&4&l+10" in {retool.name.%player%}
  651. set the name of {tool.%player%} to {retool.name.%player%}
  652. message "&c&l[強化大成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l10"
  653. else if {percent.%player%} is between 3 and 6:
  654. replace "&r&4&l+8" with "&r&4&l+9" in {retool.name.%player%}
  655. set the name of {tool.%player%} to {retool.name.%player%}
  656. message "&c&l[強化成功] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l9"
  657. else if {percent.%player%} is between 7 and 9:
  658. replace "&r&4&l+8" with "&r&4&l+7" in {retool.name.%player%}
  659. set the name of {tool.%player%} to {retool.name.%player%}
  660. message "&3&l[強化失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l7"
  661. else if {percent.%player%} is 10:
  662. replace "&r&4&l+8" with "&r&4&l+6" in {retool.name.%player%}
  663. set the name of {tool.%player%} to {retool.name.%player%}
  664. message "&3&l[強化大失敗] &a&l強化前 +&6&l8 &6→ &c&l強化後 +&6&l6"
  665. else if {tool.name.%player%} contains "9":
  666. play sound "block.anvil.use" with pitch 2 at player
  667. execute console command "/clear tihi1059 minecraft:dye 1 1"
  668. set {percent.%player%} to random integer between 1 and 10
  669. if {percent.%player%} is between 1 and 2:
  670. replace "&r&4&l+9" with "&r&4&l+10" in {retool.name.%player%}
  671. set the name of {tool.%player%} to {retool.name.%player%}
  672. message "&c&l[強化大成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
  673. else if {percent.%player%} is between 3 and 6:
  674. replace "&r&4&l+9" with "&r&4&l+10" in {retool.name.%player%}
  675. set the name of {tool.%player%} to {retool.name.%player%}
  676. message "&c&l[強化成功] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l10"
  677. else if {percent.%player%} is between 7 and 9:
  678. replace "&r&4&l+9" with "&r&4&l+8" in {retool.name.%player%}
  679. set the name of {tool.%player%} to {retool.name.%player%}
  680. message "&3&l[強化失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l8"
  681. else if {percent.%player%} is 10:
  682. replace "&r&4&l+9" with "&r&4&l+7" in {retool.name.%player%}
  683. set the name of {tool.%player%} to {retool.name.%player%}
  684. message "&3&l[強化大失敗] &a&l強化前 +&6&l9 &6→ &c&l強化後 +&6&l7"
  685. else if {tool.name.%player%} contains "10":
  686. play sound "block.anvil.use" with pitch 2 at player
  687. execute console command "/clear tihi1059 minecraft:dye 1 1"
  688. set {percent.%player%} to random integer between 1 and 10
  689. if {percent.%player%} is 1:
  690. replace "&r&4&l+10" with "&r&4&l+12" in {retool.name.%player%}
  691. set the name of {tool.%player%} to {retool.name.%player%}
  692. message "&c&l[強化大成功] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l12"
  693. else if {percent.%player%} is between 2 and 5:
  694. replace "&r&4&l+10" with "&r&4&l+11" in {retool.name.%player%}
  695. set the name of {tool.%player%} to {retool.name.%player%}
  696. message "&c&l[強化成功] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l11"
  697. else if {percent.%player%} is between 6 and 9:
  698. replace "&r&4&l+10" with "&r&4&l+9" in {retool.name.%player%}
  699. set the name of {tool.%player%} to {retool.name.%player%}
  700. message "&3&l[強化失敗] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l9"
  701. else if {percent.%player%} is 10:
  702. replace "&r&4&l+10" with "&r&4&l+8" in {retool.name.%player%}
  703. set the name of {tool.%player%} to {retool.name.%player%}
  704. message "&3&l[強化大失敗] &a&l強化前 +&6&l10 &6→ &c&l強化後 +&6&l8"
  705. else if {tool.name.%player%} contains "11":
  706. play sound "block.anvil.use" with pitch 2 at player
  707. execute console command "/clear tihi1059 minecraft:dye 1 1"
  708. set {percent.%player%} to random integer between 1 and 10
  709. if {percent.%player%} is 1:
  710. replace "&r&4&l+11" with "&r&4&l+13" in {retool.name.%player%}
  711. set the name of {tool.%player%} to {retool.name.%player%}
  712. message "&c&l[強化大成功] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l13"
  713. else if {percent.%player%} is between 2 and 5:
  714. replace "&r&4&l+11" with "&r&4&l+12" in {retool.name.%player%}
  715. set the name of {tool.%player%} to {retool.name.%player%}
  716. message "&c&l[強化成功] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l12"
  717. else if {percent.%player%} is between 6 and 9:
  718. replace "&r&4&l+11" with "&r&4&l+10" in {retool.name.%player%}
  719. set the name of {tool.%player%} to {retool.name.%player%}
  720. message "&3&l[強化失敗] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l10"
  721. else if {percent.%player%} is 10:
  722. replace "&r&4&l+11" with "&r&4&l+9" in {retool.name.%player%}
  723. set the name of {tool.%player%} to {retool.name.%player%}
  724. message "&3&l[強化大失敗] &a&l強化前 +&6&l11 &6→ &c&l強化後 +&6&l9"
  725. else if {tool.name.%player%} contains "12":
  726. play sound "block.anvil.use" with pitch 2 at player
  727. execute console command "/clear tihi1059 minecraft:dye 1 1"
  728. set {percent.%player%} to random integer between 1 and 10
  729. if {percent.%player%} is 1:
  730. replace "&r&4&l+12" with "&r&4&l+14" in {retool.name.%player%}
  731. set the name of {tool.%player%} to {retool.name.%player%}
  732. message "&c&l[強化大成功] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l14"
  733. else if {percent.%player%} is between 2 and 5:
  734. replace "&r&4&l+12" with "&r&4&l+13" in {retool.name.%player%}
  735. set the name of {tool.%player%} to {retool.name.%player%}
  736. message "&c&l[強化成功] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l13"
  737. else if {percent.%player%} is between 6 and 9:
  738. replace "&r&4&l+12" with "&r&4&l+11" in {retool.name.%player%}
  739. set the name of {tool.%player%} to {retool.name.%player%}
  740. message "&3&l[強化失敗] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l11"
  741. else if {percent.%player%} is 10:
  742. replace "&r&4&l+12" with "&r&4&l+10" in {retool.name.%player%}
  743. set the name of {tool.%player%} to {retool.name.%player%}
  744. message "&3&l[強化大失敗] &a&l強化前 +&6&l12 &6→ &c&l強化後 +&6&l10"
  745. else if {tool.name.%player%} contains "13":
  746. play sound "block.anvil.use" with pitch 2 at player
  747. execute console command "/clear tihi1059 minecraft:dye 1 1"
  748. set {percent.%player%} to random integer between 1 and 10
  749. if {percent.%player%} is 1:
  750. replace "&r&4&l+13" with "&r&4&l+15" in {retool.name.%player%}
  751. set the name of {tool.%player%} to {retool.name.%player%}
  752. message "&c&l[強化大成功] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l15"
  753. else if {percent.%player%} is between 2 and 5:
  754. replace "&r&4&l+13" with "&r&4&l+14" in {retool.name.%player%}
  755. set the name of {tool.%player%} to {retool.name.%player%}
  756. message "&c&l[強化成功] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l14"
  757. else if {percent.%player%} is between 6 and 9:
  758. replace "&r&4&l+13" with "&r&4&l+12" in {retool.name.%player%}
  759. set the name of {tool.%player%} to {retool.name.%player%}
  760. message "&3&l[強化失敗] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l12"
  761. else if {percent.%player%} is 10:
  762. replace "&r&4&l+13" with "&r&4&l+11" in {retool.name.%player%}
  763. set the name of {tool.%player%} to {retool.name.%player%}
  764. message "&3&l[強化大失敗] &a&l強化前 +&6&l13 &6→ &c&l強化後 +&6&l11"
  765. else if {tool.name.%player%} contains "14":
  766. play sound "block.anvil.use" with pitch 2 at player
  767. execute console command "/clear tihi1059 minecraft:dye 1 1"
  768. set {percent.%player%} to random integer between 1 and 10
  769. if {percent.%player%} is 1:
  770. replace "&r&4&l+14" with "&r&4&l+16" in {retool.name.%player%}
  771. set the name of {tool.%player%} to {retool.name.%player%}
  772. message "&c&l[強化大成功] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l16"
  773. else if {percent.%player%} is between 2 and 5:
  774. replace "&r&4&l+14" with "&r&4&l+15" in {retool.name.%player%}
  775. set the name of {tool.%player%} to {retool.name.%player%}
  776. message "&c&l[強化成功] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l15"
  777. else if {percent.%player%} is between 6 and 9:
  778. replace "&r&4&l+14" with "&r&4&l+13" in {retool.name.%player%}
  779. set the name of {tool.%player%} to {retool.name.%player%}
  780. message "&3&l[強化失敗] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l13"
  781. else if {percent.%player%} is 10:
  782. replace "&r&4&l+14" with "&r&4&l+12" in {retool.name.%player%}
  783. set the name of {tool.%player%} to {retool.name.%player%}
  784. message "&3&l[強化大失敗] &a&l強化前 +&6&l14 &6→ &c&l強化後 +&6&l12"
  785. else if {tool.name.%player%} contains "15":
  786. play sound "block.anvil.use" with pitch 2 at player
  787. execute console command "/clear tihi1059 minecraft:dye 1 1"
  788. set {percent.%player%} to random integer between 1 and 10
  789. if {percent.%player%} is 1:
  790. replace "&r&4&l+15" with "&r&4&l+17" in {retool.name.%player%}
  791. set the name of {tool.%player%} to {retool.name.%player%}
  792. message "&c&l[強化大成功] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l17"
  793. else if {percent.%player%} is between 2 and 5:
  794. replace "&r&4&l+15" with "&r&4&l+16" in {retool.name.%player%}
  795. set the name of {tool.%player%} to {retool.name.%player%}
  796. message "&c&l[強化成功] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l16"
  797. else if {percent.%player%} is between 6 and 9:
  798. replace "&r&4&l+15" with "&r&4&l+14" in {retool.name.%player%}
  799. set the name of {tool.%player%} to {retool.name.%player%}
  800. message "&3&l[強化失敗] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l14"
  801. else if {percent.%player%} is 10:
  802. replace "&r&4&l+15" with "&r&4&l+13" in {retool.name.%player%}
  803. set the name of {tool.%player%} to {retool.name.%player%}
  804. message "&3&l[強化大失敗] &a&l強化前 +&6&l15 &6→ &c&l強化後 +&6&l13"
  805. else if {tool.name.%player%} contains "16":
  806. play sound "block.anvil.use" with pitch 2 at player
  807. execute console command "/clear tihi1059 minecraft:dye 1 1"
  808. set {percent.%player%} to random integer between 1 and 10
  809. if {percent.%player%} is 1:
  810. replace "&r&4&l+16" with "&r&4&l+18" in {retool.name.%player%}
  811. set the name of {tool.%player%} to {retool.name.%player%}
  812. message "&c&l[強化大成功] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l18"
  813. else if {percent.%player%} is between 2 and 5:
  814. replace "&r&4&l+16" with "&r&4&l+17" in {retool.name.%player%}
  815. set the name of {tool.%player%} to {retool.name.%player%}
  816. message "&c&l[強化成功] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l17"
  817. else if {percent.%player%} is between 6 and 9:
  818. replace "&r&4&l+16" with "&r&4&l+15" in {retool.name.%player%}
  819. set the name of {tool.%player%} to {retool.name.%player%}
  820. message "&3&l[強化失敗] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l15"
  821. else if {percent.%player%} is 10:
  822. replace "&r&4&l+16" with "&r&4&l+14" in {retool.name.%player%}
  823. set the name of {tool.%player%} to {retool.name.%player%}
  824. message "&3&l[強化大失敗] &a&l強化前 +&6&l16 &6→ &c&l強化後 +&6&l14"
  825. else if {tool.name.%player%} contains "17":
  826. play sound "block.anvil.use" with pitch 2 at player
  827. execute console command "/clear tihi1059 minecraft:dye 1 1"
  828. set {percent.%player%} to random integer between 1 and 10
  829. if {percent.%player%} is 1:
  830. replace "&r&4&l+17" with "&r&4&l+19" in {retool.name.%player%}
  831. set the name of {tool.%player%} to {retool.name.%player%}
  832. message "&c&l[強化大成功] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l19"
  833. else if {percent.%player%} is between 2 and 5:
  834. replace "&r&4&l+17" with "&r&4&l+18" in {retool.name.%player%}
  835. set the name of {tool.%player%} to {retool.name.%player%}
  836. message "&c&l[強化成功] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l18"
  837. else if {percent.%player%} is between 6 and 9:
  838. replace "&r&4&l+17" with "&r&4&l+16" in {retool.name.%player%}
  839. set the name of {tool.%player%} to {retool.name.%player%}
  840. message "&3&l[強化失敗] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l16"
  841. else if {percent.%player%} is 10:
  842. replace "&r&4&l+17" with "&r&4&l+15" in {retool.name.%player%}
  843. set the name of {tool.%player%} to {retool.name.%player%}
  844. message "&3&l[強化大失敗] &a&l強化前 +&6&l17 &6→ &c&l強化後 +&6&l15"
  845. else if {tool.name.%player%} contains "18":
  846. play sound "block.anvil.use" with pitch 2 at player
  847. execute console command "/clear tihi1059 minecraft:dye 1 1"
  848. set {percent.%player%} to random integer between 1 and 10
  849. if {percent.%player%} is 1:
  850. replace "&r&4&l+18" with "&r&4&l+20" in {retool.name.%player%}
  851. set the name of {tool.%player%} to {retool.name.%player%}
  852. message "&c&l[強化大成功] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l20"
  853. else if {percent.%player%} is between 2 and 5:
  854. replace "&r&4&l+18" with "&r&4&l+19" in {retool.name.%player%}
  855. set the name of {tool.%player%} to {retool.name.%player%}
  856. message "&c&l[強化成功] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l19"
  857. else if {percent.%player%} is between 6 and 9:
  858. replace "&r&4&l+18" with "&r&4&l+17" in {retool.name.%player%}
  859. set the name of {tool.%player%} to {retool.name.%player%}
  860. message "&3&l[強化失敗] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l17"
  861. else if {percent.%player%} is 10:
  862. replace "&r&4&l+18" with "&r&4&l+16" in {retool.name.%player%}
  863. set the name of {tool.%player%} to {retool.name.%player%}
  864. message "&3&l[強化大失敗] &a&l強化前 +&6&l18 &6→ &c&l強化後 +&6&l16"
  865. else if {tool.name.%player%} contains "19":
  866. play sound "block.anvil.use" with pitch 2 at player
  867. execute console command "/clear tihi1059 minecraft:dye 1 1"
  868. set {percent.%player%} to random integer between 1 and 10
  869. if {percent.%player%} is 1:
  870. replace "&r&4&l+19" with "&r&4&l+20" in {retool.name.%player%}
  871. set the name of {tool.%player%} to {retool.name.%player%}
  872. message "&c&l[強化大成功] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l20"
  873. else if {percent.%player%} is between 2 and 5:
  874. replace "&r&4&l+19" with "&r&4&l+20" in {retool.name.%player%}
  875. set the name of {tool.%player%} to {retool.name.%player%}
  876. message "&c&l[強化成功] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l20"
  877. else if {percent.%player%} is between 6 and 9:
  878. replace "&r&4&l+19" with "&r&4&l+19" in {retool.name.%player%}
  879. set the name of {tool.%player%} to {retool.name.%player%}
  880. message "&3&l[強化失敗] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l19"
  881. else if {percent.%player%} is 10:
  882. replace "&r&4&l+19" with "&r&4&l+18" in {retool.name.%player%}
  883. set the name of {tool.%player%} to {retool.name.%player%}
  884. message "&3&l[強化大失敗] &a&l強化前 +&6&l19 &6→ &c&l強化後 +&6&l18"
  885. else:
  886. play sound "block.anvil.use" with pitch 2 at player
  887. execute console command "/clear tihi1059 minecraft:dye 1 1"
  888. set {percent.%player%} to random integer between 1 and 10
  889. if {percent.%player%} is between 1 and 2:
  890. replace "&r&4&l" with "&r&4&l+2" in {retool.name.%player%}
  891. set the name of {tool.%player%} to {retool.name.%player%}
  892. message "&c&l[強化大成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l2"
  893. else if {percent.%player%} is between 3 and 6:
  894. replace "&r&4&l" with "&r&4&l+1" in {retool.name.%player%}
  895. set the name of {tool.%player%} to {retool.name.%player%}
  896. message "&c&l[強化成功] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l1"
  897. else if {percent.%player%} is between 7 and 9:
  898. message "&3&l[強化失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
  899. else if {percent.%player%} is 10:
  900. message "&3&l[強化大失敗] &a&l強化前 +&6&l0 &6→ &c&l強化後 +&6&l0"
  901. else if {tool.%player%} is set:
  902. give {tool.%player%} to player
  903. delete {tool.%player%}
  904. message "&a武器を戻しました"
  905. else if name of held item is "&7&l強化リセット石":
  906. set {bounus.%player%} to 1
  907. while {bounus.%player%} is less than or equal to 20:
  908. message "&6&l武器強化をリセットしました"
  909. play sound "block.anvil.use" with pitch 2 at player
  910. stop loop
  911. add 1 to {bounus.%player%}
  912. set {tool.name.%player%} to name of {tool.%player%}
  913. replace "&r&c&l+%{bounus.%player%}%" with "&r&c&l" in {tool.name.%player%}
  914. replace "&r&4&l+%{bounus.%player%}%" with "&r&4&l" in {tool.name.%player%}
  915. set the name of {tool.%player%} to {tool.name.%player%}
  916.  
  917. on damage:
  918. if {skill.%attacker%} is 1:
  919. set {skilldamage.%attacker%} to damage + {ATTR.%attacker%}
  920. set {damage.%attacker%} to {skilldamage.%attacker%} * (100+{AttackBonus.%attacker%})/100
  921. set {skill.%attacker%} to 0
  922. send "Skill Do" to attacker
  923. set damage to {damage.%attacker%}
  924. else:
  925. set {damage.%attacker%} to damage * (100+{AttackBonus.%attacker%})/100
  926. set {damage2.%attacker%} to {damage.%attacker%}
  927. set damage to {damage.%attacker%}
  928.  
  929. on tool change:
  930. delete {AttackBonus.%player%}
  931. if name of player's tool contains "&r&c&l":
  932. if name of player's tool contains "10":
  933. set {AttackBonus.%player%} to 10
  934. stop
  935. else if name of player's tool contains "1":
  936. set {AttackBonus.%player%} to 1
  937. else if name of player's tool contains "2":
  938. set {AttackBonus.%player%} to 2
  939. else if name of player's tool contains "3":
  940. set {AttackBonus.%player%} to 3
  941. else if name of player's tool contains "4":
  942. set {AttackBonus.%player%} to 4
  943. else if name of player's tool contains "5":
  944. set {AttackBonus.%player%} to 5
  945. else if name of player's tool contains "6":
  946. set {AttackBonus.%player%} to 6
  947. else if name of player's tool contains "7":
  948. set {AttackBonus.%player%} to 7
  949. else if name of player's tool contains "8":
  950. set {AttackBonus.%player%} to 8
  951. else if name of player's tool contains "9":
  952. set {AttackBonus.%player%} to 9
  953. if name of player's tool contains "&r&4&l":
  954. if name of player's tool contains "10":
  955. set {AttackBonus.%player%} to 10
  956. stop
  957. else if name of player's tool contains "1":
  958. set {AttackBonus.%player%} to 1
  959. else if name of player's tool contains "2":
  960. set {AttackBonus.%player%} to 2
  961. else if name of player's tool contains "3":
  962. set {AttackBonus.%player%} to 3
  963. else if name of player's tool contains "4":
  964. set {AttackBonus.%player%} to 4
  965. else if name of player's tool contains "5":
  966. set {AttackBonus.%player%} to 5
  967. else if name of player's tool contains "6":
  968. set {AttackBonus.%player%} to 6
  969. else if name of player's tool contains "7":
  970. set {AttackBonus.%player%} to 7
  971. else if name of player's tool contains "8":
  972. set {AttackBonus.%player%} to 8
  973. else if name of player's tool contains "9":
  974. set {AttackBonus.%player%} to 9
  975. else if name of player's tool contains "11":
  976. set {AttackBonus.%player%} to 11
  977. else if name of player's tool contains "12":
  978. set {AttackBonus.%player%} to 12
  979. else if name of player's tool contains "13":
  980. set {AttackBonus.%player%} to 13
  981. else if name of player's tool contains "14":
  982. set {AttackBonus.%player%} to 14
  983. else if name of player's tool contains "15":
  984. set {AttackBonus.%player%} to 15
  985. else if name of player's tool contains "16":
  986. set {AttackBonus.%player%} to 16
  987. else if name of player's tool contains "17":
  988. set {AttackBonus.%player%} to 17
  989. else if name of player's tool contains "18":
  990. set {AttackBonus.%player%} to 18
  991. else if name of player's tool contains "19":
  992. set {AttackBonus.%player%} to 19
  993. else if name of player's tool contains "20":
  994. set {AttackBonus.%player%} to 20
  995. else:
  996. set {AttackBonus.%player%} to 0
  997.  
  998. options:
  999. count : 20
  1000.  
  1001. on tool change:
  1002. wait 1 tick
  1003. set {defense.%player%} to 0
  1004. set {_line} to 1
  1005. while {_line} is less than or equal to {@count}:
  1006. if line {_line} of lore of player's helmet contains "防御力:":
  1007. set {_lore1} to line {_line} of lore of player's helmet
  1008. stop loop
  1009. add 1 to {_line}
  1010. set {_line} to 1
  1011. while {_line} is less than or equal to {@count}:
  1012. if line {_line} of lore of player's chestplate contains "防御力:":
  1013. set {_lore2} to line {_line} of lore of player's chestplate
  1014. stop loop
  1015. add 1 to {_line}
  1016. set {_line} to 1
  1017. while {_line} is less than or equal to {@count}:
  1018. if line {_line} of lore of player's leggings contains "防御力:":
  1019. set {_lore3} to line {_line} of lore of player's leggings
  1020. stop loop
  1021. add 1 to {_line}
  1022. set {_line} to 1
  1023. while {_line} is less than or equal to {@count}:
  1024. if line {_line} of lore of player's boots contains "防御力:":
  1025. set {_lore4} to line {_line} of lore of player's boots
  1026. stop loop
  1027. add 1 to {_line}
  1028. set {_n} to 1
  1029. loop 4 times:
  1030. replace "§1防御力: " with "" in {_lore%{_n}%}
  1031. set {_lore%{_n}%} to {_lore%{_n}%} parsed as number
  1032. add {_lore%{_n}%} to {defense.%player%}
  1033. add 1 to {_n}
  1034.  
  1035. on damage:
  1036. victim is a player
  1037. set {playerdamage.%victim%} to damage - {defense.%victim%}
  1038. if {playerdamage.%victim%} is greater than or equal to 1:
  1039. set damage to {playerdamage.%victim%}
  1040. {damagelog.%victim%} is 1
  1041. set {playerdamage.%victim%} to {playerdamage.%victim%}*2
  1042. send "§c§l%{playerdamage.%victim%}%ダメージ" to victim
  1043. else:
  1044. set damage to 1
  1045. {damagelog.%victim%} is 1
  1046. send "§c§l1ダメージ" to victim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement