flowers plus
2
mods/flowers_plus/depends.txt
Normal file
@ -0,0 +1,2 @@
|
||||
default
|
||||
flowers
|
79
mods/flowers_plus/init.lua
Normal file
@ -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,
|
||||
})
|
24
mods/flowers_plus/license.txt
Normal file
@ -0,0 +1,24 @@
|
||||
|
||||
License for Code
|
||||
----------------
|
||||
|
||||
Copyright (C) 2017 D00Med <heiselong@gmx.com>
|
||||
|
||||
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
|
BIN
mods/flowers_plus/textures/flowers_foxglove_pink.png
Normal file
After Width: | Height: | Size: 481 B |
BIN
mods/flowers_plus/textures/flowers_foxglove_purple.png
Normal file
After Width: | Height: | Size: 485 B |
BIN
mods/flowers_plus/textures/flowers_lobelia.png
Normal file
After Width: | Height: | Size: 388 B |
BIN
mods/flowers_plus/textures/flowers_pansy_blue.png
Normal file
After Width: | Height: | Size: 374 B |
BIN
mods/flowers_plus/textures/flowers_pansy_purple.png
Normal file
After Width: | Height: | Size: 343 B |
BIN
mods/flowers_plus/textures/flowers_petunia_blue.png
Normal file
After Width: | Height: | Size: 360 B |
BIN
mods/flowers_plus/textures/flowers_petunia_pink.png
Normal file
After Width: | Height: | Size: 356 B |
BIN
mods/flowers_plus/textures/flowers_petunia_white.png
Normal file
After Width: | Height: | Size: 351 B |