Foamcrete modding

I would like to create a tool that works on the same principle as a spraying gun for foamcrete. But it should build a different type of wall and floor, not made of foamcrete. As far as I understand this action is hardcoded into the game. But what if I’m wrong and there are some simple ways to do it without digging into the coding?