Judge Richardson said the men had “harboured” a willingness to use their weapons if “trouble” arose and had “mistakenly” thought the two victims were involved in the cannabis factory they were trying to plunder.

The court was told the quartet returned to Rotherham after the attack and changed their clothes, while the Nissan X-Trail they used to travel in was disposed of.

The 26-year-old victim who was seriously hurt needed surgery for injuries to his lower abdomen, it was said, while he required critical care for a period of time.

Oates, of Weston Road in Rotherham, Rogers of Beauchamp Road in Rotherham, Oliver Jebson, of Fretwell Road in Rotherham, and Samuel Jebson, of St Leonard’s Avenue in Rotherham, were told their sentences were made longer because of the presence of a second victim, even though they escaped injury.

Det Sgt Andrew Jones, the officer in charge of the case, said: “This was a horrific attack in which both victims were inches just away from suffering fatal injuries.

“These men acted like thugs and there is no place for them or their actions in our community.”