Add Lua functions to get/set properties of blocks.