forked from mtcontrib/minetest-mod-sea
		
	Compare commits
	
		
			6 Commits
		
	
	
		
			b0fd455b7e
			...
			master
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 11873909db | |||
| f81840fbd1 | |||
| f7b367534a | |||
| 49263a7eee | |||
| 7e7561ab93 | |||
| 6fb0d7c449 | 
| @@ -1 +0,0 @@ | ||||
| default | ||||
| @@ -95,7 +95,7 @@ minetest.register_entity("clams:whiteshell", { | ||||
| 			if self.phase >= 3 then | ||||
| 				self.phase = 0 | ||||
| 			end | ||||
| 			self.object:setsprite({x=0, y=self.phase}) | ||||
| 			self.object:set_sprite({x=0, y=self.phase}) | ||||
| 			local phasearmor = { | ||||
| 				[0]={fleshy=0}, | ||||
| 				[1]={fleshy=30}, | ||||
|   | ||||
							
								
								
									
										4
									
								
								clams/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								clams/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| name = clams | ||||
| title = Clams | ||||
| description = Clams mod for sea modpack | ||||
| depends = default | ||||
| @@ -1 +0,0 @@ | ||||
| default | ||||
| @@ -17,7 +17,7 @@ minetest.register_node("noairblocks:water_flowingx", { | ||||
| 			animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.8} | ||||
| 		}, | ||||
| 	}, | ||||
| 	alpha = 0, | ||||
| 	use_texture_alpha = "blend", | ||||
| 	paramtype = "light", | ||||
| 	paramtype2 = "flowingliquid", | ||||
| 	walkable = false, | ||||
| @@ -50,7 +50,7 @@ minetest.register_node("noairblocks:water_sourcex", { | ||||
| 			backface_culling = false, | ||||
| 		} | ||||
| 	}, | ||||
| 	alpha = 0, | ||||
| 	use_texture_alpha = "blend", | ||||
| 	paramtype = "light", | ||||
| 	walkable = false, | ||||
| 	pointable = false, | ||||
|   | ||||
							
								
								
									
										4
									
								
								noairblocks/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								noairblocks/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| name = noairblocks | ||||
| title = No Air Blocks | ||||
| description = No Air Blocks mod for sea modpack | ||||
| depends = default | ||||
| @@ -1,7 +0,0 @@ | ||||
| default | ||||
| dye | ||||
| stairs | ||||
| clams | ||||
| whiteshell? | ||||
| colormachine? | ||||
| moreblocks? | ||||
							
								
								
									
										5
									
								
								seacobble/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								seacobble/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| name = seacobble | ||||
| title = Sea Cobble | ||||
| description = Sea Cobble mod for sea modpack | ||||
| depends = default,dye,stairs,clams | ||||
| optional_depends = whiteshell,colormachine,moreblocks | ||||
| @@ -1,4 +0,0 @@ | ||||
| default | ||||
| nalc_lib | ||||
| unifieddyes | ||||
| colormachine? | ||||
| @@ -1,3 +1,22 @@ | ||||
| local function add_group(name, group, value) | ||||
| 	local node = minetest.registered_nodes[name] | ||||
|  | ||||
| 	if node then | ||||
| 		local groups = node.groups | ||||
| 		if not groups then | ||||
| 			groups = {} | ||||
| 		end | ||||
| 		groups[group] = value | ||||
|  | ||||
| 		minetest.log("action", "[seacoral] Add group "..group.."="..value.." to "..name) | ||||
| 		minetest.override_item(name, {groups = groups}) | ||||
| 	end | ||||
| end | ||||
|  | ||||
| if minetest.get_modpath("nalc_lib") then | ||||
| 	add_group = nalc.add_group | ||||
| end | ||||
|  | ||||
| -- NODES | ||||
|  | ||||
| -- Add magenta, aqua, skyblue seacorals | ||||
| @@ -71,22 +90,22 @@ end | ||||
| minetest.register_alias("seacoral:coralcyan", "default:water_source") | ||||
| minetest.register_alias("seacoral:seacoralsandcyan", "default:coral_cyan") | ||||
| minetest.register_alias("seacoral:seacoraldirtcyan", "default:coral_cyan") | ||||
| nalc.add_group("default:coral_cyan", "seacoral", 1) | ||||
| add_group("default:coral_cyan", "seacoral", 1) | ||||
|  | ||||
| minetest.register_alias("seacoral:coralredviolet", "default:water_source") | ||||
| minetest.register_alias("seacoral:seacoralsandredviolet", "default:coral_pink") | ||||
| minetest.register_alias("seacoral:seacoraldirtredviolet", "default:coral_pink") | ||||
| nalc.add_group("default:coral_pink", "seacoral", 1) | ||||
| add_group("default:coral_pink", "seacoral", 1) | ||||
|  | ||||
| minetest.register_alias("seacoral:corallime", "default:water_source") | ||||
| minetest.register_alias("seacoral:seacoralsandlime", "default:coral_green") | ||||
| minetest.register_alias("seacoral:seacoraldirtlime", "default:coral_green") | ||||
| nalc.add_group("default:coral_green", "seacoral", 1) | ||||
| add_group("default:coral_green", "seacoral", 1) | ||||
|  | ||||
| -- CRAFTING | ||||
|  | ||||
| if( minetest.get_modpath( "colormachine") == nil ) then | ||||
| 	register_seacoral_craft = function(output,recipe) | ||||
| if not minetest.get_modpath( "colormachine") then | ||||
| 	local register_seacoral_craft = function(output,recipe) | ||||
| 		minetest.register_craft( | ||||
| 			{ | ||||
| 				type = 'shapeless', | ||||
| @@ -97,10 +116,13 @@ if( minetest.get_modpath( "colormachine") == nil ) then | ||||
|  | ||||
| 	register_seacoral_craft('dye:cyan 4', {'default:coral_cyan'}) | ||||
| 	register_seacoral_craft('dye:magenta 4', {'seacoral:coral_magenta'}) | ||||
| 	register_seacoral_craft('dye:lime 4', {'default:coral_green'}) | ||||
| 	register_seacoral_craft('dye:spring 4', {'seacoral:coral_aqua'}) | ||||
| 	register_seacoral_craft('dye:azure 4', {'seacoral:coral_skyblue'}) | ||||
| 	register_seacoral_craft('dye:pink 4', {'default:coral_pink'}) | ||||
|  | ||||
| 	if minetest.get_modpath("unifieddyes") then | ||||
| 		register_seacoral_craft('dye:lime 4', {'default:coral_green'}) | ||||
| 		register_seacoral_craft('dye:spring 4', {'seacoral:coral_aqua'}) | ||||
| 		register_seacoral_craft('dye:azure 4', {'seacoral:coral_skyblue'}) | ||||
| 	end | ||||
| end | ||||
|  | ||||
| -- SEACORAL SAND AND DIRT GENERATION | ||||
| @@ -167,7 +189,7 @@ minetest.register_abm( | ||||
| -- OPTIONAL DEPENDENCY | ||||
|  | ||||
|  | ||||
| if( minetest.get_modpath( "colormachine") ~= nil ) then | ||||
| if minetest.get_modpath( "colormachine") then | ||||
| 	colormachine.basic_dye_sources  = { "flowers:rose", "flowers:tulip", "flowers:dandelion_yellow", "default:coral_green", "default:cactus", "seacoral:coral_aqua", "default::coral_cyan", "seacoral:coral_skyblue", "flowers:geranium", "flowers:viola", "seacoral:coral_magenta", "default:coral_pink", "default:stone", "", "", "", "default:coal_lump" }; | ||||
| 	else | ||||
| 	return | ||||
|   | ||||
							
								
								
									
										5
									
								
								seacoral/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								seacoral/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| name = seacoral | ||||
| title = Sea Coral | ||||
| description = Sea Coral mod for sea modpack | ||||
| depends = default | ||||
| optional_depends = unifieddyes,colormachine,nalc_lib | ||||
| @@ -1,7 +0,0 @@ | ||||
| default | ||||
| dye | ||||
| stairs | ||||
| clams | ||||
| stairsshine | ||||
| colormachine? | ||||
| moreblocks? | ||||
| @@ -32,6 +32,7 @@ local function register_glass(suffix, color, cgroups) | ||||
| 	 drawtype = "glasslike", | ||||
| 	 tiles = {"seaglass_seaglass"..c..".png"}, | ||||
| 	 inventory_image = minetest.inventorycube("seaglass_seaglass"..c..".png"), | ||||
| 	 use_texture_alpha = "clip", | ||||
| 	 paramtype = "light", | ||||
| 	 sunlight_propagates = true, | ||||
| 	 light_source = ls, | ||||
|   | ||||
							
								
								
									
										5
									
								
								seaglass/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								seaglass/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| name = seaglass | ||||
| title = Sea Glass | ||||
| description = Sea Glass mod for sea modpack | ||||
| depends = default,dye,stairs,clams,stairsshine | ||||
| optional_depends = colormachine,moreblocks | ||||
| @@ -1,7 +0,0 @@ | ||||
| default | ||||
| dye | ||||
| stairs | ||||
| clams | ||||
| whiteshell? | ||||
| colormachine? | ||||
| moreblocks? | ||||
							
								
								
									
										5
									
								
								seagravel/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								seagravel/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| name = seagravel | ||||
| title = Sea Gravel | ||||
| description = Sea Gravel mod for sea modpack | ||||
| depends = default,dye,stairs,clams | ||||
| optional_depends = whiteshell,colormachine,moreblocks | ||||
| @@ -1,3 +0,0 @@ | ||||
| default | ||||
| bucket | ||||
| noairblocks | ||||
							
								
								
									
										4
									
								
								sealamps/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								sealamps/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| name = sealamps | ||||
| title = Sea Lamps | ||||
| description = Sea Lamds mod for sea modpack | ||||
| depends = default,bucket,noairblocks | ||||
| @@ -1 +0,0 @@ | ||||
| default | ||||
							
								
								
									
										4
									
								
								seaplants/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								seaplants/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| name = seaplants | ||||
| title = Sea Plants | ||||
| description = Sea Plants mod for sea modpack | ||||
| depends = default | ||||
| @@ -1,7 +0,0 @@ | ||||
| default | ||||
| dye | ||||
| stairs | ||||
| clams | ||||
| whiteshell? | ||||
| colormachine? | ||||
| moreblocks? | ||||
							
								
								
									
										5
									
								
								seastone/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								seastone/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| name = seastone | ||||
| title = Sea Stone | ||||
| description = Sea Stone mod for sea modpack | ||||
| depends = default,dye,stairs,clams | ||||
| optional_depends = whiteshell,colormachine,moreblocks | ||||
| @@ -1,5 +0,0 @@ | ||||
| default | ||||
| stairs | ||||
| seastone | ||||
| colormachine? | ||||
| moreblocks? | ||||
							
								
								
									
										5
									
								
								seastonebrick/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								seastonebrick/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| name = seastonebrick | ||||
| title = Sea Stonebrick | ||||
| description = Sea Stonebrick for sea modpack | ||||
| depends = default,stairs,seastone | ||||
| optional_depends = colormachine,moreblocks | ||||
| @@ -1,2 +0,0 @@ | ||||
| default | ||||
| treasurer? | ||||
							
								
								
									
										5
									
								
								seawrecks/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								seawrecks/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| name = seawrecks | ||||
| title = Sea Wrecks | ||||
| description = Sea Wrecks for sea modpack | ||||
| depends = default | ||||
| optional_depends = treasurer | ||||
| @@ -1 +0,0 @@ | ||||
| default | ||||
							
								
								
									
										4
									
								
								stairsshine/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								stairsshine/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| name = stairsshine | ||||
| title = Stairs Shine | ||||
| description = Stairs Shine mod for sea modpack | ||||
| depends = default | ||||
| @@ -1,2 +0,0 @@ | ||||
| default | ||||
| clams | ||||
							
								
								
									
										4
									
								
								whiteshell/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								whiteshell/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| name = whiteshell | ||||
| title = White Shell | ||||
| description = White Shell mod for sea modpack | ||||
| depends = default,clams | ||||
		Reference in New Issue
	
	Block a user