Commit Graph

12 Commits

Author SHA1 Message Date
Tim cc9a1a9c3c select a formspec automaticly from a table if none is supplied 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
Tim 9a13728492 fix the medicine cabinet deleting inventory on punch 2015-01-21 13:42:20 +01:00
Tim be4ed12b6c whitespace cleanup:
* remove all trailing whitespaces
* make inbox and computer use the prevalent indentation rules
* CRLF->LF where found
2015-01-21 00:44:23 +01:00
Vanessa Ezekowitz 46b49eef7e use mesh node for toilet paper 2014-12-14 19:05:41 -05:00
kilbith 065ff29402 Openable medicine cabinet
Openable medicine cabinet (on punch) : https://cdn.mediacru.sh/JQcxf58tptfP.png
Textures : http://mamadou3.free.fr/medicine_cabinet_open_textures.zip
2014-09-20 18:25:54 -03:00
Vanessa Ezekowitz 6930b0ab99 add paper towel roll, improve toilet paper model and textures 2014-09-11 12:30:18 -04:00
Vanessa Ezekowitz 3ed1ea822a Add inventory images for medicine cabinet and toilet paper
add craft recipe for medicine cabinet, move it to misc-bathroom.lua
2014-08-01 21:26:04 -04:00
Vanessa Ezekowitz f1f2db92c5 Added several more colors of bathroom tiles 2014-07-27 09:13:48 -04:00
Vanessa Ezekowitz 8aeb2f1007 condense node defs for bathroom tiles
give slightly more meaningful filenames for their textures
2014-07-27 09:04:53 -04:00
Vanessa Ezekowitz 3918ff56fc add a roll of toilet paper 2014-07-19 05:39:18 -04:00
Vanessa Ezekowitz 949a2a94d8 Add towel rod with towel
moved bathroom/kitchen tiles into misc-bathroom.lua
also, rename misc_nodes.lua -> misc-nodes.lua
2014-06-26 21:33:27 -04:00