Skip to content

Commit

Permalink
Add a small delay before starting the next stage of pre generation as
Browse files Browse the repository at this point in the history
forceloaded chunks appear to now happen on the next tick
  • Loading branch information
DrHenchman committed Jun 13, 2021
1 parent b6fd17d commit a6fed8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion data/uhc_pack/functions/pre_generation/tick.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ execute if score X uhcPG matches 0.. if score Z uhcPG matches 0.. run function u

# Check exit condition
# If the test fails, mark this step as done and continue
execute unless entity @e[type=minecraft:armor_stand,tag=pre_generator] run function uhc_pack:pre_generation/stage/complete
execute if entity @e[type=minecraft:armor_stand,tag=pre_generator] run scoreboard players set NextStageDelay uhcPG 0
execute unless entity @e[type=minecraft:armor_stand,tag=pre_generator] run scoreboard players add NextStageDelay uhcPG 1
execute if score NextStageDelay uhcPG matches 20.. run function uhc_pack:pre_generation/stage/complete
execute if score NextStageDelay uhcPG matches 20.. run scoreboard players set NextStageDelay uhcPG 0
execute if score Stage uhcPG matches ..2 run schedule function uhc_pack:pre_generation/tick 1t

0 comments on commit a6fed8b

Please sign in to comment.