So, every block repair takes a resource, for example:
(all health is just for explaination)
Forged steel fixes 1000 hp, using a nailgun for example,
Steel block 500/1000HP, will only take 1 steel ingot to fix, however there is still 500 hp that you can fix for "free" only on that block...