mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
Add splash/lingering water
This commit is contained in:
parent
2b4b37a439
commit
fa86a09fd5
1 changed files with 7 additions and 3 deletions
|
@ -189,8 +189,8 @@ minetest.register_craftitem("mcl_potions:water", {
|
||||||
_doc_items_longdesc = S("Water bottles can be used to fill cauldrons. Drinking water has no effect."),
|
_doc_items_longdesc = S("Water bottles can be used to fill cauldrons. Drinking water has no effect."),
|
||||||
_doc_items_usagehelp = S("Use the “Place” key to drink. Place this item on a cauldron to pour the water into the cauldron."),
|
_doc_items_usagehelp = S("Use the “Place” key to drink. Place this item on a cauldron to pour the water into the cauldron."),
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
inventory_image = potion_image("#0000FF"),
|
inventory_image = potion_image("#0022FF"),
|
||||||
wield_image = potion_image("#0000FF"),
|
wield_image = potion_image("#0022FF"),
|
||||||
groups = {brewitem=1, food=3, can_eat_when_full=1, water_bottle=1},
|
groups = {brewitem=1, food=3, can_eat_when_full=1, water_bottle=1},
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
if pointed_thing.type == "node" then
|
if pointed_thing.type == "node" then
|
||||||
|
@ -228,6 +228,7 @@ minetest.register_craftitem("mcl_potions:water", {
|
||||||
on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"),
|
on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craftitem("mcl_potions:river_water", {
|
minetest.register_craftitem("mcl_potions:river_water", {
|
||||||
description = S("River Water Bottle"),
|
description = S("River Water Bottle"),
|
||||||
_tt_help = S("No effect"),
|
_tt_help = S("No effect"),
|
||||||
|
@ -272,8 +273,11 @@ minetest.register_craftitem("mcl_potions:river_water", {
|
||||||
return minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, placer, pointed_thing)
|
return minetest.do_item_eat(0, "mcl_potions:glass_bottle", itemstack, placer, pointed_thing)
|
||||||
end,
|
end,
|
||||||
on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"),
|
on_secondary_use = minetest.item_eat(0, "mcl_potions:glass_bottle"),
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
mcl_potions.register_splash("water", S("Splash Potion"), "#0022FF", {tt="No effect", potion_fun=function() end})
|
||||||
|
mcl_potions.register_lingering("water", S("Lingering Potion"), "#0022FF", {tt="No effect", potion_fun=function() end})
|
||||||
|
|
||||||
minetest.register_craftitem("mcl_potions:speckled_melon", {
|
minetest.register_craftitem("mcl_potions:speckled_melon", {
|
||||||
description = S("Glistering Melon"),
|
description = S("Glistering Melon"),
|
||||||
|
@ -352,7 +356,7 @@ for i, potion in ipairs({"healing","harming","swiftness","slowness",
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
for i, potion in ipairs({"awkward", "mundane", "thick", "water", "river_water"}) do
|
for i, potion in ipairs({"awkward", "mundane", "thick", "water"}) do
|
||||||
table.insert(potions, potion)
|
table.insert(potions, potion)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue