mirror of
https://github.com/minetest-mods/digilines.git
synced 2025-07-04 01:00:43 +02:00
formspec
This commit is contained in:
@ -146,6 +146,13 @@ local tube_insert_object = function(pos, _, original_stack, direction)
|
|||||||
return stack
|
return stack
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local mcl_bg = ""
|
||||||
|
|
||||||
|
if minetest.get_modpath("mcl_formspec") then
|
||||||
|
mcl_bg = mcl_formspec.get_itemslot_bg(0,1,8,4)..
|
||||||
|
mcl_formspec.get_itemslot_bg(0,6,8,4)
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_alias("digilines_inventory:chest", "digilines:chest")
|
minetest.register_alias("digilines_inventory:chest", "digilines:chest")
|
||||||
minetest.register_node("digilines:chest", {
|
minetest.register_node("digilines:chest", {
|
||||||
description = S("Digiline Chest"),
|
description = S("Digiline Chest"),
|
||||||
@ -175,6 +182,7 @@ minetest.register_node("digilines:chest", {
|
|||||||
"field[2,5.5;5,1;channel;" .. S("Channel") .. ";${channel}]"..
|
"field[2,5.5;5,1;channel;" .. S("Channel") .. ";${channel}]"..
|
||||||
((default and default.get_hotbar_bg) and default.get_hotbar_bg(0,6) or "")..
|
((default and default.get_hotbar_bg) and default.get_hotbar_bg(0,6) or "")..
|
||||||
"list[current_player;main;0,6;8,4;]"..
|
"list[current_player;main;0,6;8,4;]"..
|
||||||
|
mcl_bg..
|
||||||
"listring[]")
|
"listring[]")
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
inv:set_size("main", 8*4)
|
inv:set_size("main", 8*4)
|
||||||
|
Reference in New Issue
Block a user