add tomato seeds

master
tchncs 2016-05-21 23:10:26 +02:00
parent f0ee2ba73e
commit fdbe4c9040
3 changed files with 11 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

View File

@ -1,7 +1,7 @@
* [ ] orange trees from farming_plus
* [x] carrot_seed
* [ ] orange_seed
* [ ] tomato_seed
* [x] tomato_seed
* [ ] potatoe_seed
* [ ] rhubarb_seed
* [ ] strawberry_seed

View File

@ -4,6 +4,14 @@
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1288375-food-plus-mod-more-food-than-you-can-imagine-v2-9)
]]
minetest.register_craftitem("farming:tomato_seed", {
description = "Tomato Seeds",
inventory_image = "farming_tomato_seed.png",
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:tomato_1")
end
})
-- tomato
minetest.register_craftitem("farming:tomato", {
description = "Tomato",
@ -59,6 +67,7 @@ crop_def.tiles = {"farming_tomato_7.png"}
crop_def.drop = {
items = {
{items = {'farming:tomato'}, rarity = 1},
{items = {'farming:tomato_seed'}, rarity = 1},
{items = {'farming:tomato'}, rarity = 3},
}
}
@ -70,6 +79,7 @@ crop_def.groups.growing = 0
crop_def.drop = {
items = {
{items = {'farming:tomato 3'}, rarity = 1},
{items = {'farming:tomato_seed 4'}, rarity = 1},
{items = {'farming:tomato 3'}, rarity = 2},
}
}