sora200507

EnchantManager ver.Dev

Feb 19th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.35 KB | None | 0 0
  1. #EnchantManager
  2. #Create by soramame
  3. #二次配布は禁止です 必ずPlayerRealms Skript Communityに参加した状態でダウンロードしてください!
  4. #また バグ報告はsoramame_256#0256にDMでしてください!
  5. #以下 コード 変更する際は自己責任で御願いします 変更されている場合のコードのエラーは対応できません
  6. #---------------------------------------------------------------------------------------
  7. command /enchantmanager:
  8. permission: enchantmanager.use
  9. trigger:
  10. if player's tool isn't air:
  11. open chest with 6 rows named "&bEnchantManager" to player
  12. wait 1 tick
  13. set slot 0 of player's current inventory to player's tool
  14. set slot 10 of player's current inventory to glowing book named "&bダメージ軽減" with lore "&b手に持っているアイテムにダメージ軽減を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  15. set slot 11 of player's current inventory to glowing book named "&b火炎耐性" with lore "&b手に持っているアイテムに火炎耐性を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  16. set slot 12 of player's current inventory to glowing book named "&b落下耐性" with lore "&b手に持っているアイテムに落下耐性を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  17. set slot 13 of player's current inventory to glowing book named "&b爆発耐性" with lore "&b手に持っているアイテムに爆発耐性を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  18. set slot 14 of player's current inventory to glowing book named "&b飛び道具耐性" with lore "&b手に持っているアイテムに飛び道具耐性を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  19. set slot 15 of player's current inventory to glowing book named "&b水中呼吸" with lore "&b手に持っているアイテムに水中呼吸を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  20. set slot 16 of player's current inventory to glowing book named "&b水中採掘" with lore "&b手に持っているアイテムに水中採掘を付与します"
  21. set slot 19 of player's current inventory to glowing book named "&b棘の鎧" with lore "&b手に持っているアイテムに棘の鎧を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  22. set slot 20 of player's current inventory to glowing book named "&b水中歩行" with lore "&b手に持っているアイテムに水中歩行を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  23. set slot 21 of player's current inventory to glowing book named "&bダメージ増加" with lore "&b手に持っているアイテムにダメージ増加を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  24. set slot 22 of player's current inventory to glowing book named "&bアンデット特攻" with lore "&b手に持っているアイテムにアンデット特攻を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  25. set slot 23 of player's current inventory to glowing book named "&b虫特攻" with lore "&b手に持っているアイテムに虫特攻を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  26. set slot 24 of player's current inventory to glowing book named "&bノックバック" with lore "&b手に持っているアイテムにノックバックを付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  27. set slot 25 of player's current inventory to glowing book named "&b火属性" with lore "&b手に持っているアイテムに火属性を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  28. set slot 28 of player's current inventory to glowing book named "&bドロップ増加" with lore "&b手に持っているアイテムにドロップ増加を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  29. set slot 29 of player's current inventory to glowing book named "&b効率強化" with lore "&b手に持っているアイテムに効率強化を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  30. set slot 30 of player's current inventory to glowing book named "&bシルクタッチ" with lore "&b手に持っているアイテムにシルクタッチを付与します"
  31. set slot 31 of player's current inventory to glowing book named "&b耐久力" with lore "&b手に持っているアイテムに耐久力を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  32. set slot 32 of player's current inventory to glowing book named "&b幸運" with lore "&b手に持っているアイテムに幸運を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  33. set slot 33 of player's current inventory to glowing book named "&b射撃ダメージ増加" with lore "&b手に持っているアイテムに射撃ダメージ増加を付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  34. set slot 34 of player's current inventory to glowing book named "&bパンチ" with lore "&b手に持っているアイテムにパンチを付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  35. set slot 37 of player's current inventory to glowing book named "&bフレイム" with lore "&b手に持っているアイテムにフレイムを付与します"
  36. set slot 38 of player's current inventory to glowing book named "&b無限" with lore "&b手に持っているアイテムに無限を付与します"
  37. set slot 39 of player's current inventory to glowing book named "&b宝釣り" with lore "&b手に持っているアイテムに宝釣りを付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  38. set slot 40 of player's current inventory to glowing book named "&b入れ食い" with lore "&b手に持っているアイテムに入れ食いを付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  39. set slot 41 of player's current inventory to glowing book named "&b修繕" with lore "&b手に持ってるアイテムに修繕を付与します"
  40. set slot 42 of player's current inventory to glowing book named "&b氷渡り" with lore "&b手に持っているアイテムに氷渡りを付与します" and "&bレベルの設定はクリック後にチャットでしてください"
  41. set slot 53 of player's current inventory to red_wool_block named "&cエンチャントをすべて破棄" with lore "&cエンチャントをすべて破棄します"
  42. else:
  43. message "&cError! アイテムを所持した状態でないと使用できません!"
  44. on inventory click:
  45. if name of player's current inventory contains "&bEnchantManager":
  46. if clicked slot is 10:
  47. cancel event
  48. prot(player)
  49. if clicked slot is 11:
  50. cancel event
  51. firepro(player)
  52. if clicked slot is 12:
  53. cancel event
  54. fallpro(player)
  55. if clicked slot is 13:
  56. cancel event
  57. blastpro(player)
  58. if clicked slot is 14:
  59. cancel event
  60. projepro(player)
  61. if clicked slot is 15:
  62. cancel event
  63. resp(player)
  64. if clicked slot is 16:
  65. cancel event
  66. aqua(player)
  67. if clicked slot is 19:
  68. cancel event
  69. thor(player)
  70. if clicked slot is 20:
  71. cancel event
  72. dept(player)
  73. if clicked slot is 21:
  74. cancel event
  75. shar(player)
  76. if clicked slot is 22:
  77. cancel event
  78. smit(player)
  79. if clicked slot is 23:
  80. cancel event
  81. bane(player)
  82. if clicked slot is 24:
  83. cancel event
  84. knoc(player)
  85. if clicked slot is 25:
  86. cancel event
  87. fireas(player)
  88. if clicked slot is 28:
  89. cancel event
  90. loot(player)
  91. if clicked slot is 29:
  92. cancel event
  93. effi(player)
  94. if clicked slot is 30:
  95. cancel event
  96. silk(player)
  97. if clicked slot is 31:
  98. cancel event
  99. unbr(player)
  100. if clicked slot is 32:
  101. cancel event
  102. fort(player)
  103. if clicked slot is 33:
  104. cancel event
  105. pow(player)
  106. if clicked slot is 34:
  107. cancel event
  108. pun(player)
  109. if clicked slot is 37:
  110. cancel event
  111. fla(player)
  112. if clicked slot is 38:
  113. cancel event
  114. infi(player)
  115. if clicked slot is 39:
  116. cancel event
  117. luck(player)
  118. if clicked slot is 40:
  119. cancel event
  120. lure(player)
  121. if clicked slot is 41:
  122. cancel event
  123. mend(player)
  124. if clicked slot is 42:
  125. cancel event
  126. fros(player)
  127. on chat:
  128. if {%sender%.enchant} is set:
  129. cancel event
  130. if sender's tool isn't air:
  131. if message is number:
  132. set {_n} to message
  133. if {_n} <= 32768:
  134. if {%sender%.enchant} is "prot":
  135. enchant sender's tool with protection {_n}
  136. message "&bエンチャントしました" to sender
  137. if {%sender%.enchant} is "firepro":
  138. enchant sender's tool with Fire Protection {_n}
  139. message "&bエンチャントしました" to sender
  140. if {%sender%.enchant} is "fallpro":
  141. enchant sender's tool with Feather Falling {_n}
  142. message "&bエンチャントしました" to sender
  143. if {%sender%.enchant} is "blastpro":
  144. enchant sender's tool with Blast Protection {_n}
  145. message "&bエンチャントしました" to sender
  146. if {%sender%.enchant} is "projepro":
  147. enchant sender's tool with Projectile Protection {_n}
  148. message "&bエンチャントしました" to sender
  149. if {%sender%.enchant} is "resp":
  150. enchant sender's tool with Respiration {_n}
  151. message "&bエンチャントしました" to sender
  152. if {%sender%.enchant} is "aqua":
  153. enchant sender's tool with Aqua Affinity {_n}
  154. message "&bエンチャントしました" to sender
  155. if {%sender%.enchant} is "thor":
  156. enchant sender's tool with Thorns {_n}
  157. message "&bエンチャントしました" to sender
  158. if {%sender%.enchant} is "dept":
  159. enchant sender's tool with Depth Strider {_n}
  160. message "&bエンチャントしました" to sender
  161. if {%sender%.enchant} is "shar":
  162. enchant sender's tool with Sharpness {_n}
  163. message "&bエンチャントしました" to sender
  164. if {%sender%.enchant} is "smit":
  165. enchant sender's tool with Smite {_n}
  166. message "&bエンチャントしました" to sender
  167. if {%sender%.enchant} is "bane":
  168. enchant sender's tool with Bane of Arthropods {_n}
  169. message "&bエンチャントしました" to sender
  170. if {%sender%.enchant} is "knoc":
  171. enchant sender's tool with Knockback {_n}
  172. message "&bエンチャントしました" to sender
  173. if {%sender%.enchant} is "fireas":
  174. enchant sender's tool with Fire Aspect {_n}
  175. message "&bエンチャントしました" to sender
  176. if {%sender%.enchant} is "loot":
  177. enchant sender's tool with Looting {_n}
  178. message "&bエンチャントしました" to sender
  179. if {%sender%.enchant} is "effi":
  180. enchant sender's tool with Efficiency {_n}
  181. message "&bエンチャントしました" to sender
  182. if {%sender%.enchant} is "unbr":
  183. enchant sender's tool with Unbreaking {_n}
  184. message "&bエンチャントしました" to sender
  185. if {%sender%.enchant} is "fort":
  186. enchant sender's tool with Fortune {_n}
  187. message "&bエンチャントしました" to sender
  188. if {%sender%.enchant} is "pow":
  189. enchant sender's tool with Power {_n}
  190. message "&bエンチャントしました" to sender
  191. if {%sender%.enchant} is "pun":
  192. enchant sender's tool with Punch {_n}
  193. message "&bエンチャントしました" to sender
  194. if {%sender%.enchant} is "fros":
  195. enchant sender's tool with Frost Walker {_n}
  196. message "&bエンチャントしました" to sender
  197. if {%sender%.enchant} is "luck":
  198. enchant sender's tool with Luck of the Sia {_n}
  199. message "&bエンチャントしました" to sender
  200. if {%sender%.enchant} is "lure":
  201. enchant sender's tool with Lure {_n}
  202. message "&bエンチャントしました" to sender
  203. function prot(p: player):
  204. close {_p}'s inventory
  205. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  206. set {%{_p}%.enchant} to "prot"
  207. stop
  208. function firepro(p: player):
  209. close {_p}'s inventory
  210. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  211. set {%{_p}%.enchant} to "firepro"
  212. stop
  213. function fallpro(p: player):
  214. close {_p}'s inventory
  215. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  216. set {%{_p}%.enchant} to "fallpro"
  217. stop
  218. function blastpro(p: player):
  219. close {_p}'s inventory
  220. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  221. set {%{_p}%.enchant} to "blastpro"
  222. stop
  223. function projepro(p: player):
  224. close {_p}'s inventory
  225. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  226. set {%{_p}%.enchant} to "projepro"
  227. stop
  228. function resp(p: player):
  229. close {_p}'s inventory
  230. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  231. set {%{_p}%.enchant} to "resp"
  232. stop
  233. function aqua(p: player):
  234. close {_p}'s inventory
  235. message "&bエンチャントしました" to {_p}
  236. enchant {_p}'s tool with Aqua Affinity
  237. stop
  238. function thor(p: player):
  239. close {_p}'s inventory
  240. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  241. set {%{_p}%.enchant} to "thor"
  242. stop
  243. function dept(p: player):
  244. close {_p}'s inventory
  245. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  246. set {%{_p}%.enchant} to "dept"
  247. stop
  248. function shar(p: player):
  249. close {_p}'s inventory
  250. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  251. set {%{_p}%.enchant} to "shar"
  252. stop
  253. function smit(p: player):
  254. close {_p}'s inventory
  255. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  256. set {%{_p}%.enchant} to "smit"
  257. stop
  258. function bane(p: player):
  259. close {_p}'s inventory
  260. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  261. set {%{_p}%.enchant} to "bane"
  262. stop
  263. function knoc(p: player):
  264. close {_p}'s inventory
  265. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  266. set {%{_p}%.enchant} to "knoc"
  267. stop
  268. function fireas(p: player):
  269. close {_p}'s inventory
  270. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  271. set {%{_p}%.enchant} to "fireas"
  272. stop
  273. function loot(p: player):
  274. close {_p}'s inventory
  275. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  276. set {%{_p}%.enchant} to "loot"
  277. stop
  278. function effi(p: player):
  279. close {_p}'s inventory
  280. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  281. set {%{_p}%.enchant} to "effi"
  282. stop
  283. function silk(p: player):
  284. close {_p}'s inventory
  285. message "&bエンチャントしました" to {_p}
  286. enchant {_p}'s tool with Silk Touch
  287. stop
  288. function unbr(p: player):
  289. close {_p}'s inventory
  290. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  291. set {%{_p}%.enchant} to "unbr"
  292. stop
  293. function fort(p: player):
  294. close {_p}'s inventory
  295. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  296. set {%{_p}%.enchant} to "fort"
  297. stop
  298. function mend(p: player):
  299. close {_p}'s inventory
  300. enchant {_p}'s tool with Mending
  301. message "&bエンチャントしました" to {_p}
  302. stop
  303. function pow(p: player):
  304. close {_p}'s inventory
  305. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  306. set {%{_p}%.enchant} to "pow"
  307. stop
  308. function pun(p: player):
  309. close {_p}'s inventory
  310. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  311. set {%{_p}%.enchant} to "pun"
  312. stop
  313. function fla(p: player):
  314. close {_p}'s inventory
  315. enchant {_p}'s tool with Flame
  316. message "&bエンチャントしました" to {_p}
  317. stop
  318. function infi(p: player):
  319. close {_p}'s inventory
  320. enchant {_p}'s tool with Infinity
  321. message "&bエンチャントしました" to {_p}
  322. stop
  323. function fros(p: player):
  324. close {_p}'s inventory
  325. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  326. set {%{_p}%.enchant} to "fros"
  327. stop
  328. function luck(p: player):
  329. close {_p}'s inventory
  330. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  331. set {%{_p}%.enchant} to "luck"
  332. stop
  333. function lure(p: player):
  334. close {_p}'s inventory
  335. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  336. set {%{_p}%.enchant} to "lure"
  337. stop
Add Comment
Please, Sign In to add comment