add potato seeds
parent
fdbe4c9040
commit
0be999c95f
10
potato.lua
10
potato.lua
|
@ -4,6 +4,14 @@
|
|||
https://forum.minetest.net/viewtopic.php?id=3948
|
||||
]]
|
||||
|
||||
minetest.register_craftitem("farming:potato_seed", {
|
||||
description = ("Potato Seeds"),
|
||||
inventory_image = "farming_potato_seed.png",
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:potato_1")
|
||||
end
|
||||
})
|
||||
|
||||
-- potato
|
||||
minetest.register_craftitem("farming:potato", {
|
||||
description = "Potato",
|
||||
|
@ -58,6 +66,7 @@ crop_def.tiles = {"farming_potato_3.png"}
|
|||
crop_def.drop = {
|
||||
items = {
|
||||
{items = {'farming:potato'}, rarity = 1},
|
||||
{items = {'farming:potato_seed'}, rarity = 1},
|
||||
{items = {'farming:potato'}, rarity = 3},
|
||||
}
|
||||
}
|
||||
|
@ -69,6 +78,7 @@ crop_def.groups.growing = 0
|
|||
crop_def.drop = {
|
||||
items = {
|
||||
{items = {'farming:potato 2'}, rarity = 1},
|
||||
{items = {'farming:potato_seed 2'}, rarity = 1},
|
||||
{items = {'farming:potato 3'}, rarity = 2},
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 221 B |
Loading…
Reference in New Issue