forked from mtcontrib/plantlife_modpack
If farming:seed_spelt exists, drop that instead of wheat
(for Realtest compatibility)
This commit is contained in:
parent
e110b09920
commit
273ad9d1da
@ -1,2 +1,2 @@
|
|||||||
plants_lib
|
plants_lib
|
||||||
|
farming?
|
||||||
|
@ -225,6 +225,11 @@ local box = {
|
|||||||
fixed = { { -0.2, -0.5, -0.2, 0.2, 0.5, 0.2 } },
|
fixed = { { -0.2, -0.5, -0.2, 0.2, 0.5, 0.2 } },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local sunflower_drop = "farming:seed_wheat"
|
||||||
|
if minetest.registered_items["farming:seed_spelt"] then
|
||||||
|
sunflower_drop = "farming:seed_spelt"
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_node(":flowers:sunflower", {
|
minetest.register_node(":flowers:sunflower", {
|
||||||
description = "Sunflower",
|
description = "Sunflower",
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
@ -240,15 +245,14 @@ minetest.register_node(":flowers:sunflower", {
|
|||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
selection_box = box,
|
selection_box = box,
|
||||||
collision_box = box,
|
collision_box = box,
|
||||||
})
|
drop = {
|
||||||
|
|
||||||
minetest.override_item("flowers:sunflower", {drop = {
|
|
||||||
max_items = 1,
|
max_items = 1,
|
||||||
items = {
|
items = {
|
||||||
{items = {"farming:seed_wheat"}, rarity = 8},
|
{items = {sunflower_drop}, rarity = 8},
|
||||||
{items = {"flowers:sunflower"}},
|
{items = {"flowers:sunflower"}},
|
||||||
}
|
}
|
||||||
}})
|
}
|
||||||
|
})
|
||||||
|
|
||||||
local extra_aliases = {
|
local extra_aliases = {
|
||||||
"waterlily",
|
"waterlily",
|
||||||
|
Loading…
Reference in New Issue
Block a user