function enchanting.construct(pos)
local meta = minetest.get_meta(pos)
- meta:set_string("formspec", "size[8,7;]"..bg..
+ meta:set_string("formspec", "size[8,7;]"..xbg..
"label[0.85,-0.15;Enchant]".."image[0.6,0.2;2,2;xdecor_enchbook.png]"..
"list[current_name;tool;0.5,2;1,1;]"..
"list[current_name;mese;1.5,2;1,1;]".."image[1.5,2;1,1;mese_layout.png]"..
sound.leaves = default.node_sound_leaves_defaults()
sound.stone = default.node_sound_stone_defaults()
-bg = default.gui_bg..default.gui_bg_img..default.gui_slots
+xbg = default.gui_bg..default.gui_bg_img..default.gui_slots
local default_inventory_size = 32
local default_inventory_formspecs = {
- ["8"] = "size[8,6]"..bg..
+ ["8"] = "size[8,6]"..xbg..
"list[context;main;0,0;8,1;]"..
"list[current_player;main;0,2;8,4;]",
- ["16"] = "size[8,7]"..bg..
+ ["16"] = "size[8,7]"..xbg..
"list[context;main;0,0;8,2;]"..
"list[current_player;main;0,3;8,4;]",
- ["24"] = "size[8,8]"..bg..
+ ["24"] = "size[8,8]"..xbg..
"list[context;main;0,0;8,3;]"..
"list[current_player;main;0,4;8,4;]",
- ["32"] = "size[8,9]"..bg..
+ ["32"] = "size[8,9]"..xbg..
"list[context;main;0,0.3;8,4;]"..
"list[current_player;main;0,4.85;8,1;]"..
"list[current_player;main;0,6.08;8,3;8]"..
function hive.construct(pos)
local meta = minetest.get_meta(pos)
- meta:set_string("formspec", "size[8,5;]"..bg..
+ meta:set_string("formspec", "size[8,5;]"..xbg..
"label[1.35,0;Bees are making honey\nwith pollen around...]"..
"image[0.2,-0.1;1,1;flowers_dandelion_white.png]"..
"image[7,0.1;1,1;flowers_viola.png]"..
function mailbox.get_formspec(pos)
local spos = pos.x..","..pos.y..","..pos.z
local formspec =
- "size[8,9]"..bg..
+ "size[8,9]"..xbg..
"label[0,0;You received...]"..
"list[nodemeta:"..spos..";main;0,0.75;8,4;]"..
"list[current_player;main;0,5.25;8,4;]"
function mailbox.get_insert_formspec(pos, owner)
local spos = pos.x..","..pos.y..","..pos.z
local formspec =
- "size[8,5]"..bg..
+ "size[8,5]"..xbg..
"label[0.5,0;Send your goods\nto "..owner.." :]"..
"list[nodemeta:"..spos..";drop;3.5,0;1,1;]"..
"list[current_player;main;0,1.25;8,4;]"
tiles = {"xdecor_baricade.png"},
groups = {snappy=3, flammable=2},
damage_per_second = 4,
- selection_box = xdecor.nodebox.slab_y(0.5, 0)
+ selection_box = xdecor.nodebox.slab_y(0.3)
})
xdecor.register("barrel", {
inventory_image = "xdecor_"..f.."_pot.png",
drawtype = "plantlike",
sounds = sound.leaves,
- selection_box = xdecor.nodebox.slab_y(0.5, 0)
+ selection_box = xdecor.nodebox.slab_y(0.3)
})
minetest.register_craft({
{0.125, -0.5, -0.4375, 0.25, -0.48, -0.3125}
}
},
- selection_box = {
- type = "fixed",
- fixed = {-0.4375, -0.5, -0.4375, 0.4375, -0.4, 0.4375}
- }
+ selection_box = xdecor.nodebox.slab_y(0.05)
})
xdecor.register("stone_tile", {
end
nodebtn = table.concat(nodebtn)
- meta:set_string("formspec", "size[8,7;]"..bg..
+ meta:set_string("formspec", "size[8,7;]"..xbg..
"label[0,0;Cut your material into...]"..nodebtn..
"label[0,1.5;Input]".."list[current_name;input;0,2;1,1;]"..
"image[1,2;1,1;xdecor_saw.png]"..