diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-06-24 14:03:38 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-06-24 14:03:38 +0200 |
commit | 29513178db6308cb97fb0322df14097db2934536 (patch) | |
tree | 670e7abb62a8329b81061d99c378277ab2efd5b4 /data/onechunk/functions | |
parent | 9ac1f75397a82c361c500edec6fdcb2e2e91d028 (diff) |
update to 1.21 and fix worldborder center call
Diffstat (limited to 'data/onechunk/functions')
-rw-r--r-- | data/onechunk/functions/initialize.mcfunction | 43 | ||||
-rw-r--r-- | data/onechunk/functions/load.mcfunction | 3 | ||||
-rw-r--r-- | data/onechunk/functions/tick.mcfunction | 0 |
3 files changed, 0 insertions, 46 deletions
diff --git a/data/onechunk/functions/initialize.mcfunction b/data/onechunk/functions/initialize.mcfunction deleted file mode 100644 index 5d6766c..0000000 --- a/data/onechunk/functions/initialize.mcfunction +++ /dev/null @@ -1,43 +0,0 @@ -scoreboard players set $chunkSize onechunk_data 16 - -execute store result score $posX onechunk_data run data get entity @p Pos[0] -execute store result score $posZ onechunk_data run data get entity @p Pos[2] - -# posX - ( posX % 16 ) -# posZ - ( posZ % 16 ) -# = chunk start corner -# + 15 = chunk end corner - -execute store result score $chunkStartX onechunk_data run scoreboard players get $posX onechunk_data -execute store result score $tmp onechunk_data run scoreboard players get $posX onechunk_data -scoreboard players operation $tmp onechunk_data %= $chunkSize onechunk_data -scoreboard players operation $chunkStartX onechunk_data -= $tmp onechunk_data - -execute store result score $chunkStartZ onechunk_data run scoreboard players get $posZ onechunk_data -execute store result score $tmp onechunk_data run scoreboard players get $posZ onechunk_data -scoreboard players operation $tmp onechunk_data %= $chunkSize onechunk_data -scoreboard players operation $chunkStartZ onechunk_data -= $tmp onechunk_data - -execute store result score $chunkCenterX onechunk_data run scoreboard players get $chunkStartX onechunk_data -scoreboard players set $tmp onechunk_data 8 -scoreboard players operation $chunkCenterX onechunk_data += $tmp onechunk_data - -execute store result score $chunkCenterZ onechunk_data run scoreboard players get $chunkStartZ onechunk_data -scoreboard players set $tmp onechunk_data 8 -scoreboard players operation $chunkCenterZ onechunk_data += $tmp onechunk_data - -summon armor_stand ~ ~ ~ {NoGravity:1,Invulnerable:1,Invisible:1,Tags:["teleport_target"]} -execute store result entity @e[tag=teleport_target,limit=1] Pos[0] double 1 run scoreboard players get $chunkCenterX onechunk_data -execute store result entity @e[tag=teleport_target,limit=1] Pos[2] double 1 run scoreboard players get $chunkCenterZ onechunk_data -execute store result entity @e[tag=teleport_target,limit=1] Pos[1] double 1 run data get entity @p Pos[1] - -tp @p @e[tag=teleport_target,limit=1] -kill @e[tag=teleport_target] -execute as @p run worldborder center ~ ~ -worldborder set 16 - -#fill -#X-1 -64 Z-1 X+15+1 319 Z-1 -#X-1 -64 Z-1 X-1 219 Z+15+1 -#X+15+1 -64 Z-1 X+15+1 219 Z+15+1 -#X-1 -64 Z+15+1 X+15+1 219 Z+15+1 diff --git a/data/onechunk/functions/load.mcfunction b/data/onechunk/functions/load.mcfunction deleted file mode 100644 index 336a971..0000000 --- a/data/onechunk/functions/load.mcfunction +++ /dev/null @@ -1,3 +0,0 @@ -scoreboard objectives add onechunk_data dummy - -#function onechunk:initialize diff --git a/data/onechunk/functions/tick.mcfunction b/data/onechunk/functions/tick.mcfunction deleted file mode 100644 index e69de29..0000000 --- a/data/onechunk/functions/tick.mcfunction +++ /dev/null |