Disclaimer: Just want to make clear that this is a modification of an old add-on I do not own. All credits go to their respective owner. This add-on is released only because the old one was restricted to how many bricks it could paint before it hung the server. This update will only make it more stable by fixing this restriction.Fill Can v2.0From its predecessor, this tool will do everything that its previous version could do: Paint all near bricks that is the same color, to a different picked color. All other functionalities have not been touched at all. The update contains a more stable way to paint a ludicrous amount of bricks.
Technically all bricks next to each other, even on the edge, will be painted, as shown
here. This animation also shows that after the gathering, it will only take one second to paint over 7k bricks.
Additionally I added so one can set the max bricks preference to 0 to remove the max brick limitation. Previously one needed to set a really high value to dodge this. (Keep in mind that it is not recommended to paint more than 5000 bricks anyway, which is the new default limit.)
Update: An another bug was fixed, which was fixed year ago, but actually was quite hard to find the topic for it. Mr.Noßody provided with a fix for this issue, which was painting on players.
Update2: Max Bricks limit bug was fixed.
Thanks to Trinko for the suggestion and Misterlegodude for beta testing. Thanks to Mr.Noßody for telling about an another fix for an another issue.
Technical jargonThe update includes a more stable way to locate the related bricks, and a much faster way to paint them and undo it. Keep in mind that this is
not faster, but only made so it is much harder to hang the server in a case of what feels like eternal waiting period. Due to how it originally was intended, it is quite hard to make it faster than it currently is. Box searches are quite slow, and in worst case scenarios it has to look over 30 times more bricks than there actually are.
In comparison, in the alpha version of this update, it was made to
work like the original. Note that the video above contains over 176k bricks which is painted in the course of about the same time as the original, but the video was cut down to make it shorter. That was changed in the beta, where it will now tell you it will gather all the bricks before it paints them, taking double the time but puts less strain on the server. While this is happening, removing the tool, dying or disconnecting from the server will stop the ongoing process. The beta version made it possible to undo this task in
seconds on the same amount of bricks.
Also keep in mind that I took my time to make sure it looks like I didn't do anything to the source at all, as the code style is kept intact. That includes one(1) space indentation and no spaces anywhere where it normally should be spaces to make the code readable.
tl;drDownload (mirror.aposoc.net)
Old download:
Discord (My fix, but without fix of face paint)
RTBGlass