akon1248

Untitled

Aug 18th, 2018
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.83 KB | None | 0 0
  1. variables:
  2. {doublejumpcooltime.%player%} = 0
  3. command /damage [<text>] [<player>] [<number>] [<player>]:
  4. permission: tkp.command.damage
  5. permission message: &cYou don't have permission.
  6. trigger:
  7. if arg-1 is not set:
  8. send "&cUsage:/damage <owner|none> <player> <count>..."
  9. if arg-1 is "owner":
  10. if arg-4 is not set:
  11. send "&cUsage:/damage none <player> <count>"
  12. if arg-4 is set:
  13. make arg-4 damage arg-2 by arg-3
  14. send "&b%arg-4%&7に&b%arg-2%&7へ&b%arg-3%&7ダメージ与えさせました"
  15. if arg-1 is "none":
  16. if arg-4 is set:
  17. send "&cUsage:/damage none <player> <count>"
  18. stop
  19. if arg-3 is not set:
  20. send "&cUsage:/damage none <player> <count>"
  21. else:
  22. send "&b%arg-2%&7に&b%arg-3%&7ダメージ与えました"
  23. if arg-3 is greater than or equal to 0:
  24. remove arg-3 from arg-2's health
  25. on death:
  26. victim is a player
  27. set {_attacker} to attacker
  28. set {_victim} to victim
  29. if {_attacker} is not set:
  30. set the death message to "&b%victim%&7は死亡した"
  31. execute console command "/execute %victim% ~ ~ ~ summon fireworks_rocket ~ ~2 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Flicker:1,Colors:[I;%random integer between 1 and 16777215%]}]}}}}"
  32. force victim to respawn
  33. if {_attacker} is set:
  34. set the death message to "&b%victim%&7は&b%attacker%&7に殺された"
  35. if attacker is a player:
  36. strike lightning effect at victim
  37. force victim to respawn
  38. if attacker is not a player:
  39. execute console command "/execute %victim% ~ ~ ~ summon fireworks_rocket ~ ~2 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Flicker:1,Colors:[I;%random integer between 1 and 16777215%]}]}}}}"
  40. force victim to respawn
  41. on damage:
  42. victim is a player
  43. if damage was caused by void:
  44. if victim's gamemode is not creative:
  45. loop 1 times:
  46. cancel event
  47. remove 2048 from victim's health
  48. on rightclick:
  49. item is a player head
  50. if player's gamemode is not creative:
  51. cancel event
  52. command "/clear %player% skull 3 1"
  53. command "/effect %player% 10 5 2"
  54. command "/effect %player% 1 10 0"
  55. command "/effect %player% 22 180 0"
  56. command "/effect %player% 23 1 3 true"
  57. command "/execute %player% ~ ~ ~ playsound minecraft:entity.generic.eat master @s"
  58. on death:
  59. attacker is a player
  60. victim is a player
  61. command "/give %attacker% skull 1 3 {SkullOwner:%victim%}"
  62. on break:
  63. if player's gamemode is survival:
  64. cancel event
  65. send "&cあなたはブロックを壊すことができません"
  66. on place:
  67. if player's gamemode is survival:
  68. cancel event
  69. send "&cあなたはブロックを置くことができません"
  70. command /ipcheck [<offline player>]:
  71. permission: tkp.command.ipcheck
  72. permission message: &cYou don't have permission.
  73. trigger:
  74. if arg is not set:
  75. message "Usage:/ipcheck <player>"
  76. stop
  77. if arg is "all":
  78. loop all players:
  79. set {ip::%loop-player%} to ip of loop-player
  80. message "&7[&3&lipcheck&7] &b%loop-player%のIPアドレス: &b%{ip::%loop-player%}%" to player
  81. loop {ip::*}:
  82. if {ip::%loop-index%} is {ip::%loop-player%}:
  83. message "&7[&3&lipcheck&7] &b同じIPを使用しているプレイヤー: &3%loop-index%"
  84. else:
  85. set {ip::%arg%} to ip of argument
  86. message "&7[&3&lipcheck&7] &b%arg%のIP&a: &b%{ip::%arg%}%"
  87. loop {ip::*}:
  88. if {ip::%loop-index%} is {ip::%arg%}:
  89. message "&7[&3&lipcheck&7] &b同じIPを使用しているプレイヤー: &b%loop-index%"
  90. on join:
  91. set {ip::%player%} to ip of player
  92. loop all players:
  93. if loop-player has permission "sk.command.ipcheck":
  94. message "&7[&3&lipcheck&7] &b%player%のIP&a: &b%{ip::%player%}%" to loop-player
  95. loop {ip::*}:
  96. if {ip::%loop-index%} is {ip::%player%}:
  97. message "&7[&3&lipcheck&7] &b同じIPを使用しているプレイヤー&a: &b%loop-index%" to loop-player
  98. command /acrobat [<player>] [<text>]:
  99. permission: tkp.command.acrobat
  100. permission message: &cYou don't have permission.
  101. trigger:
  102. if arg-2 is not set:
  103. send "&cUsage:/acrobat <player> <true|false|enable|disable>"
  104. if arg-2 is set:
  105. if arg-2 is "true" or "enable":
  106. set {acrobat.%arg-1%} to 1
  107. send "&b%arg-1%&7のアクロバットを&a有効&7にしました"
  108. set arg-1's walk speed to 0.3
  109. if arg-2 is "false" or "disable":
  110. delete {acrobat.%arg-1%}
  111. send "&b%arg-1%&7のアクロバットを&c無効&7にしました"
  112. set arg-1's walk speed to 0.2
  113. if arg-1's gamemode is survival or adventure:
  114. set arg-1's flight mode to false
  115. every tick:
  116. loop all players:
  117. if {doublejumpcooltime.%loop-player%} is greater than or equal to 1:
  118. send action bar from "&bDoubleJumpが使用可能になるまであと%{doublejumpcooltime.%loop-player%}%秒" to loop-player
  119. if {acrobat.%loop-player%} is 1:
  120. execute console command "/effect %loop-player% 8 1 1 true"
  121. if {doublejumpcooltime.%loop-player%} is smaller than or equal to 0:
  122. set loop-player's flight mode to true
  123. else:
  124. if loop-player's gamemode is survival or adventure:
  125. set loop-player's flight mode to false
  126. on damage:
  127. if {acrobat.%victim%} is 1:
  128. damage was caused by fall:
  129. cancel event
  130. every second:
  131. loop all players:
  132. remove 1 from {doublejumpcooltime.%loop-player%}
  133. if {doublejumpcooltime.%loop-player%} is 0:
  134. send action bar from "&b&lDoubleJumpが使えるようになりました!" to loop-player
  135. on flight toggle:
  136. if {acrobat.%player%} is 1:
  137. if {doublejumpcooltime.%player%} is smaller than or equal to 0:
  138. set {doublejumpcooltime.%player%} to 15
  139. push player upwards at speed 1.2
  140. push the player forward at speed 0.8
  141. command /doublejumpcooltime [<player>] [<number>]:
  142. aliases: /djct
  143. permission: tkp.command.bjct
  144. permission message: &cYou don't have permission.
  145. usage: /setdoublejumpcooltime <player> <count>
  146. trigger:
  147. if arg-1 is set:
  148. if arg-2 is set:
  149. set {doublejumpcooltime.%arg-1%} to arg-2
  150. send "&b%arg-1%&7のDoubleJumpのクールタイムを&b%arg-2%秒&7に設定しました"
  151. if arg-2 is not set:
  152. send "&b%arg-1%&7のDoubleJumpのクールタイムは&b%{doublejumpcooltime.%arg-1%}%秒&7です"
  153. if {acrobat.%arg-1%} is 1:
  154. send "&b%arg-1%&7のDoubleJumpは&a有効&7です"
  155. if {acrobat.%arg-1%} is not set:
  156. send "&b%arg-1%&7のDoubleJumpは&c無効&7です"
Advertisement
Add Comment
Please, Sign In to add comment