Skip to content

Commit

Permalink
ダークファミリアのスコアを汎用スコアへ変更
Browse files Browse the repository at this point in the history
  • Loading branch information
Lapis-LJA committed Nov 17, 2024
1 parent a8b8be4 commit 265d2b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
execute positioned ~ ~1.68 ~ unless block ^ ^ ^0.2 #lib:no_collision at @s run tp @s ~ ~ ~ ~45 ~-45

# スコア
scoreboard players add @s 7D.Tick 1
scoreboard players add @s General.Mob.Tick 1

# 消える
execute if entity @s[scores={7D.Tick=200..}] run function asset:mob/0265.dark_familiar/tick/kill
execute if entity @s[scores={General.Mob.Tick=200..}] run function asset:mob/0265.dark_familiar/tick/kill

# 一定間隔で攻撃 召喚してすぐは攻撃しないようにしている
scoreboard players operation $Interval Temporary = @s 7D.Tick
scoreboard players operation $Interval Temporary = @s General.Mob.Tick
scoreboard players operation $Interval Temporary %= $40 Const
execute if score $Interval Temporary matches 0 anchored eyes positioned ^ ^ ^ summon marker run function asset:mob/0265.dark_familiar/tick/shoot
scoreboard players reset $Interval Temporary
1 change: 0 additions & 1 deletion Asset/data/asset/tags/functions/mob/load.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"values": [
"asset:mob/0265.dark_familiar/load",
"asset:mob/0264.dark_summoner/load",
"asset:mob/0188.fireball/load",
"asset:mob/0187.flame_mage/load",
Expand Down

0 comments on commit 265d2b1

Please sign in to comment.