Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mc_inv()
- for a=9,17 do
- local forma = "list[current_player;main;"
- local formb = ";1,1;"
- local num = a - 9
- local mod = (1/17) * num
- local x1 = mod + num
- local y1 = 4.5
- lista = forma..x1..","..y1..formb..a.."]"
- for aa=1,1 do
- local b = a + 9
- local y2 = y1 + (18/17)
- listb = forma..x1..","..y2..formb..b.."]"
- for aa=1,1 do
- local c = a + 18
- local y3 = y2 + (18/17)
- listc = forma..x1..","..y3..formb..c.."]"
- for aa=1,1 do
- local d = a + 27
- local y4 = y3 + (22/17)
- listd = forma..x1..","..y4..formb..d.."]"
- list = lista..listb..listc..listd..".."
- end
- end
- end
- end
- end
- function inventory.survival_inv(player)
- local name = player:get_player_name()
- SURVIVAL_FORMSPEC = "invsize[9,9.5;]"..
- --"background[-0.4,-0.45;9.8,9.825;inventory_survival_inventory_bg.png]"..
- "list[detached:"..name.."_armor;armor;0,0;1,1;0]"..
- "list[detached:"..name.."_armor;armor;0,1;1,1;1]"..
- "list[detached:"..name.."_armor;armor;0,2;1,1;2]"..
- "list[detached:"..name.."_armor;armor;0,3;1,1;3]"..
- "image[1.6,0.25;2,4;player.png]"..
- "list[current_player;main;0,4.5;9,3;9]"..
- mc_inv() -- <<< I want list from above to go there
- "list[current_player;craft;4,2;2,1;3]"..
- "list[current_player;craftpreview;7,1.5;1,1;]"
- player:get_inventory():set_width("craft", 3)
- player:get_inventory():set_size("craft", 9)
- player:get_inventory():set_width("main", 9)
- player:get_inventory():set_size("main", 36)
- player:set_inventory_formspec(SURVIVAL_FORMSPEC)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement