Advertisement
sora200507

EnchantManager ver.Dev 1.1

Feb 19th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.98 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. set {_n} to "Protection %{_n}%"
  136. enchant sender's tool with {_n}
  137. message "&bエンチャントしました" to sender
  138. if {%sender%.enchant} is "firepro":
  139. set {_n} to "Fire Protection %{_n}%"
  140. enchant sender's tool with {_n}
  141. message "&bエンチャントしました" to sender
  142. if {%sender%.enchant} is "fallpro":
  143. set {_n} to "Feather Falling %{_n}%"
  144. enchant sender's tool with {_n}
  145. message "&bエンチャントしました" to sender
  146. if {%sender%.enchant} is "blastpro":
  147. set {_n} to "Blast Protection %{_n}%"
  148. enchant sender's tool with {_n}
  149. message "&bエンチャントしました" to sender
  150. if {%sender%.enchant} is "projepro":
  151. set {_n} to "Projectile Protection %{_n}%"
  152. enchant sender's tool with {_n}
  153. message "&bエンチャントしました" to sender
  154. if {%sender%.enchant} is "resp":
  155. set {_n} to "Respiration %{_n}%"
  156. enchant sender's tool with {_n}
  157. message "&bエンチャントしました" to sender
  158. if {%sender%.enchant} is "aqua":
  159. set {_n} to "Aqua Affinity %{_n}%"
  160. enchant sender's tool with {_n}
  161. message "&bエンチャントしました" to sender
  162. if {%sender%.enchant} is "thor":
  163. set {_n} to "Thorns %{_n}%"
  164. enchant sender's tool with {_n}
  165. message "&bエンチャントしました" to sender
  166. if {%sender%.enchant} is "dept":
  167. set {_n} to "Depth Strider %{_n}%"
  168. enchant sender's tool with {_n}
  169. message "&bエンチャントしました" to sender
  170. if {%sender%.enchant} is "shar":
  171. set {_n} to "Sharpness %{_n}%"
  172. enchant sender's tool with {_n}
  173. message "&bエンチャントしました" to sender
  174. if {%sender%.enchant} is "smit":
  175. set {_n} to "Smite %{_n}%"
  176. enchant sender's tool with {_n}
  177. message "&bエンチャントしました" to sender
  178. if {%sender%.enchant} is "bane":
  179. set {_n} to "Bane of Arthropods %{_n}%"
  180. enchant sender's tool with {_n}
  181. message "&bエンチャントしました" to sender
  182. if {%sender%.enchant} is "knoc":
  183. set {_n} to "Knockback %{_n}%"
  184. enchant sender's tool with {_n}
  185. message "&bエンチャントしました" to sender
  186. if {%sender%.enchant} is "fireas":
  187. set {_n} to "Fire Aspect %{_n}%"
  188. enchant sender's tool with {_n}
  189. message "&bエンチャントしました" to sender
  190. if {%sender%.enchant} is "loot":
  191. set {_n} to "Looting %{_n}%"
  192. enchant sender's tool with {_n}
  193. message "&bエンチャントしました" to sender
  194. if {%sender%.enchant} is "effi":
  195. set {_n} to "Efficiency %{_n}%"
  196. enchant sender's tool with {_n}
  197. message "&bエンチャントしました" to sender
  198. if {%sender%.enchant} is "unbr":
  199. set {_n} to "Unbreaking %{_n}%"
  200. enchant sender's tool with {_n}
  201. message "&bエンチャントしました" to sender
  202. if {%sender%.enchant} is "fort":
  203. set {_n} to "Fortune %{_n}%"
  204. enchant sender's tool with {_n}
  205. message "&bエンチャントしました" to sender
  206. if {%sender%.enchant} is "pow":
  207. set {_n} to "Power %{_n}%"
  208. enchant sender's tool with {_n}
  209. message "&bエンチャントしました" to sender
  210. if {%sender%.enchant} is "pun":
  211. set {_n} to "Punch %{_n}%"
  212. enchant sender's tool with {_n}
  213. message "&bエンチャントしました" to sender
  214. if {%sender%.enchant} is "fros":
  215. set {_n} to "Frost Walker %{_n}%"
  216. enchant sender's tool with {_n}
  217. message "&bエンチャントしました" to sender
  218. if {%sender%.enchant} is "luck":
  219. set {_n} to "Luck of the Sia %{_n}%"
  220. enchant sender's tool with {_n}
  221. message "&bエンチャントしました" to sender
  222. if {%sender%.enchant} is "lure":
  223. set {_n} to "Lure %{_n}%"
  224. enchant sender's tool with {_n}
  225. message "&bエンチャントしました" to sender
  226. function prot(p: player):
  227. close {_p}'s inventory
  228. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  229. set {%{_p}%.enchant} to "prot"
  230. stop
  231. function firepro(p: player):
  232. close {_p}'s inventory
  233. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  234. set {%{_p}%.enchant} to "firepro"
  235. stop
  236. function fallpro(p: player):
  237. close {_p}'s inventory
  238. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  239. set {%{_p}%.enchant} to "fallpro"
  240. stop
  241. function blastpro(p: player):
  242. close {_p}'s inventory
  243. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  244. set {%{_p}%.enchant} to "blastpro"
  245. stop
  246. function projepro(p: player):
  247. close {_p}'s inventory
  248. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  249. set {%{_p}%.enchant} to "projepro"
  250. stop
  251. function resp(p: player):
  252. close {_p}'s inventory
  253. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  254. set {%{_p}%.enchant} to "resp"
  255. stop
  256. function aqua(p: player):
  257. close {_p}'s inventory
  258. message "&bエンチャントしました" to {_p}
  259. enchant {_p}'s tool with Aqua Affinity
  260. stop
  261. function thor(p: player):
  262. close {_p}'s inventory
  263. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  264. set {%{_p}%.enchant} to "thor"
  265. stop
  266. function dept(p: player):
  267. close {_p}'s inventory
  268. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  269. set {%{_p}%.enchant} to "dept"
  270. stop
  271. function shar(p: player):
  272. close {_p}'s inventory
  273. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  274. set {%{_p}%.enchant} to "shar"
  275. stop
  276. function smit(p: player):
  277. close {_p}'s inventory
  278. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  279. set {%{_p}%.enchant} to "smit"
  280. stop
  281. function bane(p: player):
  282. close {_p}'s inventory
  283. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  284. set {%{_p}%.enchant} to "bane"
  285. stop
  286. function knoc(p: player):
  287. close {_p}'s inventory
  288. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  289. set {%{_p}%.enchant} to "knoc"
  290. stop
  291. function fireas(p: player):
  292. close {_p}'s inventory
  293. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  294. set {%{_p}%.enchant} to "fireas"
  295. stop
  296. function loot(p: player):
  297. close {_p}'s inventory
  298. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  299. set {%{_p}%.enchant} to "loot"
  300. stop
  301. function effi(p: player):
  302. close {_p}'s inventory
  303. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  304. set {%{_p}%.enchant} to "effi"
  305. stop
  306. function silk(p: player):
  307. close {_p}'s inventory
  308. message "&bエンチャントしました" to {_p}
  309. enchant {_p}'s tool with Silk Touch
  310. stop
  311. function unbr(p: player):
  312. close {_p}'s inventory
  313. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  314. set {%{_p}%.enchant} to "unbr"
  315. stop
  316. function fort(p: player):
  317. close {_p}'s inventory
  318. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  319. set {%{_p}%.enchant} to "fort"
  320. stop
  321. function mend(p: player):
  322. close {_p}'s inventory
  323. enchant {_p}'s tool with Mending
  324. message "&bエンチャントしました" to {_p}
  325. stop
  326. function pow(p: player):
  327. close {_p}'s inventory
  328. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  329. set {%{_p}%.enchant} to "pow"
  330. stop
  331. function pun(p: player):
  332. close {_p}'s inventory
  333. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  334. set {%{_p}%.enchant} to "pun"
  335. stop
  336. function fla(p: player):
  337. close {_p}'s inventory
  338. enchant {_p}'s tool with Flame
  339. message "&bエンチャントしました" to {_p}
  340. stop
  341. function infi(p: player):
  342. close {_p}'s inventory
  343. enchant {_p}'s tool with Infinity
  344. message "&bエンチャントしました" to {_p}
  345. stop
  346. function fros(p: player):
  347. close {_p}'s inventory
  348. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  349. set {%{_p}%.enchant} to "fros"
  350. stop
  351. function luck(p: player):
  352. close {_p}'s inventory
  353. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  354. set {%{_p}%.enchant} to "luck"
  355. stop
  356. function lure(p: player):
  357. close {_p}'s inventory
  358. message "&bチャットに付与するエンチャントのレベルを入力してください" to {_p}
  359. set {%{_p}%.enchant} to "lure"
  360. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement