Texture improvements, flora group
>Improved textures >plants now belong to the "flora" group
98
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
|
||||
|
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 228 B After Width: | Height: | Size: 325 B |
Before Width: | Height: | Size: 824 B After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 527 B |
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 249 B After Width: | Height: | Size: 381 B |
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 560 B |
Before Width: | Height: | Size: 479 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 447 B |
Before Width: | Height: | Size: 121 B After Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 235 B After Width: | Height: | Size: 464 B |
BIN
textures/moreplants_palmleaves.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
textures/moreplants_palmleaves2.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
textures/moreplants_palmtree.png
Normal file
After Width: | Height: | Size: 630 B |
BIN
textures/moreplants_palmtree_top.png
Normal file
After Width: | Height: | Size: 516 B |
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 558 B |
Before Width: | Height: | Size: 394 B After Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 416 B |
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 480 B |