#clientside farming

1 messages · Page 1 of 1 (latest)

knotty garden
#

hi

#

how big is your region?

#

that's the reason

#
function refreshRegion():
    loop all players:
        loop {farming::fakelocs::*}:
            make loop-player see block at loop-value-2 as air
    delete {farming::fakelocs::*}
    loop blocks in region "farm":
        if type of loop-block is farmland:
            set {_above} to location(x-coord of loop-block, y-coord of loop-block + 1, z-coord of loop-block, world of loop-block)
            add {_above} to {farming::fakelocs::*}
            loop all players:
                set {_crop} to {farming::crop::%uuid of loop-player%}
                if {_crop} is not set:
                    set {_crop} to "wheat"
                showCropBlock(loop-player, {_above}, {_crop})
#

this part is causing lag ^

slim dove
#

ye but how do i fix it

#

i thought it was the seeCrops function

knotty garden
knotty garden
#

and see which one cause the lag

slim dove
#

u mean like with a cmd run them seperatly

#

cuz when iload the sk it runs this function and it lags

knotty garden
#

or effect commands

slim dove
#

its lwk hard to test ii keep getting kicked for sending to many packets

knotty garden
#

try using shorter area

slim dove
#

when i have a smaller region everythink works perfect

knotty garden
slim dove
#

cuz the region is to big

#

but i need it to be big

knotty garden
#

;-;

#

add wait

slim dove
#

tryed it everywhere same isssue

knotty garden
#
if mod(loop-index, 100) = 0:
    wait 1 tick
slim dove
#

also tryed same issue

knotty garden
#

add that in every loop

#

looks like I can't really help if that won't work

slim dove
#

do u think it would be better if i made it so i can add chunks and it uses the chunks insted of a region

#

or do u think ill run into the same issue

knotty garden
#

🤷‍♂️

slim dove
#

well ill try

shell gull
#

@willow canopy Perfect ad opportunity.

willow canopy