forked from mtcontrib/farming
added custom groups to register_plant food craftitem
This commit is contained in:
parent
abc54e9d5a
commit
c4e88fc332
@ -146,5 +146,6 @@ minetest.register_node("farming:cotton_8", table.copy(crop_def))
|
|||||||
farming.register_plant("farming:cotton", {
|
farming.register_plant("farming:cotton", {
|
||||||
description = "Cotton seed",
|
description = "Cotton seed",
|
||||||
inventory_image = "farming_cotton_seed.png",
|
inventory_image = "farming_cotton_seed.png",
|
||||||
|
groups = {flammable = 2},
|
||||||
steps = 8,
|
steps = 8,
|
||||||
})]]
|
})]]
|
||||||
|
1
init.lua
1
init.lua
@ -513,6 +513,7 @@ farming.register_plant = function(name, def)
|
|||||||
minetest.register_craftitem(":" .. mname .. ":" .. pname, {
|
minetest.register_craftitem(":" .. mname .. ":" .. pname, {
|
||||||
description = pname:gsub("^%l", string.upper),
|
description = pname:gsub("^%l", string.upper),
|
||||||
inventory_image = mname .. "_" .. pname .. ".png",
|
inventory_image = mname .. "_" .. pname .. ".png",
|
||||||
|
groups = def.groups or {flammable = 2},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Register growing steps
|
-- Register growing steps
|
||||||
|
Loading…
Reference in New Issue
Block a user