-
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.
Merge branch 'master' into dev/ella_immovable_tag
- Loading branch information
Showing
14 changed files
with
514 additions
and
117 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
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/effect/0124.darkness/_/end.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:effect/0124.darkness/_/end | ||
# | ||
# Effectの効果の終了時に実行されるfunction | ||
# | ||
# @within tag/function asset:effect/end | ||
|
||
execute if data storage asset:context {id:124} run function asset:effect/0124.darkness/end/ |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/effect/0124.darkness/_/register.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:effect/0124.darkness/_/register | ||
# | ||
# | ||
# | ||
# @within tag/function asset:effect/register | ||
|
||
execute if data storage asset:context {id:124} run function asset:effect/0124.darkness/register |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/effect/0124.darkness/_/remove.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:effect/0124.darkness/_/remove | ||
# | ||
# Effectが神器や牛乳によって削除された時に実行されるfunction | ||
# | ||
# @within tag/function asset:effect/remove | ||
|
||
execute if data storage asset:context {id:124} run function asset:effect/0124.darkness/remove/ |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/effect/0124.darkness/_/tick.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:effect/0124.darkness/_/tick | ||
# | ||
# Effectが発動している間毎tick実行されるfunction | ||
# | ||
# @within tag/function asset:effect/tick | ||
|
||
execute if data storage asset:context {id:124} run function asset:effect/0124.darkness/tick/ |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/effect/0124.darkness/end/.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:effect/0124.darkness/end/ | ||
# | ||
# Effectの効果が切れた時の処理 | ||
# | ||
# @within function asset:effect/0124.darkness/_/end | ||
|
||
# 暗闇を削除 | ||
effect clear @s darkness |
35 changes: 35 additions & 0 deletions
35
Asset/data/asset/functions/effect/0124.darkness/register.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,35 @@ | ||
#> asset:effect/0124.darkness/register | ||
# | ||
# Effectのデータを指定 | ||
# | ||
# @within function asset:effect/0124.darkness/_/register | ||
|
||
# ExtendsSafe (boolean) (default = false) | ||
# data modify storage asset:effect ExtendsSafe set value true | ||
# ID (int) | ||
data modify storage asset:effect ID set value 124 | ||
# 名前 (TextComponentString) | ||
data modify storage asset:effect Name set value '{"text":"暗闇"}' | ||
# 説明文 (TextComponentString[]) | ||
data modify storage asset:effect Description set value '{"text":"プレイヤーの視界を暗くする"}' | ||
# 効果時間 (int) (default = API || error) | ||
# data modify storage asset:effect Duration set value | ||
# スタック (int) (default = API || 1) | ||
# data modify storage asset:effect Stack set value | ||
# 効果時間の操作方法 (default = API || "replace") | ||
data modify storage asset:effect DurationOperation set value "forceReplace" | ||
# スタックの操作方法 (default = API || "replace") | ||
data modify storage asset:effect StackOperation set value "forceReplace" | ||
# 最大効果時間 (int) (default = 2147483647) | ||
# data modify storage asset:effect MaxDuration set value | ||
# 最大スタック (int) (default = 2147483647) | ||
data modify storage asset:effect MaxStack set value 1 | ||
# 悪い効果か否か (boolean) | ||
data modify storage asset:effect IsBadEffect set value true | ||
# 死亡時のエフェクトの処理 (default = "remove") | ||
# data modify storage asset:effect ProcessOnDied set value | ||
# 消すのに必要なレベル (int) (default = 1) | ||
data modify storage asset:effect RequireClearLv set value 3 | ||
|
||
# フィールド | ||
# data modify storage asset:effect Field set value {} |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/effect/0124.darkness/remove/.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:effect/0124.darkness/remove/ | ||
# | ||
# Effectが削除された時の処理 | ||
# | ||
# @within function asset:effect/0124.darkness/_/remove | ||
|
||
# 暗闇を削除 | ||
effect clear @s darkness |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/effect/0124.darkness/tick/.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:effect/0124.darkness/tick/ | ||
# | ||
# Effectのtick処理 | ||
# | ||
# @within function asset:effect/0124.darkness/_/tick | ||
|
||
# 暗闇を付与 | ||
effect give @s darkness infinite 0 true |
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
Oops, something went wrong.