Skip to content

Commit bc6a184

Browse files
committed
🚸 他のテレポーターが発見できなかった時に表示されるログにクールダウンを追加
1 parent c78ee03 commit bc6a184

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

TheSkyBlessing/data/asset_manager/functions/teleporter/tick/player.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818
execute unless entity @s[tag=!TeleporterInitializing,tag=!TeleporterInitialized] run function asset_manager:teleporter/tick/cancel/check
1919
execute if entity @s[tag=TPCancel] run function asset_manager:teleporter/tick/cancel/
2020

21+
# テレポート失敗時ログのクールダウンを減らす
22+
scoreboard players remove @s[scores={TeleporterLogCD=0..}] TeleporterLogCD 1
23+
2124
# リセット
2225
tag @e[type=marker,tag=FromTeleporter,distance=..1,limit=1] remove FromTeleporter

TheSkyBlessing/data/asset_manager/functions/teleporter/tick/star_init/.mcfunction

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
execute if score $ActivateStarCount Temporary matches 2.. run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].Temp.Teleporters set from storage asset:teleporter FilteredTeleporters
2121
execute if score $ActivateStarCount Temporary matches 2.. run tag @s add TeleporterInitializing
2222
# なければ初期化済タグを付与し、メッセージを出す
23-
execute if score $ActivateStarCount Temporary matches ..1 run tellraw @s {"text":"このテレポーターはどこにも繋がっていないようだ...","color":"light_purple"}
2423
execute if score $ActivateStarCount Temporary matches ..1 run tag @s add TeleporterInitialized
24+
execute if score $ActivateStarCount Temporary matches ..1 unless score @s TeleporterLogCD matches 0.. run tellraw @s {"text":"このテレポーターはどこにも繋がっていないようだ...","color":"light_purple"}
25+
execute if score $ActivateStarCount Temporary matches ..1 unless score @s TeleporterLogCD matches 0.. run scoreboard players set @s TeleporterLogCD 60
2526
# リセット
2627
scoreboard players reset $ActivateStarCount Temporary
2728
data remove storage asset:teleporter FilteredTeleporters

TheSkyBlessing/data/core/functions/load_once.mcfunction

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ team modify NoCollision collisionRule never
173173
scoreboard objectives add SpawnerHP dummy {"text":"スポナーの残体力"}
174174
scoreboard objectives add SpawnerCooldown dummy {"text":"スポナーの召喚クールダウン"}
175175

176+
#> AssetManager: Teleporter
177+
# @within function
178+
# asset_manager:teleporter/**
179+
scoreboard objectives add TeleporterLogCD dummy {"text":"他のテレポーターが発見できなかった際のログのクールダウン"}
180+
176181
#> AssetManager: Island
177182
# @within function
178183
# asset_manager:island/**

0 commit comments

Comments
 (0)