Add bonemeal support
@ -8,9 +8,12 @@ This mod add more things to do farming, make it more realistic, more harder and
|
|||||||
Dependencies:
|
Dependencies:
|
||||||
- moreflowers, by me (https://github.com/sys4-fr/moreflowers)
|
- moreflowers, by me (https://github.com/sys4-fr/moreflowers)
|
||||||
- farming
|
- farming
|
||||||
- farming_redo, by TenPlus1 (optional)
|
|
||||||
- farming_plus, by PilzAdam (optional)
|
Optional dependencies:
|
||||||
- maidroid_core, by tacigar (optional)
|
- 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 ?
|
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.
|
- 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.
|
||||||
|
@ -2,3 +2,4 @@ moreflowers
|
|||||||
farming
|
farming
|
||||||
farming_plus?
|
farming_plus?
|
||||||
maidroid_core?
|
maidroid_core?
|
||||||
|
bonemeal?
|
||||||
|
25
init.lua
@ -11,14 +11,14 @@ minetest.override_item("moreflowers:wild_carrot", {
|
|||||||
drop = {
|
drop = {
|
||||||
max_items = 1,
|
max_items = 1,
|
||||||
items = {
|
items = {
|
||||||
{ items = {"morefarming:seed_wild_carrot"}, rarity = 12},
|
{ items = {"morefarming:seed_wildcarrot"}, rarity = 12},
|
||||||
{ items = {"moreflowers:wild_carrot"}},
|
{ items = {"moreflowers:wild_carrot"}},
|
||||||
}
|
}
|
||||||
}})
|
}})
|
||||||
|
|
||||||
farming.register_plant("morefarming:wild_carrot", {
|
farming.register_plant("morefarming:wildcarrot", {
|
||||||
description = "Wild Carrot seed",
|
description = "Wild Carrot seed",
|
||||||
inventory_image = "morefarming_wild_carrot_seed.png",
|
inventory_image = "morefarming_wildcarrot_seed.png",
|
||||||
steps = 8,
|
steps = 8,
|
||||||
minlight = 13,
|
minlight = 13,
|
||||||
maxlight = default.LIGHT_MAX,
|
maxlight = default.LIGHT_MAX,
|
||||||
@ -30,18 +30,18 @@ local carrot_seed = "morefarming:seed_carrot"
|
|||||||
if redo then carrot_seed = "farming:carrot" end
|
if redo then carrot_seed = "farming:carrot" end
|
||||||
if plus then carrot_seed = "farming_plus:carrot_seed" 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 = {
|
drop = {
|
||||||
max_items = 3,
|
max_items = 3,
|
||||||
items = {
|
items = {
|
||||||
{ items = {"morefarming:seed_wild_carrot"}, rarity = 6},
|
{ items = {"morefarming:seed_wildcarrot"}, rarity = 6},
|
||||||
{ items = {carrot_seed}, rarity = 8},
|
{ items = {carrot_seed}, rarity = 8},
|
||||||
{ items = {"morefarming:wild_carrot"}, rarity = 2},
|
{ items = {"morefarming:wildcarrot"}, rarity = 2},
|
||||||
{ items = {"moreflowers:wild_carrot"}},
|
{ items = {"moreflowers:wild_carrot"}},
|
||||||
}
|
}
|
||||||
}})
|
}})
|
||||||
|
|
||||||
minetest.override_item("morefarming:wild_carrot", {
|
minetest.override_item("morefarming:wildcarrot", {
|
||||||
on_use = minetest.item_eat(1)
|
on_use = minetest.item_eat(1)
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -94,7 +94,18 @@ elseif plus then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Maidroid behaviour
|
||||||
if not redo and not plus and minetest.get_modpath("maidroid_core") then
|
if not redo and not plus and minetest.get_modpath("maidroid_core") then
|
||||||
minetest.registered_items["moreflowers:wild_carrot"].groups["seed"] = 1
|
minetest.registered_items["moreflowers:wild_carrot"].groups["seed"] = 1
|
||||||
dofile(minetest.get_modpath("morefarming").."/maidroid_core_morefarming.lua")
|
dofile(minetest.get_modpath("morefarming").."/maidroid_core_morefarming.lua")
|
||||||
end
|
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
|
||||||
|
@ -17,7 +17,7 @@ local target_plants = {
|
|||||||
"farming:wheat_8",
|
"farming:wheat_8",
|
||||||
"farming:cotton_8",
|
"farming:cotton_8",
|
||||||
"moreflowers:wild_carrot",
|
"moreflowers:wild_carrot",
|
||||||
"morefarming:wild_carrot_8",
|
"morefarming:wildcarrot_8",
|
||||||
"morefarming:carrot_8",
|
"morefarming:carrot_8",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 179 B After Width: | Height: | Size: 179 B |
Before Width: | Height: | Size: 128 B After Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 135 B After Width: | Height: | Size: 135 B |
Before Width: | Height: | Size: 141 B After Width: | Height: | Size: 141 B |
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 174 B After Width: | Height: | Size: 174 B |
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 188 B |
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 201 B |
Before Width: | Height: | Size: 152 B After Width: | Height: | Size: 152 B |