mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add support for using arbitrary meshes as items
This commit is contained in:
parent
f14e7bac54
commit
91bafceee6
5 changed files with 185 additions and 9 deletions
|
@ -58,6 +58,8 @@ ItemDefinition read_item_definition(lua_State* L,int index,
|
|||
getstringfield(L, index, "description", def.description);
|
||||
getstringfield(L, index, "inventory_image", def.inventory_image);
|
||||
getstringfield(L, index, "wield_image", def.wield_image);
|
||||
getstringfield(L, index, "mesh", def.meshname);
|
||||
getstringfield(L, index, "meshtexture", def.meshtexture);
|
||||
|
||||
lua_getfield(L, index, "wield_scale");
|
||||
if(lua_istable(L, -1)){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue