Add files via upload

pull/1/merge
Skandarella 2022-12-19 18:46:12 +01:00 committed by GitHub
parent 2583658b02
commit c441332f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 531 additions and 2 deletions

View File

@ -214,4 +214,390 @@ tiles = {
groups = {wood = 1, choppy = 2, flammable = 2},
drop = "farming:seed_cotton 10",
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("marinara:sand_with_seashells", {
description = ("Sand with Seashells"),
tiles = {"default_sand.png^marinara_seashells.png"},
groups = {crumbly = 3, falling_node = 1, sand = 1},
drop = "marinara:seashells",
sounds = default.node_sound_sand_defaults(),
})
minetest.register_craft({
output = "marinara:seashellmobile",
type = "shapeless",
recipe =
{"marinara:seashells", "farming:string"}
})
minetest.register_craftitem("marinara:seashells", {
description = ("Seashells"),
inventory_image = "marinara_seashells.png",
})
minetest.register_node("marinara:seashellmobile", {
description = ("Seashell Mobile"),
drawtype = "plantlike",
waving = 0,
tiles = {"marinara_seashellmobile.png"},
inventory_image = "marinara_seashellmobile.png",
wield_image = "marinara_seashellmobile.png",
paramtype = "light",
sunlight_propagates = true,
climbable = false,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
},
groups = {snappy = 3, flammable = 2},
sounds = default.node_sound_leaves_defaults(),
after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger)
end,
})
walls.register(":marinara:coastbrick_wall", "Coast Brick Wall", "marinara_coastbrick.png",
"marinara:coastbrick_wall", default.node_sound_stone_defaults())
stairs.register_stair_and_slab(
"marinara_coastbrick",
"marinara:coastbricks",
{cracky = 1, oddly_breakable_by_hand = 0, flammable = 0},
{"marinara_coastbrick.png"},
("Coast Rock Brick Stair"),
("Coast Rock Brick Slab"),
default.node_sound_stone_defaults()
)
minetest.register_node("marinara:coastbricks", {
description = ("Coast Bricks"),
tiles = {"marinara_coastbrick.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = "marinara:coastbricks",
type = "shapeless",
recipe =
{"marinara:coastrock", "marinara:coastrock", "marinara:coastrock", "marinara:coastrock"}
})
minetest.register_craft({
output = "marinara:coastbrick_wall",
type = "shapeless",
recipe =
{"marinara:coastbricks", "marinara:coastbricks", "marinara:coastbricks", "marinara:coastbricks", "marinara:coastbricks", "marinara:coastbricks"}
})
walls.register(":marinara:coastbrick_wall_alage", "Coast Brick Wall with Alage", "marinara_coastbrick_alage.png",
"marinara:coastbrick_wall_alage", default.node_sound_stone_defaults())
stairs.register_stair_and_slab(
"marinara_coastbrick_alage",
"marinara:coastbricks_alage",
{cracky = 1, oddly_breakable_by_hand = 0, flammable = 0},
{"marinara_coastbrick_alage.png"},
("Coast Rock Brick Stair with Alage"),
("Coast Rock Brick Slab with Alage"),
default.node_sound_stone_defaults()
)
minetest.register_node("marinara:coastbricks_alage", {
description = ("Coast Bricks with Alage"),
tiles = {"marinara_coastbrick_alage.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = "marinara:coastbricks_alage",
type = "shapeless",
recipe =
{"marinara:coastrock_alage", "marinara:coastrock_alage", "marinara:coastrock_alage", "marinara:coastrock_alage"}
})
minetest.register_craft({
output = "marinara:coastbrick_wall_alage",
type = "shapeless",
recipe =
{"marinara:coastbricks_alage", "marinara:coastbricks_alage", "marinara:coastbricks_alage", "marinara:coastbricks_alage", "marinara:coastbricks_alage", "marinara:coastbricks_alage"}
})
minetest.register_node("marinara:sand_with_seashells_orange", {
description = ("Sand with Seashells Orange"),
tiles = {"default_sand.png^marinara_seashells_orange.png"},
groups = {crumbly = 3, falling_node = 1, sand = 1},
drop = "marinara:seashells_orange",
sounds = default.node_sound_sand_defaults(),
})
minetest.register_craft({
output = "marinara:seashellmobile_orange",
type = "shapeless",
recipe =
{"marinara:seashells_orange", "farming:string"}
})
minetest.register_craftitem("marinara:seashells_orange", {
description = ("Seashells Orange"),
inventory_image = "marinara_seashells_orange.png",
})
minetest.register_node("marinara:seashellmobile_orange", {
description = ("Seashell Mobile Orange"),
drawtype = "plantlike",
waving = 0,
tiles = {"marinara_seashellmobile_orange.png"},
inventory_image = "marinara_seashellmobile_orange.png",
wield_image = "marinara_seashellmobile_orange.png",
paramtype = "light",
sunlight_propagates = true,
climbable = false,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
},
groups = {snappy = 3, flammable = 2},
sounds = default.node_sound_leaves_defaults(),
after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger)
end,
})
minetest.register_node("marinara:sand_with_seashells_broken", {
description = ("Sand with Seashells Broken"),
tiles = {"default_sand.png^marinara_seashells_broken.png"},
groups = {crumbly = 3, falling_node = 1, sand = 1},
drop = "marinara:seashells_broken",
sounds = default.node_sound_sand_defaults(),
})
minetest.register_craft({
output = "marinara:seashellmobile_broken",
type = "shapeless",
recipe =
{"marinara:seashells_broken", "farming:string"}
})
minetest.register_craftitem("marinara:seashells_broken", {
description = ("Seashells Broken"),
inventory_image = "marinara_seashells_broken.png",
})
minetest.register_node("marinara:seashellmobile_broken", {
description = ("Seashell Mobile Broken"),
drawtype = "plantlike",
waving = 0,
tiles = {"marinara_seashellmobile_broken.png"},
inventory_image = "marinara_seashellmobile_broken.png",
wield_image = "marinara_seashellmobile_broken.png",
paramtype = "light",
sunlight_propagates = true,
climbable = false,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
},
groups = {snappy = 3, flammable = 2},
sounds = default.node_sound_leaves_defaults(),
after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger)
end,
})
minetest.register_node("marinara:sand_with_seashells_pink", {
description = ("Sand with Seashells Pink"),
tiles = {"default_sand.png^marinara_seashells_pink.png"},
groups = {crumbly = 3, falling_node = 1, sand = 1},
drop = "marinara:seashells_pink",
sounds = default.node_sound_sand_defaults(),
})
minetest.register_craft({
output = "marinara:seashellmobile_pink",
type = "shapeless",
recipe =
{"marinara:seashells_pink", "farming:string"}
})
minetest.register_craftitem("marinara:seashells_pink", {
description = ("Seashells Pink"),
inventory_image = "marinara_seashells_pink.png",
})
minetest.register_node("marinara:seashellmobile_pink", {
description = ("Seashell Mobile Pink"),
drawtype = "plantlike",
waving = 0,
tiles = {"marinara_seashellmobile_pink.png"},
inventory_image = "marinara_seashellmobile_pink.png",
wield_image = "marinara_seashellmobile_pink.png",
paramtype = "light",
sunlight_propagates = true,
climbable = false,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
},
groups = {snappy = 3, flammable = 2},
sounds = default.node_sound_leaves_defaults(),
after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger)
end,
})
minetest.register_node("marinara:sand_with_seashells_brown", {
description = ("Sand with Seashells Brown"),
tiles = {"default_sand.png^marinara_seashells_brown.png"},
groups = {crumbly = 3, falling_node = 1, sand = 1},
drop = "marinara:seashells_brown",
sounds = default.node_sound_sand_defaults(),
})
minetest.register_craft({
output = "marinara:seashellmobile_brown",
type = "shapeless",
recipe =
{"marinara:seashells_brown", "farming:string"}
})
minetest.register_craftitem("marinara:seashells_brown", {
description = ("Seashells Brown"),
inventory_image = "marinara_seashells_brown.png",
})
minetest.register_node("marinara:seashellmobile_brown", {
description = ("Seashell Mobile Brown"),
drawtype = "plantlike",
waving = 0,
tiles = {"marinara_seashellmobile_brown.png"},
inventory_image = "marinara_seashellmobile_brown.png",
wield_image = "marinara_seashellmobile_brown.png",
paramtype = "light",
sunlight_propagates = true,
climbable = false,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
},
groups = {snappy = 3, flammable = 2},
sounds = default.node_sound_leaves_defaults(),
after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger)
end,
})
minetest.register_node("marinara:sand_with_seashells_yellow", {
description = ("Sand with Seashells Yellow"),
tiles = {"default_sand.png^marinara_seashells_yellow.png"},
groups = {crumbly = 3, falling_node = 1, sand = 1},
drop = "marinara:seashells_yellow",
sounds = default.node_sound_sand_defaults(),
})
minetest.register_craft({
output = "marinara:seashellmobile_yellow",
type = "shapeless",
recipe =
{"marinara:seashells_yellow", "farming:string"}
})
minetest.register_craftitem("marinara:seashells_yellow", {
description = ("Seashells Yellow"),
inventory_image = "marinara_seashells_yellow.png",
})
minetest.register_node("marinara:seashellmobile_yellow", {
description = ("Seashell Mobile Yellow"),
drawtype = "plantlike",
waving = 0,
tiles = {"marinara_seashellmobile_yellow.png"},
inventory_image = "marinara_seashellmobile_yellow.png",
wield_image = "marinara_seashellmobile_yellow.png",
paramtype = "light",
sunlight_propagates = true,
climbable = false,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
},
groups = {snappy = 3, flammable = 2},
sounds = default.node_sound_leaves_defaults(),
after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger)
end,
})
minetest.register_node("marinara:sand_with_seashells_white", {
description = ("Sand with Seashells"),
tiles = {"default_sand.png^marinara_seashells_white.png"},
groups = {crumbly = 3, falling_node = 1, sand = 1},
drop = "marinara:seashells_white",
sounds = default.node_sound_sand_defaults(),
})
minetest.register_craft({
output = "marinara:seashellmobile_white",
type = "shapeless",
recipe =
{"marinara:seashells_white", "farming:string"}
})
minetest.register_craftitem("marinara:seashells_white", {
description = ("Seashells White"),
inventory_image = "marinara_seashells_white.png",
})
minetest.register_node("marinara:seashellmobile_white", {
description = ("Seashell Mobile White"),
drawtype = "plantlike",
waving = 0,
tiles = {"marinara_seashellmobile_white.png"},
inventory_image = "marinara_seashellmobile_white.png",
wield_image = "marinara_seashellmobile_white.png",
paramtype = "light",
sunlight_propagates = true,
climbable = false,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
},
groups = {snappy = 3, flammable = 2},
sounds = default.node_sound_leaves_defaults(),
after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger)
end,
})

