diff --git a/Asset/data/asset/functions/effect/0124.darkness/_/end.mcfunction b/Asset/data/asset/functions/effect/0124.darkness/_/end.mcfunction new file mode 100644 index 0000000000..7ee9439e5f --- /dev/null +++ b/Asset/data/asset/functions/effect/0124.darkness/_/end.mcfunction @@ -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/ \ No newline at end of file diff --git a/Asset/data/asset/functions/effect/0124.darkness/_/register.mcfunction b/Asset/data/asset/functions/effect/0124.darkness/_/register.mcfunction new file mode 100644 index 0000000000..307bf07f3f --- /dev/null +++ b/Asset/data/asset/functions/effect/0124.darkness/_/register.mcfunction @@ -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 \ No newline at end of file diff --git a/Asset/data/asset/functions/effect/0124.darkness/_/remove.mcfunction b/Asset/data/asset/functions/effect/0124.darkness/_/remove.mcfunction new file mode 100644 index 0000000000..afe2948d50 --- /dev/null +++ b/Asset/data/asset/functions/effect/0124.darkness/_/remove.mcfunction @@ -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/ \ No newline at end of file diff --git a/Asset/data/asset/functions/effect/0124.darkness/_/tick.mcfunction b/Asset/data/asset/functions/effect/0124.darkness/_/tick.mcfunction new file mode 100644 index 0000000000..44bf6bf46f --- /dev/null +++ b/Asset/data/asset/functions/effect/0124.darkness/_/tick.mcfunction @@ -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/ \ No newline at end of file diff --git a/Asset/data/asset/functions/effect/0124.darkness/end/.mcfunction b/Asset/data/asset/functions/effect/0124.darkness/end/.mcfunction new file mode 100644 index 0000000000..55e1cab823 --- /dev/null +++ b/Asset/data/asset/functions/effect/0124.darkness/end/.mcfunction @@ -0,0 +1,8 @@ +#> asset:effect/0124.darkness/end/ +# +# Effectの効果が切れた時の処理 +# +# @within function asset:effect/0124.darkness/_/end + +# 暗闇を削除 + effect clear @s darkness diff --git a/Asset/data/asset/functions/effect/0124.darkness/register.mcfunction b/Asset/data/asset/functions/effect/0124.darkness/register.mcfunction new file mode 100644 index 0000000000..802cb30321 --- /dev/null +++ b/Asset/data/asset/functions/effect/0124.darkness/register.mcfunction @@ -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 {} diff --git a/Asset/data/asset/functions/effect/0124.darkness/remove/.mcfunction b/Asset/data/asset/functions/effect/0124.darkness/remove/.mcfunction new file mode 100644 index 0000000000..77593abdf3 --- /dev/null +++ b/Asset/data/asset/functions/effect/0124.darkness/remove/.mcfunction @@ -0,0 +1,8 @@ +#> asset:effect/0124.darkness/remove/ +# +# Effectが削除された時の処理 +# +# @within function asset:effect/0124.darkness/_/remove + +# 暗闇を削除 + effect clear @s darkness diff --git a/Asset/data/asset/functions/effect/0124.darkness/tick/.mcfunction b/Asset/data/asset/functions/effect/0124.darkness/tick/.mcfunction new file mode 100644 index 0000000000..6bc2aaac45 --- /dev/null +++ b/Asset/data/asset/functions/effect/0124.darkness/tick/.mcfunction @@ -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 diff --git a/Asset/data/asset/tags/functions/effect/end.json b/Asset/data/asset/tags/functions/effect/end.json index 923e587d0c..5c1f464580 100644 --- a/Asset/data/asset/tags/functions/effect/end.json +++ b/Asset/data/asset/tags/functions/effect/end.json @@ -26,6 +26,7 @@ "asset:effect/0607.sedation/_/end", "asset:effect/0608.sinking/_/end", "asset:effect/0612.infringement/_/end", - "asset:effect/0613.white_curse/_/end" + "asset:effect/0613.white_curse/_/end", + "asset:effect/0124.darkness/_/end" ] -} +} \ No newline at end of file diff --git a/Asset/data/asset/tags/functions/effect/register.json b/Asset/data/asset/tags/functions/effect/register.json index df31219d4e..e8b3d37889 100644 --- a/Asset/data/asset/tags/functions/effect/register.json +++ b/Asset/data/asset/tags/functions/effect/register.json @@ -30,6 +30,7 @@ "asset:effect/0607.sedation/_/register", "asset:effect/0608.sinking/_/register", "asset:effect/0612.infringement/_/register", - "asset:effect/0613.white_curse/_/register" + "asset:effect/0613.white_curse/_/register", + "asset:effect/0124.darkness/_/register" ] -} +} \ No newline at end of file diff --git a/Asset/data/asset/tags/functions/effect/remove.json b/Asset/data/asset/tags/functions/effect/remove.json index e35ad51372..1c02fa9a3a 100644 --- a/Asset/data/asset/tags/functions/effect/remove.json +++ b/Asset/data/asset/tags/functions/effect/remove.json @@ -24,6 +24,7 @@ "asset:effect/0607.sedation/_/remove", "asset:effect/0608.sinking/_/remove", "asset:effect/0612.infringement/_/remove", - "asset:effect/0613.white_curse/_/remove" + "asset:effect/0613.white_curse/_/remove", + "asset:effect/0124.darkness/_/remove" ] -} +} \ No newline at end of file diff --git a/Asset/data/asset/tags/functions/effect/tick.json b/Asset/data/asset/tags/functions/effect/tick.json index b425387e3e..baace6b41c 100644 --- a/Asset/data/asset/tags/functions/effect/tick.json +++ b/Asset/data/asset/tags/functions/effect/tick.json @@ -26,6 +26,7 @@ "asset:effect/0607.sedation/_/tick", "asset:effect/0608.sinking/_/tick", "asset:effect/0612.infringement/_/tick", - "asset:effect/0613.white_curse/_/tick" + "asset:effect/0613.white_curse/_/tick", + "asset:effect/0124.darkness/_/tick" ] -} +} \ No newline at end of file