There is an addon named spawn chunks it s makes add tickarea when u place a block or make a farm like java edition spawn chunk but when u enter the nether it stops adding new ticks area ,
This is its code (plz fix it if u can) :
#bridge-file-version: #0
execute @a[tag=spawn] ~ ~ ~ tag @a add spawn
execute @a[tag=!spawn] ~ ~ ~ tickingarea add circle ~ ~ ~ 4
tag @a add spawn
( There is also tick.json in the functions file )