1
0
镜像自地址 https://github.com/mt-mods/homedecor_modpack.git 已同步 2025-07-16 04:30:23 +02:00

abstract most inventory handling code into a homedecor registration function

drawtype and param related defaults are being handled as well
for now we still leave the locked-node generation to locked.lua, due to its furnace-like node support

example:
homedecor.register("penbox", {
	<common defs>
	infotext=S("Penbox"),
	inventory = {
		size=8,
		formspec=…
		lockable=true -- will be supported later
	},
})
这个提交包含在:
Tim
2015-01-21 19:19:14 +01:00
提交者 Vanessa Ezekowitz
父节点 2cdf6667dc
当前提交 b4b281d9ea
共有 8 个文件被更改,包括 203 次插入512 次删除

查看文件

@ -222,8 +222,9 @@ function homedecor.find_ceiling(itemstack, placer, pointed_thing)
return isceiling, pos
end
-- load various other components
dofile(homedecor.modpath.."/registration_handler.lua")
-- load various other components
dofile(homedecor.modpath.."/misc-nodes.lua") -- the catch-all for all misc nodes
dofile(homedecor.modpath.."/tables.lua")
dofile(homedecor.modpath.."/electronics.lua")