Modify bucket namings

This commit is contained in:
Perttu Ahola 2011-11-29 18:05:29 +02:00
parent bb898bf587
commit d57aa531e1

@ -21,11 +21,11 @@ minetest.register_craftitem("bucket", {
n = minetest.env:get_node(pointed_thing.under) n = minetest.env:get_node(pointed_thing.under)
if n.name == "water_source" then if n.name == "water_source" then
minetest.env:add_node(pointed_thing.under, {name="air"}) minetest.env:add_node(pointed_thing.under, {name="air"})
player:add_to_inventory_later('CraftItem "water_bucket" 1') player:add_to_inventory_later('CraftItem "bucket_water" 1')
return true return true
elseif n.name == "lava_source" then elseif n.name == "lava_source" then
minetest.env:add_node(pointed_thing.under, {name="air"}) minetest.env:add_node(pointed_thing.under, {name="air"})
player:add_to_inventory_later('CraftItem "lava_bucket" 1') player:add_to_inventory_later('CraftItem "bucket_lava" 1')
return true return true
end end
end end
@ -33,7 +33,7 @@ minetest.register_craftitem("bucket", {
end, end,
}) })
minetest.register_craftitem("water_bucket", { minetest.register_craftitem("bucket_water", {
image = "bucket_water.png", image = "bucket_water.png",
stack_max = 1, stack_max = 1,
liquids_pointable = true, liquids_pointable = true,
@ -55,7 +55,7 @@ minetest.register_craftitem("water_bucket", {
end, end,
}) })
minetest.register_craftitem("lava_bucket", { minetest.register_craftitem("bucket_lava", {
image = "bucket_lava.png", image = "bucket_lava.png",
stack_max = 1, stack_max = 1,
liquids_pointable = true, liquids_pointable = true,