I spent many hours trying to change formspec of the player, but it doesn't work at all!
Player.cpp definetily stated on the line #55 that deafault player's formspec could be changed:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
// Can be redefined via Lua
inventory_formspec = "size[8,7.5]"
//"image[1,0.6;1,2;player.png]"
"list[current_player;main;0,3.5;8,4;]"
"list[current_player;craft;3,0;3,3;]"
"list[current_player;equipment;0.5,0;1,4;]"
"list[current_player;craftpreview;7,1;1,1;]";
What I want is to alter size of craft list to 2x2 and to add some new list 1x1.
There is a function set_player_properties() which was used in the player_textures mod to give dfferent players different textures.
I tried to set inventory_formspec using that function but it didn't work.
So, could anyone help me to set player's formspec?