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

Modified worldborder size #3

Open
wants to merge 1 commit 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
2 changes: 1 addition & 1 deletion data/tickbuster/functions/host/subtick/break.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
function #tickbuster:break_loop

# Fool the sub-tick loop into thinking time is up by forcefully resizing the worldborder.
worldborder set 60000000
worldborder set 59999968

# The sub-tick loop will run-off at the end of the current iteration.
# Or, if invoked in the before-tick-loop, the sub-tick loop will not run at all.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Move the worldborder by 1000 blocks over the course of 1 second, which equates
# to 1 block per millisecond. We can then detect how many milliseconds of real
# time have passed during the rest of the tick.
worldborder set 59999000
worldborder set 59998968
worldborder add 1000 1

# Make sure that `minecraft:enter_block` is the last criteria to be fulfilled,
Expand Down
2 changes: 1 addition & 1 deletion data/tickbuster/functions/util/sync_config.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ scoreboard players operation $target tkb.math = $target tkb.config
execute if score $target tkb.math matches 51.. unless score $overclock tkb.config matches 1.. run scoreboard players set $target tkb.math 50

# adjust target blocks
scoreboard players set $targetwb tkb.math 59999000
scoreboard players set $targetwb tkb.math 59998968
scoreboard players operation $targetwb tkb.math += $target tkb.math