11 Commits

Author SHA1 Message Date
cae249a88a Blueflower spawn to grassland 2023-11-26 18:55:49 +01:00
4bf92e471a Add missed depends in mod.conf 2022-07-07 18:50:25 +02:00
e0d6663960 Delete depends.txt, description.txt, add mod.conf 2022-07-02 21:45:23 +02:00
07f4ac8379 Merge remote-tracking branch 'upstream/master' 2021-03-12 12:35:47 +01:00
ffc1b1921d Merge pull request #8 from sys4-fr/master
Some fixes and improvements
2021-02-27 06:00:36 +10:00
681d1d963c Merge branch 'github' 2021-02-26 14:39:03 +01:00
d4e6b9c3a5 Fix the use of deprecated functions for Minetest 5.4
* Remove 'use_texture_alpha = true' not needed and deprecated
* Replace 'minetest.get_mapgen_params().mgname' by
  'minetest.get_mapgen_setting("mg_name")'
2021-02-26 14:30:20 +01:00
5e8cd73393 Merge remote-tracking branch 'upstream/master' into github 2021-02-26 12:52:52 +01:00
d47cd1ca00 Merge branch 'master' of yunohost.local:mtcontrib/moreplants into nalc-1.2-dev 2019-12-22 14:11:35 +01:00
d237c1dde2 Merge pull request #7 from fluxionary/spelling_fix
fix spelling of attached
2019-09-23 06:55:37 +10:00
4547d78515 fix spelling of attached 2019-09-22 17:52:25 +00:00
4 changed files with 36 additions and 43 deletions

View File

@ -1 +0,0 @@
default

View File

@ -1,9 +0,0 @@
A simple mod that adds a few new plants.
Changed in V1.2:
>more plants
>plants now spawn on new worlds(as decorations not using an ABM)
>curly plants have fruit, and eyeweeds drop eyeballs
>smaller textures
Changed in V1.3:
>added all plants to the group attatched_node

View File

@ -14,7 +14,7 @@ minetest.register_node("moreplants:tallgrass", {
inventory_image = "moreplants_longgrass.png", inventory_image = "moreplants_longgrass.png",
visual_scale = 1.4, visual_scale = 1.4,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
@ -34,7 +34,7 @@ minetest.register_node("moreplants:aliengrass", {
inventory_image = "moreplants_aliengrass.png", inventory_image = "moreplants_aliengrass.png",
visual_scale = 1.54, visual_scale = 1.54,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
@ -55,7 +55,7 @@ minetest.register_node("moreplants:bulrush", {
inventory_image = "moreplants_bullrush.png", inventory_image = "moreplants_bullrush.png",
visual_scale = 1.3, visual_scale = 1.3,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
@ -75,7 +75,7 @@ minetest.register_node("moreplants:bigfern", {
inventory_image = "moreplants_bigfern.png", inventory_image = "moreplants_bigfern.png",
visual_scale = 1.5, visual_scale = 1.5,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
@ -95,7 +95,7 @@ minetest.register_node("moreplants:umbrella", {
inventory_image = "moreplants_umbrella.png", inventory_image = "moreplants_umbrella.png",
visual_scale = 2, visual_scale = 2,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 3, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 3, 0.3}
@ -115,7 +115,7 @@ minetest.register_node("moreplants:bigflower", {
inventory_image = "moreplants_bigflower.png", inventory_image = "moreplants_bigflower.png",
visual_scale = 1.2, visual_scale = 1.2,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flower=1}, groups = {snappy=3, flammable=1, attached_node=1, flower=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
@ -135,7 +135,7 @@ minetest.register_node("moreplants:medflower", {
inventory_image = "moreplants_medflower.png", inventory_image = "moreplants_medflower.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flower=1}, groups = {snappy=3, flammable=1, attached_node=1, flower=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
@ -157,7 +157,7 @@ minetest.register_node("moreplants:weed", {
inventory_image = "moreplants_weed.png", inventory_image = "moreplants_weed.png",
visual_scale = 1.1, visual_scale = 1.1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5} fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
@ -177,7 +177,7 @@ minetest.register_node("moreplants:stoneweed", {
inventory_image = "moreplants_stoneplant.png", inventory_image = "moreplants_stoneplant.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
@ -197,7 +197,7 @@ minetest.register_node("moreplants:spikefern", {
inventory_image = "moreplants_spikefern.png", inventory_image = "moreplants_spikefern.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
@ -217,7 +217,7 @@ minetest.register_node("moreplants:bluespike", {
inventory_image = "moreplants_bluespike.png", inventory_image = "moreplants_bluespike.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
@ -237,7 +237,7 @@ minetest.register_node("moreplants:blueflower", {
inventory_image = "moreplants_blueflower.png", inventory_image = "moreplants_blueflower.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flower=1}, groups = {snappy=3, flammable=1, attached_node=1, flower=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
@ -257,7 +257,7 @@ minetest.register_node("moreplants:eyeweed", {
inventory_image = "moreplants_eyeweed.png", inventory_image = "moreplants_eyeweed.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
drop = "moreplants:eye", drop = "moreplants:eye",
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -278,7 +278,7 @@ minetest.register_node("moreplants:fern", {
inventory_image = "moreplants_fern.png", inventory_image = "moreplants_fern.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
@ -298,7 +298,7 @@ minetest.register_node("moreplants:bush", {
inventory_image = "moreplants_bush.png", inventory_image = "moreplants_bush.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
@ -318,7 +318,7 @@ minetest.register_node("moreplants:cactus", {
inventory_image = "moreplants_cactus.png", inventory_image = "moreplants_cactus.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
@ -338,7 +338,7 @@ minetest.register_node("moreplants:firefung", {
inventory_image = "moreplants_firemush.png", inventory_image = "moreplants_firemush.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, igniter=1, hot=3, attatched_node=1, flora=1}, groups = {snappy=3, igniter=1, hot=3, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
@ -357,7 +357,7 @@ minetest.register_node("moreplants:bluemush", {
inventory_image = "moreplants_bluemush.png", inventory_image = "moreplants_bluemush.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
@ -378,7 +378,7 @@ minetest.register_node("moreplants:caveflower", {
visual_scale = 1, visual_scale = 1,
light_source = 5, light_source = 5,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flower=1}, groups = {snappy=3, flammable=1, attached_node=1, flower=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
@ -397,7 +397,7 @@ minetest.register_node("moreplants:moonflower", {
inventory_image = "moreplants_moonflower.png", inventory_image = "moreplants_moonflower.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flower=1}, groups = {snappy=3, flammable=1, attached_node=1, flower=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3} fixed = {-0.3, -0.5, -0.3, 0.3, 0, 0.3}
@ -417,7 +417,7 @@ minetest.register_node("moreplants:fireflower", {
inventory_image = "moreplants_fireflower.png", inventory_image = "moreplants_fireflower.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flower=1}, groups = {snappy=3, flammable=1, attached_node=1, flower=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2} fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
@ -438,7 +438,7 @@ minetest.register_node("moreplants:deadweed", {
inventory_image = "moreplants_deadweed.png", inventory_image = "moreplants_deadweed.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2} fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
@ -458,7 +458,7 @@ minetest.register_node("moreplants:taigabush", {
inventory_image = "moreplants_tundrabush.png", inventory_image = "moreplants_tundrabush.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2} fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
@ -488,7 +488,7 @@ minetest.register_node("moreplants:glowfung", {
inventory_image = "moreplants_glowfung.png", inventory_image = "moreplants_glowfung.png",
visual_scale = 1, visual_scale = 1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
walkable = false, walkable = false,
}) })
@ -503,7 +503,7 @@ minetest.register_node("moreplants:jungleflower", {
inventory_image = "moreplants_jungleflower1.png", inventory_image = "moreplants_jungleflower1.png",
visual_scale = 1.1, visual_scale = 1.1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flower=1}, groups = {snappy=3, flammable=1, attached_node=1, flower=1},
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.4, -0.5, -0.4, 0.4, 0.4, 0.4} fixed = {-0.4, -0.5, -0.4, 0.4, 0.4, 0.4}
@ -535,7 +535,7 @@ minetest.register_node("moreplants:mushroom", {
{-0.125, -0.1875, -0.125, 0.125, -0.125, 0.125}, -- NodeBox3 {-0.125, -0.1875, -0.125, 0.125, -0.125, 0.125}, -- NodeBox3
} }
}, },
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
light_source=2, light_source=2,
}) })
@ -550,7 +550,7 @@ minetest.register_node("moreplants:curly", {
inventory_image = "moreplants_curly.png", inventory_image = "moreplants_curly.png",
visual_scale = 1.1, visual_scale = 1.1,
wield_scale = {x=0.5, y=0.5, z=0.5}, wield_scale = {x=0.5, y=0.5, z=0.5},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
drop = "moreplants:curlyfruit", drop = "moreplants:curlyfruit",
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -570,7 +570,7 @@ minetest.register_node("moreplants:clover", {
"moreplants_clover.png", "moreplants_clover.png",
"moreplants_clover.png" "moreplants_clover.png"
}, },
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
is_ground_content=true, is_ground_content=true,
buildable_to = true, buildable_to = true,
sunlight_propagates = true, sunlight_propagates = true,
@ -595,7 +595,7 @@ minetest.register_node("moreplants:groundfung", {
"moreplants_groundfung.png", "moreplants_groundfung.png",
"moreplants_groundfung.png" "moreplants_groundfung.png"
}, },
groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, groups = {snappy=3, flammable=1, attached_node=1, flora=1},
is_ground_content=true, is_ground_content=true,
buildable_to = true, buildable_to = true,
walkable = false, walkable = false,
@ -636,7 +636,6 @@ minetest.register_node("moreplants:palmleaves2", {
visual_scale = 2.5, visual_scale = 2.5,
tiles = {"moreplants_palmleaves2.png"}, tiles = {"moreplants_palmleaves2.png"},
inventory_image = "moreplants_palmleaves2.png", inventory_image = "moreplants_palmleaves2.png",
use_texture_alpha = true,
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
sunlight_propagates = false, sunlight_propagates = false,
@ -656,7 +655,6 @@ minetest.register_node("moreplants:palmleaves1", {
visual_scale = 4.0, visual_scale = 4.0,
tiles = {"moreplants_palmleaves.png"}, tiles = {"moreplants_palmleaves.png"},
inventory_image = "moreplants_palmleaves.png", inventory_image = "moreplants_palmleaves.png",
use_texture_alpha = true,
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
sunlight_propagates = false, sunlight_propagates = false,
@ -729,7 +727,7 @@ minetest.register_decoration({
place_on = "default:dirt_with_grass", place_on = "default:dirt_with_grass",
sidelen = 16, sidelen = 16,
fill_ratio = 0.001, fill_ratio = 0.001,
biomes = {"stone_grassland", "sandstone_grassland"}, biomes = {"grassland"},
decoration = "moreplants:blueflower", decoration = "moreplants:blueflower",
height = 1, height = 1,
}) })
@ -949,7 +947,8 @@ minetest.register_decoration({
-- }) -- })
end end
if minetest.get_mapgen_params().mgname ~= "v6" or minetest.get_mapgen_params().mgname ~= "singlenode" then local mgname = minetest.get_mapgen_setting("mg_name")
if mgname ~= "v6" and mgname ~= "singlenode" then
moreplants.mapgen() moreplants.mapgen()
end end

4
mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = moreplants
title = More Plants
description = A simple mod that adds a few new plants.
depends = default