forked from mtcontrib/homedecor_modpack
		
	Sticky cobwebs
Besides the realistic matter, it adds fun when players use it in PvP arenas, for making different kind of traps or amortize a fall.
This commit is contained in:
		
				
					committed by
					
						
						Vanessa Ezekowitz
					
				
			
			
				
	
			
			
			
						parent
						
							4be89a076b
						
					
				
				
					commit
					1e31d0e02a
				
			@@ -7,14 +7,20 @@ minetest.register_node("homedecor:cobweb_corner", {
 | 
				
			|||||||
	paramtype = "light",
 | 
						paramtype = "light",
 | 
				
			||||||
	paramtype2 = "wallmounted",
 | 
						paramtype2 = "wallmounted",
 | 
				
			||||||
	sunlight_propagates = true,
 | 
						sunlight_propagates = true,
 | 
				
			||||||
 | 
						liquid_viscosity = 8,
 | 
				
			||||||
 | 
					        liquidtype = "source",
 | 
				
			||||||
 | 
					        liquid_alternative_flowing = "homedecor:cobweb_corner",
 | 
				
			||||||
 | 
					        liquid_alternative_source = "homedecor:cobweb_corner",
 | 
				
			||||||
 | 
					        liquid_renewable = false,
 | 
				
			||||||
 | 
					        liquid_range = 0,
 | 
				
			||||||
	walkable = false,
 | 
						walkable = false,
 | 
				
			||||||
	selection_box = {
 | 
						selection_box = {
 | 
				
			||||||
		type = "fixed",
 | 
							type = "fixed",
 | 
				
			||||||
		fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
 | 
							fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	visual_scale = 1.4,
 | 
						visual_scale = 1.4,
 | 
				
			||||||
	groups = { snappy = 3 },
 | 
						groups = { snappy = 3, liquid=3 },
 | 
				
			||||||
    after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
					        after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
				
			||||||
		homedecor.rotate_cobweb(pos)
 | 
							homedecor.rotate_cobweb(pos)
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
@@ -27,6 +33,12 @@ minetest.register_node("homedecor:cobweb_centered", {
 | 
				
			|||||||
	paramtype = "light",
 | 
						paramtype = "light",
 | 
				
			||||||
	paramtype2 = "facedir",
 | 
						paramtype2 = "facedir",
 | 
				
			||||||
	sunlight_propagates = true,
 | 
						sunlight_propagates = true,
 | 
				
			||||||
 | 
						liquid_viscosity = 8,
 | 
				
			||||||
 | 
					        liquidtype = "source",
 | 
				
			||||||
 | 
					        liquid_alternative_flowing = "homedecor:cobweb_centered",
 | 
				
			||||||
 | 
					        liquid_alternative_source = "homedecor:cobweb_centered",
 | 
				
			||||||
 | 
					        liquid_renewable = false,
 | 
				
			||||||
 | 
					        liquid_range = 0,
 | 
				
			||||||
	walkable = false,
 | 
						walkable = false,
 | 
				
			||||||
	selection_box = {
 | 
						selection_box = {
 | 
				
			||||||
		type = "fixed",
 | 
							type = "fixed",
 | 
				
			||||||
@@ -36,7 +48,7 @@ minetest.register_node("homedecor:cobweb_centered", {
 | 
				
			|||||||
		type = "fixed",
 | 
							type = "fixed",
 | 
				
			||||||
		fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0 }
 | 
							fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0 }
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	groups = { snappy = 3, not_in_creative_inventory = 1 },
 | 
						groups = { snappy = 3, liquid=3, not_in_creative_inventory = 1 },
 | 
				
			||||||
	drop = "homedecor:cobweb_corner"
 | 
						drop = "homedecor:cobweb_corner"
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -48,6 +60,12 @@ minetest.register_node("homedecor:cobweb_flat", {
 | 
				
			|||||||
	paramtype = "light",
 | 
						paramtype = "light",
 | 
				
			||||||
	paramtype2 = "facedir",
 | 
						paramtype2 = "facedir",
 | 
				
			||||||
	sunlight_propagates = true,
 | 
						sunlight_propagates = true,
 | 
				
			||||||
 | 
						liquid_viscosity = 8,
 | 
				
			||||||
 | 
					        liquidtype = "source",
 | 
				
			||||||
 | 
					        liquid_alternative_flowing = "homedecor:cobweb_flat",
 | 
				
			||||||
 | 
					        liquid_alternative_source = "homedecor:cobweb_flat",
 | 
				
			||||||
 | 
					        liquid_renewable = false,
 | 
				
			||||||
 | 
					        liquid_range = 0,
 | 
				
			||||||
	walkable = false,
 | 
						walkable = false,
 | 
				
			||||||
	selection_box = {
 | 
						selection_box = {
 | 
				
			||||||
		type = "fixed",
 | 
							type = "fixed",
 | 
				
			||||||
@@ -57,7 +75,7 @@ minetest.register_node("homedecor:cobweb_flat", {
 | 
				
			|||||||
		type = "fixed",
 | 
							type = "fixed",
 | 
				
			||||||
		fixed = { -0.5, -0.5, 0.495, 0.5, 0.5, 0.495 }
 | 
							fixed = { -0.5, -0.5, 0.495, 0.5, 0.5, 0.495 }
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	groups = { snappy = 3, not_in_creative_inventory = 1 },
 | 
						groups = { snappy = 3, liquid=3, not_in_creative_inventory = 1 },
 | 
				
			||||||
	drop = "homedecor:cobweb_corner"
 | 
						drop = "homedecor:cobweb_corner"
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -69,13 +87,19 @@ minetest.register_node("homedecor:cobweb_plantlike", {
 | 
				
			|||||||
	paramtype = "light",
 | 
						paramtype = "light",
 | 
				
			||||||
	paramtype2 = "facedir",
 | 
						paramtype2 = "facedir",
 | 
				
			||||||
	sunlight_propagates = true,
 | 
						sunlight_propagates = true,
 | 
				
			||||||
 | 
						liquid_viscosity = 8,
 | 
				
			||||||
 | 
					        liquidtype = "source",
 | 
				
			||||||
 | 
					        liquid_alternative_flowing = "homedecor:cobweb_plantlike",
 | 
				
			||||||
 | 
					        liquid_alternative_source = "homedecor:cobweb_plantlike",
 | 
				
			||||||
 | 
					        liquid_renewable = false,
 | 
				
			||||||
 | 
					        liquid_range = 0,
 | 
				
			||||||
	walkable = false,
 | 
						walkable = false,
 | 
				
			||||||
	selection_box = {
 | 
						selection_box = {
 | 
				
			||||||
		type = "fixed",
 | 
							type = "fixed",
 | 
				
			||||||
		fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
 | 
							fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	visual_scale = 1.189,
 | 
						visual_scale = 1.189,
 | 
				
			||||||
	groups = { snappy = 3, not_in_creative_inventory = 1 },
 | 
						groups = { snappy = 3, liquid=3, not_in_creative_inventory = 1 },
 | 
				
			||||||
	drop = "homedecor:cobweb_corner"
 | 
						drop = "homedecor:cobweb_corner"
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user