mirror of
				https://github.com/mt-mods/homedecor_modpack.git
				synced 2025-11-04 06:05:32 +01:00 
			
		
		
		
	split 4-bottle model into separate materials
(obsoletes the "4/multi" model)
This commit is contained in:
		@@ -371,39 +371,44 @@ local bottle_colors = {"brown", "green"}
 | 
			
		||||
 | 
			
		||||
for _, b in ipairs(bottle_colors) do
 | 
			
		||||
 | 
			
		||||
homedecor.register("bottle_"..b, {
 | 
			
		||||
	tiles = { "homedecor_bottle_"..b..".png" },
 | 
			
		||||
	inventory_image = "homedecor_bottle_"..b.."_inv.png",
 | 
			
		||||
	description = "Bottle ("..b..")",
 | 
			
		||||
	mesh = "homedecor_bottle.obj",
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	groups = {snappy=3},
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
	collision_box = bottle_cbox,
 | 
			
		||||
	selection_box = bottle_cbox
 | 
			
		||||
})
 | 
			
		||||
	homedecor.register("bottle_"..b, {
 | 
			
		||||
		tiles = { "homedecor_bottle_"..b..".png" },
 | 
			
		||||
		inventory_image = "homedecor_bottle_"..b.."_inv.png",
 | 
			
		||||
		description = "Bottle ("..b..")",
 | 
			
		||||
		mesh = "homedecor_bottle.obj",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		groups = {snappy=3},
 | 
			
		||||
		sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
		collision_box = bottle_cbox,
 | 
			
		||||
		selection_box = bottle_cbox
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
-- 4-bottle sets
 | 
			
		||||
 | 
			
		||||
homedecor.register("4_bottles_"..b, {
 | 
			
		||||
	tiles = { "homedecor_bottle_"..b..".png" },
 | 
			
		||||
	inventory_image = "homedecor_4_bottles_"..b.."_inv.png",
 | 
			
		||||
	description = "Four "..b.." bottles",
 | 
			
		||||
	mesh = "homedecor_4_bottles.obj",
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	groups = {snappy=3},
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
	collision_box = fbottle_cbox,
 | 
			
		||||
	selection_box = fbottle_cbox
 | 
			
		||||
})
 | 
			
		||||
	-- 4-bottle sets
 | 
			
		||||
 | 
			
		||||
	homedecor.register("4_bottles_"..b, {
 | 
			
		||||
		tiles = {
 | 
			
		||||
			"homedecor_bottle_"..b..".png",
 | 
			
		||||
			"homedecor_bottle_"..b..".png"
 | 
			
		||||
		},
 | 
			
		||||
		inventory_image = "homedecor_4_bottles_"..b.."_inv.png",
 | 
			
		||||
		description = "Four "..b.." bottles",
 | 
			
		||||
		mesh = "homedecor_4_bottles.obj",
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		groups = {snappy=3},
 | 
			
		||||
		sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
		collision_box = fbottle_cbox,
 | 
			
		||||
		selection_box = fbottle_cbox
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
homedecor.register("4_bottles_multi", {
 | 
			
		||||
	tiles = { "homedecor_4_bottles_multi.png" },
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"homedecor_bottle_brown.png",
 | 
			
		||||
		"homedecor_bottle_green.png"
 | 
			
		||||
	},
 | 
			
		||||
	inventory_image = "homedecor_4_bottles_multi_inv.png",
 | 
			
		||||
	description = "Four misc brown/green bottles",
 | 
			
		||||
	mesh = "homedecor_4_bottles_multi.obj",
 | 
			
		||||
	mesh = "homedecor_4_bottles.obj",
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	groups = {snappy=3},
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 3.9 KiB  | 
		Reference in New Issue
	
	Block a user