From d25f3b51b6b14e9d31d49a58631573939f9e805f Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 28 Jan 2017 01:13:31 +0100 Subject: [PATCH] Add chorus fruit/popped chorus fruit --- mods/mcl_end/init.lua | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/mods/mcl_end/init.lua b/mods/mcl_end/init.lua index 9d0e1618..4efacba8 100644 --- a/mods/mcl_end/init.lua +++ b/mods/mcl_end/init.lua @@ -102,6 +102,24 @@ minetest.register_node("mcl_end:dragon_egg", { }) -- Craftitems +-- TODO: Add textures for chorus fruit and popped chorus fruit +minetest.register_craftitem("mcl_end:chorus_fruit", { + description = "Chorus Fruit", + wield_image = "mcl_end_chorus_fruit.png", + inventory_image = "mcl_end_chorus_fruit.png", + on_use = minetest.item_eat(4), + groups = { food = 2, eatable = 4 }, + stack_max = 64, +}) + +minetest.register_craftitem("mcl_end:chorus_fruit_popped", { + description = "Popped Chorus Fruit", + wield_image = "mcl_end_chorus_fruit_popped.png", + inventory_image = "mcl_end_chorus_fruit_popped.png", + groups = { craftitem = 1 }, + stack_max = 64, +}) + minetest.register_craftitem("mcl_end:ender_eye", { description = "Eye of Ender", wield_image = "mcl_end_ender_eye.png", @@ -119,6 +137,14 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "mcl_end:purpur_block 4", + recipe = { + {"mcl_end:chorus_fruit_popped", "mcl_end:chorus_fruit_popped",}, + {"mcl_end:chorus_fruit_popped", "mcl_end:chorus_fruit_popped",}, + } +}) + minetest.register_craft({ output = "mcl_end:end_rod 4", recipe = { @@ -133,3 +159,9 @@ minetest.register_craft({ recipe = {"mcl_mobitems:blaze_powder", "mcl_throwing:ender_pearl"}, }) +minetest.register_craft({ + type = "cooking", + output = "mcl_end:chorus_fruit_popped", + recipe = "mcl_end:chorus_fruit", + cooktime = 10, +})