From e6994235c5d6143f70ede5f3e1a892305d369763 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 26 Jun 2021 20:31:06 +0100 Subject: [PATCH] add popcorn --- crops/corn.lua | 19 +++++++++++++++++++ license.txt | 3 +++ textures/farming_popcorn.png | Bin 0 -> 292 bytes 3 files changed, 22 insertions(+) create mode 100644 textures/farming_popcorn.png diff --git a/crops/corn.lua b/crops/corn.lua index e03c8ba..fe89079 100644 --- a/crops/corn.lua +++ b/crops/corn.lua @@ -32,6 +32,25 @@ minetest.register_craft({ recipe = "group:food_corn" }) +-- popcorn +minetest.register_craftitem("farming:popcorn", { + description = S("Popcorn"), + inventory_image = "farming_popcorn.png", + groups = {food_popcorn = 1, flammable = 2}, + on_use = minetest.item_eat(4) +}) + +minetest.register_craft({ + output = "farming:popcorn", + recipe = { + {"group:food_pot", "group:food_oil", "group:food_corn"} + }, + replacements = { + {"group:food_pot", "farming:pot"}, + {"group:food_oil", "vessels:glass_bottle"} + } +}) + -- cornstarch minetest.register_craftitem("farming:cornstarch", { description = S("Cornstarch"), diff --git a/license.txt b/license.txt index c929fcc..d05b1bd 100644 --- a/license.txt +++ b/license.txt @@ -173,3 +173,6 @@ Created by gorlock (CC0) Created by sirrobzeroone (CC0) farming_gyoza.png farming_pineapple_ring.png + +Created by TechM8 (https://www.deviantart.com/techm8) + farming_popcorn.png diff --git a/textures/farming_popcorn.png b/textures/farming_popcorn.png new file mode 100644 index 0000000000000000000000000000000000000000..6a534b94436970d84305fb1227608e0988c653fe GIT binary patch literal 292 zcmeAS@N?(olHy`uVBq!ia0vp^q9Dw|3?!p1cPs@`asfUeu0T4Too5P<&^A7?+lRzo zUvvEMpz!Y9yYJt>|Ns9#?=0r`KoyK7L4Lsu4$p3+fjCLt?k)@+tg;?J&T>x|#}JO| zspky&4lD4m1}qN}Db2p3n9b_UH=$9EVNs8y!CS^lXEbC#_^?})F-~21|MX^^XtooP z3)!NtzFJh~y0%A4dGV6UvtFuYx6Z66+iA<-@mMYJ(YGxZT-Sb=E#zcS7gs)|%En!= zFX&a%?>m=1DeftL->G-f#7*yyi`i^p;d$cx^KQI|G+m#!$K$BR|H~I