Block Scripts: Initialization Entry Points
Back
You can define these functions in your block Lua scripts
and they will be called by the engine.
These are called during initialization
in the Initialization Lua state.
Block Lua scripts are Lua scripts found in the WorldNodes/Nodes
directory (and its subdirectories) of your package.
The Main Initialization Function For The Block Type
void __type_init(int type_id);
Specifying If The Block Is Solid
bool __get_is_solid(); //Mandatory.
bool __get_is_solid_physically();
bool __get_is_solid_move_body();
bool __get_is_solid_visibly();
bool __get_is_solid_visibly_glass();
bool __get_is_solid_visibly_water();
Specifying The Texture Of The Block
string __get_tex(); //Mandatory.
string __get_tex_x_pos();
string __get_tex_x_neg();
string __get_tex_y_pos();
string __get_tex_y_neg();
string __get_tex_z_pos();
string __get_tex_z_neg();
string __get_inv_tex_x_pos();
string __get_inv_tex_x_neg();
string __get_inv_tex_y_pos();
string __get_inv_tex_y_neg();
string __get_inv_tex_z_pos();
string __get_inv_tex_z_neg();
bool __get_partially_transparent();