Issue #2787641 by pwolanin, YesCT: Add non-UI mechanism for setting block weight through block forms (cherry picked from commit ea28d669)