kuragonn

Untitled

Nov 16th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.23 KB | None | 0 0
  1. #全体オプション
  2.  
  3. options:
  4. Title: 未定(後々設定)
  5.  
  6. #SK reload
  7.  
  8. on load:
  9. broadcast "&a[&cSkript&a] リロードが完了しました。"
  10.  
  11.  
  12. every 3 ticks:
  13. loop all players:
  14. set the text of id "%loop-player%10" to "&7&l< &e&l%loop-player% &7&l>"
  15. set the text of id "%loop-player%9" to "&e"
  16. set the text of id "%loop-player%8" to "&6&lLevel &7&l> &c&l%{Level.%loop-player%}%"
  17. set the text of id "%loop-player%7" to "&6&lExp &7&l> &c&l%{Exp.%loop-player%}%&7/&6%2*(5*{Level.%loop-player%}+{Level.%loop-player%}^2)+100%"
  18. set the text of id "%loop-player%6" to "&f"
  19. set the text of id "%loop-player%5" to "&6&lMoney &7&l> &c&l%{Money.%loop-player%}%&6G"
  20. set the text of id "%loop-player%4" to "&6&lふはは"
  21.  
  22. #sidebar on join
  23.  
  24. on join:
  25. wait 0.2 seconds
  26. create a new stylish scoreboard named "%player%"
  27. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  28. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  29. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  30. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  31. create a new id based score "%player%7" with text "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*(5*{Level.%player%}+{Level.%player%}^2)+100%" slot 7 for stylish scoreboard "%player%"
  32. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  33. create a new id based score "%player%5" with text "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G" slot 5 for stylish scoreboard "%player%"
  34. create a new id based score "%player%4" with text "&6&lふはは" slot 4 for stylish scoreboard "%player%"
  35. set stylish scoreboard of player to "%player%"
  36.  
  37. #reset
  38.  
  39. command /reset:
  40. trigger:
  41. set {Level.%player%} to 1
  42. set {Exp.%player%} to 0
  43. set {Money.%player%} to 100
  44. set {Fire.point.%player%} to 0
  45. set {Water.point.%player%} to 0
  46. set {Leaf.point.%player%} to 0
  47. set {Electricity.point.%player%} to 0
  48. set {Shadow.point.%player%} to 0
  49. set {Status.point.%player%} to 5
  50. send "&bステータスをリセットしました。"
  51.  
  52. #status set
  53.  
  54. command /setstatus [<text>] [<text>] [<number>] :
  55. trigger:
  56. if arg 2 is "level":
  57. set {Level.%arg 1%} to arg 3
  58. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  59. stop
  60. if arg 2 is "exp":
  61. set {Exp.%arg 1%} to arg 3
  62. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  63. stop
  64. if arg 2 is "money":
  65. set {Money.%arg 1%} to arg 3
  66. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  67. stop
  68. if arg 2 is "fire":
  69. set {Fire.point.%arg 1%} to arg 3
  70. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  71. stop
  72. if arg 2 is "water":
  73. set {Water.point.%arg 1%} to arg 3
  74. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  75. stop
  76. if arg 2 is "leaf":
  77. set {Leaf.point.%arg 1%} to arg 3
  78. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  79. stop
  80. if arg 2 is "Electricity":
  81. set {Electricity.point.%arg 1%} to arg 3
  82. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  83. stop
  84. if arg 2 is "shadow":
  85. set {Shadow.point.%arg 1%} to arg 3
  86. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  87. stop
  88. if arg 2 is "status":
  89. set {Status.point.%arg 1%} to arg 3
  90. send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
  91. stop
  92. else:
  93. send "&4Skript error"
  94. stop
  95.  
  96.  
  97.  
  98. #score 設定
  99.  
  100. command /applyboard:
  101. trigger:
  102. create a new stylish scoreboard named "%player%"
  103. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  104. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  105. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  106. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  107. create a new id based score "%player%7" with text "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*(5*{Level.%player%}+{Level.%player%}^2)+100%" slot 7 for stylish scoreboard "%player%"
  108. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  109. create a new id based score "%player%5" with text "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G" slot 5 for stylish scoreboard "%player%"
  110. create a new id based score "%player%4" with text "&6&lふはは" slot 4 for stylish scoreboard "%player%"
  111. set stylish scoreboard of player to "%player%"
  112.  
  113.  
  114.  
  115. command /updatescores:
  116. trigger:
  117. set the text of id "%player%10" to "&7&l< &e&l%player% &7&l>"
  118. set the text of id "%player%9" to "&e"
  119. set the text of id "%player%8" to "&6&lLevel &7&l> &c&l%{Level.%player%}%"
  120. set the text of id "%player%7" to "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*(5*{Level.%player%}+{Level.%player%}^2)+100%"
  121. set the text of id "%player%6" to "&f"
  122. set the text of id "%player%5" to "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G"
  123. set the text of id "%player%4" to "&6&lふはは"
  124.  
  125. command /removeboard:
  126. trigger:
  127. reset stylish scoreboard of player
  128. delete stylish scoreboard named "%player%"
  129.  
  130. #TAB
  131.  
  132. on join:
  133. loop all players:
  134. set tab header to "&6&lThe Fantasy RPG Server" and footer to "&eOnline players &7: &e%amount of all players%&7/&e15" for loop-player
  135.  
  136.  
  137. on quit:
  138. loop all players:
  139. wait 0.5 ticks
  140. set tab header to "&6&lThe Fantasy RPG Server" and footer to "&eOnline players &7: &e%amount of all players%&7/&e15" for loop-player
  141.  
  142.  
  143.  
  144. #Join&Quitメッセージ表示
  145. on join:
  146. set join message to "&7[&a+&7] &7%player%"
  147.  
  148.  
  149. on quit:
  150. set quit message to "&7[&c-&7] &7%player%"
  151.  
  152.  
  153. on first join:
  154. set join message to "&7[&a+&7] &7%player% &e-&6New&e-"
  155. set {Level.%player%} to 1
  156. set {Exp.%player%} to 0
  157. set {Money.%player%} to 100
  158. set {Soul.%player%} to 5
  159. set {Fire.point.%player%} to 0
  160. set {Water.point.%player%} to 0
  161. set {Leaf.point.%player%} to 0
  162. set {Electricity.point.%player%} to 0
  163. set {Shadow.point.%player%} to 0
  164. set {Status.point.%player%} to 5
  165.  
  166. #level up
  167.  
  168. on death:
  169. wait 2 ticks
  170. if {Exp.%attacker%} is more than 2*(5*{Level.%attacker%}+{Level.%attacker%}^2)+99:
  171. add 1 to {status.point.%attacker%}
  172. send "&bレベルが上がりました。" to attacker
  173.  
  174. #respawn
  175.  
  176. on respawn:
  177. wait 2 ticks
  178. create a new stylish scoreboard named "%player%"
  179. set title of stylish scoreboard "%player%" to "&6&l-&c&lLostWorld&6&l-"
  180. create a new id based score "%player%10" with text "&7&l< &e&l%player% &7&l>" slot 10 for stylish scoreboard "%player%"
  181. create a new id based score "%player%9" with text "&e" slot 9 for stylish scoreboard "%player%"
  182. create a new id based score "%player%8" with text "&6&lLevel &7&l> &c&l%{Level.%player%}%" slot 8 for stylish scoreboard "%player%"
  183. create a new id based score "%player%7" with text "&6&lExp &7&l> &c&l%{Exp.%player%}%&7/&6%2*(5*{Level.%player%}+{Level.%player%}^2)+100%" slot 7 for stylish scoreboard "%player%"
  184. create a new id based score "%player%6" with text "&f" slot 6 for stylish scoreboard "%player%"
  185. create a new id based score "%player%5" with text "&6&lMoney &7&l> &c&l%{Money.%player%}%&6G" slot 5 for stylish scoreboard "%player%"
  186. create a new id based score "%player%4" with text "&6&lふはは" slot 4 for stylish scoreboard "%player%"
  187. set stylish scoreboard of player to "%player%"
  188.  
  189.  
  190. #&6&lSoul &7&l> &c&l%{Soul.%player%}%&7/&65
  191.  
  192.  
  193. #attribution
  194. command /attribution [<number>] [<player>]:
  195. trigger:
  196. if arg 1 is 1:
  197. wait 2 ticks
  198. open chest with 0 rows named "&9&l≫&6&lFireを付与する武器を選択してください" to arg 2
  199. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  200. if arg 1 is 2:
  201. wait 2 ticks
  202. open chest with 0 rows named "&9&l≫&6&6Waterを付与する武器を選択してください" to arg 2
  203. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  204. if arg 1 is 3:
  205. wait 2 ticks
  206. open chest with 0 rows named "&9&l≫&6&lLeafを付与する武器を選択してください" to arg 2
  207. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  208. if arg 1 is 4:
  209. wait 2 ticks
  210. open chest with 0 rows named "&9&l≫&6&lElectricityを付与する武器を選択してください" to arg 2
  211. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  212. if arg 1 is 5:
  213. wait 2 ticks
  214. open chest with 0 rows named "&9&l≫&6&lShadowを付与する武器を選択してください" to arg 2
  215. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  216.  
  217.  
  218. on inventory click:
  219. if lore of clicked item doesn't contain "&8&l??? &7&lWeapon":
  220. cancel event
  221. send "&6その武器に属性は付与できません"
  222. if lore of clicked item contain "&8&l??? &7&lWeapon":
  223. if inventory name of player's current inventory is "&9&l≫&6&lFireを付与する武器を選択してください":
  224. cancel event
  225. if clicked item is iron sword:
  226. set line 1 of lore of clicked item to "&4&lFire &7&lWeapon"
  227. send "&6武器に属性を付与しました"
  228. close inventory of player
  229. stop
  230. if clicked item is wood sword:
  231. set line 1 of lore of clicked item to "&4&lFire &7&lWeapon"
  232. send "&6武器に属性を付与しました"
  233. close inventory of player
  234. stop
  235. if clicked item is golden sword:
  236. set line 1 of lore of clicked item to "&4&lFire &7&lWeapon"
  237. send "&6武器に属性を付与しました"
  238. close inventory of player
  239. stop
  240. if clicked item is diamond sword:
  241. set line 1 of lore of clicked item to "&4&lFire &7&lWeapon"
  242. send "&6武器に属性を付与しました"
  243. close inventory of player
  244. stop
  245. if clicked item is stone sword:
  246. set line 1 of lore of clicked item to "&4&lFire &7&lWeapon"
  247. send "&6武器に属性を付与しました"
  248. close inventory of player
  249. stop
  250. else:
  251. send "&6武器を選択してください"
  252. stop
  253. if inventory name of player's current inventory is "&9&l≫&6&lWaterを付与する武器を選択してください":
  254. cancel event
  255. if clicked item is iron sword:
  256. set line 1 of lore of clicked item to "&b&lWater &7&lWeapon"
  257. send "&6武器に属性を付与しました"
  258. close inventory of player
  259. stop
  260. if clicked item is wood sword:
  261. set line 1 of lore of clicked item to "&b&lWater &7&lWeapon"
  262. send "&6武器に属性を付与しました"
  263. close inventory of player
  264. stop
  265. if clicked item is golden sword:
  266. set line 1 of lore of clicked item to "&b&lWater &7&lWeapon"
  267. send "&6武器に属性を付与しました"
  268. close inventory of player
  269. stop
  270. if clicked item is diamond sword:
  271. set line 1 of lore of clicked item to "&b&lWater &7&lWeapon"
  272. send "&6武器に属性を付与しました"
  273. close inventory of player
  274. stop
  275. if clicked item is stone sword:
  276. set line 1 of lore of clicked item to "&b&lWater &7&lWeapon"
  277. send "&6武器に属性を付与しました"
  278. close inventory of player
  279. stop
  280. if clicked item is iron sword:
  281. set line 1 of lore of clicked item to "&b&lWater &7&lWeapon"
  282. send "&6武器に属性を付与しました"
  283. close inventory of player
  284. stop
  285. else:
  286. send "&6武器を選択してください"
  287. stop
  288. if inventory name of player's current inventory is "&9&l≫&6&lLeafを付与する武器を選択してください":
  289. cancel event
  290. if clicked item is iron sword:
  291. set line 1 of lore of clicked item to "&2&lLeaf &7&lWeapon"
  292. send "&6武器に属性を付与しました"
  293. close inventory of player
  294. stop
  295. if clicked item is wood sword:
  296. set line 1 of lore of clicked item to "&2&lLeaf &7&lWeapon"
  297. send "&6武器に属性を付与しました"
  298. close inventory of player
  299. stop
  300. if clicked item is golden sword:
  301. set line 1 of lore of clicked item to "&2&lLeaf &7&lWeapon"
  302. send "&6武器に属性を付与しました"
  303. close inventory of player
  304. stop
  305. if clicked item is diamond sword:
  306. set line 1 of lore of clicked item to "&2&lLeaf &7&lWeapon"
  307. send "&6武器に属性を付与しました"
  308. close inventory of player
  309. stop
  310. if clicked item is stone sword:
  311. set line 1 of lore of clicked item to "&2&lLeaf &7&lWeapon"
  312. send "&6武器に属性を付与しました"
  313. close inventory of player
  314. stop
  315. else:
  316. send "&6武器を選択してください"
  317. stop
  318. if inventory name of player's current inventory is "&9&l≫&6&lElectricityを付与する武器を選択してください":
  319. cancel event
  320. if clicked item is iron sword:
  321. set line 1 of lore of clicked item to "&e&lElectricity &7&lWeapon"
  322. send "&6武器に属性を付与しました"
  323. close inventory of player
  324. stop
  325. if clicked item is wood sword:
  326. set line 1 of lore of clicked item to "&e&lElectricity &7&lWeapon"
  327. send "&6武器に属性を付与しました"
  328. close inventory of player
  329. stop
  330. if clicked item is golden sword:
  331. set line 1 of lore of clicked item to "&e&lElectricity &7&lWeapon"
  332. send "&6武器に属性を付与しました"
  333. close inventory of player
  334. stop
  335. if clicked item is diamond sword:
  336. set line 1 of lore of clicked item to "&e&lElectricity &7&lWeapon"
  337. send "&6武器に属性を付与しました"
  338. close inventory of player
  339. stop
  340. if clicked item is stone sword:
  341. set line 1 of lore of clicked item to "&e&lElectricity &7&lWeapon"
  342. send "&6武器に属性を付与しました"
  343. close inventory of player
  344. stop
  345. else:
  346. send "&6武器を選択してください"
  347. stop
  348. if inventory name of player's current inventory is "&9&l≫&6&lShadowを付与する武器を選択してください":
  349. cancel event
  350. if clicked item is iron sword:
  351. set line 1 of lore of clicked item to "&5&lShadow &7&lWeapon"
  352. send "&6武器に属性を付与しました"
  353. close inventory of player
  354. stop
  355. if clicked item is wood sword:
  356. set line 1 of lore of clicked item to "&5&lShadow &7&lWeapon"
  357. send "&6武器に属性を付与しました"
  358. close inventory of player
  359. stop
  360. if clicked item is golden sword:
  361. set line 1 of lore of clicked item to "&5&lShadow &7&lWeapon"
  362. send "&6武器に属性を付与しました"
  363. close inventory of player
  364. stop
  365. if clicked item is diamond sword:
  366. set line 1 of lore of clicked item to "&5&lShadow &7&lWeapon"
  367. send "&6武器に属性を付与しました"
  368. close inventory of player
  369. stop
  370. if clicked item is stone sword:
  371. set line 1 of lore of clicked item to "&5&lShadow &7&lWeapon"
  372. send "&6武器に属性を付与しました"
  373. close inventory of player
  374. stop
  375. else:
  376. send "&6武器を選択してください"
  377. stop
  378.  
  379.  
  380. on right click on enchantment table:
  381. block under block is lapis block
  382. cancel event
  383. player's tool exist
  384. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  385. wait 2 ticks
  386. open chest with 5 rows named "&9&l≫&6&l付与する属性を選択してください" to player
  387. wait 1 tick
  388. format slot 11 of player with iron sword named "&4&lFire&6を付与する" with lore "&4選択する武器にFireを付与します" to run "attribution 1 %player%"
  389. format slot 13 of player with iron sword named "&b&lWater&6を付与する" with lore "&b選択する武器にWaterを付与します" to run "attribution 2 %player%"
  390. format slot 15 of player with iron sword named "&2&lLeaf&6を付与する" with lore "&3選択する武器にLeafを付与します" to run "attribution 3 %player%"
  391. format slot 30 of player with iron sword named "&e&lElectricity&6を付与する" with lore "&e選択する武器にElectricityを付与します" to run "attribution 4 %player%"
  392. format slot 32 of player with iron sword named "&5&lShadow&6を付与する" with lore "&5選択する武器にShadowを付与します" to run "attribution 5 %player%"
  393.  
  394.  
  395. #attribution of Mobs
  396.  
  397.  
  398. #sound
  399.  
  400. on inventory click:
  401. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
  402.  
  403. on command:
  404. play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 3
  405.  
  406. #attribution status
  407.  
  408. command /atts [<number>] [<player>]:
  409. trigger:
  410. if arg 1 is 1:
  411. open chest with 5 rows named "&9&l≫&6&lステータス" to player
  412. format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
  413. format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
  414. format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
  415. format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
  416. format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
  417. stop
  418. if arg 1 is 2:
  419. add 1 to {Fire.point.%player%}
  420. open chest with 5 rows named "&9&l≫&6&lステータス" to player
  421. format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
  422. format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
  423. format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
  424. format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
  425. format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
  426. stop
  427. if arg 1 is 3:
  428. add 1 to {Water.point.%player%}
  429. open chest with 5 rows named "&9&l≫&6&lステータス" to player
  430. format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
  431. format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
  432. format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
  433. format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
  434. format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
  435. stop
  436. if arg 1 is 4:
  437. add 1 to {Leaf.point.%player%}
  438. open chest with 5 rows named "&9&l≫&6&lステータス" to player
  439. format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
  440. format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
  441. format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
  442. format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
  443. format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
  444. stop
  445. if arg 1 is 5:
  446. add 1 to {Electricity.point.%player%}
  447. open chest with 5 rows named "&9&l≫&6&lステータス" to player
  448. format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
  449. format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
  450. format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
  451. format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
  452. format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
  453. stop
  454. if arg 1 is 6:
  455. add 1 to {Shadow.point.%player%}
  456. open chest with 5 rows named "&9&l≫&6&lステータス" to player
  457. format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
  458. format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
  459. format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
  460. format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
  461. format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
  462. stop
  463.  
  464.  
  465.  
  466. #command log
  467.  
  468.  
  469. on command:
  470. sender is player
  471. loop all players:
  472. loop-player have permission "admin"
  473. message "&7[&bCommandLog&7] &b%player%&7 /%full command%" to loop-player
  474.  
  475.  
  476. #monster spawn
  477.  
  478.  
  479. command /spawnmonster [<text>] [<text>] [<number>] [<number>]:
  480. trigger:
  481. if arg 1 is "zombie"
  482. spawn a zombie at {zombie.spawn}
  483. set name of spawned entity to "&a[Lv. 1] Zombie"
  484. set {entity} to last spawned entity
  485.  
  486. on death:
  487. wait 3 seconds
  488. if victim is {entity}:
  489. spawn a zombie at {zombie.spawn}
  490. set name of spawned entity to "&a[Lv. 1] Zombie"
  491. set {entity} to last spawned entity
  492.  
  493. command /setmonster [<text>] [<text>] [<number>] [<number>]:
  494. trigger:
  495. if player is op:
  496. set {zombie.spawn} to location of player
  497. send "&8[&bMobspawn&8] &7設定を追加しました。"
  498.  
  499. command /removemonster [<text>] [<text>] [<number>] [<number>]:
  500. trigger:
  501. if player is op:
  502. delete {zombie.spawn}
  503. send "&8[&bMobspawn&8] &7設定を追加しました。"
  504.  
  505. #protection
  506.  
  507. on place:
  508. player do not have permission "admin"
  509. cancel event
  510.  
  511. on break:
  512. player do not have permission "admin"
  513. cancel event
  514.  
  515. on drop:
  516. player do not have permission "admin"
  517. cancel event
  518.  
  519. on explode:
  520. cancel event
  521.  
  522. on craft:
  523. player do not have permission "admin"
  524. cancel event
  525.  
  526.  
  527. #item name and lore
  528.  
  529. command /itemname [<text>]:
  530. trigger:
  531. set the name of held item to colored arg
  532.  
  533. command /itemlore [<number>] [<text>]:
  534. trigger:
  535. set line arg 1 of lore of held item to colored "%arg 2%"
Advertisement
Add Comment
Please, Sign In to add comment