akon1248

Untitled

Dec 26th, 2018
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.38 KB | None | 0 0
  1. command /getfightstaff [<player>]:
  2. permission: toys.admin
  3. permission message: &4このコマンドを実行する権限がありません!
  4. trigger:
  5. give arg-1 blaze rod with nbt "{display:{Name:""&6Staff of God of fight""},ench:[{id:16s,lvl:5s}],HideFlags:1}"
  6. on damage:
  7. attacker is a player
  8. victim is not a armor stand
  9. attacker's tool is blaze rod
  10. name of attacker's tool is "&6Staff of God of fight"
  11. if attacker's gamemode is creative:
  12. cancel event
  13. if victim is a player:
  14. send "&cCan't be set to a player!" to attacker
  15. stop
  16. set {fightstaff.firstselect.%attacker%} to victim
  17. if name of victim is set:
  18. send "&7Set MOB1 to %name of victim%!" to attacker
  19. if name of victim is not set:
  20. send "&7Set MOB1 to %victim%" to attacker
  21. if {fightstaff.secondselect.%attacker%} is set:
  22. send "&7&6&lFIGHT!" to attacker
  23. set target of {fightstaff.secondselect.%attacker%} to {fightstaff.firstselect.%attacker%}
  24. set target of {fightstaff.firstselect.%attacker%} to {fightstaff.secondselect.%attacker%}
  25. delete {fightstaff.firstselect.%attacker%}
  26. delete {fightstaff.secondselect.%attacker%}
  27. if attacker's gamemode is survival or adventure:
  28. strike lightning effect at victim
  29. set damage to 10
  30. push victim up with speed 0.4
  31. push victim in horizontal direction of attacker with speed 0.7
  32. on rightclick on entity with blaze rod:
  33. name of player's tool is "&6Staff of God of fight"
  34. clicked entity is a living entity
  35. clicked entity is not a armor stand
  36. player's gamemode is creative
  37. cancel event
  38. if clicked entity is a player:
  39. send "&cCan't be set to a player!"
  40. stop
  41. if clicked entity is not a player:
  42. set {fightstaff.secondselect.%player%} to clicked entity
  43. if name of clicked entity is set:
  44. send "&7Set MOB2 to %name of clicked entity%!" to player
  45. if name of clicked entity is not set:
  46. send "&7Set MOB2 to %clicked entity%!" to player
  47. if {fightstaff.firstselect.%player%} is set:
  48. send "&7&6&lFIGHT!" to player
  49. set target of {fightstaff.secondselect.%player%} to {fightstaff.firstselect.%player%}
  50. set target of {fightstaff.firstselect.%player%} to {fightstaff.secondselect.%player%}
  51. delete {fightstaff.firstselect.%player%}
  52. delete {fightstaff.secondselect.%player%}
  53. on quit:
  54. delete {fightstaff.secondselect.%player%}
  55. delete {fightstaff.firstselect.%player%}
  56. command /getcrossbow [<player>]:
  57. permission: toys.admin
  58. permission message: &4このコマンドを実行する権限がありません!
  59. trigger:
  60. give arg-1 bow named "&6Cross Bow" with lore "&7Charged: false"
  61. on shoot:
  62. shooter is a player
  63. projectile is an arrow
  64. if shooter's tool is bow:
  65. name of shooter's tool is "&6Cross Bow"
  66. lore of shooter's tool is "&7Charged: false"
  67. cancel event
  68. if tag "crit" of nbt of projectile is 1:
  69. if shooter's gamemode is survival or adventure:
  70. remove an arrow from shooter's inventory
  71. play BLOCK_PISTON_CONTRACT at location of shooter with pitch 1
  72. if shooter's gamemode is survival or adventure:
  73. repair shooter's tool by 1
  74. set {_itemdamage} to durability of shooter's tool
  75. set shooter's tool to bow with nbt "{display:{Name:""&6Cross Bow"",Lore:[""&7Charged: true""]},ench:[{id:0s,lvl:0s}],HideFlags:1b}"
  76. damage shooter's tool by {_itemdamage}
  77. else if shooter's offhand is bow:
  78. name of shooter's offhand is "&6Cross Bow"
  79. lore of shooter's offhand is "&7Charged: false"
  80. cancel event
  81. if tag "crit" of nbt of projectile is 1:
  82. if shooter's gamemode is survival or adventure:
  83. remove an arrow from shooter's inventory
  84. play BLOCK_PISTON_CONTRACT at location of shooter with pitch 1
  85. if shooter's gamemode is survival or adventure:
  86. repair shooter's offhand by 1
  87. set {_itemdamage} to durability of shooter's offhand
  88. set shooter's offhand to bow with nbt "{display:{Name:""&6Cross Bow"",Lore:[""&7Charged: true""]},ench:[{id:0s,lvl:0s}],HideFlags:1b}"
  89. damage shooter's offhand by {_itemdamage}
  90. on rightclick:
  91. if player's tool is bow:
  92. name of player's tool is "&6Cross Bow"
  93. lore of player's tool is "&7Charged: true"
  94. cancel event
  95. set {_shootloc} to location 1.5 meter above location of player
  96. shoot an arrow from {_shootloc} at speed 5
  97. play ENTITY_SKELETON_SHOOT at location of player with pitch 1
  98. play BLOCK_WOODEN_TRAPDOOR_OPEN at location of player with pitch 1
  99. set shooter of shot projectile to player
  100. add "{crit:1b,damage:5.0f}" to nbt of shot projectile
  101. if player's gamemode is creative:
  102. add "{pickup:2b}" to nbt of shot projectile
  103. else if player's gamemode is survival or adventure:
  104. add "{pickup:1b}" to nbt of shot projectile
  105. set {_itemdamage} to durability of player's tool
  106. set player's tool to bow named "&6Cross Bow" with lore "&7Charged: false"
  107. damage player's tool by {_itemdamage}
  108. if player's gamemode is survival or adventure:
  109. damage player's tool by 1
  110. else if player's offhand is bow:
  111. name of player's offhand is "&6Cross Bow"
  112. lore of player's offhand is "&7Charged: true"
  113. cancel event
  114. set {_shootloc} to location 1.5 meter above location of player
  115. shoot an arrow from {_shootloc} at speed 5
  116. play ENTITY_SKELETON_SHOOT at location of player with pitch 1
  117. play BLOCK_WOODEN_TRAPDOOR_OPEN at location of player with pitch 1
  118. set shooter of shot projectile to player
  119. add "{crit:1b,damage:5.0f}" to nbt of shot projectile
  120. if player's gamemode is creative:
  121. add "{pickup:2b}" to nbt of shot projectile
  122. else if player's gamemode is survival or adventure:
  123. add "{pickup:1b}" to nbt of shot projectile
  124. set {_itemdamage} to durability of player's offhand
  125. set player's offhand to bow named "&6Cross Bow" with lore "&7Charged: false"
  126. damage player's offhand by {_itemdamage}
  127. if player's gamemode is survival or adventure:
  128. damage player's offhand by 1
  129. command /getgrappleinghook [<player>]:
  130. permission: toys.admin
  131. permission message: &4このコマンドを実行する権限がありません!
  132. trigger:
  133. give arg-1 fishing rod with nbt "{display:{Name:""&6Grappling Hook""},ench:[{id:0s,lvl:0s}],HideFlags:5,Unbreakable:1b}"
  134. send "&7You got &6Grappling Hook&7!"
  135. on fishing:
  136. if name of player's tool is "&6Grappling Hook":
  137. if fishing state is IN_GROUND:
  138. push player direction from player to fishing hook at speed distance between player and fishing hook/3.5
  139. if difference between y-coordinate of player and y-coordinate of fishing hook <= 2:
  140. set {_speed} to distance between player and fishing hook/30
  141. if {_speed} < 0.5:
  142. if distance between player and fishing hook >= 2:
  143. set {_speed} to 0.5
  144. push player upwards at speed {_speed}
  145. if fishing state is CAUGHT_ENTITY:
  146. caught entity is a living entity
  147. push caught entity direction from caught entity to player at speed distance between player and fishing hook/4
  148. push caught entity upwards at speed 0.5
  149. if fishing state is FISHING:
  150. loop blocks in radius 10 around location 1 meter above location of player:
  151. if loop-block is target block:
  152. set {_targetblock} to loop-block
  153. if {_targetblock} is not set:
  154. push fishing hook in direction of player at speed 8
  155. else if name of player's offhand is "&6Grappling Hook":
  156. if fishing state is IN_GROUND:
  157. push player direction from player to fishing hook at speed distance between player and fishing hook/3.5
  158. if difference between y-coordinate of player and y-coordinate of fishing hook <= 2:
  159. set {_speed} to distance between player and fishing hook/30
  160. if {_speed} < 0.5:
  161. if distance between player and fishing hook >= 2:
  162. set {_speed} to 0.5
  163. push player upwards at speed {_speed}
  164. if fishing state is CAUGHT_ENTITY:
  165. caught entity is a living entity
  166. push caught entity direction from caught entity to player at speed distance between player and fishing hook/4
  167. push caught entity upwards at speed 0.5
  168. if fishing state is FISHING:
  169. loop blocks in radius 10 around location 1 meter above location of player:
  170. if loop-block is target block:
  171. set {_targetblock} to loop-block
  172. if {_targetblock} is not set:
  173. push fishing hook in direction of player at speed 8
  174. every tick:
  175. loop all players:
  176. if loop-player's tool is fishing rod:
  177. if name of loop-player's tool is "&6Grappling Hook":
  178. add "{FallDistance:0}" to nbt of loop-player
  179. if loop-player's offhand is fishing rod:
  180. if name of loop-player's offhand is "&6Grappling Hook":
  181. add "{FallDistance:0}" to nbt of loop-player
Advertisement
Add Comment
Please, Sign In to add comment