diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-07-19 14:09:16 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-07-19 14:09:16 +0300 |
commit | 16ad10e62f4dcf620f9a962b07aa39f1c561f8dc (patch) | |
tree | f82e70e1d3d1c54b179ef4b3bc4b06bd702316dc /games | |
parent | 02fb912a955c9e5baa86ecd4206eefaa88f3e60a (diff) | |
download | minetest-16ad10e62f4dcf620f9a962b07aa39f1c561f8dc.tar.gz minetest-16ad10e62f4dcf620f9a962b07aa39f1c561f8dc.tar.bz2 minetest-16ad10e62f4dcf620f9a962b07aa39f1c561f8dc.zip |
Allow defining player's inventory form in Lua
Diffstat (limited to 'games')
-rw-r--r-- | games/minimal/mods/experimental/init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/games/minimal/mods/experimental/init.lua b/games/minimal/mods/experimental/init.lua index e8551034f..fb3310246 100644 --- a/games/minimal/mods/experimental/init.lua +++ b/games/minimal/mods/experimental/init.lua @@ -504,6 +504,16 @@ minetest.register_craft({ } }) +--[[minetest.register_on_joinplayer(function(player) + minetest.after(3, function() + player:set_inventory_formspec("invsize[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;craftpreview;7,1;1,1;]") + end) +end)]] + minetest.log("experimental modname="..dump(minetest.get_current_modname())) minetest.log("experimental modpath="..dump(minetest.get_modpath("experimental"))) minetest.log("experimental worldpath="..dump(minetest.get_worldpath())) |