View File

@ -473,8 +473,8 @@ special_tiles = {{name = "marinara_oisterbank.png", tileable_vertical = true}},
node_placement_prediction = "",
drop = "marinara:raw_oisters",
sounds = default.node_sound_stone_defaults({
dig = {name = "default_dig_snappy", gain = 0.2},
dug = {name = "default_grass_footstep", gain = 0.25},
dig = {name = "default_dig_choppy", gain = 0.2},
dug = {name = "default_dig_choppy", gain = 0.25},
}),
on_place = coral_on_place,

143
spawn.lua
View File

@ -1,3 +1,146 @@
--- seashells
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:sand"},
sidelen = 16,
noise_params = {
offset = -0,
scale = 0.01,
spread = {x = 100, y = 100, z = 100},
seed = 3789,
octaves = 4,
persist = 0.8,
},
place_offset_y=-1,
flags = "place_center_x,place_center_z,force_placement",
biomes = {"savanna_shore", "savanna_ocean", "coniferous_forest_ocean", "sandstone_desert_ocean", "grassland_ocean",},
y_max = 2,
y_min = 0,
decoration = "marinara:sand_with_seashells"
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:sand"},
sidelen = 16,
noise_params = {
offset = -0,
scale = 0.01,
spread = {x = 100, y = 100, z = 100},
seed = 3789,
octaves = 4,
persist = 0.8,
},
place_offset_y=-1,
flags = "place_center_x,place_center_z,force_placement",
biomes = {"savanna_shore", "savanna_ocean", "coniferous_forest_ocean", "sandstone_desert_ocean", "grassland_ocean",},
y_max = 2,
y_min = 0,
decoration = "marinara:sand_with_seashells_broken"
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:sand"},
sidelen = 16,
noise_params = {
offset = -0,
scale = 0.01,
spread = {x = 100, y = 100, z = 100},
seed = 3789,
octaves = 4,
persist = 0.8,
},
place_offset_y=-1,
flags = "place_center_x,place_center_z,force_placement",
biomes = {"savanna_shore", "savanna_ocean", "coniferous_forest_ocean", "sandstone_desert_ocean", "grassland_ocean",},
y_max = 2,
y_min = 0,
decoration = "marinara:sand_with_seashells_white"
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:sand"},
sidelen = 16,
noise_params = {
offset = -0,
scale = 0.01,
spread = {x = 100, y = 100, z = 100},
seed = 3789,
octaves = 4,
persist = 0.8,
},
place_offset_y=-1,
flags = "place_center_x,place_center_z,force_placement",
biomes = {"savanna_shore", "savanna_ocean", "coniferous_forest_ocean", "sandstone_desert_ocean", "grassland_ocean",},
y_max = 2,
y_min = 0,
decoration = "marinara:sand_with_seashells_yellow"
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:sand"},
sidelen = 16,
noise_params = {
offset = -0,
scale = 0.01,
spread = {x = 100, y = 100, z = 100},
seed = 3789,
octaves = 4,
persist = 0.8,
},
place_offset_y=-1,
flags = "place_center_x,place_center_z,force_placement",
biomes = {"savanna_shore", "savanna_ocean", "coniferous_forest_ocean", "sandstone_desert_ocean", "grassland_ocean",},
y_max = 2,
y_min = 0,
decoration = "marinara:sand_with_seashells_brown"
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:sand"},
sidelen = 16,
noise_params = {
offset = -0,
scale = 0.01,
spread = {x = 100, y = 100, z = 100},
seed = 3789,
octaves = 4,
persist = 0.8,
},
place_offset_y=-1,
flags = "place_center_x,place_center_z,force_placement",
biomes = {"savanna_shore", "savanna_ocean", "coniferous_forest_ocean", "sandstone_desert_ocean", "grassland_ocean",},
y_max = 2,
y_min = 0,
decoration = "marinara:sand_with_seashells_pink"
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:sand"},
sidelen = 16,
noise_params = {
offset = -0,
scale = 0.01,
spread = {x = 100, y = 100, z = 100},
seed = 3789,
octaves = 4,
persist = 0.8,
},
place_offset_y=-1,
flags = "place_center_x,place_center_z,force_placement",
biomes = {"savanna_shore", "savanna_ocean", "coniferous_forest_ocean", "sandstone_desert_ocean", "grassland_ocean",},
y_max = 2,
y_min = 0,
decoration = "marinara:sand_with_seashells_orange"
})
--- wrecks
minetest.register_decoration({