Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♿ api:data_getを実行時該当ストレージを一旦削除するように #1496

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: abilities
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.abilities.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.abilities.Data set from entity @s abilities
# outputのstorageに移す
data modify storage api: abilities set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.abilities.Data
data modify storage api: abilities set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.abilities.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: AbsorptionAmount
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.AbsorptionAmount.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.AbsorptionAmount.Data set from entity @s AbsorptionAmount
# outputのstorageに移す
data modify storage api: AbsorptionAmount set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.AbsorptionAmount.Data
data modify storage api: AbsorptionAmount set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.AbsorptionAmount.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: active_effects
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.active_effects.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run function api:data_get/active_effects_fetch
# outputのstorageに移す
data modify storage api: active_effects set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.active_effects.Data
data modify storage api: active_effects set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.active_effects.Data
4 changes: 2 additions & 2 deletions TheSkyBlessing/data/api/functions/data_get/air.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: Air
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Air.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Air.Data set from entity @s Air
# outputのstorageに移す
data modify storage api: Air set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Air.Data
data modify storage api: Air set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Air.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: Attributes
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Attributes.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Attributes.Data set from entity @s Attributes
# outputのstorageに移す
data modify storage api: Attributes set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Attributes.Data
data modify storage api: Attributes set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Attributes.Data
4 changes: 2 additions & 2 deletions TheSkyBlessing/data/api/functions/data_get/brain.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: Brain
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Brain.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Brain.Data set from entity @s Brain
# outputのstorageに移す
data modify storage api: Brain set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Brain.Data
data modify storage api: Brain set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Brain.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
# @output storage api: CustomName
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

# EntityStorage呼び出し
function oh_my_dat:please
# 最新のものかチェックし、最新じゃなければ取得
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.CustomName.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.CustomName.Data set from entity @s CustomName
execute if score $NotLatestData Temporary matches 1 run function api:data_get/custom_name_fetch
# outputのstorageに移す
data modify storage api: CustomName set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.CustomName.Data
data modify storage api: CustomName set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.CustomName.Data
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#> api:data_get/custom_name_fetch
#
#
#
# @within function api:data_get/custom_name

data modify storage api: Temp set from entity @s CustomName
execute if data storage api: Temp run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.CustomName.Data set from storage api: Temp
execute unless data storage api: Temp run data remove storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.CustomName.Data

data remove storage api: Temp
data remove storage api: CustomName
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
# @output storage api: CustomNameVisible
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

# EntityStorage呼び出し
function oh_my_dat:please
# 最新のものかチェックし、最新じゃなければ取得
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.CustomNameVisible.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.CustomNameVisible.Data set from entity @s CustomNameVisible
execute if score $NotLatestData Temporary matches 1 run function api:data_get/custom_name_visible_fetch
# outputのstorageに移す
data modify storage api: CustomNameVisible set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.CustomNameVisible.Data
data modify storage api: CustomNameVisible set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.CustomNameVisible.Data
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#> api:data_get/custom_name_visible_fetch
#
#
#
# @within function api:data_get/custom_name_visible

data modify storage api: Temp set from entity @s CustomNameVisible
execute if data storage api: Temp run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.CustomNameVisible.Data set from storage api: Temp
execute unless data storage api: Temp run data remove storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.CustomNameVisible.Data

data remove storage api: Temp
data remove storage api: CustomNameVisible
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: DataVersion
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.DataVersion.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.DataVersion.Data set from entity @s DataVersion
# outputのstorageに移す
data modify storage api: DataVersion set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.DataVersion.Data
data modify storage api: DataVersion set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.DataVersion.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: DeathTime
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.DeathTime.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.DeathTime.Data set from entity @s DeathTime
# outputのstorageに移す
data modify storage api: DeathTime set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.DeathTime.Data
data modify storage api: DeathTime set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.DeathTime.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: Dimension
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Dimension.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Dimension.Data set from entity @s Dimension
# outputのstorageに移す
data modify storage api: Dimension set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Dimension.Data
data modify storage api: Dimension set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Dimension.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: EnderItems
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.EnderItems.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.EnderItems.Data set from entity @s EnderItems
# outputのstorageに移す
data modify storage api: EnderItems set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.EnderItems.Data
data modify storage api: EnderItems set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.EnderItems.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
# @output storage api: enteredNetherPosition
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

