Skip to content

Commit

Permalink
🧑‍💻 api:damage/modifier_manualを実装
Browse files Browse the repository at this point in the history
  • Loading branch information
haiiro2gou committed Sep 22, 2024
1 parent 1cb7285 commit 41a6b30
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 41a6b30

Please sign in to comment.