Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- victim is a player
- set damage delay of victim to 20 tick
- set {%victim%.soukencooldown} to 0
- if {%victim%.soukenmuteki} is 1:
- cancel event
- on damage:
- if {%victim%.soukencooldown} is 1:
- set damage delay of victim to 0 tick
- command /hanma:
- permission: sk.stick
- trigger:
- set {%player%.cooldown} to 0
- give 1 iron sword named "&6ハンマー" with lore "&f広い範囲に攻撃できる" to player
- on drop:
- cancel event
- if name of the item is "&6ハンマー":
- if {%player%.hsac} is not set:
- set {%player%.hsac} to 0
- if {%player%.hsac} is 0:
- send "&eハンマースキルを発動しました" to player
- set {%player%.hanmalocation} to player's location
- loop 10 time:
- show 10 crit particles at player offset by 0, 0, 0 at speed 1
- play "BLOCK_STONE_BUTTON_CLICK_ON" to player at volume 5
- wait 0.2 second
- show 10 crit particles at player offset by 0, 0, 0 at speed 1
- play "BLOCK_ANVIL_PLACE" to player at volume 2
- loop entities in radius 10 around player:
- clear {%loop-entity%.hanmaiti1}
- clear {%loop-entity%.hanmaiti2}
- clear {%loop-entity%.hanmaiti3}
- loop entities in radius 6 around player:
- loop-entity is not a player
- set {%loop-entity%.hanmaiti} to 1
- loop entities in radius 4 around player:
- loop-entity is not a player
- set {%loop-entity%.hanmaiti} to 2
- loop entities in radius 2 around player:
- loop-entity is not a player
- set {%loop-entity%.hanmaiti} to 3
- show 10 crit particles at player offset by 0, 0, 0 at speed 1
- loop entities in radius 10 around player:
- if {%loop-entity%.hanmaiti} is 1:
- damage loop-entity by 10 heart
- if {%loop-entity%.hanmaiti} is 2:
- damage loop-entity by 20 heart
- if {%loop-entity%.hanmaiti} is 3:
- damage loop-entity by 25 heart
- set {%player%.hsac} to 50
- loop 50 times:
- wait 1 second
- set {%player%.hsac} to {%player%.hsac} -1
- send "ハンマースキルのクールダウンが終わりました!" to player
- if {%player%.hsac} >= 1:
- send "&cクールダウン中です!(残り%{%player%.hsac}%秒)" to player
- on drop:
- if name of the item is "&6ハンマー":
- if {%player%.hsac} is 0:
- wait 38 tick
- loop blocks in radius 5 around player:
- loop-block is not air
- display 10 redstone particle at location of loop-block with color 224, 99, 0 offset by 0, 1.4, 0
- loop blocks in radius 3 around player:
- loop-block is not air
- display 10 redstone particle at location of loop-block with color 157, 69, 0 offset by 0, 1.4, 0
- loop blocks in radius 1 around player:
- loop-block is not air
- display 10 redstone particle at location of loop-block with color 88, 38, 0 offset by 0, 1.4, 0
- on damage:
- if attacker's tool is stone sword:
- set damage delay of victim to 0 tick
- on damage:
- attacker is a player
- if attacker's tool is stone sword:
- show 5 crit particles at victim offset by 0, 0, 0 at speed 1
- set {%victim%.skilldamage} to damage
- damage victim by 1.5 heart
- cancel event
- else:
- cancel event
- on leftclick:
- if name of the item is "&6ハンマー":
- if {%player%.hnac} is not set:
- set {%player%.hnac} to 0
- if {%player%.hnac} is 0:
- play "BLOCK_ANVIL_PLACE" to player at volume 1
- set {%player%.hanskiloc} to location of the block 2 meter in front of player's head
- loop blocks in radius 5 around {%player%.hanskiloc}:
- loop-block is not air
- display 10 redstone particle at location of loop-block with color 224, 99, 0 offset by 0, 1.4, 0
- loop blocks in radius 2 around {%player%.hanskiloc}:
- loop-block is not air
- display 10 redstone particle at location of loop-block with color 88, 38, 0 offset by 0, 1.4, 0
- loop entities in radius 4 around {%player%.hanskiloc}:
- loop-entity is not player
- set {%loop-entity%.hanmatuuiti} to 1
- loop entities in radius 1 around {%player%.hanskiloc}:
- loop-entity is not player
- set {%loop-entity%.hanmatuuiti} to 2
- loop entities in radius 5 around player:
- loop-entity is not player
- if {%loop-entity%.hanmatuuiti} is 1:
- damage loop-entity by 5 heart
- if {%loop-entity%.hanmatuuiti} is 2:
- damage loop-entity by 7.5 heart
- set {%player%.hnac} to 2
- loop 2 times:
- wait 0.75 second
- set {%player%.hnac} to {%player%.hnac} -1
- command /skillreset:
- trigger:
- set {%player%.hnac} to 0
- set {%player%.ssac} to 0
- set {%player%.hsac} to 0
- set {%player%.ksac} to 0
- set {%player%.knac} to 0
- on rightclick:
- player is not sneaking
- if {%player%.sc} is not set:
- set {%player%.sc} to 0
- if player's tool is a record chirp:
- if {%player%.sc} is set:
- if name of the item is "&7双剣":
- set {_slot} to player's current hotbar slot
- loop all items in player's inventory:
- set slot {_slot} of player's inventory to stone sword named "&7双剣" with lore "&f多段攻撃が可能","&fQキーでスキル発動","&fスニーク+右クリックで切り替えることで","&f双剣を収納する"
- set slot 40 of player's inventory to stone sword named "&7双剣"
- stop loop
- on rightclick:
- player is sneaking
- if player's tool is a stone sword:
- if {%player%.sc} is set:
- if name of the item is "&7双剣":
- set {_slot} to player's current hotbar slot
- loop all items in player's inventory:
- remove stone sword from player's inventory
- set slot {_slot} of player's inventory to record chirp named "&7双剣" with lore "&f右クリックで切り替えることで","&f双剣を両手に装備する。"
- set slot 40 of player's inventory to air
- stop loop
- set {%player%.sc} to 0
- on player's held item change:
- if {%player%.skillholditem} is 1:
- if {%player%.sc} is set:
- set {_slot} to player's current hotbar slot
- loop all items in player's inventory:
- remove stone sword from player's inventory
- set slot {_slot} of player's inventory to record chirp named "&7双剣" with lore "&f右クリックで切り替えることで","&f双剣を両手に装備する。"
- set slot 40 of player's inventory to air
- stop loop
- every 1 ticks:
- loop all players:
- if loop-player's tool is a stone sword:
- set {%loop-player%.skillholditem} to 1
- else:
- set {%loop-player%.skillholditem} to 0
- on inventory click:
- item is a stone sword
- if name of the item is "&7双剣":
- set {_slot} to player's selected hotbar slot
- cancel event
- wait 1 tick
- loop all items in player's inventory:
- set slot {_slot} of player's inventory to record chirp named "&7双剣" with lore "&f右クリックで切り替えることで","&f双剣を両手に装備する。"
- set slot 40 of player's inventory to air
- stop loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement