Skip to content

Commit

Permalink
Fix skybox item frames not respawning
Browse files Browse the repository at this point in the history
  • Loading branch information
NeunEinser committed Sep 9, 2023
1 parent da55e60 commit 9f60160
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions datapack/data/fetchr/functions/init/init.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,10 @@ forceload add 0 0
scoreboard players set 20 fetchr.const 20
#>
# @public
#declare score_holder 25
scoreboard players set 25 fetchr.const 25
#>
# @public
#declare score_holder 32
scoreboard players set 32 fetchr.const 32
#>
Expand Down
6 changes: 4 additions & 2 deletions datapack/data/fetchr/functions/lobby/tick.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ execute as @e[type=minecraft:item_frame, tag=fetchr.card_frame, nbt=!{ItemRotati
#
# @private
#declare score_holder $lobby/loop.frame_count
execute store result score $lobby/loop.frame_count fetchr.tmp if entity @e[type=minecraft:item_frame, tag=fetchr.card_frame, distance=0..]
execute unless score $lobby/loop.frame_count fetchr.tmp matches 25 run function fetchr:card_frames/spawn
execute store result score $lobby/loop.frame_count fetchr.tmp if entity @e[type=minecraft:item_frame, tag=fetchr.card_frame]
execute if score $lobby/loop.frame_count fetchr.tmp matches 0 run function fetchr:card_frames/spawn
scoreboard players operation $lobby/loop.frame_count fetchr.tmp %= 25 fetchr.const
execute unless score $lobby/loop.frame_count fetchr.tmp matches 0 run function fetchr:card_frames/spawn

gamerule sendCommandFeedback true

0 comments on commit 9f60160

Please sign in to comment.