1. Bed needs wood, saw(bought in buy menu), and cloth, do get cloth you have to buy sheep and buy shears,both in but menu, then hit the sheep with the shears.
2. The barrel requires steel bars, which need iron ore ad carbon and smelted at a forge, you also need a receiver for why type of gun, if I were you get a Winchester or sharps receiver.