use new utility function for registering soy items.
This commit is contained in:
parent
d78db87afa
commit
1d1065069c
|
@ -1,18 +1,11 @@
|
|||
local modname = minetest.get_current_modname()
|
||||
|
||||
minetest.register_craftitem(modname .. ":soy", {
|
||||
description = "Soy Beans",
|
||||
groups = {
|
||||
craftitem = 1,
|
||||
food = 1,
|
||||
eatable = 1,
|
||||
mcl_vegan.register_plant_items(modname, "soy", {
|
||||
seed = "soy",
|
||||
descriptions = {
|
||||
base = "Soy Bean",
|
||||
},
|
||||
_mcl_saturation = 0.0,
|
||||
inventory_image = modname .. "_soy.png",
|
||||
on_place = function (item_stack, placer, pointed_thing)
|
||||
return mcl_farming:place_seed(item_stack, placer, pointed_thing, modname .. ":soy_1")
|
||||
end,
|
||||
on_secondary_use = minetest.item_eat(1),
|
||||
food_strength = 1.0,
|
||||
})
|
||||
|
||||
minetest.register_craftitem(modname .. ":tofu_raw", {
|
||||
|
|
Loading…
Reference in New Issue