-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea1618e
commit 7bb384c
Showing
20 changed files
with
115 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
.../asset/functions/sacred_treasure/2003.blazing_thunder_drawn/trigger/dis_equip/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#> asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/dis_equip/ | ||
# | ||
# 右手から離したときの処理 | ||
# | ||
# @within tag/function asset:sacred_treasure/dis_equip | ||
|
||
# storage asset:idのmainhandに装備している神器のIDが入っているので比較し、~/main.mcfを実行する | ||
tag @s add 1JN.DisEquip | ||
execute if data storage asset:context id{mainhand:2003} run schedule function asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/dis_equip/schedule 1t replace |
14 changes: 14 additions & 0 deletions
14
...et/functions/sacred_treasure/2003.blazing_thunder_drawn/trigger/dis_equip/main.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#> asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/dis_equip/main | ||
# | ||
# dis_equip時のメイン処理 | ||
# | ||
# @within function asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/dis_equip/schedule | ||
|
||
# 所持チェック | ||
function asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/equip_check | ||
|
||
# 持ってたら納刀 | ||
function asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/sheath/ | ||
|
||
# リセット | ||
scoreboard players reset @s 1JN.Equipped |
8 changes: 8 additions & 0 deletions
8
...unctions/sacred_treasure/2003.blazing_thunder_drawn/trigger/dis_equip/schedule.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#> asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/dis_equip/schedule | ||
# | ||
# 1tick遅延処理 | ||
# | ||
# @within function asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/dis_equip/ | ||
|
||
execute as @a[tag=1JN.DisEquip] at @s run function asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/dis_equip/main | ||
tag @a remove 1JN.DisEquip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...asset/functions/sacred_treasure/2003.blazing_thunder_drawn/trigger/equip_check.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#> asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/equip_check | ||
# | ||
# 火雷 -抜刀-の所持チェック | ||
# | ||
# @within function | ||
# asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/dis_equip/main | ||
|
||
# 所持チェック | ||
execute store success score @s 1JN.Equipped run clear @s carrot_on_a_stick{TSB:{ID:2003}} 0 |
23 changes: 0 additions & 23 deletions
23
...data/asset/functions/sacred_treasure/2003.blazing_thunder_drawn/trigger/sheath.mcfunction
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...ata/asset/functions/sacred_treasure/2003.blazing_thunder_drawn/trigger/sheath/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#> asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/sheath/ | ||
# | ||
# 納刀処理 | ||
# | ||
# @within function | ||
# asset:sacred_treasure/2002.blazing_thunder_sheathed/trigger/schedule_loop | ||
# asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/3.main | ||
# asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/dis_equip/main | ||
# asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/equip/main | ||
# asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/sneak/main | ||
|
||
execute unless entity @s[tag=1JN.SheathCD] run function asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/sheath/main |
25 changes: 25 additions & 0 deletions
25
...asset/functions/sacred_treasure/2003.blazing_thunder_drawn/trigger/sheath/main.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#> asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/sheath/main | ||
# | ||
# 納刀メイン処理 | ||
# | ||
# @within function asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/sheath/ | ||
|
||
# メイン処理 | ||
# 演出 | ||
playsound minecraft:item.axe.scrape player @a ~ ~ ~ 1 2 | ||
playsound minecraft:item.axe.scrape player @a ~ ~ ~ 1 2 | ||
playsound minecraft:item.axe.scrape player @a ~ ~ ~ 1 2 | ||
playsound minecraft:item.axe.scrape player @a ~ ~ ~ 1 2 | ||
playsound minecraft:item.axe.scrape player @a ~ ~ ~ 1 2 | ||
playsound block.beacon.deactivate player @a ~ ~ ~ 1 2 | ||
# 納刀 | ||
execute if entity @s[tag=1JN.DisEquip] unless entity @s[scores={1JN.Equipped=0}] run clear @s carrot_on_a_stick{TSB:{ID:2003}} 1 | ||
execute unless entity @s[tag=1JN.DisEquip,scores={1JN.Equipped=0}] run data modify storage api: Argument.ID set value 2002 | ||
execute unless entity @s[tag=1JN.DisEquip,scores={1JN.Equipped=0}] run function api:sacred_treasure/give/from_id | ||
|
||
# 連続納刀防止 | ||
tag @s add 1JN.SheathCD | ||
schedule function asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/sheath/schedule 2t replace | ||
|
||
# リセット | ||
scoreboard players reset @s 1JM.ChargeTime |
7 changes: 7 additions & 0 deletions
7
...t/functions/sacred_treasure/2003.blazing_thunder_drawn/trigger/sheath/schedule.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/sheath/schedule | ||
# | ||
# 納刀schedule処理 | ||
# | ||
# @within function asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/sheath/main | ||
|
||
tag @a remove 1JN.SheathCD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
TSB_haiiro_addon/data/asset/tags/functions/sacred_treasure/dis_equip.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"values": [ | ||
"asset:sacred_treasure/2003.blazing_thunder_drawn/trigger/dis_equip/", | ||
"asset:sacred_treasure/2001.leap_charm/trigger/dis_equip/" | ||
] | ||
} |