mirror of
				https://github.com/mt-mods/homedecor_modpack.git
				synced 2025-10-31 05:15:32 +01:00 
			
		
		
		
	add hd gastronomy
This commit is contained in:
		| @@ -18,6 +18,7 @@ homedecor.materials = { | |||||||
|     dye_green = "dye:green", |     dye_green = "dye:green", | ||||||
|     dye_red = "dye:red", |     dye_red = "dye:red", | ||||||
|     dye_yellow = "dye:yellow", |     dye_yellow = "dye:yellow", | ||||||
|  |     dye_brown = "dye:brown", | ||||||
|     silicon = "mesecons_materials:silicon", |     silicon = "mesecons_materials:silicon", | ||||||
|     string = "farming:string", |     string = "farming:string", | ||||||
|     paper = "default:paper", |     paper = "default:paper", | ||||||
| @@ -31,6 +32,7 @@ homedecor.materials = { | |||||||
|     slab_stone = "stairs:slab_stone", |     slab_stone = "stairs:slab_stone", | ||||||
|     slab_wood = "stairs:slab_wood", |     slab_wood = "stairs:slab_wood", | ||||||
|     glass_block = "default_glass", |     glass_block = "default_glass", | ||||||
|  |     glass_bottle = "vessels:glass_bottle", | ||||||
| } | } | ||||||
|  |  | ||||||
| if minetest.get_modpath("moreores") then | if minetest.get_modpath("moreores") then | ||||||
| @@ -76,6 +78,7 @@ elseif minetest.get_modpath("fl_ores") and minetest.get_modpath("fl_stone") then | |||||||
|         dye_green = "fl_dyes:green_dye", |         dye_green = "fl_dyes:green_dye", | ||||||
|         dye_red = "fl_dyes:red_dye", |         dye_red = "fl_dyes:red_dye", | ||||||
|         dye_yellow = "fl_dyes:yellow_dye", |         dye_yellow = "fl_dyes:yellow_dye", | ||||||
|  |         dye_brown = "fl_dyes:brown_dye", | ||||||
|         copper_ingot = "fl_ores:copper_ingot", |         copper_ingot = "fl_ores:copper_ingot", | ||||||
|         tin_ingot = "fl_ores:tin_ingot", |         tin_ingot = "fl_ores:tin_ingot", | ||||||
|         silver_ingot = "fl_ores:iron_ingot", |         silver_ingot = "fl_ores:iron_ingot", | ||||||
| @@ -85,7 +88,8 @@ elseif minetest.get_modpath("fl_ores") and minetest.get_modpath("fl_stone") then | |||||||
|         iron_lump = "fl_ores:iron_ore", |         iron_lump = "fl_ores:iron_ore", | ||||||
|         slab_stone = "fl_stone:stone_slab", |         slab_stone = "fl_stone:stone_slab", | ||||||
|         slab_wood = "fl_trees:apple_plank_slab", |         slab_wood = "fl_trees:apple_plank_slab", | ||||||
|         glass_block = "fl_glass:framed_glass" |         glass_block = "fl_glass:framed_glass", | ||||||
|  |         glass_bottle = "fl_bottles:bottle", | ||||||
|     } |     } | ||||||
| elseif minetest.get_modpath("hades_core") then | elseif minetest.get_modpath("hades_core") then | ||||||
|     homedecor.materials = { |     homedecor.materials = { | ||||||
|   | |||||||
| @@ -1,22 +0,0 @@ | |||||||
| unused_args = false |  | ||||||
| allow_defined_top = true |  | ||||||
| max_comment_line_length = 999 |  | ||||||
|  |  | ||||||
| read_globals = { |  | ||||||
| 	"DIR_DELIM", |  | ||||||
| 	"minetest", "core", |  | ||||||
| 	"unpack", |  | ||||||
| 	"dump", |  | ||||||
| 	table = { fields = { "copy", "getn" } }, |  | ||||||
| 	"vector", "nodeupdate", |  | ||||||
| 	"VoxelManip", "VoxelArea", |  | ||||||
| 	"PseudoRandom", "ItemStack", |  | ||||||
| 	"creative", |  | ||||||
| 	"default", |  | ||||||
| 	"homedecor", |  | ||||||
| 	"screwdriver", |  | ||||||
| } |  | ||||||
|  |  | ||||||
| globals = { |  | ||||||
| } |  | ||||||
|  |  | ||||||
| @@ -14,10 +14,12 @@ homedecor.register("cutlery_set", { | |||||||
| 	tiles = { "homedecor_cutlery_set.png"	}, | 	tiles = { "homedecor_cutlery_set.png"	}, | ||||||
| 	inventory_image = "homedecor_cutlery_set_inv.png", | 	inventory_image = "homedecor_cutlery_set_inv.png", | ||||||
| 	description = S("Cutlery set"), | 	description = S("Cutlery set"), | ||||||
| 	groups = {snappy=3}, | 	groups = {snappy=3, dig_stone=3}, | ||||||
| 	selection_box = cutlery_cbox, | 	selection_box = cutlery_cbox, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	sounds = default.node_sound_glass_defaults(), | 	_sound_def = { | ||||||
|  | 		key = "node_sound_glass_defaults", | ||||||
|  | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| local bottle_cbox = { | local bottle_cbox = { | ||||||
| @@ -49,8 +51,10 @@ for _, b in ipairs(bottle_colors) do | |||||||
| 		description = desc, | 		description = desc, | ||||||
| 		mesh = "homedecor_bottle.obj", | 		mesh = "homedecor_bottle.obj", | ||||||
| 		walkable = false, | 		walkable = false, | ||||||
| 		groups = {snappy=3}, | 		groups = {snappy=3, dig_stone=3}, | ||||||
| 		sounds = default.node_sound_glass_defaults(), | 		_sound_def = { | ||||||
|  | 			key = "node_sound_glass_defaults", | ||||||
|  | 		}, | ||||||
| 		selection_box = bottle_cbox | 		selection_box = bottle_cbox | ||||||
| 	}) | 	}) | ||||||
|  |  | ||||||
| @@ -65,8 +69,10 @@ for _, b in ipairs(bottle_colors) do | |||||||
| 		description = desc4, | 		description = desc4, | ||||||
| 		mesh = "homedecor_4_bottles.obj", | 		mesh = "homedecor_4_bottles.obj", | ||||||
| 		walkable = false, | 		walkable = false, | ||||||
| 		groups = {snappy=3}, | 		groups = {snappy=3, dig_stone=3}, | ||||||
| 		sounds = default.node_sound_glass_defaults(), | 		_sound_def = { | ||||||
|  | 			key = "node_sound_glass_defaults", | ||||||
|  | 		}, | ||||||
| 		selection_box = fbottle_cbox | 		selection_box = fbottle_cbox | ||||||
| 	}) | 	}) | ||||||
| end | end | ||||||
| @@ -79,9 +85,11 @@ homedecor.register("4_bottles_multi", { | |||||||
| 	inventory_image = "homedecor_4_bottles_multi_inv.png", | 	inventory_image = "homedecor_4_bottles_multi_inv.png", | ||||||
| 	description = S("Four misc brown/green bottles"), | 	description = S("Four misc brown/green bottles"), | ||||||
| 	mesh = "homedecor_4_bottles.obj", | 	mesh = "homedecor_4_bottles.obj", | ||||||
| 	groups = {snappy=3}, | 	groups = {snappy=3, dig_stone=3}, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	sounds = default.node_sound_glass_defaults(), | 	_sound_def = { | ||||||
|  | 		key = "node_sound_glass_defaults", | ||||||
|  | 	}, | ||||||
| 	selection_box = fbottle_cbox | 	selection_box = fbottle_cbox | ||||||
| }) | }) | ||||||
|  |  | ||||||
| @@ -97,10 +105,12 @@ homedecor.register("wine_rack", { | |||||||
| 		"homedecor_bottle_brown4.png" | 		"homedecor_bottle_brown4.png" | ||||||
| 	}, | 	}, | ||||||
| 	inventory_image = "homedecor_wine_rack_inv.png", | 	inventory_image = "homedecor_wine_rack_inv.png", | ||||||
| 	groups = {choppy=2}, | 	groups = {choppy=2, dig_tree=2}, | ||||||
| 	selection_box = wine_cbox, | 	selection_box = wine_cbox, | ||||||
| 	collision_box = wine_cbox, | 	collision_box = wine_cbox, | ||||||
| 	sounds = default.node_sound_defaults(), | 	_sound_def = { | ||||||
|  | 		key = "node_sound_defaults", | ||||||
|  | 	}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| -- coffee! | -- coffee! | ||||||
| @@ -125,10 +135,19 @@ homedecor.register("coffee_maker", { | |||||||
| 	description = S("Coffee Maker"), | 	description = S("Coffee Maker"), | ||||||
| 	inventory_image = "homedecor_coffeemaker_inv.png", | 	inventory_image = "homedecor_coffeemaker_inv.png", | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	groups = {snappy=3}, | 	groups = {snappy=3, dig_stone=3}, | ||||||
| 	selection_box = cm_cbox, | 	selection_box = cm_cbox, | ||||||
| 	node_box = cm_cbox, | 	node_box = cm_cbox, | ||||||
| 	on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil, | 	on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil, | ||||||
|  | 	crafts = { | ||||||
|  | 		{ | ||||||
|  | 			recipe = { | ||||||
|  | 				{"basic_materials:plastic_sheet", "bucket:bucket_water", "basic_materials:plastic_sheet"}, | ||||||
|  | 				{"basic_materials:plastic_sheet", "glass_block", "basic_materials:plastic_sheet"}, | ||||||
|  | 				{"basic_materials:plastic_sheet", "basic_materials:heating_element", "basic_materials:plastic_sheet"} | ||||||
|  | 			}, | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
| }) | }) | ||||||
|  |  | ||||||
| homedecor.register("toaster", { | homedecor.register("toaster", { | ||||||
| @@ -137,7 +156,7 @@ homedecor.register("toaster", { | |||||||
| 	inventory_image = "homedecor_toaster_inv.png", | 	inventory_image = "homedecor_toaster_inv.png", | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	use_texture_alpha = "clip", | 	use_texture_alpha = "clip", | ||||||
| 	groups = { snappy=3 }, | 	groups = { snappy=3, dig_stone=3 }, | ||||||
| 	node_box = { | 	node_box = { | ||||||
| 		type = "fixed", | 		type = "fixed", | ||||||
| 		fixed = { | 		fixed = { | ||||||
| @@ -153,7 +172,15 @@ homedecor.register("toaster", { | |||||||
| 			max_hear_distance = 5 | 			max_hear_distance = 5 | ||||||
| 		}) | 		}) | ||||||
| 		return itemstack | 		return itemstack | ||||||
| 	end | 	end, | ||||||
|  | 	crafts = { | ||||||
|  | 		{ | ||||||
|  | 			recipe = { | ||||||
|  | 				{ "steel_ingot", "basic_materials:heating_element", "steel_ingot" }, | ||||||
|  | 				{ "steel_ingot", "basic_materials:heating_element", "steel_ingot" } | ||||||
|  | 			}, | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
| }) | }) | ||||||
|  |  | ||||||
| homedecor.register("toaster_loaf", { | homedecor.register("toaster_loaf", { | ||||||
| @@ -167,7 +194,7 @@ homedecor.register("toaster_loaf", { | |||||||
| 	}, | 	}, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	use_texture_alpha = "clip", | 	use_texture_alpha = "clip", | ||||||
| 	groups = { snappy=3, not_in_creative_inventory=1 }, | 	groups = { snappy=3, not_in_creative_inventory=1, dig_stone=3 }, | ||||||
| 	node_box = { | 	node_box = { | ||||||
| 		type = "fixed", | 		type = "fixed", | ||||||
| 		fixed = { | 		fixed = { | ||||||
| @@ -226,35 +253,17 @@ minetest.register_abm({ | |||||||
| minetest.register_craft( { | minetest.register_craft( { | ||||||
|         output = "homedecor:bottle_green", |         output = "homedecor:bottle_green", | ||||||
|         recipe = { |         recipe = { | ||||||
| 			{ "vessels:glass_bottle", "dye:green" } | 			{ homedecor.materials["glass_bottle"], homedecor.materials["dye_green"] } | ||||||
|         }, |         }, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft( { | minetest.register_craft( { | ||||||
|         output = "homedecor:bottle_brown", |         output = "homedecor:bottle_brown", | ||||||
|         recipe = { |         recipe = { | ||||||
| 			{ "vessels:glass_bottle", "dye:brown" } | 			{ homedecor.materials["glass_bottle"], homedecor.materials["dye_brown"] } | ||||||
|         }, |         }, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_craft({ |  | ||||||
| 	output = "homedecor:coffee_maker", |  | ||||||
| 	recipe = { |  | ||||||
| 	    {"basic_materials:plastic_sheet", "bucket:bucket_water", "basic_materials:plastic_sheet"}, |  | ||||||
| 	    {"basic_materials:plastic_sheet", "default:glass", "basic_materials:plastic_sheet"}, |  | ||||||
| 	    {"basic_materials:plastic_sheet", "basic_materials:heating_element", "basic_materials:plastic_sheet"} |  | ||||||
| 	}, |  | ||||||
| }) |  | ||||||
|  |  | ||||||
| minetest.register_craft({ |  | ||||||
| 	output = "homedecor:toaster", |  | ||||||
| 	recipe = { |  | ||||||
| 		{ "default:steel_ingot", "basic_materials:heating_element", "default:steel_ingot" }, |  | ||||||
| 		{ "default:steel_ingot", "basic_materials:heating_element", "default:steel_ingot" } |  | ||||||
| 	}, |  | ||||||
| }) |  | ||||||
|  |  | ||||||
|  |  | ||||||
| minetest.register_craft({ | minetest.register_craft({ | ||||||
| 	type = "shapeless", | 	type = "shapeless", | ||||||
| 	output = "homedecor:4_bottles_brown", | 	output = "homedecor:4_bottles_brown", | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| name = homedecor_gastronomy | name = homedecor_gastronomy | ||||||
| description = Homedecor mod: gastronomy | description = Homedecor mod: gastronomy | ||||||
| depends = homedecor_common, default, basic_materials, dye, creative | depends = homedecor_common | ||||||
| optional_depends = bucket, screwdriver | optional_depends = bucket, screwdriver | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user