Add bonemeal support

This commit is contained in:
sys4-fr 2017-02-28 22:54:25 +01:00
parent 394cc56e22
commit df0fc50a25
14 changed files with 27 additions and 12 deletions

View File

@ -8,9 +8,12 @@ This mod add more things to do farming, make it more realistic, more harder and
Dependencies:
- moreflowers, by me (https://github.com/sys4-fr/moreflowers)
- farming
- farming_redo, by TenPlus1 (optional)
- farming_plus, by PilzAdam (optional)
- maidroid_core, by tacigar (optional)
Optional dependencies:
- farming_redo by TenPlus1 (https://forum.minetest.net/viewtopic.php?f=11&t=9019)
- farming_plus by PilzAdam (https://forum.minetest.net/viewtopic.php?f=11&t=2787&hilit=PilzAdam+farming)
- maidroid_core by tacigar (https://forum.minetest.net/viewtopic.php?f=11&t=14808&hilit=maidroid+tacigar)
- bonemeal by TenPlus1 (https://forum.minetest.net/viewtopic.php?f=9&t=16446)
Why another farming mod ?
- 1- I want to have a more realistic farming mod because when you spawn into a blank world, i think it's a non-sense if you found "domestic" vegetables wich already populate the world IMHO.

View File

@ -2,3 +2,4 @@ moreflowers
farming
farming_plus?
maidroid_core?
bonemeal?

View File

@ -11,14 +11,14 @@ minetest.override_item("moreflowers:wild_carrot", {
drop = {
max_items = 1,
items = {
{ items = {"morefarming:seed_wild_carrot"}, rarity = 12},
{ items = {"morefarming:seed_wildcarrot"}, rarity = 12},
{ items = {"moreflowers:wild_carrot"}},
}
}})
farming.register_plant("morefarming:wild_carrot", {
farming.register_plant("morefarming:wildcarrot", {
description = "Wild Carrot seed",
inventory_image = "morefarming_wild_carrot_seed.png",
inventory_image = "morefarming_wildcarrot_seed.png",
steps = 8,
minlight = 13,
maxlight = default.LIGHT_MAX,
@ -30,18 +30,18 @@ local carrot_seed = "morefarming:seed_carrot"
if redo then carrot_seed = "farming:carrot" end
if plus then carrot_seed = "farming_plus:carrot_seed" end
minetest.override_item("morefarming:wild_carrot_8", {
minetest.override_item("morefarming:wildcarrot_8", {
drop = {
max_items = 3,
items = {
{ items = {"morefarming:seed_wild_carrot"}, rarity = 6},
{ items = {"morefarming:seed_wildcarrot"}, rarity = 6},
{ items = {carrot_seed}, rarity = 8},
{ items = {"morefarming:wild_carrot"}, rarity = 2},
{ items = {"morefarming:wildcarrot"}, rarity = 2},
{ items = {"moreflowers:wild_carrot"}},
}
}})
minetest.override_item("morefarming:wild_carrot", {
minetest.override_item("morefarming:wildcarrot", {
on_use = minetest.item_eat(1)
})
@ -93,8 +93,19 @@ elseif plus then
}
})
end
-- Maidroid behaviour
if not redo and not plus and minetest.get_modpath("maidroid_core") then
minetest.registered_items["moreflowers:wild_carrot"].groups["seed"] = 1
dofile(minetest.get_modpath("morefarming").."/maidroid_core_morefarming.lua")
end
-- bonemeal behaviour
if minetest.get_modpath("bonemeal") and bonemeal then
bonemeal:add_crop({{"morefarming:wildcarrot_", 8, "morefarming:seed_wildcarrot"}})
if not redo and not plus then
bonemeal:add_crop({{"morefarming:carrot_", 8, "morefarming:seed_carrot"}})
end
end

View File

@ -17,7 +17,7 @@ local target_plants = {
"farming:wheat_8",
"farming:cotton_8",
"moreflowers:wild_carrot",
"morefarming:wild_carrot_8",
"morefarming:wildcarrot_8",
"morefarming:carrot_8",
}

View File

Before

Width:  |  Height:  |  Size: 179 B

After

Width:  |  Height:  |  Size: 179 B

View File

Before

Width:  |  Height:  |  Size: 128 B

After

Width:  |  Height:  |  Size: 128 B

View File

Before

Width:  |  Height:  |  Size: 135 B

After

Width:  |  Height:  |  Size: 135 B

View File

Before

Width:  |  Height:  |  Size: 141 B

After

Width:  |  Height:  |  Size: 141 B

View File

Before

Width:  |  Height:  |  Size: 150 B

After

Width:  |  Height:  |  Size: 150 B

View File

Before

Width:  |  Height:  |  Size: 163 B

After

Width:  |  Height:  |  Size: 163 B

View File

Before

Width:  |  Height:  |  Size: 174 B

After

Width:  |  Height:  |  Size: 174 B

View File

Before

Width:  |  Height:  |  Size: 188 B

After

Width:  |  Height:  |  Size: 188 B

View File

Before

Width:  |  Height:  |  Size: 201 B

After

Width:  |  Height:  |  Size: 201 B

View File

Before

Width:  |  Height:  |  Size: 152 B

After

Width:  |  Height:  |  Size: 152 B