diff --git a/init.lua b/init.lua index 2cff644..abc3d64 100644 --- a/init.lua +++ b/init.lua @@ -14,7 +14,6 @@ minetest.register_node("moreplants:tallgrass", { inventory_image = "moreplants_longgrass.png", visual_scale = 1.4, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} @@ -33,7 +32,6 @@ minetest.register_node("moreplants:aliengrass", { inventory_image = "moreplants_aliengrass.png", visual_scale = 1.54, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} @@ -54,7 +52,6 @@ minetest.register_node("moreplants:bulrush", { inventory_image = "moreplants_bullrush.png", visual_scale = 1.3, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} @@ -73,7 +70,6 @@ minetest.register_node("moreplants:bigfern", { inventory_image = "moreplants_bigfern.png", visual_scale = 1.5, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} @@ -92,7 +88,6 @@ minetest.register_node("moreplants:umbrella", { inventory_image = "moreplants_umbrella.png", visual_scale = 2, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 3, 0.3} @@ -111,7 +106,6 @@ minetest.register_node("moreplants:bigflower", { inventory_image = "moreplants_bigflower.png", visual_scale = 1.2, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} @@ -130,7 +124,6 @@ minetest.register_node("moreplants:medflower", { inventory_image = "moreplants_medflower.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} @@ -151,7 +144,6 @@ minetest.register_node("moreplants:weed", { inventory_image = "moreplants_weed.png", visual_scale = 1.1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} @@ -170,7 +162,6 @@ minetest.register_node("moreplants:stoneweed", { inventory_image = "moreplants_stoneplant.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} @@ -189,7 +180,6 @@ minetest.register_node("moreplants:spikefern", { inventory_image = "moreplants_spikefern.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} @@ -208,7 +198,6 @@ minetest.register_node("moreplants:bluespike", { inventory_image = "moreplants_bluespike.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} @@ -227,7 +216,6 @@ minetest.register_node("moreplants:blueflower", { inventory_image = "moreplants_blueflower.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} @@ -246,7 +234,6 @@ minetest.register_node("moreplants:eyeweed", { inventory_image = "moreplants_eyeweed.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, drop = "moreplants:eye", selection_box = { type = "fixed", @@ -266,7 +253,6 @@ minetest.register_node("moreplants:fern", { inventory_image = "moreplants_fern.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} @@ -285,7 +271,6 @@ minetest.register_node("moreplants:bush", { inventory_image = "moreplants_bush.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} @@ -304,7 +289,6 @@ minetest.register_node("moreplants:cactus", { inventory_image = "moreplants_cactus.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} @@ -324,7 +308,6 @@ minetest.register_node("moreplants:firefung", { inventory_image = "moreplants_firemush.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, igniter=1, hot=3, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} @@ -343,7 +326,6 @@ minetest.register_node("moreplants:bluemush", { inventory_image = "moreplants_bluemush.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} @@ -364,7 +346,6 @@ minetest.register_node("moreplants:caveflower", { visual_scale = 1, light_source = 5, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} @@ -383,7 +364,6 @@ minetest.register_node("moreplants:moonflower", { inventory_image = "moreplants_moonflower.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} @@ -402,7 +382,6 @@ minetest.register_node("moreplants:fireflower", { inventory_image = "moreplants_fireflower.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2} @@ -422,7 +401,6 @@ minetest.register_node("moreplants:deadweed", { inventory_image = "moreplants_deadweed.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2} @@ -442,7 +420,6 @@ minetest.register_node("moreplants:taigabush", { inventory_image = "moreplants_tundrabush.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2} @@ -471,7 +448,6 @@ minetest.register_node("moreplants:glowfung", { inventory_image = "moreplants_glowfung.png", visual_scale = 1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, walkable = false, }) @@ -486,7 +462,6 @@ minetest.register_node("moreplants:jungleflower", { inventory_image = "moreplants_jungleflower1.png", visual_scale = 1.1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, selection_box = { type = "fixed", fixed = {-0.4, -0.5, -0.4, 0.4, 0.4, 0.4} @@ -517,7 +492,6 @@ minetest.register_node("moreplants:mushroom", { {-0.125, -0.1875, -0.125, 0.125, -0.125, 0.125}, -- NodeBox3 } }, - groups = {snappy=3, flammable=1, attatched_node=1}, light_source=2, }) @@ -532,7 +506,6 @@ minetest.register_node("moreplants:curly", { inventory_image = "moreplants_curly.png", visual_scale = 1.1, wield_scale = {x=0.5, y=0.5, z=0.5}, - groups = {snappy=3, flammable=1, attatched_node=1}, drop = "moreplants:curlyfruit", selection_box = { type = "fixed", @@ -552,7 +525,6 @@ minetest.register_node("moreplants:clover", { "moreplants_clover.png", "moreplants_clover.png" }, - groups = {snappy=3, flammable=1, attatched_node=1}, is_ground_content=true, buildable_to = true, sunlight_propagates = true, @@ -576,7 +548,6 @@ minetest.register_node("moreplants:groundfung", { "moreplants_groundfung.png", "moreplants_groundfung.png" }, - groups = {snappy=3, flammable=1, attatched_node=1}, is_ground_content=true, buildable_to = true, walkable = false, @@ -589,6 +560,66 @@ minetest.register_node("moreplants:groundfung", { }, }) +--trees + +minetest.register_node("moreplants:palm", { + description = "Palm tree", + tiles = {"moreplants_palmtree_top.png", "moreplants_palmtree_top.png", "moreplants_palmtree.png"}, + paramtype2 = "facedir", + is_ground_content = false, + groups = {tree = 1, choppy = 2, flammable = 2}, + sounds = default.node_sound_wood_defaults(), + drop = "default:tree", + drawtype = "nodebox", + paramtype = "light", + node_box = { + type = "fixed", + fixed = { + {-0.3125, -0.5, -0.375, 0.3125, 0.5, 0.375}, -- NodeBox1 + {-0.375, -0.5, -0.3125, 0.375, 0.5, 0.3125}, -- NodeBox2 + } + }, + on_place = minetest.rotate_node +}) + +minetest.register_node("moreplants:palmleaves2", { + description = "palm leaves (2)", + drawtype = "plantlike", + visual_scale = 2.5, + tiles = {"moreplants_palmleaves2.png"}, + inventory_image = "moreplants_palmleaves2.png", + use_texture_alpha = true, + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propagates = false, + walkable = false, + is_ground_content = true, + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, -0.2, 0.3} + }, + groups = {cracky=3,dig_immediate=3}, +}) + +minetest.register_node("moreplants:palmleaves1", { + description = "palm leaves (1)", + drawtype = "signlike", + visual_scale = 4.0, + tiles = {"moreplants_palmleaves.png"}, + inventory_image = "moreplants_palmleaves.png", + use_texture_alpha = true, + paramtype = "light", + paramtype2 = "wallmounted", + sunlight_propagates = false, + walkable = false, + is_ground_content = true, + selection_box = { + type = "wallmounted", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5} + }, + groups = {cracky=3,dig_immediate=3}, +}) + --craftitems minetest.register_craftitem("moreplants:curlyfruit", { description = "Curly Fruit", @@ -619,7 +650,10 @@ minetest.register_craft({ }) --decorations -if minetest.get_mapgen_params().mgname ~= "v6" then + +moreplants = {} + +function moreplants.mapgen() minetest.register_decoration({ deco_type = "simple", place_on = "default:desert_sand", @@ -862,6 +896,10 @@ minetest.register_decoration({ }) end +if minetest.get_mapgen_params().mgname ~= "v6" or minetest.get_mapgen_params().mgname ~= "singlenode" then + moreplants.mapgen() +end + --ABM spawning -- ABM from the Mushroom mod --by DanDuncombe and VanessaE diff --git a/textures/moreplants_bigfern.png b/textures/moreplants_bigfern.png index 5df96c1..2378bb4 100644 Binary files a/textures/moreplants_bigfern.png and b/textures/moreplants_bigfern.png differ diff --git a/textures/moreplants_bluespike.png b/textures/moreplants_bluespike.png index fe1a953..8413460 100644 Binary files a/textures/moreplants_bluespike.png and b/textures/moreplants_bluespike.png differ diff --git a/textures/moreplants_bullrush.png b/textures/moreplants_bullrush.png index 11f2817..b69bacd 100644 Binary files a/textures/moreplants_bullrush.png and b/textures/moreplants_bullrush.png differ diff --git a/textures/moreplants_bush.png b/textures/moreplants_bush.png index 03527ce..88abd42 100644 Binary files a/textures/moreplants_bush.png and b/textures/moreplants_bush.png differ diff --git a/textures/moreplants_cactus.png b/textures/moreplants_cactus.png index 9e258fd..ace77a9 100644 Binary files a/textures/moreplants_cactus.png and b/textures/moreplants_cactus.png differ diff --git a/textures/moreplants_deadweed.png b/textures/moreplants_deadweed.png index ebe5338..d267ed4 100644 Binary files a/textures/moreplants_deadweed.png and b/textures/moreplants_deadweed.png differ diff --git a/textures/moreplants_eyeweed.png b/textures/moreplants_eyeweed.png index 847075f..929fa1a 100644 Binary files a/textures/moreplants_eyeweed.png and b/textures/moreplants_eyeweed.png differ diff --git a/textures/moreplants_fern.png b/textures/moreplants_fern.png index 78f79e2..142f985 100644 Binary files a/textures/moreplants_fern.png and b/textures/moreplants_fern.png differ diff --git a/textures/moreplants_longgrass.png b/textures/moreplants_longgrass.png index 6488b30..d67bb7b 100644 Binary files a/textures/moreplants_longgrass.png and b/textures/moreplants_longgrass.png differ diff --git a/textures/moreplants_moonflower.png b/textures/moreplants_moonflower.png index 6bf58e1..30b3fae 100644 Binary files a/textures/moreplants_moonflower.png and b/textures/moreplants_moonflower.png differ diff --git a/textures/moreplants_mushroom_side.png b/textures/moreplants_mushroom_side.png index e6439eb..3cd390f 100644 Binary files a/textures/moreplants_mushroom_side.png and b/textures/moreplants_mushroom_side.png differ diff --git a/textures/moreplants_mushroom_top.png b/textures/moreplants_mushroom_top.png index 8a8069f..2ad5dc4 100644 Binary files a/textures/moreplants_mushroom_top.png and b/textures/moreplants_mushroom_top.png differ diff --git a/textures/moreplants_palmleaves.png b/textures/moreplants_palmleaves.png new file mode 100644 index 0000000..5d9c327 Binary files /dev/null and b/textures/moreplants_palmleaves.png differ diff --git a/textures/moreplants_palmleaves2.png b/textures/moreplants_palmleaves2.png new file mode 100644 index 0000000..590c60f Binary files /dev/null and b/textures/moreplants_palmleaves2.png differ diff --git a/textures/moreplants_palmtree.png b/textures/moreplants_palmtree.png new file mode 100644 index 0000000..4634950 Binary files /dev/null and b/textures/moreplants_palmtree.png differ diff --git a/textures/moreplants_palmtree_top.png b/textures/moreplants_palmtree_top.png new file mode 100644 index 0000000..cc0d7ea Binary files /dev/null and b/textures/moreplants_palmtree_top.png differ diff --git a/textures/moreplants_spikefern.png b/textures/moreplants_spikefern.png index aec9ce7..a23f16e 100644 Binary files a/textures/moreplants_spikefern.png and b/textures/moreplants_spikefern.png differ diff --git a/textures/moreplants_stoneplant.png b/textures/moreplants_stoneplant.png index 94766d1..23b51ff 100644 Binary files a/textures/moreplants_stoneplant.png and b/textures/moreplants_stoneplant.png differ diff --git a/textures/moreplants_tundrabush.png b/textures/moreplants_tundrabush.png index 768bbf5..15f04fc 100644 Binary files a/textures/moreplants_tundrabush.png and b/textures/moreplants_tundrabush.png differ diff --git a/textures/moreplants_weed.png b/textures/moreplants_weed.png index 54e20a1..cb45278 100644 Binary files a/textures/moreplants_weed.png and b/textures/moreplants_weed.png differ