Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
ba3e5711d0 |
@ -1,7 +1,7 @@
|
|||||||
## moreflowers
|
# moreflowers
|
||||||
>by sys4
|
by sys4
|
||||||
|
|
||||||
A Minetest mod that add more flowers.
|
A Minetest mod that add more flowers
|
||||||
|
|
||||||
This simple mod extend the flowers mod from MT_Game by adding more flowers.
|
This simple mod extend the flowers mod from MT_Game by adding more flowers.
|
||||||
|
|
||||||
|
4
depends.txt
Normal file
4
depends.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
flowers
|
||||||
|
farming?
|
||||||
|
vessels?
|
||||||
|
bonemeal?
|
41
init.lua
41
init.lua
@ -9,8 +9,7 @@ local function add_simple_flower(name, desc, box, f_groups)
|
|||||||
f_groups.flora = 1
|
f_groups.flora = 1
|
||||||
f_groups.attached_node = 1
|
f_groups.attached_node = 1
|
||||||
|
|
||||||
minetest.register_node(
|
minetest.register_node("moreflowers:" .. name, {
|
||||||
"moreflowers:" .. name, {
|
|
||||||
description = desc,
|
description = desc,
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
waving = 1,
|
waving = 1,
|
||||||
@ -37,8 +36,7 @@ local function add_tall_flower(name, desc, box, f_groups)
|
|||||||
f_groups.flora = 1
|
f_groups.flora = 1
|
||||||
f_groups.attached_node = 1
|
f_groups.attached_node = 1
|
||||||
|
|
||||||
minetest.register_node(
|
minetest.register_node("moreflowers:" .. name, {
|
||||||
"moreflowers:" .. name, {
|
|
||||||
description = desc,
|
description = desc,
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
waving = 1,
|
waving = 1,
|
||||||
@ -66,7 +64,13 @@ moreflowers.datas_simple = {
|
|||||||
"wild_carrot",
|
"wild_carrot",
|
||||||
"Wild Carrot",
|
"Wild Carrot",
|
||||||
{-2 / 16, -0.5, -2 / 16, 2 / 16, 5 / 16, 2 / 16},
|
{-2 / 16, -0.5, -2 / 16, 2 / 16, 5 / 16, 2 / 16},
|
||||||
{flammable = 1}
|
{flammable = 1},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"solanaceae",
|
||||||
|
"Solanaceae",
|
||||||
|
{-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
|
||||||
|
{flammable = 1},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
moreflowers.datas_tall = {
|
moreflowers.datas_tall = {
|
||||||
@ -91,14 +95,12 @@ end
|
|||||||
-- Bunch of flowers
|
-- Bunch of flowers
|
||||||
if minetest.get_modpath("farming") then
|
if minetest.get_modpath("farming") then
|
||||||
|
|
||||||
minetest.register_craftitem(
|
minetest.register_craftitem("moreflowers:bunch", {
|
||||||
"moreflowers:bunch", {
|
|
||||||
description = "Bunch of flowers",
|
description = "Bunch of flowers",
|
||||||
inventory_image = "moreflowers_bunch.png",
|
inventory_image = "moreflowers_bunch.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft(
|
minetest.register_craft({
|
||||||
{
|
|
||||||
output = "moreflowers:bunch",
|
output = "moreflowers:bunch",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"group:flower", "group:flower", "group:flower"},
|
{"group:flower", "group:flower", "group:flower"},
|
||||||
@ -110,8 +112,7 @@ if minetest.get_modpath("farming") then
|
|||||||
if minetest.get_modpath("vessels") then
|
if minetest.get_modpath("vessels") then
|
||||||
|
|
||||||
-- Bunch in a vase
|
-- Bunch in a vase
|
||||||
minetest.register_node(
|
minetest.register_node("moreflowers:bunch_vase", {
|
||||||
"moreflowers:bunch_vase", {
|
|
||||||
description = "Bunch in a vase",
|
description = "Bunch in a vase",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"moreflowers_bunch_vase.png"},
|
tiles = {"moreflowers_bunch_vase.png"},
|
||||||
@ -128,8 +129,7 @@ if minetest.get_modpath("farming") then
|
|||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft(
|
minetest.register_craft({
|
||||||
{
|
|
||||||
output = "moreflowers:bunch_vase",
|
output = "moreflowers:bunch_vase",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"moreflowers:bunch", "group:vessel"},
|
recipe = {"moreflowers:bunch", "group:vessel"},
|
||||||
@ -150,15 +150,16 @@ if minetest.get_modpath("bonemeal") and bonemeal then
|
|||||||
local flowers = {
|
local flowers = {
|
||||||
"flowers:dandelion_white", "flowers:dandelion_yellow", "flowers:geranium",
|
"flowers:dandelion_white", "flowers:dandelion_yellow", "flowers:geranium",
|
||||||
"flowers:rose", "flowers:tulip", "flowers:viola", "moreflowers:wild_carrot",
|
"flowers:rose", "flowers:tulip", "flowers:viola", "moreflowers:wild_carrot",
|
||||||
"moreflowers:teosinte",
|
"moreflowers:teosinte", "moreflowers:solanaceae"
|
||||||
}
|
}
|
||||||
|
|
||||||
if minetest.get_modpath("bakedclay") then
|
if minetest.get_modpath("bakedclay") then
|
||||||
flowers[9] = "bakedclay:delphinium"
|
local index = #flowers
|
||||||
flowers[10] = "bakedclay:thistle"
|
flowers[index+1] = "bakedclay:delphinium"
|
||||||
flowers[11] = "bakedclay:lazarus"
|
flowers[index+2] = "bakedclay:thistle"
|
||||||
flowers[12] = "bakedclay:mannagrass"
|
flowers[index+3] = "bakedclay:lazarus"
|
||||||
flowers[13] = ""
|
flowers[index+4] = "bakedclay:mannagrass"
|
||||||
|
flowers[index+5] = ""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -173,5 +174,3 @@ if minetest.get_modpath("bonemeal") and bonemeal then
|
|||||||
bonemeal:add_deco(dirt_with_grass_deco)
|
bonemeal:add_deco(dirt_with_grass_deco)
|
||||||
bonemeal:add_deco(dirt_with_dry_grass_deco)
|
bonemeal:add_deco(dirt_with_dry_grass_deco)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.log("action", "[moreflowers] loaded.")
|
|
||||||
|
42
mapgen.lua
42
mapgen.lua
@ -18,32 +18,12 @@ local function register_mgv6_flower(name)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[local function register_flower(seed, name, biomes_list)
|
|
||||||
minetest.register_decoration({
|
|
||||||
deco_type = "simple",
|
|
||||||
place_on = {"default:dirt_with_grass"},
|
|
||||||
sidelen = 16,
|
|
||||||
noise_params = {
|
|
||||||
offset = -0.015,
|
|
||||||
scale = 0.025,
|
|
||||||
spread = {x = 200, y = 200, z = 200},
|
|
||||||
seed = seed,
|
|
||||||
octaves = 3,
|
|
||||||
persist = 0.6
|
|
||||||
},
|
|
||||||
biomes = {"grassland", "deciduous_forest", "coniferous_forest"},
|
|
||||||
y_min = 1,
|
|
||||||
y_max = 31000,
|
|
||||||
decoration = "moreflowers:" .. name,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
--]]
|
|
||||||
function moreflowers.register_mgv6_decorations()
|
function moreflowers.register_mgv6_decorations()
|
||||||
register_mgv6_flower("wild_carrot")
|
register_mgv6_flower("wild_carrot")
|
||||||
|
register_mgv6_flower("solanaceae")
|
||||||
end
|
end
|
||||||
|
|
||||||
function moreflowers.register_decorations()
|
function moreflowers.register_decorations()
|
||||||
-- register_flower(368, "wild_carrot")
|
|
||||||
minetest.register_decoration(
|
minetest.register_decoration(
|
||||||
{
|
{
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
@ -57,7 +37,7 @@ function moreflowers.register_decorations()
|
|||||||
octaves = 3,
|
octaves = 3,
|
||||||
persist = 0.6
|
persist = 0.6
|
||||||
},
|
},
|
||||||
biomes = {"grassland", "deciduous_forest", "coniferous_forest"},
|
biomes = {"grassland", "deciduous_forest"},
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
y_max = 31000,
|
y_max = 31000,
|
||||||
decoration = "moreflowers:wild_carrot",
|
decoration = "moreflowers:wild_carrot",
|
||||||
@ -74,6 +54,24 @@ function moreflowers.register_decorations()
|
|||||||
height = 1,
|
height = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_decoration(
|
||||||
|
{
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"default:dirt_with_grass"},
|
||||||
|
sidelen = 16,
|
||||||
|
noise_params = {
|
||||||
|
offset = -0.015,
|
||||||
|
scale = 0.025,
|
||||||
|
spread = {x = 200, y = 200, z = 200},
|
||||||
|
seed = 369,
|
||||||
|
octaves = 3,
|
||||||
|
persist = 0.6
|
||||||
|
},
|
||||||
|
biomes = {"grassland", "deciduous_forest"},
|
||||||
|
y_min = 64,
|
||||||
|
y_max = 31000,
|
||||||
|
decoration = "moreflowers:solanaceae",
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- detect mapgen
|
-- detect mapgen
|
||||||
|
5
mod.conf
5
mod.conf
@ -1,5 +0,0 @@
|
|||||||
name = moreflowers
|
|
||||||
title = More Flowers
|
|
||||||
description = This simple mod extend the flowers mod from MT_Game by adding more flowers.
|
|
||||||
depends = flowers
|
|
||||||
optional_depends = farming,vessels,bonemeal
|
|
BIN
textures/moreflowers_solanaceae.png
Normal file
BIN
textures/moreflowers_solanaceae.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 258 B |
Reference in New Issue
Block a user