Skip to content

Commit

Permalink
🩹 いくつかのMobの修正 (#1348)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lapis-LJA committed Jun 26, 2023
1 parent 05f37c8 commit 37dfaf0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# 魔法属性
data modify storage lib: Argument.AttackType set value "Magic"
# 属性
data modify storage lib: Argument.ElementType set value "Water"
data modify storage lib: Argument.ElementType set value "Fire"
# ダメージ
function lib:damage/modifier
execute as @a[tag=!PlayerShouldInvulnerable,distance=..3] run function lib:damage/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
data modify storage lib: Argument.ElementType set value "Fire"
# ダメージ
function lib:damage/modifier
execute as @p[tag=!PlayerShouldInvulnerable,distance=..4] at @s run function lib:damage/
execute as @a[tag=!PlayerShouldInvulnerable,distance=..4] run function lib:damage/
# リセット
function lib:damage/reset
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,5 @@
# 一定周期の特殊能力(分岐functionに記載)
execute if score @s 29.SnowTick matches 60.. run function asset:mob/0081.snow_cloud/tick/5.snowing

# 近くにプレイヤーがいない場合は消滅
execute unless entity @a[gamemode=!spectator,distance=..30] run kill @s


# 近くにプレイヤーがいない場合は奈落行き
execute unless entity @a[gamemode=!spectator,distance=..30] run tp @s ~ -999 ~
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
# 移動速度上昇を付与
effect give @e[type=#lib:living,tag=Enemy,tag=!this,tag=!Uninterferable,distance=..5] speed 3 2 true

# 死ぬ
kill @s
# 奈落行き
tp @s ~ -999 ~

0 comments on commit 37dfaf0

Please sign in to comment.