-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dfef2a6
commit 636d7d4
Showing
7 changed files
with
42 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...orage/functions/gc/resize/loop.mcfunction → ...orage/functions/gc/resize/data.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#> indexstorage:gc/resize/loop | ||
# @within function | ||
# indexstorage:tick | ||
# indexstorage:gc/resize/loop | ||
# indexstorage:gc/resize/data | ||
|
||
# 末尾を削除 | ||
data remove storage indexstorage: data[-1] | ||
# ループ | ||
scoreboard players remove #ResizeIndex Ashen.Global.Temporary 1 | ||
execute if score #ResizeIndex Ashen.Global.Temporary matches 1.. run function indexstorage:gc/resize/loop | ||
execute if score #ResizeIndex Ashen.Global.Temporary > #StorageIDIndex Ashen.Global.Global run function indexstorage:gc/resize/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#> indexstorage:gc/resize/id | ||
# @within function | ||
# indexstorage:tick | ||
# indexstorage:gc/resize/id | ||
|
||
#> Val | ||
# @private | ||
#declare score_holder #TargetID | ||
|
||
# スコアに変換 | ||
execute store result score #TargetID Ashen.Global.Temporary run data get storage indexstorage:core temp[-1] | ||
# 上限値より小さければそのまま戻す | ||
execute if score #TargetID Ashen.Global.Temporary <= #StorageIDIndex Ashen.Global.Global run data modify storage indexstorage:core UnusedID append from storage indexstorage:core temp[-1] | ||
# ループ | ||
data remove storage indexstorage:core temp[-1] | ||
scoreboard players reset #TargetID Ashen.Global.Temporary | ||
execute if data storage indexstorage:core temp[-1] run function indexstorage:gc/resize/id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters