Could this be done using a plugin?

Basicly its a tugboat where you can places and sleepingbags, but instead it's foundations (and you can build walls etc on those foundations)

Or does the game not allow this?