Commit Graph

4 Commits

Author SHA1 Message Date
Tim b87ce2d2a7 allow "air" to be set in expand.top/forward/right to allow for better handled multinode meshnodes 2015-01-23 12:37:23 -05:00
Tim d6ce145f9c use an expand def-field to automaticly expand and unexpand the three available types of expansion and let nearly all decor use this form
example of usage:
	expand = { top="homedecor:newnode", right="homedecor:rightnode", forward="homedecor:forwardnode" }
2015-01-23 12:37:23 -05:00
Tim 9912f72de6 don't assume all locked multinodes to be refrigerators 2015-01-23 12:37:23 -05:00
Tim b4b281d9ea 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
	},
})
2015-01-23 12:37:23 -05:00