2017-01-12 03:04:58 +01:00
|
|
|
minetest.register_craftitem("mcl_potions:fermented_spider_eye", {
|
|
|
|
description = "Fermented Spider Eye",
|
|
|
|
wield_image = "mcl_potions_spider_eye_fermented.png",
|
|
|
|
inventory_image = "mcl_potions_spider_eye_fermented.png",
|
2017-01-20 04:54:09 +01:00
|
|
|
groups = { brewitem = 1 },
|
2017-01-12 03:04:58 +01:00
|
|
|
stack_max = 64,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "mcl_potions:fermented_spider_eye",
|
2017-03-01 01:16:52 +01:00
|
|
|
recipe = { "mcl_mushrooms:mushroom_brown", "mcl_core:sugar", "mcl_mobitems:spider_eye" },
|
2017-01-12 03:04:58 +01:00
|
|
|
})
|
|
|
|
|
2017-01-20 11:11:33 +01:00
|
|
|
minetest.register_craftitem("mcl_potions:glass_bottle", {
|
|
|
|
description = "Glass Bottle",
|
2017-03-01 16:36:26 +01:00
|
|
|
inventory_image = "mcl_potions_potion_bottle_empty.png",
|
|
|
|
wield_image = "mcl_potions_potion_bottle_empty.png",
|
2017-01-20 11:11:33 +01:00
|
|
|
groups = {brewitem=1},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "mcl_potions:glass_bottle 3",
|
|
|
|
recipe = {
|
2017-01-31 23:32:56 +01:00
|
|
|
{ "mcl_core:glass", "", "mcl_core:glass" },
|
|
|
|
{ "", "mcl_core:glass", "" }
|
2017-01-20 11:11:33 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-03-01 16:36:26 +01:00
|
|
|
-- Tempalte function for creating images of filled potions
|
|
|
|
-- - colorstring must be a ColorString of form “#RRGGBB”, e.g. “#0000FF” for blue.
|
|
|
|
-- - opacity is optional opacity from 0-255 (default: 127)
|
|
|
|
local potion_image = function(colorstring, opacity)
|
|
|
|
if not opacity then
|
|
|
|
opacity = 127
|
|
|
|
end
|
|
|
|
return "mcl_potions_potion_bottle_drinkable.png^(mcl_potions_potion_overlay.png^[colorize:"..colorstring..":"..tostring(opacity)..")"
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Itemstring of potions is “mcl_potions:potion_<NBT Potion Tag>”
|
|
|
|
|
|
|
|
minetest.register_craftitem("mcl_potions:potion_water", {
|
|
|
|
description = "Water Bottle",
|
|
|
|
stack_max = 1,
|
|
|
|
inventory_image = potion_image("#0000FF"),
|
|
|
|
wield_image = potion_image("#0000FF"),
|
|
|
|
groups = {brewitem=1, food=3},
|
|
|
|
on_place = minetest.item_eat(0, "mcl_potions:glass_bottle"),
|
|
|
|
on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"),
|
|
|
|
})
|
|
|
|
minetest.register_craftitem("mcl_potions:potion_awkward", {
|
|
|
|
description = "Awkward Potion",
|
|
|
|
stack_max = 1,
|
|
|
|
inventory_image = potion_image("#0000FF"),
|
|
|
|
wield_image = potion_image("#0000FF"),
|
|
|
|
groups = {brewitem=1, food=3},
|
|
|
|
on_place = minetest.item_eat(0, "mcl_potions:glass_bottle"),
|
|
|
|
on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"),
|
|
|
|
})
|
|
|
|
minetest.register_craftitem("mcl_potions:potion_mundane", {
|
|
|
|
description = "Mundane Potion",
|
|
|
|
stack_max = 1,
|
|
|
|
inventory_image = potion_image("#0000FF"),
|
|
|
|
wield_image = potion_image("#0000FF"),
|
|
|
|
groups = {brewitem=1, food=3},
|
|
|
|
on_place = minetest.item_eat(0, "mcl_potions:glass_bottle"),
|
|
|
|
on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"),
|
|
|
|
})
|
|
|
|
minetest.register_craftitem("mcl_potions:potion_thick", {
|
|
|
|
description = "Thick Potion",
|
|
|
|
stack_max = 1,
|
|
|
|
inventory_image = potion_image("#0000FF"),
|
|
|
|
wield_image = potion_image("#0000FF"),
|
|
|
|
groups = {brewitem=1, food=3},
|
|
|
|
on_place = minetest.item_eat(0, "mcl_potions:glass_bottle"),
|
|
|
|
on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"),
|
|
|
|
})
|
|
|
|
|
2017-01-20 11:21:55 +01:00
|
|
|
minetest.register_craftitem("mcl_potions:speckled_melon", {
|
|
|
|
description = "Glistering Melon",
|
|
|
|
stack_max = 64,
|
|
|
|
groups = { brewitem = 1 },
|
|
|
|
inventory_image = "mcl_potions_melon_speckled.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mcl_potions:speckled_melon",
|
|
|
|
recipe = {
|
2017-01-31 23:32:56 +01:00
|
|
|
{'mcl_core:gold_nugget', 'mcl_core:gold_nugget', 'mcl_core:gold_nugget'},
|
|
|
|
{'mcl_core:gold_nugget', 'mcl_farming:melon_item', 'mcl_core:gold_nugget'},
|
|
|
|
{'mcl_core:gold_nugget', 'mcl_core:gold_nugget', 'mcl_core:gold_nugget'},
|
2017-01-20 11:21:55 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-01-12 03:04:58 +01:00
|
|
|
minetest.register_craftitem("mcl_potions:dragon_breath", {
|
|
|
|
description = "Dragon's Breath",
|
|
|
|
wield_image = "mcl_potions_dragon_breath.png",
|
|
|
|
inventory_image = "mcl_potions_dragon_breath.png",
|
2017-02-06 20:54:35 +01:00
|
|
|
groups = { brewitem = 1 },
|
2017-01-12 03:04:58 +01:00
|
|
|
stack_max = 64,
|
|
|
|
})
|