Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.45 KB | None | 0 0
  1. variables:
  2. {%player%.sp} = 0
  3. {%player%.magiclevel} = 1
  4. {%player%.weaponlevel} = 1
  5. {%player%.attacklevel} = 1
  6. {%player%.recoverylevel} = 1
  7. {%player%.assistlevel} = 1
  8. {%player%.mobilitylevel} = 1
  9. {%player%.damage} = 1
  10. {%player%.attackbonus} = 1
  11. {%player%.still} = 0
  12.  
  13. command /spmenu <player=%player%>:
  14. trigger:
  15. wait 2 tick
  16. open chest with 3 row named "&1&lSP振り分けメニュー" to arg 1
  17. wait 1 tick
  18. format slot 2 of arg 1 with iron_sword named "&e&lWeaponLevelに使う" with lore "&e武器に関するレベル||&2-----------||&2現在のWeaponLevel: &e%{%arg 1%.weaponlevel}%||&2-----------||所持SP: &e%{%arg 1%.sp}%" to close then run [execute console command "/spweapon %arg 1%"]
  19. format slot 6 of arg 1 with enchanted_book named "&e&lMagicLevelに使う" with lore "&e魔法に関するレベル||&2-----------||&2現在のMagicLevel: &e%{%arg 1%.magiclevel}%||&2-----------||所持SP: &e%{%arg 1%.sp}%" to close then run [execute console command "/spmagic %arg 1%"]
  20. format slot 19 of arg 1 with rose red named "&e&lAttackLevelに使う" with lore "&e攻撃に関するレベル||&2-----------||&2現在のAttackLevel: &e%{%arg 1%.attacklevel}%||&2-----------||所持SP: &e%{%arg 1%.sp}%" to close then run [execute console command "/spattack %arg 1%"]
  21. format slot 21 of arg 1 with light green dye named "&e&lRecoveryLevelに使う" with lore "&e回復に関するレベル||&2-----------||&2現在のRecoveryLevel: &e%{%arg 1%.recoverylevel}%||&2-----------||所持SP: &e%{%arg 1%.sp}%" to close then run [execute console command "/sprecovery %arg 1%"]
  22. format slot 23 of arg 1 with dandelion yellow named "&e&lAssistLevelに使う" with lore "&e支援に関するレベル||&2-----------||&2現在のAssistLevel: &e%{%arg 1%.assistlevel}%||&2-----------||所持SP: &e%{%arg 1%.sp}%" to close then run [execute console command "/spassist %arg 1%"]
  23. format slot 25 of arg 1 with light blue dye named "&e&lMobilityLevelに使う" with lore "&e機動力に関するレベル||&2-----------||&2現在のMobilityLevel: &e%{%arg 1%.mobilitylevel}%||&2-----------||所持SP: &e%{%arg 1%.sp}%" to close then run [execute console command "/spmobility %arg 1%"]
  24.  
  25. command /spmagic <player>:
  26. trigger:
  27. if {%arg 1%.sp} > 0:
  28. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  29. remove 1 from {%arg 1%.sp}
  30. add 1 to {%arg 1%.magiclevel}
  31. message "&bMagicLevelに1振り分けました!" to arg 1
  32. message "&e(現在MagicLevel %{%arg 1%.magiclevel}%) (残りSP %{%arg 1%.sp}%)" to arg 1
  33. command "/spmenu %arg 1%"
  34. else:
  35. message "&4SPが足りないようだ..." to arg 1
  36.  
  37. command /spweapon <player>:
  38. trigger:
  39. if {%arg 1%.sp} > 0:
  40. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  41. remove 1 from {%arg 1%.sp}
  42. add 1 to {%arg 1%.weaponlevel}
  43. message "&bWeaponLevelに1振り分けました!" to arg 1
  44. message "&e(現在WeaponLevel %{%arg 1%.weaponlevel}%) (残りSP %{%arg 1%.sp}%)" to arg 1
  45. command "/spmenu %arg 1%"
  46. else:
  47. message "&4SPが足りないようだ..." to arg 1
  48.  
  49. command /spattack <player>:
  50. trigger:
  51. if {%arg 1%.sp} > 0:
  52. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  53. remove 1 from {%arg 1%.sp}
  54. add 1 to {%arg 1%.attacklevel}
  55. message "&bAttackLevelに1振り分けました!" to arg 1
  56. message "&e(現在AttackLevel %{%arg 1%.attacklevel}%) (残りSP %{%arg 1%.sp}%)" to arg 1
  57. command "/spmenu %arg 1%"
  58. else:
  59. message "&4SPが足りないようだ..." to arg 1
  60.  
  61. command /sprecovery <player>:
  62. trigger:
  63. if {%arg 1%.sp} > 0:
  64. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  65. remove 1 from {%arg 1%.sp}
  66. add 1 to {%arg 1%.recoverylevel}
  67. message "&bRecoveryLevelに1振り分けました!" to arg 1
  68. message "&e(現在RecoveryLevel %{%arg 1%.recoverylevel}%) (残りSP %{%arg 1%.sp}%)" to arg 1
  69. command "/spmenu %arg 1%"
  70. else:
  71. message "&4SPが足りないようだ..." to arg 1
  72.  
  73. command /spassist <player>:
  74. trigger:
  75. if {%arg 1%.sp} > 0:
  76. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  77. remove 1 from {%arg 1%.sp}
  78. add 1 to {%arg 1%.assistlevel}
  79. message "&bAssistLevelに1振り分けました!" to arg 1
  80. message "&e(現在AssistLevel %{%arg 1%.assistlevel}%) (残りSP %{%arg 1%.sp}%)" to arg 1
  81. command "/spmenu %arg 1%"
  82. else:
  83. message "&4SPが足りないようだ..." to arg 1
  84.  
  85. command /spmobility <player>:
  86. trigger:
  87. if {%arg 1%.sp} > 0:
  88. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  89. remove 1 from {%arg 1%.sp}
  90. add 1 to {%arg 1%.mobilitylevel}
  91. message "&bMobilityLevelに1振り分けました!" to arg 1
  92. message "&e(現在MobilityLevel %{%arg 1%.mobilitylevel}%) (残りSP %{%arg 1%.sp}%)" to arg 1
  93. command "/spmenu %arg 1%"
  94. else:
  95. message "&4SPが足りないようだ..." to arg 1
  96.  
  97. command /skpv <player=%player%> <number>:
  98. trigger:
  99. wait 2 tick
  100. make arg 1 execute command "/pv %arg 2%"
  101.  
  102. #レベルに使えるenchant
  103. #ドロップ増加 looting
  104. #シルクタッチ silk_touch
  105. #耐久力 unbreaking 武器
  106. #修繕 mending
  107. #無限 infinity
  108. #△水中呼吸 depth_strider
  109. #幸運 fortune 魔法
  110.  
  111. #武器入手
  112. # 1 2 3 4 5 6 7 8 9 10 11 12 13
  113.  
  114. command /weapongive <player=%player%> <item> <text> <text> <text> <text> <number> [<text>] [<number>] [<text>] [<number>] [<text>] [<number>]:
  115. usage: /weapongive[wgive] 1.Player名 2.ItemID 3.名前 4.レア度[星をそのまま書く] 5.主な入手方法 6.説明 7.攻撃力(数値) &eここから12までの偶数は制限Level名 &bここから13までの奇数は制限Level数値 &d&lレベル名 <Weapon,Magic,Attack,Recovery,Assist,Mobility>
  116. permission: admin
  117. aliases: /wgive
  118. permission message: &c権限がない!
  119. trigger:
  120. if arg 12 is set:
  121. give arg 2 named "&e[%arg 3%]" with lore "&bレア度:&e%arg 4%||&b主な入手方法:&d%arg 5%||&b説明:&a%arg 6%||&4----------||&a-&c攻撃力:&e%arg 7%||&d未改造||&2-----------------------------------||&e-&c使用制限&e-||&a-&b%arg 8%Level:&e%arg 9%||&a-&b%arg 10%Level:&e%arg 11%||&a-&b%arg 12%Level:&e%arg 13%" to arg 1
  122. stop
  123. if arg 10 is set:
  124. give arg 2 named "&e[%arg 3%]" with lore "&bレア度:&e%arg 4%||&b主な入手方法:&d%arg 5%||&b説明:&a%arg 6%||&4----------||&a-&c攻撃力:&e%arg 7%||&d未改造||&2-----------------------------------||&e-&c使用制限&e-||&a-&b%arg 8%Level:&e%arg 9%||&a-&b%arg 10%Level:&e%arg 11%" to arg 1
  125. stop
  126. if arg 8 is set:
  127. give arg 2 named "&e[%arg 3%]" with lore "&bレア度:&e%arg 4%||&b主な入手方法:&d%arg 5%||&b説明:&a%arg 6%||&4----------||&a-&c攻撃力:&e%arg 7%||&d未改造||&2-----------------------------------||&e-&c使用制限&e-||&a-&b%arg 8%Level:&e%arg 9%" to arg 1
  128. stop
  129. give arg 2 named "&e[%arg 3%]" with lore "&bレア度:&e%arg 4%||&b主な入手方法:&d%arg 5%||&b説明:&a%arg 6%||&4----------||&a-&c攻撃力:&e%arg 7%||&d未改造||&2-----------------------------------||&e-&c使用制限&e-||&dなし" to arg 1
  130.  
  131.  
  132.  
  133. #振り分けだお
  134. #持ち帰時の能力処理
  135. on tool change:
  136. set the player's walk speed to 0.2
  137. set {%player%.damage} to 1
  138. set {%player%.still} to 0
  139. set {%player%.attackbonus} to 0
  140. lore of player's tool is set
  141. while true:
  142. add 1 to {_line}
  143. set {_lore} to line {_line} of lore of player's tool
  144. if {_lore} is not set:
  145. exit 2 sections
  146. add {_lore} to {_lore::*}
  147. delete {_lore}
  148. loop {_lore::*}:
  149. add 1 to {_inx}
  150. if the first index of "&a-&bWeaponLevel:&e" in loop-value is not -1:
  151. set {_number} to (subtext of loop-value from 20 to length of loop-value) parsed as number
  152. if {_number} is greater than {%player%.weaponlevel}:
  153. cancel event
  154. message "&4これを使うにはまだまだ力が足りないようだ..." to player
  155. command "/effect %player% minecraft:blindness 3 0"
  156. stop
  157. if the first index of "&a-&bMagicLevel:&e" in loop-value is not -1:
  158. set {_number} to (subtext of loop-value from 19 to length of loop-value) parsed as number
  159. if {_number} is greater than {%player%.magiclevel}:
  160. cancel event
  161. message "&4これを使うにはまだまだ力が足りないようだ..." to player
  162. command "/effect %player% minecraft:blindness 3 0"
  163. stop
  164. if the first index of "&a-&bAttackLevel:&e" in loop-value is not -1:
  165. set {_number} to (subtext of loop-value from 20 to length of loop-value) parsed as number
  166. if {_number} is greater than {%player%.attacklevel}:
  167. cancel event
  168. message "&4これを使うにはまだまだ力が足りないようだ..." to player
  169. command "/effect %player% minecraft:blindness 3 0"
  170. stop
  171. if the first index of "&a-&bRecoveryLevel:&e" in loop-value is not -1:
  172. set {_number} to (subtext of loop-value from 22 to length of loop-value) parsed as number
  173. if {_number} is greater than {%player%.recoverylevel}:
  174. cancel event
  175. message "&4これを使うにはまだまだ力が足りないようだ..." to player
  176. command "/effect %player% minecraft:blindness 3 0"
  177. stop
  178. if the first index of "&a-&bAssistLevel:&e" in loop-value is not -1:
  179. set {_number} to (subtext of loop-value from 20 to length of loop-value) parsed as number
  180. if {_number} is greater than {%player%.recoverylevel}:
  181. cancel event
  182. message "&4これを使うにはまだまだ力が足りないようだ..." to player
  183. command "/effect %player% minecraft:blindness 3 0"
  184. stop
  185. if the first index of "&a-&bMobilityLevel:&e" in loop-value is not -1:
  186. set {_number} to (subtext of loop-value from 22 to length of loop-value) parsed as number
  187. if {_number} is greater than {%player%.mobilitylevel}:
  188. cancel event
  189. message "&4これを使うにはまだまだ力が足りないようだ..." to player
  190. command "/effect %player% minecraft:blindness 3 0"
  191. stop
  192. if the first index of "&a-&c攻撃力:&e" in loop-value is not -1:
  193. set {%player%.damage} to (subtext of loop-value from 12 to length of loop-value) parsed as number
  194. if the first index of "&e-&d改造・攻撃(%%):&6" in loop-value is not -1:
  195. set {%player%.attackbonus} to (subtext of loop-value from 17 to length of loop-value) parsed as number
  196. if the first index of "&e-&d改造・移動(%%):&6" in loop-value is not -1:
  197. add 0.002 * (subtext of loop-value from 17 to length of loop-value) parsed as number to player's walk speed
  198. if the first index of "&e-&d改造・吸収:&6" in loop-value is not -1:
  199. set {%player%.still} to (subtext of loop-value from 14 to length of loop-value) parsed as number
  200. if the first index of "&e-&d改造・防御:&6" in loop-value is not -1:
  201. set {%player%.resistance} to (subtext of loop-value from 14 to length of loop-value) parsed as number
  202.  
  203. on rightclick with a redstone:
  204. name of player's tool contains "&d[改造石 Lv1]"
  205. {%player%.up} is 0
  206. remove 1 of held item from player
  207. set {%player%.up} to 1
  208. command "/playsound minecraft:entity.player.levelup ambient %player% ~ ~ ~ 1.0 0.53 1.0"
  209. message "&d---------------"
  210. message "&e改造したい武器をもって右クリックしてください"
  211. message "&e失敗すると武器が壊れます"
  212. message "&d---------------"
  213.  
  214. command /admincustom <player> <text> <number>:
  215. permission: admin
  216. usage: /admincustom[adminc] Player 改造名 数値 持ってるのに付与します
  217. aliases: /adminc
  218. trigger:
  219. set 6th line of player's tool's lore to "&e-&d改造・%arg 2%:&6%arg 3%"
  220. message "あなたが持っているアイテムに%arg 2% ・ %arg 3%を付与しました" to arg 1
  221.  
  222. on rightclick:
  223. if player is holding a sword
  224. repair player's tool
  225. {%player%.up} > 0
  226. if {%player%.damage} is not 1:
  227. command "/playsound minecraft:block.anvil.place ambient %player% ~ ~ ~ 0.5 1.0 0.5"
  228. chance of 85%:
  229. message "&b&l改造完了!"
  230. if {%player%.up} is 1:
  231. set {_random} to a random integer between 0 and 8
  232. if {_random} < 6:
  233. set 6th line of player's tool's lore to "&e-&d改造・攻撃(%%):&65"
  234. message "&e攻撃増加 +5%%"
  235. if {_random} > 5:
  236. if {_random} < 8:
  237. set 6th line of player's tool's lore to "&e-&d改造・移動(%%):&610"
  238. message "&e移動速度増加 +10%%"
  239. if {_random} is 8:
  240. set 6th line of player's tool's lore to "&e-&d改造・吸収:&60.5"
  241. message "&eHP吸収 0.5"
  242. set {%player%.up} to 0
  243. stop
  244. set {%player%.up} to 0
  245. remove 64 of held item from player
  246. command "/playsound minecraft:ambient.cave ambient %player% ~ ~ ~ 1.0 0.2 1.0"
  247. message "&4武器改造に失敗して武器が壊れた..."
  248. message "&4[成功への糧]を手に入れた"
  249. command "/effect %player% minecraft:blindness 3 0"
  250. command "/admingive %player% 336 成功への糧 ★★★ 武器改造の失敗 失敗が作った成功への道のり"
  251. else:
  252. message "&d武器をもって右クリックしてください [改造]"
  253.  
  254. on damage:
  255. attacker is a player
  256. victim is not a player
  257. command "/effect %attacker% minecraft:resistance %{%attacker%.resistance}% 0"
  258. set damage to {%attacker%.damage} * (100+{%attacker%.attackbonus})/100
  259. heal attacker by {%attacker%.still}
  260. message "&e%{%attacker%.damage} * (100+{%attacker%.attackbonus})/100% &cdamage" to attacker
  261. attacker is holding a sword
  262. repair tool of attacker
  263. repair helmet of victim
  264. repair chestplate of victim
  265. repair leggings of victim
  266. repair boots of victim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement