From fdbe4c9040d0885d297e5d8fc0c14088a6874c48 Mon Sep 17 00:00:00 2001 From: tchncs Date: Sat, 21 May 2016 23:10:26 +0200 Subject: [PATCH] add tomato seeds --- textures/farming_tomato_seed.png | Bin 0 -> 221 bytes todo.md | 2 +- tomato.lua | 10 ++++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 textures/farming_tomato_seed.png diff --git a/textures/farming_tomato_seed.png b/textures/farming_tomato_seed.png new file mode 100644 index 0000000000000000000000000000000000000000..dbef76e7984dbf972498ce7fc0c9917a85c0378d GIT binary patch literal 221 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85s1GL71^(seKtxkiEpy*OmPahde(Y53hGj3Q#E4)5S5w;&gI? zM8*M*r=e|Nr#m|NU1oRGu7C6zVnU^<&`3Fyv=l*YN^q5re0zpUXO@ GgeCyv?@1N_ literal 0 HcmV?d00001 diff --git a/todo.md b/todo.md index 70bbe09..5d5bb7b 100644 --- a/todo.md +++ b/todo.md @@ -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 diff --git a/tomato.lua b/tomato.lua index 9cff4a7..4ff6b64 100644 --- a/tomato.lua +++ b/tomato.lua @@ -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}, } }