default.bookshelf_formspec =
"size[8,7;]"..
- gui_bg..
- gui_bg_img..
- gui_slots..
+ default.gui_bg..
+ default.gui_bg_img..
+ default.gui_slots..
"list[context;books;0,0.3;8,2;]"..
"list[current_player;main;0,2.85;8,1;]"..
"list[current_player;main;0,4.08;8,3;8]"..
minetest.register_node("default:glass", {
description = "Glass",
- drawtype = "glasslike",
- tiles = {"default_glass.png"},
+ drawtype = "glasslike_framed_optional",
+ tiles = {"default_glass.png", "default_glass_detail.png"},
inventory_image = minetest.inventorycube("default_glass.png"),
paramtype = "light",
sunlight_propagates = true,
return
end
local meta = minetest.get_meta(pos)
- fields.text = fields.text or ""
+ if not fields.text then return end
minetest.log("action", (sender:get_player_name() or "").." wrote \""..fields.text..
"\" to sign at "..minetest.pos_to_string(pos))
meta:set_string("text", fields.text)
default.chest_formspec =
"size[8,9]"..
- gui_bg..
- gui_bg_img..
- gui_slots..
+ default.gui_bg..
+ default.gui_bg_img..
+ default.gui_slots..
"list[current_name;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]"..
local spos = pos.x .. "," .. pos.y .. "," ..pos.z
local formspec =
"size[8,9]"..
- gui_bg..
- gui_bg_img..
- gui_slots..
+ default.gui_bg..
+ default.gui_bg_img..
+ default.gui_slots..
"list[nodemeta:".. spos .. ";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 default.furnace_active(pos, percent, item_percent)
local formspec =
"size[8,8.5]"..
- gui_bg..
- gui_bg_img..
- gui_slots..
+ default.gui_bg..
+ default.gui_bg_img..
+ default.gui_slots..
"list[current_name;src;2.75,0.5;1,1;]"..
"list[current_name;fuel;2.75,2.5;1,1;]"..
"image[2.75,1.5;1,1;default_furnace_fire_bg.png^[lowpart:"..
default.furnace_inactive_formspec =
"size[8,8.5]"..
- gui_bg..
- gui_bg_img..
- gui_slots..
+ default.gui_bg..
+ default.gui_bg_img..
+ default.gui_slots..
"list[current_name;src;2.75,0.5;1,1;]"..
"list[current_name;fuel;2.75,2.5;1,1;]"..
"image[2.75,1.5;1,1;default_furnace_fire_bg.png]"..