Advertisement
tihi_

Untitled

Jun 15th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.09 KB | None | 0 0
  1. on fishing:
  2. if "%fishing state%" is "CAUGHT_FISH":
  3. clear caught item
  4. on rightclick:
  5. if name of held item is "§e§l天使の羽 §a§lLv1":
  6. if {fall.%player%} is not set:
  7. set {fall.%player%} to 0
  8. {fall.%player%} is 0
  9. block below location of player is air
  10. push player upwards at speed 0.5
  11. push player horizontally forwards at speed 0.7
  12. set {fall.%player%} to 1
  13. while block below location of player is air:
  14. wait 3 ticks
  15. set {fall.%player%} to 0
  16. else if name of held item is "§e§l天使の羽 §a§lLv2":
  17. if {fall.%player%} is not set:
  18. set {fall.%player%} to 0
  19. {fall.%player%} is 0 or 1
  20. block below location of player is air
  21. push player upwards at speed 0.5
  22. push player horizontally forwards at speed 0.7
  23. add 1 to {fall.%player%}
  24. while block below location of player is air:
  25. wait 3 ticks
  26. set {fall.%player%} to 0
  27. else if name of held item is "§e§l大天使の羽 §a§lLv1":
  28. if {fall.%player%} is not set:
  29. set {fall.%player%} to 0
  30. {fall.%player%} is 0
  31. block below location of player is air
  32. push player upwards at speed 1
  33. push player horizontally forwards at speed 1.5
  34. set {fall.%player%} to 1
  35. while block below location of player is air:
  36. wait 3 ticks
  37. set {fall.%player%} to 0
  38. else if name of held item is "§e§l大天使の羽 §a§lLv2":
  39. if {fall.%player%} is not set:
  40. set {fall.%player%} to 0
  41. {fall.%player%} is 0 or 1
  42. block below location of player is air
  43. push player upwards at speed 1
  44. push player horizontally forwards at speed 1.5
  45. add 1 to {fall.%player%}
  46. while block below location of player is air:
  47. wait 3 ticks
  48. set {fall.%player%} to 0
  49. else if name of held item is "§e§l主天使の羽 §a§lLv1":
  50. if {fall.%player%} is not set:
  51. set {fall.%player%} to 0
  52. {fall.%player%} is 0
  53. block below location of player is air
  54. push player upwards at speed 1.5
  55. push player horizontally forwards at speed 2
  56. set {fall.%player%} to 1
  57. while block below location of player is air:
  58. wait 3 ticks
  59. set {fall.%player%} to 0
  60. else if name of held item is "§e§l主天使の羽 §a§lLv2":
  61. if {fall.%player%} is not set:
  62. set {fall.%player%} to 0
  63. {fall.%player%} is 0 or 1
  64. block below location of player is air
  65. push player upwards at speed 1.5
  66. push player horizontally forwards at speed 2
  67. add 1 to {fall.%player%}
  68. while block below location of player is air:
  69. wait 3 ticks
  70. set {fall.%player%} to 0
  71. else if name of held item is "§e§l主天使の羽 §a§lLv3":
  72. if {fall.%player%} is not set:
  73. set {fall.%player%} to 0
  74. {fall.%player%} is 0 or 1 or 2
  75. block below location of player is air
  76. push player upwards at speed 1.5
  77. push player horizontally forwards at speed 2
  78. add 1 to {fall.%player%}
  79. while block below location of player is air:
  80. wait 3 ticks
  81. set {fall.%player%} to 0
  82. else if name of held item is "§c§l熾天使の羽":
  83. if {fall.%player%} is not set:
  84. set {fall.%player%} to 0
  85. {fall.%player%} is 0 or 1 or 2 or 3
  86. block below location of player is air
  87. push player upwards at speed 2
  88. push player horizontally forwards at speed 3
  89. add 1 to {fall.%player%}
  90. while block below location of player is air:
  91. wait 3 ticks
  92. set {fall.%player%} to 0
  93. else if name of held item is "§c§l§n神の羽":
  94. if {fall.%player%} is not set:
  95. set {fall.%player%} to 0
  96. block below location of player is air
  97. push player upwards at speed 2
  98. push player horizontally forwards at speed 3
  99.  
  100. command /feater:
  101. usage: /feater
  102. permission: skript.admin
  103. executable by: player
  104. trigger:
  105. give feather of Feather Falling 1 named "§e§l天使の羽 §a§lLv1" to player
  106. give feather of Feather Falling 1 named "§e§l天使の羽 §a§lLv2" to player
  107. give feather of Feather Falling 1 named "§e§l大天使の羽 §a§lLv1" to player
  108. give feather of Feather Falling 1 named "§e§l大天使の羽 §a§lLv2" to player
  109. give feather of Feather Falling 1 named "§e§l主天使の羽 §a§lLv1" to player
  110. give feather of Feather Falling 1 named "§e§l主天使の羽 §a§lLv2" to player
  111. give feather of Feather Falling 1 named "§e§l主天使の羽 §a§lLv3" to player
  112. give feather of Feather Falling 1 named "§c§l熾天使の羽" to player
  113.  
  114. command /featergod:
  115. usage: /feater god
  116. permission: skript.admin
  117. executable by: player
  118. trigger:
  119. give feather of Feather Falling 1 named "§c§l§n神の羽" to player
  120.  
  121. on damage:
  122. victim has feather of Feather Falling
  123. damage was caused by fall
  124. cancel event
  125. on rightclick:
  126. block is a sign
  127. line 1 of clicked block is "§3§l=========="
  128. line 2 of clicked block is "§b§lスポーンポイント"
  129. line 3 of clicked block is "§a§l[右クリック]"
  130. line 4 of clicked block is "§3§l=========="
  131. execute console command "/spawnpoint %player%"
  132. message "<aqua>スポーンポイントを設定しました!"
  133. command "/playsound minecraft:block.note.pling master %player% ~ ~ ~ 1 2 1"
  134. on damage:
  135. {damagelog.%attacker%} is 1
  136. wait a tick
  137. loop blocks in radius 1 around head of victim:
  138. add location of loop-block to {_blocks::*}
  139. set {_bl} to random element of {_blocks::*}
  140. set {damage.%attacker%} to {damage.%attacker%}*2
  141. set {damage2.%attacker%} to {damage.%attacker%}
  142. createHolo({_bl}, "&c&l-%{damage.%attacker%}%", 25 ticks)
  143. set {maxhpvic.%attacker%} to max health of victim * 2
  144. set {hpvic.%attacker%} to health of victim * 2
  145. send "%name of victim% &c&l-%{damage2.%attacker%}% &a&l%{maxhpvic.%attacker%}%/%{hpvic.%attacker%}% " to attacker
  146.  
  147. command /damagelog [<string>]:
  148. trigger:
  149. if arg 1 is not set:
  150. if {damagelog.%player%} is 1:
  151. set {damagelog.%player%} to 0
  152. message "&6&lダメージログをオフにしました"
  153. else if {damagelog.%player%} is 0:
  154. set {damagelog.%player%} to 1
  155. message "&6&lダメージログをオンにしました"
  156. else if arg 1 is "on":
  157. set {damagelog.%player%} to 1
  158. message "&6&lダメージログをオンにしました"
  159. else if arg 1 is "off":
  160. set {damagelog.%player%} to 0
  161. message "&6&lダメージログをオフにしました"
  162.  
  163. function createHolo(l: Location, t: Text, length: Timespan):
  164. create hologram "%{_t}%" at {_l} for {_length}
  165.  
  166. on break:
  167. player do not have permission "skript.builder"
  168. cancel event
  169.  
  170. on place:
  171. player do not have permission "skript.builder"
  172. cancel event
  173.  
  174. on craft:
  175. cancel event
  176.  
  177. on spread:
  178. cancel event
  179.  
  180. on burn:
  181. cancel event
  182. on explosion prime:
  183. cancel event
  184.  
  185. command /c:
  186. description: コマンドブロックを入手する
  187. usage: /c
  188. permission: skript.admin
  189. executable by: player
  190. trigger:
  191. give command block to player
  192. give redstone block to player
  193.  
  194. command /en:
  195. description: エンダーチェストを開く
  196. usage: /en
  197. executable by: player
  198. trigger:
  199. open the player's ender chest to the player
  200. command "/playsound minecraft:block.enderchest.open voice %player% ~ ~ ~ 1 1 1"
  201.  
  202. on command "/pl":
  203. if player doesn't have permission "skript.admin":
  204. cancel event
  205. 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."
  206.  
  207. on command "/plugins":
  208. if player doesn't have permission "skript.admin":
  209. cancel event
  210. 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."
  211.  
  212. on command "/?":
  213. if player doesn't have permission "skript.admin":
  214. cancel event
  215. 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."
  216.  
  217. on command "/help":
  218. if player doesn't have permission "skript.admin":
  219. cancel event
  220. 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."
  221.  
  222. on command "/bukkit:?":
  223. if player doesn't have permission "skript.admin":
  224. cancel event
  225. 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."
  226.  
  227. on command "/bukkit:pl":
  228. if player doesn't have permission "skript.admin":
  229. cancel event
  230. 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."
  231.  
  232. on join:
  233. if {join.%player%} is 1:
  234. set the join message to "&e%player%さんがサーバーに参加しました。"
  235. else:
  236. command "/tp %player% 0 4 0"
  237. set the join message to "&d%player%さんがサーバーに初参加しました。"
  238. wait a tick
  239. set {checkpoint.%player%} to location of player
  240. set {join.%player%} to 1
  241.  
  242. on quit:
  243. set the quit message to "&e%player%さんがサーバーから退出しました。"
  244.  
  245.  
  246. on rightclick on anvil:
  247. block under the event-block is iron block
  248. cancel event
  249. if name of held item contains "§r§c§l":
  250. if {tool.%player%} is set:
  251. message "&c既に武器がセットされています"
  252. else if {tool.%player%} is not set:
  253. set {tool.%player%} to player's tool
  254. set {tool.name.%player%} to name of player's tool
  255. delete player's tool
  256. message "&a武器をセットしました"
  257. else if name of held item is "§c§l§n強化石":
  258. if {tool.%player%} is not set:
  259. message "&c武器がセットされていません"
  260. else if name of {tool.%player%} contains "+":
  261. set {tool.name.%player%} to name of {tool.%player%}
  262. set {retool.name.%player%} to {tool.name.%player%}
  263. replace "§0" with "" in {tool.name.%player%}
  264. replace "§1" with "" in {tool.name.%player%}
  265. replace "§2" with "" in {tool.name.%player%}
  266. replace "§3" with "" in {tool.name.%player%}
  267. replace "§4" with "" in {tool.name.%player%}
  268. replace "§5" with "" in {tool.name.%player%}
  269. replace "§6" with "" in {tool.name.%player%}
  270. replace "§7" with "" in {tool.name.%player%}
  271. replace "§8" with "" in {tool.name.%player%}
  272. replace "§9" with "" in {tool.name.%player%}
  273. set {tool.number.%player%} to {tool.name.%player%}
  274. set {tool.number.%player%} to numpick({tool.number.%player%})
  275. set {retool.number.%player%} to {tool.number.%player%}
  276. if name of {tool.%player%} contains "10":
  277. message "§cこの武器はすでに強化値が10なのでこれ以上強化でません"
  278. stop
  279. else if {tool.number.%player%} is between 1 and 9:
  280. play sound "block.anvil.use" with pitch 2 at player
  281. set {percent} to random integer between 1 and 8
  282. execute console command "/clear tihi1059 minecraft:dye 1 1"
  283. set {tool.plus.%player%} to 0
  284. if {percent} is 1:
  285. add -2 to {tool.number.%player%}
  286. set {tool.plus.%player%} to 1
  287. else if {percent} is between 2 and 4:
  288. add -1 to {tool.number.%player%}
  289. set {tool.plus.%player%} to 1
  290. else if {percent} is between 5 and 7:
  291. add 1 to {tool.number.%player%}
  292. else if {percent} is 8:
  293. add 2 to {tool.number.%player%}
  294. wait a tick
  295. if {tool.number.%player%} is between -100 and 0:
  296. replace "§r§c§l+%{retool.number.%player%}%" with "§r§c§l" in {retool.name.%player%}
  297. set the name of {tool.%player%} to {retool.name.%player%}
  298. else if {tool.number.%player%} is between 1 and 9:
  299. replace "§r§c§l+%{retool.number.%player%}%" with "§r§c§l+%{tool.number.%player%}%" in {retool.name.%player%}
  300. set the name of {tool.%player%} to {retool.name.%player%}
  301. else if {tool.number.%player%} is between 10 and 100:
  302. replace "§r§c§l+%{retool.number.%player%}%" with "§r§c§l+10" in {retool.name.%player%}
  303. set the name of {tool.%player%} to {retool.name.%player%}
  304. wait a tick
  305. if {tool.number.%player%} is between -100 and 0:
  306. message "§3§l[強化失敗] §c§l強化後 +§60"
  307. if {tool.number.%player%} is between 1 and 10:
  308. if {tool.plus.%player%} is 1:
  309. message "§3§l[強化失敗] §a§l強化前 §c§l+§6§l%{retool.number.%player%}% §a→ §c§l強化後 +§6§l%{tool.number.%player%}%"
  310. else:
  311. message "§c§l[強化成功] §a§l強化前 +§6§l%{retool.number.%player%}% §a→ §c§l強化後 +§6§l%{tool.number.%player%}%"
  312. if {tool.number.%player%} is between 11 and 100:
  313. message "§c§l[強化成功] §a§l強化前 +§6§l%{retool.number.%player%}% §a→ §c§l強化後 +§6§l10"
  314. else if name of {tool.%player%} doesn't contain "+":
  315. play sound "block.anvil.use" with pitch 2 at player
  316. set {tool.name.%player%} to name of {tool.%player%}
  317. set {percent} to random integer between 1 and 8
  318. set {tool.number.%player%} to 0
  319. execute console command "/clear tihi1059 minecraft:dye 1 1"
  320. if {percent} is between 1 and 4:
  321. message "§c§l強化失敗"
  322. stop
  323. else if {percent} is between 5 and 7:
  324. set {tool.number.%player%} to 1
  325. else if {percent} is 8:
  326. set {tool.number.%player%} to 2
  327. replace "§r§c§l" with "§r§c§l+%{tool.number.%player%}%" in {tool.name.%player%}
  328. message "§c§l[強化成功] §c§l強化後 +§6§l%{tool.number.%player%}%"
  329. set the name of {tool.%player%} to {tool.name.%player%}
  330. else if name of held item is "§7§l強化リセット石":
  331. set {tool.name.%player%} to name of {tool.%player%}
  332. if name of {tool.%player%} contains "10":
  333. replace "§r§c§l+10" with "§r§c§l" in {tool.name.%player%}
  334. set the name of {tool.%player%} to {tool.name.%player%}
  335. message "§6§l武器強化をリセットしました"
  336. play sound "block.anvil.use" with pitch 2 at player
  337. else if name of {tool.%player%} contains "+":
  338. set {retool.name.%player%} to {tool.name.%player%}
  339. replace "§0" with "" in {retool.name.%player%}
  340. replace "§1" with "" in {retool.name.%player%}
  341. replace "§2" with "" in {retool.name.%player%}
  342. replace "§3" with "" in {retool.name.%player%}
  343. replace "§4" with "" in {retool.name.%player%}
  344. replace "§5" with "" in {retool.name.%player%}
  345. replace "§6" with "" in {retool.name.%player%}
  346. replace "§7" with "" in {retool.name.%player%}
  347. replace "§8" with "" in {retool.name.%player%}
  348. replace "§9" with "" in {retool.name.%player%}
  349. set {retool.name.%player%} to numpick({retool.name.%player%})
  350. replace "§r§c§l+%{retool.name.%player%}%" with "§r§c§l" in {tool.name.%player%}
  351. set the name of {tool.%player%} to {tool.name.%player%}
  352. execute console command "/clear tihi1059 minecraft:dye 8 1"
  353. message "§6§l武器強化をリセットしました"
  354. play sound "block.anvil.use" with pitch 2 at player
  355. else:
  356. if {tool.%player%} is set:
  357. give {tool.%player%} to player
  358. delete {tool.%player%}
  359. message "&a武器を戻しました"
  360.  
  361. on damage:
  362. if {skill.%attacker%} is 1:
  363. set {skilldamage.%attacker%} to damage + {ATTR.%attacker%}
  364. set {damage.%attacker%} to {skilldamage.%attacker%} * (100+{AttackBonus.%attacker%})/100
  365. set {skill.%attacker%} to 0
  366. send "Skill Do" to attacker
  367. set damage to {damage.%attacker%}
  368. else:
  369. set {damage.%attacker%} to damage * (100+{AttackBonus.%attacker%})/100
  370. set {damage2.%attacker%} to {damage.%attacker%}
  371. send "BUTURI DO" to attacker
  372. set damage to {damage.%attacker%}
  373.  
  374. on tool change:
  375. delete {AttackBonus.%player%}
  376. if name of player's tool contains "§r§c§l":
  377. if name of player's tool contains "10":
  378. set {AttackBonus.%player%} to 10
  379. else:
  380. set {usetool.%player%} to name of player's tool
  381. replace "§0" with "" in {usetool.%player%}
  382. replace "§1" with "" in {usetool.%player%}
  383. replace "§2" with "" in {usetool.%player%}
  384. replace "§3" with "" in {usetool.%player%}
  385. replace "§4" with "" in {usetool.%player%}
  386. replace "§5" with "" in {usetool.%player%}
  387. replace "§6" with "" in {usetool.%player%}
  388. replace "§7" with "" in {usetool.%player%}
  389. replace "§8" with "" in {usetool.%player%}
  390. replace "§9" with "" in {usetool.%player%}
  391. set {usetool.%player%} to numpick({usetool.%player%})
  392. set {AttackBonus.%player%} to {usetool.%player%}
  393. else:
  394. set {AttackBonus.%player%} to 0
  395.  
  396. function numpick(t:text) :: number:
  397. set {_text} to {_t}
  398. set {_args::*} to {_text} split at ""
  399. set {_count} to 1
  400. set {_re} to 0
  401. set {_b} to 1
  402. while {_args::%{_count}%} is set:
  403. set {_num} to {_args::%{_count}%} parsed as number
  404. if {_num} is set:
  405. add {_num} * {_b} to {_re}
  406. set {_b} to {_b} * 10
  407. clear {_num}
  408. add 1 to {_count}
  409. return {_re}
  410. options:
  411. count : 20
  412.  
  413. on tool change:
  414. wait 1 tick
  415. set {defense.%player%} to 0
  416. set {_line} to 1
  417. while {_line} is less than or equal to {@count}:
  418. if line {_line} of lore of player's helmet contains "防御力:":
  419. set {_lore1} to line {_line} of lore of player's helmet
  420. stop loop
  421. add 1 to {_line}
  422. set {_line} to 1
  423. while {_line} is less than or equal to {@count}:
  424. if line {_line} of lore of player's chestplate contains "防御力:":
  425. set {_lore2} to line {_line} of lore of player's chestplate
  426. stop loop
  427. add 1 to {_line}
  428. set {_line} to 1
  429. while {_line} is less than or equal to {@count}:
  430. if line {_line} of lore of player's leggings contains "防御力:":
  431. set {_lore3} to line {_line} of lore of player's leggings
  432. stop loop
  433. add 1 to {_line}
  434. set {_line} to 1
  435. while {_line} is less than or equal to {@count}:
  436. if line {_line} of lore of player's boots contains "防御力:":
  437. set {_lore4} to line {_line} of lore of player's boots
  438. stop loop
  439. add 1 to {_line}
  440. set {_n} to 1
  441. loop 4 times:
  442. replace "§1防御力: " with "" in {_lore%{_n}%}
  443. set {_lore%{_n}%} to {_lore%{_n}%} parsed as number
  444. add {_lore%{_n}%} to {defense.%player%}
  445. add 1 to {_n}
  446.  
  447. on damage:
  448. victim is a player
  449. set {playerdamage.%victim%} to damage - {defense.%victim%}
  450. if {playerdamage.%victim%} is greater than or equal to 1:
  451. set damage to {playerdamage.%victim%}
  452. {damagelog.%victim%} is 1
  453. set {playerdamage.%victim%} to {playerdamage.%victim%}*2
  454. send "§c§l%{playerdamage.%victim%}%ダメージ" to victim
  455. else:
  456. set damage to 1
  457. {damagelog.%victim%} is 1
  458. send "§c§l1ダメージ" to victim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement