Complete rewritten beds mod