# EntityStorage呼び出し
function oh_my_dat:please
# 最新のものかチェックし、最新じゃなければ取得
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.enteredNetherPosition.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.enteredNetherPosition.Data set from entity @s enteredNetherPosition
execute if score $NotLatestData Temporary matches 1 run function api:data_get/entered_nether_position_fetch
# outputのstorageに移す
data modify storage api: enteredNetherPosition set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.enteredNetherPosition.Data
data modify storage api: enteredNetherPosition set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.enteredNetherPosition.Data
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#> api:data_get/entered_nether_position_fetch
#
#
#
# @within function api:data_get/entered_nether_position

data modify storage api: Temp set from entity @s enteredNetherPosition
execute if data storage api: Temp run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.enteredNetherPosition.Data set from storage api: Temp
execute unless data storage api: Temp run data remove storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.enteredNetherPosition.Data

data remove storage api: Temp
data remove storage api: enteredNetherPosition
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: FallDistance
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.FallDistance.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.FallDistance.Data set from entity @s FallDistance
# outputのstorageに移す
data modify storage api: FallDistance set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.FallDistance.Data
data modify storage api: FallDistance set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.FallDistance.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: FallFlying
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.FallFlying.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.FallFlying.Data set from entity @s FallFlying
# outputのstorageに移す
data modify storage api: FallFlying set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.FallFlying.Data
data modify storage api: FallFlying set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.FallFlying.Data
4 changes: 2 additions & 2 deletions TheSkyBlessing/data/api/functions/data_get/fire.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: Fire
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Fire.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Fire.Data set from entity @s Fire
# outputのstorageに移す
data modify storage api: Fire set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Fire.Data
data modify storage api: Fire set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Fire.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: foodExhaustionLevel
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodExhaustionLevel.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodExhaustionLevel.Data set from entity @s foodExhaustionLevel
# outputのstorageに移す
data modify storage api: foodExhaustionLevel set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodExhaustionLevel.Data
data modify storage api: foodExhaustionLevel set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodExhaustionLevel.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: foodLevel
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodLevel.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodLevel.Data set from entity @s foodLevel
# outputのstorageに移す
data modify storage api: foodLevel set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodLevel.Data
data modify storage api: foodLevel set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodLevel.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: foodSaturationLevel
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodSaturationLevel.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodSaturationLevel.Data set from entity @s foodSaturationLevel
# outputのstorageに移す
data modify storage api: foodSaturationLevel set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodSaturationLevel.Data
data modify storage api: foodSaturationLevel set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodSaturationLevel.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# @output storage api: foodTickTimer
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

Expand All @@ -16,4 +16,4 @@
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodTickTimer.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodTickTimer.Data set from entity @s foodTickTimer
# outputのstorageに移す
data modify storage api: foodTickTimer set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodTickTimer.Data
data modify storage api: foodTickTimer set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.foodTickTimer.Data
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
# @output storage api: Glowing
# @public

#>Temp
#> Temp
# @private
#declare score_holder $NotLatestData

# EntityStorage呼び出し
function oh_my_dat:please
# 最新のものかチェックし、最新じゃなければ取得
execute store result score $NotLatestData Temporary run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Glowing.Time set from storage global Time
execute if score $NotLatestData Temporary matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Glowing.Data set from entity @s Glowing
execute if score $NotLatestData Temporary matches 1 run function api:data_get/glowing_fetch
# outputのstorageに移す
data modify storage api: Glowing set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Glowing.Data
data modify storage api: Glowing set from storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].DataCache.Glowing.Data
Loading
Loading