clientcommands icon indicating copy to clipboard operation
clientcommands copied to clipboard

Add --keep-searching option to /cfindblock

Open Spacebarium opened this issue 4 years ago • 8 comments

For example, /cfindblock spawner --i 20 would run the command every 20 seconds. Not sure how many commands this could be realistically applied to

Spacebarium avatar Feb 15 '21 05:02 Spacebarium

Why not run it every tick?

Earthcomputer avatar Feb 15 '21 09:02 Earthcomputer

I find that cfindblock can cause really big lagspikes when unable to find any nearby so running it every tick wouldn't be so great

Also just realised the scripting feature can do exactly this so maybe this can be used for shorter activities that don't need a whole script?

Spacebarium avatar Feb 15 '21 14:02 Spacebarium

We could have --i 20 be every 20 ticks...

Mr-Sbev avatar Feb 15 '21 15:02 Mr-Sbev

Why not cinterval <time> <command>, where <time> is a minecraft:time?

0f-0b avatar Feb 15 '21 15:02 0f-0b

We probably want to exclude any already found blocks

LemonatedCat avatar Feb 15 '21 15:02 LemonatedCat

We could also just... ya know... optimize cfindblock --keep-searching so it doesnt lag the game out

Earthcomputer avatar Feb 15 '21 18:02 Earthcomputer

That sounds like a pretty fringe usecase that you can already do with /cscript

Earthcomputer avatar Feb 16 '21 08:02 Earthcomputer

Changing this to a --keep-searching option, which seems to better reflect the problem you actually want to solve.

Earthcomputer avatar Mar 12 '21 10:03 Earthcomputer