Add bonemeal support
This commit is contained in:
parent
5fd5381ac9
commit
fbd63f0637
11
README.md
11
README.md
@ -8,20 +8,19 @@ This simple mod extend the flowers mod from MT_Game by adding more flowers.
|
|||||||
Dependence:
|
Dependence:
|
||||||
- flowers
|
- flowers
|
||||||
|
|
||||||
Optional Dependecies:
|
Optional Dependencies:
|
||||||
- farming
|
- farming
|
||||||
- vessels
|
- vessels
|
||||||
|
- bonemeal by TenPlus1 (https://forum.minetest.net/viewtopic.php?f=9&t=16446)
|
||||||
|
|
||||||
For now this mod add:
|
For now this mod add:
|
||||||
- Wild carrot:
|
- Wild carrot: spawn into biomes grassland, deciduous_forest and coniferous_forest.
|
||||||
Flowers spawn into biomes grassland, deciduous_forest and coniferous_forest.
|
|
||||||
|
|
||||||
- Bunch of flowers:
|
- 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.
|
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:
|
- 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:
|
LICENCES:
|
||||||
- Code: GPLv3
|
- Code & Textures: GPLv3
|
||||||
- Textures: WTFPL v2
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
flowers
|
flowers
|
||||||
farming?
|
farming?
|
||||||
vessels?
|
vessels?
|
||||||
|
bonemeal?
|
||||||
|
26
init.lua
26
init.lua
@ -90,3 +90,29 @@ if minetest.get_modpath("farming") then
|
|||||||
end
|
end
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user