Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /ken:
- permission: sk.stick
- trigger:
- set {%player%.cooldown} to 0
- give 1 diamond sword named "&f剣" with lore "&f前方を範囲攻撃できる" to player
- on left click:
- if name of the item is "&f剣":
- if {%player%.kenskill} is not set:
- set {%player%.kenskill} to 0
- if {%player%.kenskill} is 0:
- if {%player%.knac} is not set:
- set {%player%.knac} to 0
- if {%player%.knac} is 0:
- set {%player%.knac} to 1
- set {%player%.kennorloc} to location of the block 3 meter in front of player's head
- set {%player%.kennorloc2} to location of the block 7 meter in front of player's head
- loop entities in radius 3 around {%player%.kennorloc}:
- loop-entity is not player
- damage loop-entity by 3.5 heart
- show 1 sweep attack particles at loop-entity offset by 0, 0, 0 at speed 1
- loop entities in radius 2 around {%player%.kennorloc2}:
- loop-entity is not player
- damage loop-entity by 3.5 heart
- show 1 sweep attack particles at loop-entity offset by 0, 0, 0 at speed 1
- wait 1 second
- set {%player%.knac} to {%player%.knac} -1
- if {%player%.kenskill} is 1:
- if {%player%.knac} is not set:
- set {%player%.knac} to 0
- if {%player%.knac} is 0:
- set {%player%.knac} to 1
- set {%player%.kennorloc} to location of the block 4 meter in front of player's head
- set {%player%.kennorloc2} to location of the block 8 meter in front of player's head
- loop entities in radius 4 around {%player%.kennorloc}:
- loop-entity is not player
- damage loop-entity by 6 heart
- show 1 sweep attack particles at loop-entity offset by 0, 0, 0 at speed 1
- loop entities in radius 4 around {%player%.kennorloc2}:
- loop-entity is not player
- damage loop-entity by 6 heart
- show 1 sweep attack particles at loop-entity offset by 0, 0, 0 at speed 1
- wait 1 second
- set {%player%.knac} to {%player%.knac} -1
- on leftclick:
- if name of the item is "&f剣":
- if {%player%.kenskill} is 0:
- if {%player%.knac2} is not set:
- set {%player%.knac2} to 0
- if {%player%.knac2} is 0:
- set {%player%.knac2} to 1
- play "ENTITY_PLAYER_ATTACK_SWEEP" to player at volume 1
- set {_%player%.num} to 2
- set {_Particle} to location of the block {_%player%.num} meter in front of player's head
- loop 6 times:
- show 1 sweep attack particles at {_Particle} offset by 0, 0, 0
- set {_%player%.num} to {_%player%.num} + 1
- set {_Particle} to location of the block {_%player%.num} meter infront of player's head
- if the block {_%player%.num} meter infront of player's head is not air:
- stop loop
- wait 1 second
- set {%player%.knac2} to 0
- if {%player%.kenskill} is 1:
- if {%player%.knac2} is not set:
- set {%player%.knac2} to 0
- if {%player%.knac2} is 0:
- set {%player%.knac2} to 1
- play "ENTITY_PLAYER_ATTACK_SWEEP" to player at volume 1
- set {_%player%.num} to 2
- set {_Particle} to location of the block {_%player%.num} meter in front of player's head
- loop 20 times:
- show 1 sweep attack particles at {_Particle} offset by 0, 0, 0
- display 10 redstone particle at location of {_Particle} with color 214, 35, 67 offset by 0.0, 0.0, 0.0
- set {_%player%.num} to {_%player%.num} + 0.5
- set {_Particle} to location of the block {_%player%.num} meter infront of player's head
- if the block {_%player%.num} meter infront of player's head is not air:
- stop loop
- wait 1 second
- set {%player%.knac2} to 0
- every 1 ticks:
- loop all players:
- clear {%loop-player%.hondwepon}
- if {%loop-player%.kenskill} is 1:
- display 10 redstone particle at location of loop-player with color 214, 35, 67 offset by 0.0, 0.0, 0.0
- if loop-player's held item is stone sword:
- set {%loop-player%.hondwepon} to 1
- set the loop-player's walk speed to 0.35
- set the maximum health of the loop-player to 15
- if loop-player's held item is iron sword:
- set {%loop-player%.hondwepon} to 2
- set the maximum health of the loop-player to 20
- set the loop-player's walk speed to 0.15
- if {%loop-player%.hondwepon} is not set:
- set the loop-player's walk speed to 0.25
- set the maximum health of the loop-player to 20
- on drop:
- if name of the item is "&f剣":
- if {%player%.ksac} is not set:
- set {%player%.ksac} to 0
- if {%player%.ksac} is 0:
- send "&e剣スキルを発動しました" to player
- set {%player%.kenskill} to 1
- wait 10 second
- set {%player%.kenskill} to 0
- set {%player%.ksac} to 50
- loop 50 times:
- wait 1 second
- set {%player%.ksac} to {%player%.ksac} -1
- send "スキルのクールダウンが終わりました!" to player
- if {%player%.ksac} >= 1:
- send "&cクールダウン中です!(残り%{%player%.ksac}%秒)" to player
- on damage:
- set {%victim%.kenskilldamage} to damage
- if {%victim%.kenskill} is 1:
- set {%victim%.kenskilldamage} to {%victim%.kenskilldamage} / 2
- set {%victim%.kenskilldamage} to {%victim%.kenskilldamage} * -1
- increase the damage by {%victim%.kenskilldamage}
- command /heal:
- permission: sk.heal
- trigger:
- heal player by 99999 heart
- set the player's food level to 20
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement