Compare commits

...

8 Commits

30 changed files with 103 additions and 66 deletions

View File

@ -1 +0,0 @@
default

View File

@ -1,3 +1,6 @@
local sand_sounds = minetest.registered_nodes["default:sand"].sounds
local dirt_sounds = minetest.registered_nodes["default:dirt"].sounds
-- NODES
minetest.register_node("clams:sandalgae", {
@ -16,7 +19,7 @@ minetest.register_node("clams:sandalgae", {
}
}
},
sounds = default.node_sound_sand_defaults(),
sounds = sand_sounds,
})
minetest.register_node("clams:dirtalgae", {
@ -35,25 +38,25 @@ minetest.register_node("clams:dirtalgae", {
}
}
},
sounds = default.node_sound_dirt_defaults,
sounds = dirt_sounds,
})
minetest.register_node("clams:sandalgaeused", {
description = "Used sandalgae",
tiles = {"default_sand.png^clams_algaeused.png"},
inventory_image = {"default_sand.png^clams_algaeused.png"},
inventory_image = "default_sand.png^clams_algaeused.png",
is_ground_content = true,
groups = {crumbly=3, falling_node=1, sand=1},
sounds = default.node_sound_sand_defaults(),
sounds = sand_sounds,
})
minetest.register_node("clams:dirtalgaeused", {
description = "Used dirtalgae",
tiles = {"default_dirt.png^clams_algaeused.png"},
inventory_image = {"default_dirt.png^clams_algaeused.png"},
inventory_image = "default_dirt.png^clams_algaeused.png",
is_ground_content = true,
groups = {crumbly=3},
sounds = default.node_sound_dirt_defaults(),
sounds = dirt_sounds,
})
@ -92,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
View File

@ -0,0 +1,4 @@
name = clams
title = Clams
description = Clams mod for sea modpack
depends = default

View File

@ -1 +0,0 @@
default

View File

@ -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
View File

@ -0,0 +1,4 @@
name = noairblocks
title = No Air Blocks
description = No Air Blocks mod for sea modpack
depends = default

View File

@ -1,7 +0,0 @@
default
dye
stairs
clams
whiteshell?
colormachine?
moreblocks?

5
seacobble/mod.conf Normal file
View 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

View File

@ -1,4 +0,0 @@
default
nalc_lib
unifieddyes
colormachine?

View File

@ -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
View 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

View File

@ -1,7 +0,0 @@
default
dye
stairs
clams
stairsshine
colormachine?
moreblocks?

View File

@ -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
View 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

View File

@ -1,7 +0,0 @@
default
dye
stairs
clams
whiteshell?
colormachine?
moreblocks?

5
seagravel/mod.conf Normal file
View 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

View File

@ -1,3 +0,0 @@
default
bucket
noairblocks

4
sealamps/mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = sealamps
title = Sea Lamps
description = Sea Lamds mod for sea modpack
depends = default,bucket,noairblocks

View File

@ -1 +0,0 @@
default

4
seaplants/mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = seaplants
title = Sea Plants
description = Sea Plants mod for sea modpack
depends = default

View File

@ -1,7 +0,0 @@
default
dye
stairs
clams
whiteshell?
colormachine?
moreblocks?

5
seastone/mod.conf Normal file
View 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

View File

@ -1,5 +0,0 @@
default
stairs
seastone
colormachine?
moreblocks?

5
seastonebrick/mod.conf Normal file
View File

@ -0,0 +1,5 @@
name = seastonebrick
title = Sea Stonebrick
description = Sea Stonebrick for sea modpack
depends = default,stairs,seastone
optional_depends = colormachine,moreblocks

View File

@ -1,2 +0,0 @@
default
treasurer?

5
seawrecks/mod.conf Normal file
View File

@ -0,0 +1,5 @@
name = seawrecks
title = Sea Wrecks
description = Sea Wrecks for sea modpack
depends = default
optional_depends = treasurer

View File

@ -1 +0,0 @@
default

4
stairsshine/mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = stairsshine
title = Stairs Shine
description = Stairs Shine mod for sea modpack
depends = default

View File

@ -1,2 +0,0 @@
default
clams

4
whiteshell/mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = whiteshell
title = White Shell
description = White Shell mod for sea modpack
depends = default,clams