Move global core variables to mcl_init
This commit is contained in:
parent
f652d5ecb5
commit
91950ee026
19 changed files with 44 additions and 34 deletions
|
@ -1,3 +1,4 @@
|
|||
mcl_init
|
||||
mesecons
|
||||
mcl_core
|
||||
mcl_sounds
|
||||
|
|
|
@ -13,7 +13,7 @@ local setup_dispenser = function(pos)
|
|||
-- Set formspec and inventory
|
||||
local form = "size[9,8.75]"..
|
||||
"background[-0.19,-0.25;9.41,9.49;crafting_inventory_9_slots.png]"..
|
||||
mcl_core.inventory_header..
|
||||
mcl_vars.inventory_header..
|
||||
"image[3,-0.2;5,0.75;mcl_dispensers_fnt_dispenser.png]"..
|
||||
"list[current_player;main;0,4.5;9,3;9]"..
|
||||
"list[current_player;main;0,7.74;9,1;]"..
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
mcl_init
|
||||
mesecons
|
||||
mcl_util
|
||||
|
|
|
@ -13,7 +13,7 @@ local setup_dropper = function(pos)
|
|||
-- Set formspec and inventory
|
||||
local form = "size[9,8.75]"..
|
||||
"background[-0.19,-0.25;9.41,9.49;crafting_inventory_9_slots.png]"..
|
||||
mcl_core.inventory_header..
|
||||
mcl_vars.inventory_header..
|
||||
"image[3,-0.2;5,0.75;mcl_droppers_fnt_dropper.png]"..
|
||||
"list[current_player;main;0,4.5;9,3;9]"..
|
||||
"list[current_player;main;0,7.74;9,1;]"..
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
mcl_init
|
||||
mcl_core
|
||||
mcl_sounds
|
||||
mcl_end
|
||||
|
|
|
@ -40,7 +40,7 @@ minetest.register_node("mcl_chests:chest", {
|
|||
meta:set_string("formspec",
|
||||
"size[9,11.5]"..
|
||||
"background[-0.19,-0.25;9.41,12.5;crafting_inventory_chest_large.png]"..
|
||||
mcl_core.inventory_header..
|
||||
mcl_vars.inventory_header..
|
||||
"list[nodemeta:"..p.x..","..p.y..","..p.z..";main;0,0.5;9,3;]"..
|
||||
"list[current_name;main;0,3.5;9,3;]"..
|
||||
"list[current_player;main;0,7.5;9,3;9]"..
|
||||
|
@ -54,7 +54,7 @@ minetest.register_node("mcl_chests:chest", {
|
|||
m:set_string("formspec",
|
||||
"size[9,11.5]"..
|
||||
"background[-0.19,-0.25;9.41,12.5;crafting_inventory_chest_large.png]"..
|
||||
mcl_core.inventory_header..
|
||||
mcl_vars.inventory_header..
|
||||
"list[current_name;main;0,0.5;9,3;]"..
|
||||
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main;0,3.5;9,3;]"..
|
||||
"list[current_player;main;0,7.5;9,3;9]"..
|
||||
|
@ -69,7 +69,7 @@ minetest.register_node("mcl_chests:chest", {
|
|||
meta:set_string("formspec",
|
||||
"size[9,11.5]"..
|
||||
"background[-0.19,-0.25;9.41,12.5;crafting_inventory_chest_large.png]"..
|
||||
mcl_core.inventory_header..
|
||||
mcl_vars.inventory_header..
|
||||
"list[current_name;main;0,0.5;9,3;]"..
|
||||
"list[nodemeta:"..p.x..","..p.y..","..p.z..";main;0,3.5;9,3;]"..
|
||||
"list[current_player;main;0,7.5;9,3;9]"..
|
||||
|
@ -83,7 +83,7 @@ minetest.register_node("mcl_chests:chest", {
|
|||
m:set_string("formspec",
|
||||
"size[9,11.5]"..
|
||||
"background[-0.19,-0.25;9.41,12.5;crafting_inventory_chest_large.png]"..
|
||||
mcl_core.inventory_header..
|
||||
mcl_vars.inventory_header..
|
||||
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main;0,0.5;9,3;]"..
|
||||
"list[current_name;main;0,3.5;9,3;]"..
|
||||
"list[current_player;main;0,7.5;9,3;9]"..
|
||||
|
@ -95,7 +95,7 @@ minetest.register_node("mcl_chests:chest", {
|
|||
else
|
||||
meta:set_string("formspec",
|
||||
"size[9,8.75]"..
|
||||
mcl_core.inventory_header..
|
||||
mcl_vars.inventory_header..
|
||||
"background[-0.19,-0.25;9.41,10.48;crafting_inventory_chest.png]"..
|
||||
"image[0,-0.2;5,0.75;fnt_chest.png]"..
|
||||
"list[current_name;main;0,0.5;9,3;]"..
|
||||
|
@ -158,7 +158,7 @@ minetest.register_node("mcl_chests:chest_left", {
|
|||
"size[9,8.75]"..
|
||||
"background[-0.19,-0.25;9.41,10.48;crafting_inventory_chest.png]"..
|
||||
"image[0,-0.2;5,0.75;fnt_chest.png]"..
|
||||
mcl_core.inventory_header..
|
||||
mcl_vars.inventory_header..
|
||||
"list[current_name;main;0,0.5;9,3;]"..
|
||||
"list[current_player;main;0,4.5;9,3;9]"..
|
||||
"list[current_player;main;0,7.74;9,1;]"..
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
mcl_init
|
||||
mcl_core
|
||||
mcl_sounds
|
||||
mcl_craftguide
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
local furnace_inactive_formspec =
|
||||
"size[9,8.75]"..
|
||||
"background[-0.19,-0.25;9.41,9.49;crafting_formspec_bg.png^crafting_inventory_furnace.png]"..
|
||||
mcl_core.inventory_header..
|
||||
mcl_vars.inventory_header..
|
||||
"list[current_player;main;0,4.5;9,3;9]"..
|
||||
"list[current_player;main;0,7.74;9,1;]"..
|
||||
"list[current_name;src;2.75,0.5;1,1;]"..
|
||||
|
@ -208,7 +208,7 @@ minetest.register_abm({
|
|||
meta:set_string("formspec",
|
||||
"size[9,8.75]"..
|
||||
"background[-0.19,-0.25;9.41,9.49;crafting_formspec_bg.png^crafting_inventory_furnace.png]"..
|
||||
mcl_core.inventory_header..
|
||||
mcl_vars.inventory_header..
|
||||
"list[current_player;main;0,4.5;9,3;9]"..
|
||||
"list[current_player;main;0,7.74;9,1;]"..
|
||||
"list[current_name;src;2.75,0.5;1,1;]"..
|
||||
|
|
|
@ -5,7 +5,7 @@ local chest = minetest.get_content_id("mcl_chests:chest")
|
|||
local mcl_hoppers_formspec =
|
||||
"size[9,7]"..
|
||||
"background[-0.19,-0.25;9.41,10.48;mcl_hoppers_inventory.png]"..
|
||||
mcl_core.inventory_header..
|
||||
mcl_vars.inventory_header..
|
||||
"list[current_name;main;2,0.5;5,1;]"..
|
||||
"list[current_player;main;0,2.5;9,3;9]"..
|
||||
"list[current_player;main;0,5.74;9,1;]"..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue