diff --git a/mods/flowers_plus/depends.txt b/mods/flowers_plus/depends.txt new file mode 100644 index 0000000..df07aca --- /dev/null +++ b/mods/flowers_plus/depends.txt @@ -0,0 +1,2 @@ +default +flowers \ No newline at end of file diff --git a/mods/flowers_plus/init.lua b/mods/flowers_plus/init.lua new file mode 100644 index 0000000..9a85f57 --- /dev/null +++ b/mods/flowers_plus/init.lua @@ -0,0 +1,79 @@ +--functions from flowers mod: +--Originally by Ironzorg (MIT) and VanessaE (MIT) +--Various Minetest developers and contributors (MIT) + +local function add_simple_flower(name, desc, box, f_groups) + -- Common flowers' groups + f_groups.snappy = 3 + f_groups.flower = 1 + f_groups.flora = 1 + f_groups.attached_node = 1 + + minetest.register_node("flowers_plus:" .. name, { + description = desc, + drawtype = "plantlike", + waving = 1, + tiles = {"flowers_" .. name .. ".png"}, + inventory_image = "flowers_" .. name .. ".png", + wield_image = "flowers_" .. name .. ".png", + sunlight_propagates = true, + paramtype = "light", + walkable = false, + buildable_to = true, + stack_max = 99, + groups = f_groups, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = box + } + }) +end + +add_simple_flower("pansy_purple", "Purple Pansy", {-5 / 16, -0.5, -5 / 16, 5 / 16, -1 / 16, 5 / 16}, {color_violet=1, flammable=1}) +add_simple_flower("pansy_blue", "Blue Pansy", {-5 / 16, -0.5, -5 / 16, 5 / 16, -1 / 16, 5 / 16}, {color_blue=1, flammable=1}) +add_simple_flower("petunia_blue", "Blue Petunia", {-5 / 16, -0.5, -5 / 16, 5 / 16, -1 / 16, 5 / 16}, {color_blue=1, flammable=1}) +add_simple_flower("petunia_pink", "Pink Petunia", {-5 / 16, -0.5, -5 / 16, 5 / 16, -1 / 16, 5 / 16}, {color_pink=1, flammable=1}) +add_simple_flower("petunia_white", "White Petunia", {-5 / 16, -0.5, -5 / 16, 5 / 16, -1 / 16, 5 / 16}, {color_white=1, flammable=1}) +add_simple_flower("lobelia", "Lobelia", {-5 / 16, -0.5, -5 / 16, 5 / 16, -1 / 16, 5 / 16}, {color_blue=1, flammable=1}) + + +minetest.register_node("flowers_plus:foxglove", { + description = "Pink Foxglove", + drawtype = "plantlike", + tiles = {"flowers_foxglove_pink.png"}, + paramtype = "light", + is_ground_content = false, + buildable_to = true, + sunlight_propagates = true, + inventory_image = "flowers_foxglove_pink.png", + visual_scale = 2, + wield_scale = {x=0.5, y=0.5, z=0.5}, + groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.25, -0.5, -0.25, 0.25, 0.5, 0.25} + }, + walkable = false, +}) + +minetest.register_node("flowers_plus:foxglove_purple", { + description = "Pink Purple", + drawtype = "plantlike", + tiles = {"flowers_foxglove_purple.png"}, + paramtype = "light", + is_ground_content = false, + buildable_to = true, + sunlight_propagates = true, + inventory_image = "flowers_foxglove_purple.png", + visual_scale = 2, + wield_scale = {x=0.5, y=0.5, z=0.5}, + groups = {snappy=3, flammable=1, attatched_node=1, flora=1}, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.25, -0.5, -0.25, 0.25, 0.5, 0.25} + }, + walkable = false, +}) \ No newline at end of file diff --git a/mods/flowers_plus/license.txt b/mods/flowers_plus/license.txt new file mode 100644 index 0000000..78cc847 --- /dev/null +++ b/mods/flowers_plus/license.txt @@ -0,0 +1,24 @@ + +License for Code +---------------- + +Copyright (C) 2017 D00Med + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +License for Textures, Models and Sounds +--------------------------------------- + +CC-BY-SA 3.0 UNPORTED. Created by D00Med diff --git a/mods/flowers_plus/textures/flowers_foxglove_pink.png b/mods/flowers_plus/textures/flowers_foxglove_pink.png new file mode 100644 index 0000000..64185ce Binary files /dev/null and b/mods/flowers_plus/textures/flowers_foxglove_pink.png differ diff --git a/mods/flowers_plus/textures/flowers_foxglove_purple.png b/mods/flowers_plus/textures/flowers_foxglove_purple.png new file mode 100644 index 0000000..ad3b331 Binary files /dev/null and b/mods/flowers_plus/textures/flowers_foxglove_purple.png differ diff --git a/mods/flowers_plus/textures/flowers_lobelia.png b/mods/flowers_plus/textures/flowers_lobelia.png new file mode 100644 index 0000000..4369830 Binary files /dev/null and b/mods/flowers_plus/textures/flowers_lobelia.png differ diff --git a/mods/flowers_plus/textures/flowers_pansy_blue.png b/mods/flowers_plus/textures/flowers_pansy_blue.png new file mode 100644 index 0000000..f90b859 Binary files /dev/null and b/mods/flowers_plus/textures/flowers_pansy_blue.png differ diff --git a/mods/flowers_plus/textures/flowers_pansy_purple.png b/mods/flowers_plus/textures/flowers_pansy_purple.png new file mode 100644 index 0000000..80528cf Binary files /dev/null and b/mods/flowers_plus/textures/flowers_pansy_purple.png differ diff --git a/mods/flowers_plus/textures/flowers_petunia_blue.png b/mods/flowers_plus/textures/flowers_petunia_blue.png new file mode 100644 index 0000000..342209d Binary files /dev/null and b/mods/flowers_plus/textures/flowers_petunia_blue.png differ diff --git a/mods/flowers_plus/textures/flowers_petunia_pink.png b/mods/flowers_plus/textures/flowers_petunia_pink.png new file mode 100644 index 0000000..562f41f Binary files /dev/null and b/mods/flowers_plus/textures/flowers_petunia_pink.png differ diff --git a/mods/flowers_plus/textures/flowers_petunia_white.png b/mods/flowers_plus/textures/flowers_petunia_white.png new file mode 100644 index 0000000..0cc0497 Binary files /dev/null and b/mods/flowers_plus/textures/flowers_petunia_white.png differ