nasuhahahafff

Untitled

May 23rd, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.21 KB | None | 0 0
  1. options:
  2. count : 30
  3.  
  4. on rightclick on anvil:
  5. block under the event-block is a iron block
  6. cancel event
  7. if held item is air:
  8. if {upitem::%uuid of player%::weapon.data} is set:
  9. give player {upitem::%uuid of player%::weapon.data}
  10. set {_name} to {upitem::%uuid of player%::weapon.name}
  11. replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
  12. replace " &6&l|]]&m=====" with "" in {_name}
  13. message "&b&lSystem &7&l≫ &e&l「%{_name}%」&a&lを強化台から外しました"
  14. clear {upitem::%uuid of player%::weapon.data}
  15. clear {upitem::%uuid of player%::weapon.name}
  16. stop
  17. message "&b&lSystem &7&l≫ &a&lなにもセットされていません"
  18. stop
  19. if {upitem::%uuid of player%::weapon.data} is not set:
  20. held item is not none
  21. set {upitem::%uuid of player%::weapon.data} to held item
  22. set {upitem::%uuid of player%::weapon.name} to name of held item
  23. if lore of {upitem::%uuid of player%::weapon.data} contains "&c&l物理攻撃力":
  24. set {_line} to 1
  25. while {_line} is less than or equal to {@count}:
  26. if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "強化上限":
  27. set {_up.limit} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
  28. stop loop
  29. add 1 to {_line}
  30. replace "&5&l強化上限&7: &a&l+" with "" in {_up.limit}
  31. set {_up.limit} to {_up.limit} parsed as number
  32. set {_line} to 1
  33. while {_line} is less than or equal to {@count}:
  34. if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "強化値":
  35. set {_up.num} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
  36. stop loop
  37. add 1 to {_line}
  38. replace "&6&l強化値&7: &a&l+" with "" in {_up.num}
  39. set {_up.num} to {_up.num} parsed as number
  40. if {_up.num} is more than {_up.limit}-1:
  41. message "&b&lSystem &7&l≫ &5&l強化上限&a&lです"
  42. clear {upitem::%uuid of player%::weapon.data}
  43. clear {upitem::%uuid of player%::weapon.name}
  44. stop
  45. remove held item from player
  46. set {_name} to {upitem::%uuid of player%::weapon.name}
  47. replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
  48. replace " &6&l|]]&m=====" with "" in {_name}
  49. message "&b&lSystem &7&l≫ &e&l「%{_name}% +%{_up.num}%」&a&lを強化台にセットしました"
  50. stop
  51. else:
  52. clear {upitem::%uuid of player%::weapon.data}
  53. clear {upitem::%uuid of player%::weapon.name}
  54. message "&b&lSystem &7&l≫ &c&l武器&a&lのみセット可能です"
  55. if name of held item is {upitem::%uuid of player%::weapon.name}:
  56. set {_item.lore} to lore of {upitem::%uuid of player%::weapon.data}
  57. set {_item.id} to id of {upitem::%uuid of player%::weapon.data}
  58. #===============================================強化値上限==========================================================#
  59. set {_line} to 1
  60. while {_line} is less than or equal to {@count}:
  61. if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "強化上限":
  62. set {_up.num.limet} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
  63. stop loop
  64. add 1 to {_line}
  65. replace "&5&l強化上限&7: &a&l+" with "" in {_up.num.limet}
  66. set {_up.num.limet} to {_up.num.limet} parsed as number
  67. #===============================================強化値==============================================================#
  68. set {_line} to 1
  69. while {_line} is less than or equal to {@count}:
  70. if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "強化値":
  71. set {_up.num} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
  72. set {_up.num2} to line {_line} of lore of held item
  73. stop loop
  74. add 1 to {_line}
  75. replace "&6&l強化値&7: &a&l+" with "" in {_up.num}
  76. set {_up.num} to {_up.num} parsed as number
  77. replace "&6&l強化値&7: &a&l+" with "" in {_up.num2}
  78. set {_up.num2} to {_up.num2} parsed as number
  79. add 1 to {_up.num2}
  80. #===============================================中演算================================================================#
  81. if {_up.num} + {_up.num2} is more than {_up.num.limet}:
  82. set {_up.num2} to {_up.num.limet} - {_up.num}
  83. add {_up.num2} to {_up.num}
  84. set {_line}st line of held item's lore to "&6&l強化値&7: &a&l+%{_up.num}%"
  85. #=============================================物理攻撃力==============================================================#
  86. set {_line} to 1
  87. while {_line} is less than or equal to {@count}:
  88. if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "物理攻撃力":
  89. set {_attack} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
  90. set {_lore} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
  91. stop loop
  92. add 1 to {_line}
  93. if {_lore} contains "物理攻撃力":
  94. replace "&c&l物理攻撃力&7: &a&l+" with "" in {_attack}
  95. set {_attack} to {_attack} parsed as number
  96. loop {_up.num2} times:
  97. set {_attack} to {_attack} * 1.1
  98. set {_line}st line of held item's lore to "&c&l物理攻撃力&7: &a&l+%{_attack}%"
  99. #=============================================射撃力==============================================================#
  100. set {_line} to 1
  101. while {_line} is less than or equal to {@count}:
  102. if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "射撃力":
  103. set {_bullet.damage} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
  104. set {_lore} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
  105. stop loop
  106. add 1 to {_line}
  107. if {_lore} contains "射撃力":
  108. replace "&9&l射撃力&7: &a&l+" with "" in {_bullet.damage}
  109. set {_bullet.damage} to {_bullet.damage} parsed as number
  110. loop {_up.num2} times:
  111. set {_bullet.damage} to {_bullet.damage} * 1.1
  112. set {_line}st line of held item's lore to "&9&l射撃力&7: &a&l+%{_bullet.damage}%"
  113. #=============================================魔法攻撃力==============================================================#
  114. set {_line} to 1
  115. while {_line} is less than or equal to {@count}:
  116. if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "魔法攻撃力":
  117. set {_magic.attack} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
  118. set {_lore} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
  119. stop loop
  120. add 1 to {_line}
  121. if {_lore} contains "魔法攻撃力":
  122. replace "&d&l魔法攻撃力&7: &a&l+" with "" in {_magic.attack}
  123. set {_magic.attack} to {_magic.attack} parsed as number
  124. loop {_up.num2} times:
  125. set {_magic.attack} to {_magic.attack} * 1.1
  126. set {_line}st line of held item's lore to "&d&l魔法攻撃力&7: &a&l+%{_magic.attack}%"
  127. #=============================================攻撃速度================================================================#
  128. set {_line} to 1
  129. while {_line} is less than or equal to {@count}:
  130. if line {_line} of lore of player's tool contains "攻撃速度":
  131. set {_attack.speed} to line {_line} of lore of player's tool
  132. stop loop
  133. add 1 to {_line}
  134. replace "&3&l攻撃速度&7: &a&l" with "" in {_attack.speed}
  135. set {_attack.speed} to {_attack.speed} parsed as number
  136. #==============================================カテゴリ===============================================================#
  137. set {_line} to 1
  138. while {_line} is less than or equal to {@count}:
  139. if line {_line} of lore of player's tool contains "装備部位":
  140. set {_type} to line {_line} of lore of player's tool
  141. stop loop
  142. add 1 to {_line}
  143. replace "&b&l装備部位&7: &a&l" with "" in {_type}
  144. #=============================================-最終処理===============================================================#
  145. set {_line} to 1
  146. while {_line} is less than or equal to {@count}:
  147. set {_v} to line {_line} of lore of {upitem::%uuid of player%::weapon.data}
  148. set {_v} to "%{_line}%:%{_v}%"
  149. add {_v} to {_item.lore.list::*}
  150. if line {_line} of lore of {upitem::%uuid of player%::weapon.data} contains "強化上限":
  151. stop loop
  152. add 1 to {_line}
  153. replace "||" with "" in {_item.lore.list::*}
  154. set {_item.lore} to "%{_item.lore.list::*}%"
  155. replace "and %{_line}%:" with ",%{_line}%:" in {_item.lore}
  156. if {_type} is "左右手":
  157. set {_off.attack.speed} to 0
  158. else:
  159. set {_off.attack.speed} to 10
  160. add "{AttributeModifiers:[{AttributeName:generic.attackDamage,Name:generic.attackDamage,Amount:%{_attack}%,Slot:mainhand,Operation:0,UUIDLeast:1,UUIDMost:2,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%},{AttributeName:generic.attackDamage,Name:generic.attackDamage,Amount:%{_attack}/10%,Slot:offhand,Operation:0,UUIDLeast:1,UUIDMost:2,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%},{AttributeName:generic.attackSpeed,Name:generic.attackSpeed,Amount:-%{_attack.speed}%,Slot:mainhand,Operation:0,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%},{AttributeName:generic.attackSpeed,Name:generic.attackSpeed,Amount:-%{_off.attack.speed}%,Slot:offhand,Operation:0,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%}]}" to nbt of held item
  161. set {_name} to {upitem::%uuid of player%::weapon.name}
  162. replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
  163. replace " &6&l|]]&m=====" with "" in {_name}
  164. message "&b&lSystem &7&l≫ &e&l「%{_name}% +%{_up.num}%」&a&lに強化しました"
  165. clear {upitem::%uuid of player%::weapon.data}
  166. clear {upitem::%uuid of player%::weapon.name}
  167. else if name of held item is not {upitem::%uuid of player%::weapon.name}:
  168. message "&b&lSystem &7&l≫ &c&l同武器&a&lで&e&l右クリック&a&lしてください"
  169.  
  170.  
  171.  
  172. #======================================================================================================================================#
  173. on rightclick on crafting table:
  174. block under the event-block is a iron block
  175. cancel event
  176. if held item is air:
  177. if {upitem::%uuid of player%::armor.data} is set:
  178. give player {upitem::%uuid of player%::armor.data}
  179. set {_name} to {upitem::%uuid of player%::armor.name}
  180. replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
  181. replace " &6&l|]]&m=====" with "" in {_name}
  182. message "&b&lSystem &7&l≫ &e&l「%{_name}%」&a&lを強化台から外しました"
  183. clear {upitem::%uuid of player%::armor.data}
  184. clear {upitem::%uuid of player%::armor.name}
  185. stop
  186. message "&b&lSystem &7&l≫ &a&lなにもセットされていません"
  187. stop
  188. if {upitem::%uuid of player%::armor.data} is not set:
  189. held item is not none
  190. set {upitem::%uuid of player%::armor.data} to held item
  191. set {upitem::%uuid of player%::armor.name} to name of held item
  192. if lore of {upitem::%uuid of player%::armor.data} contains "&9&lカテゴリ&7: &a&l防具":
  193. set {_line} to 1
  194. while {_line} is less than or equal to {@count}:
  195. if line {_line} of lore of {upitem::%uuid of player%::armor.data} contains "強化上限":
  196. set {_up.limit} to line {_line} of lore of {upitem::%uuid of player%::armor.data}
  197. stop loop
  198. add 1 to {_line}
  199. replace "&5&l強化上限&7: &a&l+" with "" in {_up.limit}
  200. set {_up.limit} to {_up.limit} parsed as number
  201. set {_line} to 1
  202. while {_line} is less than or equal to {@count}:
  203. if line {_line} of lore of {upitem::%uuid of player%::armor.data} contains "強化値":
  204. set {_up.num} to line {_line} of lore of {upitem::%uuid of player%::armor.data}
  205. stop loop
  206. add 1 to {_line}
  207. replace "&6&l強化値&7: &a&l+" with "" in {_up.num}
  208. set {_up.num} to {_up.num} parsed as number
  209. if {_up.num} is more than {_up.limit}-1:
  210. message "&b&lSystem &7&l≫ &5&l強化上限&a&lです"
  211. clear {upitem::%uuid of player%::armor.data}
  212. clear {upitem::%uuid of player%::armor.name}
  213. stop
  214. remove held item from player
  215. set {_name} to {upitem::%uuid of player%::armor.name}
  216. replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
  217. replace " &6&l|]]&m=====" with "" in {_name}
  218. message "&b&lSystem &7&l≫ &e&l「%{_name}% +%{_up.num}%」&a&lを強化台にセットしました"
  219. stop
  220. else:
  221. clear {upitem::%uuid of player%::armor.data}
  222. clear {upitem::%uuid of player%::armor.name}
  223. message "&b&lSystem &7&l≫ &9&l防具&a&lのみセット可能です"
  224. if name of held item is {upitem::%uuid of player%::armor.name}:
  225. set {_item.lore} to lore of {upitem::%uuid of player%::armor.data}
  226. #===============================================強化値上限==========================================================#
  227. set {_line} to 1
  228. while {_line} is less than or equal to {@count}:
  229. if line {_line} of lore of {upitem::%uuid of player%::armor.data} contains "強化上限":
  230. set {_up.num.limet} to line {_line} of lore of {upitem::%uuid of player%::armor.data}
  231. stop loop
  232. add 1 to {_line}
  233. replace "&5&l強化上限&7: &a&l+" with "" in {_up.num.limet}
  234. set {_up.num.limet} to {_up.num.limet} parsed as number
  235. #===============================================強化値==============================================================#
  236. set {_line} to 1
  237. while {_line} is less than or equal to {@count}:
  238. if line {_line} of lore of {upitem::%uuid of player%::armor.data} contains "強化値":
  239. set {_up.num} to line {_line} of lore of {upitem::%uuid of player%::armor.data}
  240. set {_up.num2} to line {_line} of lore of held item
  241. stop loop
  242. add 1 to {_line}
  243. replace "&6&l強化値&7: &a&l+" with "" in {_up.num}
  244. set {_up.num} to {_up.num} parsed as number
  245. replace "&6&l強化値&7: &a&l+" with "" in {_up.num2}
  246. set {_up.num2} to {_up.num2} parsed as number
  247. add 1 to {_up.num2}
  248. #===============================================中演算================================================================#
  249. message "%{_up.num}%+%{_up.num2}%<%{_up.num.limet}%"
  250. if {_up.num} + {_up.num2} is more than {_up.num.limet}:
  251. set {_up.num2} to {_up.num.limet} - {_up.num}
  252. add {_up.num2} to {_up.num}
  253. set {_line}st line of held item's lore to "&6&l強化値&7: &a&l+%{_up.num}%"
  254. #===============================================防御力==============================================================#
  255. set {_line} to 1
  256. while {_line} is less than or equal to {@count}:
  257. if line {_line} of lore of {upitem::%uuid of player%::armor.data} contains "&9&l防御力":
  258. set {_defense} to line {_line} of lore of {upitem::%uuid of player%::armor.data}
  259. set {_lore} to line {_line} of lore of {upitem::%uuid of player%::armor.data}
  260. stop loop
  261. add 1 to {_line}
  262. replace "&9&l防御力&7: &a&l+" with "" in {_defense}
  263. set {_defense} to {_defense} parsed as number
  264. loop {_up.num2} times:
  265. set {_defense} to {_defense} * 1.125
  266. replace "%{_lore}%" with "&9&l防御力&7: &a&l+%{_defense}%" in {_item.lore}
  267. set {_line}st line of held item's lore to "&9&l防御力&7: &a&l+%{_defense}%"
  268. set {_name} to {upitem::%uuid of player%::armor.name}
  269. replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
  270. replace " &6&l|]]&m=====" with "" in {_name}
  271. message "&b&lSystem &7&l≫ &e&l「%{_name}% +%{_up.num}%」&a&lに強化しました"
  272. clear {upitem::%uuid of player%::armor.data}
  273. clear {upitem::%uuid of player%::armor.name}
  274. else if name of held item is not {upitem::%uuid of player%::armor.name}:
  275. message "&b&lSystem &7&l≫ &9&l同防具&a&lで&e&l右クリック&a&lしてください"
  276.  
  277.  
  278.  
  279.  
  280. on rightclick on furnace:
  281. block under the event-block is a iron block
  282. cancel event
  283. if held item is air:
  284. if {upitem::%uuid of player%::pickaxe.data} is set:
  285. give player {upitem::%uuid of player%::pickaxe.data}
  286. set {_name} to {upitem::%uuid of player%::pickaxe.name}
  287. replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
  288. replace " &6&l|]]&m=====" with "" in {_name}
  289. message "&b&lSystem &7&l≫ &e&l「%{_name}%」&a&lを強化台から外しました"
  290. clear {upitem::%uuid of player%::pickaxe.data}
  291. clear {upitem::%uuid of player%::pickaxe.name}
  292. stop
  293. message "&b&lSystem &7&l≫ &a&lなにもセットされていません"
  294. stop
  295. if {upitem::%uuid of player%::pickaxe.data} is not set:
  296. held item is not none
  297. set {upitem::%uuid of player%::pickaxe.data} to held item
  298. set {upitem::%uuid of player%::pickaxe.name} to name of held item
  299. if lore of {upitem::%uuid of player%::pickaxe.data} contains "&9&lカテゴリ&7: &a&lピッケル":
  300. remove held item from player
  301. set {_name} to {upitem::%uuid of player%::pickaxe.name}
  302. replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
  303. replace " &6&l|]]&m=====" with "" in {_name}
  304. message "&b&lSystem &7&l≫ &e&l「%{_name}% +%{_up.num}%」&a&lを強化台にセットしました"
  305. stop
  306. else:
  307. clear {upitem::%uuid of player%::pickaxe.data}
  308. clear {upitem::%uuid of player%::pickaxe.name}
  309. message "&b&lSystem &7&l≫ &e&lピッケル&a&lのみセット可能です"
  310. if name of held item is {upitem::%uuid of player%::pickaxe.name}:
  311. set {_item.lore} to lore of {upitem::%uuid of player%::pickaxe.data}
  312. set {_item.id} to id of {upitem::%uuid of player%::pickaxe.data}
  313. #===============================================強化値上限==========================================================#
  314. set {_line} to 1
  315. while {_line} is less than or equal to {@count}:
  316. if line {_line} of lore of {upitem::%uuid of player%::pickaxe.data} contains "強化上限":
  317. set {_up.num.limet} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
  318. stop loop
  319. add 1 to {_line}
  320. replace "&5&l強化上限&7: &a&l+" with "" in {_up.num.limet}
  321. set {_up.num.limet} to {_up.num.limet} parsed as number
  322. #===============================================強化値==============================================================#
  323. set {_line} to 1
  324. while {_line} is less than or equal to {@count}:
  325. if line {_line} of lore of {upitem::%uuid of player%::pickaxe.data} contains "強化値":
  326. set {_up.num} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
  327. set {_up.num2} to line {_line} of lore of held item
  328. stop loop
  329. add 1 to {_line}
  330. replace "&6&l強化値&7: &a&l+" with "" in {_up.num}
  331. set {_up.num} to {_up.num} parsed as number
  332. replace "&6&l強化値&7: &a&l+" with "" in {_up.num2}
  333. set {_up.num2} to {_up.num2} parsed as number
  334. add 1 to {_up.num2}
  335. #===============================================中演算================================================================#
  336. if {_up.num} + {_up.num2} is more than {_up.num.limet}:
  337. set {_up.num2} to {_up.num.limet} - {_up.num}
  338. add {_up.num2} to {_up.num}
  339. set {_line}st line of held item's lore to "&6&l強化値&7: &a&l+%{_up.num}%"
  340. #=============================================物理攻撃力==============================================================#
  341. set {_line} to 1
  342. while {_line} is less than or equal to {@count}:
  343. if line {_line} of lore of {upitem::%uuid of player%::pickaxe.data} contains "物理攻撃力":
  344. set {_attack} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
  345. set {_lore} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
  346. stop loop
  347. add 1 to {_line}
  348. if {_lore} contains "物理攻撃力":
  349. replace "&c&l物理攻撃力&7: &a&l+" with "" in {_attack}
  350. set {_attack} to {_attack} parsed as number
  351. loop {_up.num2} times:
  352. set {_attack} to {_attack} * 1.1
  353. set {_line}st line of held item's lore to "&c&l物理攻撃力&7: &a&l+%{_attack}%"
  354. #=============================================魔法攻撃力==============================================================#
  355. set {_line} to 1
  356. while {_line} is less than or equal to {@count}:
  357. if line {_line} of lore of {upitem::%uuid of player%::pickaxe.data} contains "魔法攻撃力":
  358. set {_magic.attack} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
  359. set {_lore} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
  360. stop loop
  361. add 1 to {_line}
  362. if {_lore} contains "魔法攻撃力":
  363. replace "&d&l魔法攻撃力&7: &a&l+" with "" in {_magic.attack}
  364. set {_magic.attack} to {_magic.attack} parsed as number
  365. loop {_up.num2} times:
  366. set {_magic.attack} to {_magic.attack} * 1.1
  367. set {_line}st line of held item's lore to "&d&l魔法攻撃力&7: &a&l+%{_magic.attack}%"
  368. #=============================================攻撃速度================================================================#
  369. set {_line} to 1
  370. while {_line} is less than or equal to {@count}:
  371. if line {_line} of lore of player's tool contains "攻撃速度":
  372. set {_attack.speed} to line {_line} of lore of player's tool
  373. stop loop
  374. add 1 to {_line}
  375. replace "&3&l攻撃速度&7: &a&l" with "" in {_attack.speed}
  376. set {_attack.speed} to {_attack.speed} parsed as number
  377. #==============================================カテゴリ===============================================================#
  378. set {_line} to 1
  379. while {_line} is less than or equal to {@count}:
  380. if line {_line} of lore of player's tool contains "装備部位":
  381. set {_type} to line {_line} of lore of player's tool
  382. stop loop
  383. add 1 to {_line}
  384. replace "&b&l装備部位&7: &a&l" with "" in {_type}
  385. #=============================================-最終処理===============================================================#
  386. set {_line} to 1
  387. while {_line} is less than or equal to {@count}:
  388. set {_v} to line {_line} of lore of {upitem::%uuid of player%::pickaxe.data}
  389. set {_v} to "%{_line}%:%{_v}%"
  390. add {_v} to {_item.lore.list::*}
  391. if line {_line} of lore of {upitem::%uuid of player%::pickaxe.data} contains "強化上限":
  392. stop loop
  393. add 1 to {_line}
  394. replace "||" with "" in {_item.lore.list::*}
  395. set {_item.lore} to "%{_item.lore.list::*}%"
  396. replace "and %{_line}%:" with ",%{_line}%:" in {_item.lore}
  397. if {_type} is "左右手":
  398. set {_off.attack.speed} to 0
  399. else:
  400. set {_off.attack.speed} to 10
  401. add "{AttributeModifiers:[{AttributeName:generic.attackDamage,Name:generic.attackDamage,Amount:%{_attack}%,Slot:mainhand,Operation:0,UUIDLeast:1,UUIDMost:2,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%},{AttributeName:generic.attackDamage,Name:generic.attackDamage,Amount:%{_attack}/10%,Slot:offhand,Operation:0,UUIDLeast:1,UUIDMost:2,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%},{AttributeName:generic.attackSpeed,Name:generic.attackSpeed,Amount:-%{_attack.speed}%,Slot:mainhand,Operation:0,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%},{AttributeName:generic.attackSpeed,Name:generic.attackSpeed,Amount:-%{_off.attack.speed}%,Slot:offhand,Operation:0,UUIDLeast:%random integer between 1 and 99999%,UUIDMost:%random integer between 1 and 99999%}]}" to nbt of held item
  402. set {_name} to {upitem::%uuid of player%::pickaxe.name}
  403. replace "&6&l&m=====&6&l[[| &e&l" with "" in {_name}
  404. replace " &6&l|]]&m=====" with "" in {_name}
  405. message "&b&lSystem &7&l≫ &e&l「%{_name}% +%{_up.num}%」&a&lに強化しました"
  406. clear {upitem::%uuid of player%::pickaxe.data}
  407. clear {upitem::%uuid of player%::pickaxe.name}
  408. else if name of held item is not {upitem::%uuid of player%::pickaxe.name}:
  409. message "&b&lSystem &7&l≫ &c&l同武器&a&lで&e&l右クリック&a&lしてください"
Advertisement
Add Comment
Please, Sign In to add comment