diff --git a/mods/default/craftitems.lua b/mods/default/craftitems.lua index 384cdcd..71a6564 100644 --- a/mods/default/craftitems.lua +++ b/mods/default/craftitems.lua @@ -71,11 +71,18 @@ minetest.register_craftitem( minetest.register_craftitem( "default:lump_sugar", { - description = "Sugar lump", + description = "Sugar Lump", inventory_image = "default_lump_sugar.png", on_use = minetest.item_eat({hp = 1, sat = 10}) }) +minetest.register_craftitem( + "default:pearl", + { + description = "Pearl", + inventory_image = "default_pearl.png", + }) + minetest.register_craftitem( "default:flint", { diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index 04bc2a6..b2de729 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -205,6 +205,23 @@ minetest.register_biome( humidity_point = 35, }) +minetest.register_biome( + { + name = "Gravel Beach", + + node_top = "default:gravel", + node_filler = "default:sand", + + depth_filler = 2, + depth_top = 1, + + y_min = -5, + y_max = 1, + + heat_point = 59, + humidity_point = 31, + }) + minetest.register_biome( { name = "Savanna Ocean", @@ -468,7 +485,7 @@ minetest.register_decoration( minetest.register_decoration( { deco_type = "schematic", - place_on = {"default:sandstone"}, + place_on = {"default:dry_dirt"}, sidelen = 16, fill_ratio = 0.006, biomes = {"Wasteland"}, @@ -482,7 +499,7 @@ minetest.register_decoration( minetest.register_decoration( { deco_type = "schematic", - place_on = {"default:sandstone"}, + place_on = {"default:dry_dirt"}, sidelen = 16, fill_ratio = 0.004, biomes = {"Wasteland"}, @@ -493,6 +510,21 @@ minetest.register_decoration( rotation = "random", }) +-- Clams + +minetest.register_decoration( + { + deco_type = "simple", + place_on = {"default:sand", "default:gravel"}, + sidelen = 16, + fill_ratio = 0.04, + biomes = {"Grassland Ocean", "Gravel Beach"}, + decoration = {"default:clam"}, + y_min = -32000, + y_max = 1, + }) + + -- -- Ore generation -- diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 4684cac..1e34940 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -1283,18 +1283,40 @@ minetest.register_node( {-1/8, 0.25, -1/8, 1/8, 0.5, 1/8}, }, }, - selection_box = { + sunlight_propagates = true, + walkable = false, + groups = {fleshy = 3, dig_immediate = 2, leafdecay = 3, leafdecay_drop = 1, attached_node = 1}, + on_use = minetest.item_eat({hp = 2, sat = 10}), + sounds = default.node_sound_defaults(), + }) + +minetest.register_node( + "default:clam", + { + description = "Clam", + drawtype = "nodebox", + tiles ={"default_clam.png"}, + inventory_image = "default_clam_inventory.png", + wield_image = "default_clam_inventory.png", + paramtype = "light", + node_box = { type = "fixed", fixed = { - {-0.25, -0.25, -0.25, 0.25, 0.25, 0.25}, - {-1/8, 0.25, -1/8, 1/8, 0.5, 1/8}, + {-3/16, -0.5, -3/16, 3/16, -6/16, 3/16}, }, }, sunlight_propagates = true, walkable = false, - attached_node = true, - groups = {fleshy = 3, dig_immediate = 2, leafdecay = 3, leafdecay_drop = 1}, - on_use = minetest.item_eat({hp = 2, sat = 10}), + drop = { + max_items = 3, + items = { + {items = {"default:clam"}, rarity = 1}, + {items = {"default:pearl"}, rarity = 60}, + {items = {"default:pearl"}, rarity = 20}, + } + }, + groups = {fleshy = 3, oddly_breakable_by_hand = 2, choppy = 3, attached_node = 1}, + on_use = minetest.item_eat({hp = 4, sat = 40}), sounds = default.node_sound_defaults(), }) diff --git a/mods/default/textures/default_clam.png b/mods/default/textures/default_clam.png new file mode 100644 index 0000000..4b3fc1c Binary files /dev/null and b/mods/default/textures/default_clam.png differ diff --git a/mods/default/textures/default_clam.xcf b/mods/default/textures/default_clam.xcf new file mode 100644 index 0000000..7ec4cc2 Binary files /dev/null and b/mods/default/textures/default_clam.xcf differ diff --git a/mods/default/textures/default_clam_inventory.png b/mods/default/textures/default_clam_inventory.png new file mode 100644 index 0000000..0c09e8f Binary files /dev/null and b/mods/default/textures/default_clam_inventory.png differ diff --git a/mods/default/textures/default_clam_inventory.xcf b/mods/default/textures/default_clam_inventory.xcf new file mode 100644 index 0000000..9eddb47 Binary files /dev/null and b/mods/default/textures/default_clam_inventory.xcf differ diff --git a/mods/default/textures/default_pearl.png b/mods/default/textures/default_pearl.png new file mode 100644 index 0000000..b1eca40 Binary files /dev/null and b/mods/default/textures/default_pearl.png differ diff --git a/mods/default/textures/default_pearl.xcf b/mods/default/textures/default_pearl.xcf new file mode 100644 index 0000000..fd09573 Binary files /dev/null and b/mods/default/textures/default_pearl.xcf differ