(Re-)add nodes from MTG (#536)
Adds fire, flowers, vessels, walls, and xpanes
30
mods/mtg/flowers/README.txt
Normal file
|
@ -0,0 +1,30 @@
|
|||
Minetest Game mod: flowers
|
||||
==========================
|
||||
See license.txt for license information.
|
||||
|
||||
Authors of source code
|
||||
----------------------
|
||||
Originally by Ironzorg (MIT) and VanessaE (MIT)
|
||||
Various Minetest developers and contributors (MIT)
|
||||
|
||||
Authors of media (textures)
|
||||
---------------------------
|
||||
RHRhino (CC BY-SA 3.0):
|
||||
flowers_dandelion_white.png
|
||||
flowers_geranium.png
|
||||
flowers_rose.png
|
||||
flowers_tulip.png
|
||||
flowers_viola.png
|
||||
|
||||
Gambit (CC BY-SA 3.0):
|
||||
flowers_mushroom_brown.png
|
||||
flowers_mushroom_red.png
|
||||
flowers_waterlily.png
|
||||
|
||||
yyt16384 (CC BY-SA 3.0):
|
||||
flowers_waterlily_bottom.png -- Derived from Gambit's texture
|
||||
|
||||
paramat (CC BY-SA 3.0):
|
||||
flowers_dandelion_yellow.png -- Derived from RHRhino's texture
|
||||
flowers_tulip_black.png -- Derived from RHRhino's texture
|
||||
flowers_chrysanthemum_green.png
|
213
mods/mtg/flowers/init.lua
Normal file
|
@ -0,0 +1,213 @@
|
|||
-- flowers/init.lua
|
||||
|
||||
-- Minetest 0.4 mod: default
|
||||
-- See README.txt for licensing and other information.
|
||||
|
||||
|
||||
-- Namespace for functions
|
||||
|
||||
flowers = {}
|
||||
|
||||
-- Load support for MT game translation.
|
||||
local S = minetest.get_translator("flowers")
|
||||
|
||||
|
||||
--
|
||||
-- Flowers
|
||||
--
|
||||
|
||||
-- Aliases for original flowers mod
|
||||
|
||||
minetest.register_alias("flowers:flower_rose", "flowers:rose")
|
||||
minetest.register_alias("flowers:flower_tulip", "flowers:tulip")
|
||||
minetest.register_alias("flowers:flower_dandelion_yellow", "flowers:dandelion_yellow")
|
||||
minetest.register_alias("flowers:flower_geranium", "flowers:geranium")
|
||||
minetest.register_alias("flowers:flower_viola", "flowers:viola")
|
||||
minetest.register_alias("flowers:flower_dandelion_white", "flowers:dandelion_white")
|
||||
|
||||
|
||||
-- Flower registration
|
||||
|
||||
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:" .. 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,
|
||||
groups = f_groups,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = box
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
flowers.datas = {
|
||||
{
|
||||
"rose",
|
||||
S("Red Rose"),
|
||||
{-2 / 16, -0.5, -2 / 16, 2 / 16, 5 / 16, 2 / 16},
|
||||
{color_red = 1, flammable = 1}
|
||||
},
|
||||
{
|
||||
"tulip",
|
||||
S("Orange Tulip"),
|
||||
{-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
|
||||
{color_orange = 1, flammable = 1}
|
||||
},
|
||||
{
|
||||
"dandelion_yellow",
|
||||
S("Yellow Dandelion"),
|
||||
{-4 / 16, -0.5, -4 / 16, 4 / 16, -2 / 16, 4 / 16},
|
||||
{color_yellow = 1, flammable = 1}
|
||||
},
|
||||
{
|
||||
"chrysanthemum_green",
|
||||
S("Green Chrysanthemum"),
|
||||
{-4 / 16, -0.5, -4 / 16, 4 / 16, -1 / 16, 4 / 16},
|
||||
{color_green = 1, flammable = 1}
|
||||
},
|
||||
{
|
||||
"geranium",
|
||||
S("Blue Geranium"),
|
||||
{-2 / 16, -0.5, -2 / 16, 2 / 16, 2 / 16, 2 / 16},
|
||||
{color_blue = 1, flammable = 1}
|
||||
},
|
||||
{
|
||||
"viola",
|
||||
S("Viola"),
|
||||
{-5 / 16, -0.5, -5 / 16, 5 / 16, -1 / 16, 5 / 16},
|
||||
{color_violet = 1, flammable = 1}
|
||||
},
|
||||
{
|
||||
"dandelion_white",
|
||||
S("White Dandelion"),
|
||||
{-5 / 16, -0.5, -5 / 16, 5 / 16, -2 / 16, 5 / 16},
|
||||
{color_white = 1, flammable = 1}
|
||||
},
|
||||
{
|
||||
"tulip_black",
|
||||
S("Black Tulip"),
|
||||
{-2 / 16, -0.5, -2 / 16, 2 / 16, 3 / 16, 2 / 16},
|
||||
{color_black = 1, flammable = 1}
|
||||
},
|
||||
}
|
||||
|
||||
for _,item in pairs(flowers.datas) do
|
||||
add_simple_flower(unpack(item))
|
||||
end
|
||||
|
||||
|
||||
--
|
||||
-- Mushrooms
|
||||
--
|
||||
|
||||
minetest.register_node("flowers:mushroom_red", {
|
||||
description = S("Red Mushroom"),
|
||||
tiles = {"flowers_mushroom_red.png"},
|
||||
inventory_image = "flowers_mushroom_red.png",
|
||||
wield_image = "flowers_mushroom_red.png",
|
||||
drawtype = "plantlike",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {mushroom = 1, snappy = 3, attached_node = 1, flammable = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
on_use = minetest.item_eat(-5),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, -1 / 16, 4 / 16},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("flowers:mushroom_brown", {
|
||||
description = S("Brown Mushroom"),
|
||||
tiles = {"flowers_mushroom_brown.png"},
|
||||
inventory_image = "flowers_mushroom_brown.png",
|
||||
wield_image = "flowers_mushroom_brown.png",
|
||||
drawtype = "plantlike",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {mushroom = 1, food_mushroom = 1, snappy = 3, attached_node = 1, flammable = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
on_use = minetest.item_eat(1),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-3 / 16, -0.5, -3 / 16, 3 / 16, -2 / 16, 3 / 16},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
--
|
||||
-- Waterlily
|
||||
--
|
||||
|
||||
local waterlily_def = {
|
||||
description = S("Waterlily"),
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {"flowers_waterlily.png", "flowers_waterlily_bottom.png"},
|
||||
inventory_image = "flowers_waterlily.png",
|
||||
wield_image = "flowers_waterlily.png",
|
||||
liquids_pointable = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
floodable = true,
|
||||
groups = {snappy = 3, flower = 1, flammable = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
node_placement_prediction = "",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -31 / 64, -0.5, 0.5, -15 / 32, 0.5}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-7 / 16, -0.5, -7 / 16, 7 / 16, -15 / 32, 7 / 16}
|
||||
},
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
local pos = pointed_thing.above
|
||||
local node = minetest.get_node(pointed_thing.under)
|
||||
local def = minetest.registered_nodes[node.name]
|
||||
|
||||
if def and def.on_rightclick then
|
||||
return def.on_rightclick(pointed_thing.under, node, placer, itemstack,
|
||||
pointed_thing)
|
||||
end
|
||||
|
||||
if def and def.liquidtype == "source" and
|
||||
minetest.get_item_group(node.name, "water") > 0 then
|
||||
minetest.set_node(pos, {name = "flowers:waterlily" ..
|
||||
(def.waving == 3 and "_waving" or ""),
|
||||
param2 = math.random(0, 3)})
|
||||
itemstack:take_item()
|
||||
end
|
||||
|
||||
return itemstack
|
||||
end
|
||||
}
|
||||
|
||||
local waterlily_waving_def = table.copy(waterlily_def)
|
||||
waterlily_waving_def.waving = 3
|
||||
waterlily_waving_def.drop = "flowers:waterlily"
|
||||
waterlily_waving_def.groups.not_in_creative_inventory = 1
|
||||
|
||||
minetest.register_node("flowers:waterlily", waterlily_def)
|
||||
minetest.register_node("flowers:waterlily_waving", waterlily_waving_def)
|
63
mods/mtg/flowers/license.txt
Normal file
|
@ -0,0 +1,63 @@
|
|||
License of source code
|
||||
----------------------
|
||||
|
||||
The MIT License (MIT)
|
||||
Copyright (C) 2012-2016 Ironzorg, VanessaE
|
||||
Copyright (C) 2012-2016 Various Minetest developers and contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
||||
software and associated documentation files (the "Software"), to deal in the Software
|
||||
without restriction, including without limitation the rights to use, copy, modify, merge,
|
||||
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||
persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or
|
||||
substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
||||
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
|
||||
For more details:
|
||||
https://opensource.org/licenses/MIT
|
||||
|
||||
|
||||
Licenses of media (textures)
|
||||
----------------------------
|
||||
|
||||
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
||||
Copyright (C) 2014-2016 RHRhino
|
||||
Copyright (C) 2015-2016 Gambit
|
||||
Copyright (C) 2016 yyt16384
|
||||
Copyright (C) 2017 paramat
|
||||
|
||||
You are free to:
|
||||
Share — copy and redistribute the material in any medium or format.
|
||||
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
|
||||
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
||||
|
||||
Under the following terms:
|
||||
|
||||
Attribution — You must give appropriate credit, provide a link to the license, and
|
||||
indicate if changes were made. You may do so in any reasonable manner, but not in any way
|
||||
that suggests the licensor endorses you or your use.
|
||||
|
||||
ShareAlike — If you remix, transform, or build upon the material, you must distribute
|
||||
your contributions under the same license as the original.
|
||||
|
||||
No additional restrictions — You may not apply legal terms or technological measures that
|
||||
legally restrict others from doing anything the license permits.
|
||||
|
||||
Notices:
|
||||
|
||||
You do not have to comply with the license for elements of the material in the public
|
||||
domain or where your use is permitted by an applicable exception or limitation.
|
||||
No warranties are given. The license may not give you all of the permissions necessary
|
||||
for your intended use. For example, other rights such as publicity, privacy, or moral
|
||||
rights may limit how you use the material.
|
||||
|
||||
For more details:
|
||||
http://creativecommons.org/licenses/by-sa/3.0/
|
12
mods/mtg/flowers/locale/flowers.de.tr
Normal file
|
@ -0,0 +1,12 @@
|
|||
# textdomain: flowers
|
||||
Red Rose=Rote Rose
|
||||
Orange Tulip=Orange Tulpe
|
||||
Yellow Dandelion=Gelber Löwenzahn
|
||||
Green Chrysanthemum=Grüne Chrysantheme
|
||||
Blue Geranium=Blaue Geranie
|
||||
Viola=Veilchen
|
||||
White Dandelion=Weißer Löwenzahn
|
||||
Black Tulip=Schwarze Tulpe
|
||||
Red Mushroom=Roter Pilz
|
||||
Brown Mushroom=Brauner Pilz
|
||||
Waterlily=Wasserlilie
|
12
mods/mtg/flowers/locale/flowers.es.tr
Normal file
|
@ -0,0 +1,12 @@
|
|||
# textdomain: flowers
|
||||
Red Rose=Rosa roja
|
||||
Orange Tulip=Tulipán naranja
|
||||
Yellow Dandelion=Diente de León amarillo
|
||||
Green Chrysanthemum=Crisantemo verde
|
||||
Blue Geranium=Geranio azul
|
||||
Viola=Violeta
|
||||
White Dandelion=Diente de León blanco
|
||||
Black Tulip=Tulipán negro
|
||||
Red Mushroom=Champiñón rojo
|
||||
Brown Mushroom=Champiñón café
|
||||
Waterlily=Nenúfar
|
12
mods/mtg/flowers/locale/flowers.fr.tr
Normal file
|
@ -0,0 +1,12 @@
|
|||
# textdomain: flowers
|
||||
Red Rose=Rose rouge
|
||||
Orange Tulip=Tulipe orange
|
||||
Yellow Dandelion=Pissenlit jaune
|
||||
Green Chrysanthemum=Chrysanthème vert
|
||||
Blue Geranium=Géranium bleu
|
||||
Viola=Violette
|
||||
White Dandelion=Pissenlit blanc
|
||||
Black Tulip=Tulipe noire
|
||||
Red Mushroom=Champignon rouge
|
||||
Brown Mushroom=Champignon brun
|
||||
Waterlily=Nénuphar
|
12
mods/mtg/flowers/locale/flowers.it.tr
Normal file
|
@ -0,0 +1,12 @@
|
|||
# textdomain: flowers
|
||||
Red Rose=Rosa rossa
|
||||
Orange Tulip=Tulipano arancione
|
||||
Yellow Dandelion=Dente di leone giallo
|
||||
Green Chrysanthemum=Crisantemo verde
|
||||
Blue Geranium=Geranio blu
|
||||
Viola=Viola
|
||||
White Dandelion=Dente di leone bianco
|
||||
Black Tulip=Tulipano nero
|
||||
Red Mushroom=Fungo rosso
|
||||
Brown Mushroom=Fungo marrone
|
||||
Waterlily=Ninfea
|
12
mods/mtg/flowers/locale/flowers.ms.tr
Normal file
|
@ -0,0 +1,12 @@
|
|||
# textdomain: flowers
|
||||
Red Rose=Ros Merah
|
||||
Orange Tulip=Tulip Jingga
|
||||
Yellow Dandelion=Dandelion Kuning
|
||||
Green Chrysanthemum=Kekwa Hijau
|
||||
Blue Geranium=Geranium Biru
|
||||
Viola=Violet
|
||||
White Dandelion=Dandelion Putih
|
||||
Black Tulip=Tulip Hitam
|
||||
Red Mushroom=Cendawan Merah
|
||||
Brown Mushroom=Cendawan Perang
|
||||
Waterlily=Teratai
|
12
mods/mtg/flowers/locale/flowers.ru.tr
Normal file
|
@ -0,0 +1,12 @@
|
|||
# textdomain: flowers
|
||||
Red Rose=Красная Роза
|
||||
Orange Tulip=Оранжевый Тюльпан
|
||||
Yellow Dandelion=Желтый Одуванчик
|
||||
Green Chrysanthemum=Зелёная Хризантема
|
||||
Blue Geranium=Синяя Герань
|
||||
Viola=Фиалка
|
||||
White Dandelion=Белый Одуванчик
|
||||
Black Tulip=Черный Тюльпан
|
||||
Red Mushroom=Мухомор
|
||||
Brown Mushroom=Коричневый Гриб
|
||||
Waterlily=Кувшинка
|
12
mods/mtg/flowers/locale/flowers.se.tr
Normal file
|
@ -0,0 +1,12 @@
|
|||
# textdomain: flowers
|
||||
Red Rose=Röd ros
|
||||
Orange Tulip=Orange Tulpan
|
||||
Yellow Dandelion=Gul Maskros
|
||||
Green Chrysanthemum=Grön Krysantemum
|
||||
Blue Geranium=Blå Geranium
|
||||
Viola=Violett Viola
|
||||
White Dandelion=Vit Maskros
|
||||
Black Tulip=Svart Tulpan
|
||||
Red Mushroom=Röd Svamp
|
||||
Brown Mushroom=Brun Svamp
|
||||
Waterlily=Näckros
|
12
mods/mtg/flowers/locale/template.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
# textdomain: flowers
|
||||
Red Rose=
|
||||
Orange Tulip=
|
||||
Yellow Dandelion=
|
||||
Green Chrysanthemum=
|
||||
Blue Geranium=
|
||||
Viola=
|
||||
White Dandelion=
|
||||
Black Tulip=
|
||||
Red Mushroom=
|
||||
Brown Mushroom=
|
||||
Waterlily=
|
3
mods/mtg/flowers/mod.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
name = flowers
|
||||
description = Minetest Game mod: flowers
|
||||
depends = default
|
BIN
mods/mtg/flowers/textures/flowers_chrysanthemum_green.png
Normal file
After Width: | Height: | Size: 236 B |
BIN
mods/mtg/flowers/textures/flowers_dandelion_white.png
Normal file
After Width: | Height: | Size: 142 B |
BIN
mods/mtg/flowers/textures/flowers_dandelion_yellow.png
Normal file
After Width: | Height: | Size: 138 B |
BIN
mods/mtg/flowers/textures/flowers_geranium.png
Normal file
After Width: | Height: | Size: 163 B |
BIN
mods/mtg/flowers/textures/flowers_mushroom_brown.png
Normal file
After Width: | Height: | Size: 155 B |
BIN
mods/mtg/flowers/textures/flowers_mushroom_red.png
Normal file
After Width: | Height: | Size: 167 B |
BIN
mods/mtg/flowers/textures/flowers_rose.png
Normal file
After Width: | Height: | Size: 136 B |
BIN
mods/mtg/flowers/textures/flowers_tulip.png
Normal file
After Width: | Height: | Size: 143 B |
BIN
mods/mtg/flowers/textures/flowers_tulip_black.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
mods/mtg/flowers/textures/flowers_viola.png
Normal file
After Width: | Height: | Size: 153 B |
BIN
mods/mtg/flowers/textures/flowers_waterlily.png
Normal file
After Width: | Height: | Size: 690 B |
BIN
mods/mtg/flowers/textures/flowers_waterlily_bottom.png
Normal file
After Width: | Height: | Size: 327 B |