From 41a6b309b97442664bfde01a388dff50a80393b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AF=E3=81=84=E3=81=84=E3=82=8D?= Date: Sun, 22 Sep 2024 13:17:21 +0900 Subject: [PATCH] =?UTF-8?q?:technologist:=20api:damage/modifier=5Fmanual?= =?UTF-8?q?=E3=82=92=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/modify/non-player_manual.mcfunction | 7 +++++++ .../functions/damage/modifier_manual.mcfunction | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 TheSkyBlessing/data/api/functions/damage/core/modify/non-player_manual.mcfunction create mode 100644 TheSkyBlessing/data/api/functions/damage/modifier_manual.mcfunction diff --git a/TheSkyBlessing/data/api/functions/damage/core/modify/non-player_manual.mcfunction b/TheSkyBlessing/data/api/functions/damage/core/modify/non-player_manual.mcfunction new file mode 100644 index 000000000..c082adb51 --- /dev/null +++ b/TheSkyBlessing/data/api/functions/damage/core/modify/non-player_manual.mcfunction @@ -0,0 +1,7 @@ +#> api:damage/core/modify/non-player_manual +# +# +# +# @within function api:damage/modifier_manual + +execute store result score $LatestModifiedEntity MobUUID run data get storage api: Argument.MobUUID diff --git a/TheSkyBlessing/data/api/functions/damage/modifier_manual.mcfunction b/TheSkyBlessing/data/api/functions/damage/modifier_manual.mcfunction new file mode 100644 index 000000000..56eab7aa9 --- /dev/null +++ b/TheSkyBlessing/data/api/functions/damage/modifier_manual.mcfunction @@ -0,0 +1,14 @@ +#> api:damage/modifier_manual +# +# MobUUID を明示的に指定して modifier を実行します。 +# +# この関数は事前に MobUUID がわかっている際に活用することが出来ます。 +# +# @input storage api: +# Argument.MobUUID: int +# @api + +# 引数チェック + execute unless data storage api: Argument.MobUUID run tellraw @a [{"storage":"global","nbt":"Prefix.ERROR"},{"text":"引数が足りません","color":"white"},{"text":" MobUUID","color":"red"}] + +function api:damage/core/modify/non-player_manual