Add splash/lingering water

This commit is contained in:
Brandon 2020-07-17 17:25:49 -04:00
parent 2b4b37a439
commit fa86a09fd5
1 changed files with 7 additions and 3 deletions

View File

@ -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_usagehelp = S("Use the “Place” key to drink. Place this item on a cauldron to pour the water into the cauldron."),
stack_max = 1,
inventory_image = potion_image("#0000FF"),
wield_image = potion_image("#0000FF"),
inventory_image = potion_image("#0022FF"),
wield_image = potion_image("#0022FF"),
groups = {brewitem=1, food=3, can_eat_when_full=1, water_bottle=1},
on_place = function(itemstack, placer, pointed_thing)
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"),
})
minetest.register_craftitem("mcl_potions:river_water", {
description = S("River Water Bottle"),
_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)
end,
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", {
description = S("Glistering Melon"),
@ -352,7 +356,7 @@ for i, potion in ipairs({"healing","harming","swiftness","slowness",
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)
end