Add function to generate a scm file to represent all the blockEntities, every time the Unity create the world

Signed-off-by: Shujing Ke <rainkekekeke@gmail.com>