Add bonemeal support

This commit is contained in:
sys4-fr 2017-02-28 22:53:00 +01:00
parent 5fd5381ac9
commit fbd63f0637
3 changed files with 32 additions and 6 deletions

View File

@ -8,20 +8,19 @@ This simple mod extend the flowers mod from MT_Game by adding more flowers.
Dependence:
- flowers
Optional Dependecies:
Optional Dependencies:
- farming
- vessels
- bonemeal by TenPlus1 (https://forum.minetest.net/viewtopic.php?f=9&t=16446)
For now this mod add:
- Wild carrot:
Flowers spawn into biomes grassland, deciduous_forest and coniferous_forest.
- Wild carrot: spawn into biomes grassland, deciduous_forest and coniferous_forest.
- Bunch of flowers:
If farming mod is loaded then you can craft a bunch of flowers with any items from the flower group and a string of cotton.
- Bunch into a vase:
If farming and vessels mods are loaded then you can craft a bunch into a vase and place it where you want.
If farming and vessels mods are loaded then you can craft a bunch into a vase which you can place anywhere.
LICENCES:
- Code: GPLv3
- Textures: WTFPL v2
- Code & Textures: GPLv3

View File

@ -1,3 +1,4 @@
flowers
farming?
vessels?
bonemeal?

View File

@ -90,3 +90,29 @@ if minetest.get_modpath("farming") then
end
end
-- Bonemeal flowers registration for adding dirt decoration
if minetest.get_modpath("bonemeal") and bonemeal then
local green_grass = {
"default:grass_2", "default:grass_3", "default:grass_4",
"default:grass_5", "", ""
}
local dry_grass = {
"default:dry_grass_2", "default:dry_grass_3", "default:dry_grass_4",
"default:dry_grass_5", "", ""
}
local flowers = {
"flowers:dandelion_white", "flowers:dandelion_yellow", "flowers:geranium",
"flowers:rose", "flowers:tulip", "flowers:viola", "moreflowers:wild_carrot"
}
local dirt_with_grass_deco = {
{"default:dirt_with_grass", green_grass, flowers}
}
local dirt_with_dry_grass_deco = {
{"default:dirt_with_dry_grass", dry_grass, flowers}
}
bonemeal:add_deco(dirt_with_grass_deco)
bonemeal:add_deco(dirt_with_dry_grass_deco)
end