#clientside farming
1 messages · Page 1 of 1 (latest)
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 ^
but I think it cause the lag instead
try running both the functions
and see which one cause the lag
u mean like with a cmd run them seperatly
cuz when iload the sk it runs this function and it lags
its lwk hard to test ii keep getting kicked for sending to many packets
try using shorter area
when i have a smaller region everythink works perfect
you know the reason why it lags
tryed it everywhere same isssue
if mod(loop-index, 100) = 0:
wait 1 tick
also tryed same issue
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
🤷♂️
well ill try
@willow canopy Perfect ad opportunity.
Can I do it here?