The invention relates to a method for producing blocks of an aqueous gel, comprising: a step of forming a compound by mixing: i. an aqueous substrate which is liquid at ambient temperature and which is brought to a temperature allowing the dissolution (E1) of a gelling agent; and ii. the gelling agent, - a step of drawing off (E4) the compound; - a step of in-line cooling (E5) of the compound so as to bring it below a second temperature at which it gels; - a step of transferring (E6) to a distribution line; - a step of cutting (E7) the gelled compound into blocks at the outlet of the distribution line; and - a step of distributing the blocks of gel into a farming container immediately after the gel is cut into blocks. Such a method allows blocks of gel to be produced continuously and as required in the context of rearing livestock, in particular rearing insects. The invention also relates to a corresponding device.