Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions TheSkyBlessing/data/core/functions/load_once.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ team modify NoCollision collisionRule never
scoreboard objectives add LogRemoveTime dummy
scoreboard objectives add ScoreToHPFluc dummy

#> 神器の使用失敗メッセージのクールダウン
# @within function lib:message/artifact/**
scoreboard objectives add CannotUseHereLatestLogTick dummy
scoreboard objectives add ConditionNotMetLatestLogTick dummy
scoreboard objectives add DontHaveRequiredItemsLatestLogTick dummy

#> PlayerManager - Motionチェック用スコアボード
# @within
# function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@
#
# @api

tellraw @s [{"text":"ここでは使用できません。","color":"red"}]
#> Private
# @private
#declare score_holder $CurrentTick

# クールダウン
execute store result score $CurrentTick Temporary run data get storage global Time
scoreboard players operation $CurrentTick Temporary -= @s CannotUseHereLatestLogTick
execute if score $CurrentTick Temporary matches 20.. run tellraw @s [{"text":"ここでは使用できません。","color":"red"}]
execute if score $CurrentTick Temporary matches 20.. store result score @s CannotUseHereLatestLogTick run time query gametime
scoreboard players reset $CurrentTick Temporary
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@
#
# @api

tellraw @s [{"text":"発動条件を満たしていません。","color":"red"}]
#> Private
# @private
#declare score_holder $CurrentTick

# クールダウン
execute store result score $CurrentTick Temporary run data get storage global Time
scoreboard players operation $CurrentTick Temporary -= @s ConditionNotMetLatestLogTick
execute if score $CurrentTick Temporary matches 20.. run tellraw @s [{"text":"発動条件を満たしていません。","color":"red"}]
execute if score $CurrentTick Temporary matches 20.. store result score @s ConditionNotMetLatestLogTick run time query gametime
scoreboard players reset $CurrentTick Temporary
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@
#
# @api

tellraw @s [{"text":"発動に必要なアイテムを所持していません。","color":"red"}]
#> Private
# @private
#declare score_holder $CurrentTick

# クールダウン
execute store result score $CurrentTick Temporary run data get storage global Time
scoreboard players operation $CurrentTick Temporary -= @s DontHaveRequiredItemsLatestLogTick
execute if score $CurrentTick Temporary matches 20.. run tellraw @s [{"text":"発動に必要なアイテムを所持していません。","color":"red"}]
execute if score $CurrentTick Temporary matches 20.. store result score @s DontHaveRequiredItemsLatestLogTick run time query gametime
scoreboard players reset $CurrentTick Temporary
Loading