From 6e5cdd14dc8216d2d3ad068d86fdea5d0e6a3caf Mon Sep 17 00:00:00 2001 From: EllaCoat Date: Wed, 18 Sep 2024 13:49:17 +0900 Subject: [PATCH] =?UTF-8?q?=E6=96=AC=E6=92=83=E3=82=A8=E3=83=95=E3=82=A7?= =?UTF-8?q?=E3=82=AF=E3=83=88=E3=81=9D=E3=81=AE2=E3=82=92=E5=AE=9F?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2002.slash_effect_2/register.mcfunction | 18 ++++++++++++++++++ .../summon/debug.mcfunction | 10 ++++++++++ .../object/alias/2002/register.mcfunction | 8 ++++++++ 3 files changed, 36 insertions(+) create mode 100644 Asset/data/asset/functions/object/2002.slash_effect_2/register.mcfunction create mode 100644 Asset/data/asset/functions/object/2002.slash_effect_2/summon/debug.mcfunction create mode 100644 Asset/data/asset/functions/object/alias/2002/register.mcfunction diff --git a/Asset/data/asset/functions/object/2002.slash_effect_2/register.mcfunction b/Asset/data/asset/functions/object/2002.slash_effect_2/register.mcfunction new file mode 100644 index 0000000000..aa9374a774 --- /dev/null +++ b/Asset/data/asset/functions/object/2002.slash_effect_2/register.mcfunction @@ -0,0 +1,18 @@ +#> asset:object/2002.slash_effect_2/register +# +# Objectのデータを指定 +# +# @within function asset:object/alias/2002/register + +# ID5(斬撃エフェクト抽象)を継承する + data modify storage asset:object Extends append value 5 + function asset:object/extends + +# 他のモブに継承されることを許可するか (boolean) (オプション) + data modify storage asset:object ExtendsSafe set value false +# 継承されることを前提とした、抽象的なオブジェクトであるかどうか(boolean) + data modify storage asset:object IsAbstract set value false +# ID (int) + data modify storage asset:object ID set value 2002 +# フィールド + data modify storage asset:object Field set value {item:{id:"minecraft:leather_horse_armor",Count:1b,tag:{display:{color:0},CustomModelData:20353}}} diff --git a/Asset/data/asset/functions/object/2002.slash_effect_2/summon/debug.mcfunction b/Asset/data/asset/functions/object/2002.slash_effect_2/summon/debug.mcfunction new file mode 100644 index 0000000000..1aaff34ec7 --- /dev/null +++ b/Asset/data/asset/functions/object/2002.slash_effect_2/summon/debug.mcfunction @@ -0,0 +1,10 @@ +#> asset:mob/2002.slash_effect_2/summon/debug +# +# 動作チェック用の召喚処理 使い終わったら消してもいいかも +# +# @user +# @private + +# 召喚 + data modify storage api: Argument.ID set value 2002 + function api:object/summon \ No newline at end of file diff --git a/Asset/data/asset/functions/object/alias/2002/register.mcfunction b/Asset/data/asset/functions/object/alias/2002/register.mcfunction new file mode 100644 index 0000000000..9a1118276c --- /dev/null +++ b/Asset/data/asset/functions/object/alias/2002/register.mcfunction @@ -0,0 +1,8 @@ +#> asset:object/alias/2002/register +# +# Objectのデータ指定処理のエイリアス +# +# @within asset_manager:object/summon/summon.m + +# 元の登録処理を呼び出す + function asset:object/2002.slash_effect_2/register \ No newline at end of file