Add chorus fruit/popped chorus fruit

This commit is contained in:
Wuzzy 2017-01-28 01:13:31 +01:00
parent 397cd97ae9
commit d25f3b51b6

View File

@ -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,
})