mirror of
https://github.com/minetest-mods/digilines.git
synced 2024-11-16 07:10:23 +01:00
formspec
This commit is contained in:
parent
ff0fa3f0d0
commit
0719176174
|
@ -146,6 +146,13 @@ local tube_insert_object = function(pos, _, original_stack, direction)
|
|||
return stack
|
||||
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_node("digilines:chest", {
|
||||
description = S("Digiline Chest"),
|
||||
|
@ -175,6 +182,7 @@ minetest.register_node("digilines:chest", {
|
|||
"field[2,5.5;5,1;channel;" .. S("Channel") .. ";${channel}]"..
|
||||
((default and default.get_hotbar_bg) and default.get_hotbar_bg(0,6) or "")..
|
||||
"list[current_player;main;0,6;8,4;]"..
|
||||
mcl_bg..
|
||||
"listring[]")
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", 8*4)
|
||||
|
|
Loading…
Reference in New Issue
Block a user