I'm making a server but I have little scripting knowledge, so the question i'm asking here is how would you make blocks that can:

-can be placed. -can be de-placed with a hammar after a few hits and go back in inventory . -can be placed and de-placed within a range of distance. -has a limited supply. -snaps to 4 studs.

Basically I want it to have the same mechanics in Minecraft.

And er, maybe a water/lava block that can spread.