dniym/IllegalStack

Bug Report: 0 tick farm check removing non-0tick farms

jpenilla opened this issue · 8 comments

When 0-tick farm detection is on, it detects this lossless (not 0-tick!) sugarcane farm by TangoTek as 0-tick and removes all of the pistons and dirt. This bug is 100% reproducible by building more than one layer of the linked farm and letting it run for around 2-5 minutes.

I'm getting this on my server as well. Player built the same sugar cane farm from that video and it got destroyed.

It would appear that anytime a piston moves underneath a block with sugarcane on top it is being detected as a 0-tick farm and the piston and block are being removed.

See attached image. I couldn't get this design to actually 0-tick grow even in single player, but will be detected by IllegalStack as a 0-tick farm %100 of the time if that piston moves. Even if it's activated by lever.

[IllegalStack] -Stopped 1.13 - 1.14 Zero tick crop growth glitch and removed (PODZOL) @ Location{world=CraftWorld{name=world},x=49.0,y=41.0,z=-300.0,pitch=0.0,yaw=0.0}

image

dniym commented

Hmmm Interesting, I’ll dig into why this occurs, but I do have a question did this just get discovered by accident or is there some useful purpose for pushing air under a dirt block with a crop on it?

It was discovered because I had a player build this farm (same as the one linked by OP) and they started triggering the detection. Its useful purpose is in the stacked farm design that piston breaks the sugar cane in the row below it.

I built the example in my comment to eliminate any other from of complications or outside interference to make sure I was understanding the trigger correctly.

Screenshot of the farm design is below, recreated in our creative server that doesn't have IllegalStack installed.
image

Yes, my players were trying to build this design as well. According to them it's the most compact design that is 100% lossless. Not sure of the validity of that claim but they were disappointed to not be able to build it.

dniym commented

What version(s) of minecraft are you guys using? the zero tick exploit evolved over a couple of versions, originally it would only work on cacti and it most definitely would work if you zero ticked a block of air above, or below or beside the crop. Hence it may be fixed on one version but not on all. If you can verify your versions I can probably eliminate the under block check for that specific version once I verify zero ticking wont work on it.

1.15.2 for me.

1.15.2 here as well.

dniym commented

Alright I’ll look at disabling this check on 1.15 servers, hopefully 1.16 totally fixes the exploit