diff --git a/crops/cocoa.lua b/crops/cocoa.lua index 1fc7875..b424639 100644 --- a/crops/cocoa.lua +++ b/crops/cocoa.lua @@ -135,11 +135,6 @@ local def = { tiles = {"farming_cocoa_1.png"}, paramtype = "light", walkable = false, - drop = { - items = { - {items = {"farming:cocoa_beans 1"}, rarity = 2}, - } - }, selection_box = { type = "fixed", fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3} 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 0000000..6a534b9 Binary files /dev/null and b/textures/farming_popcorn.png differ