Rename mod: bucket to mcl_buckets

This commit is contained in:
Wuzzy 2017-08-03 16:36:55 +02:00
parent 1d075f849f
commit ee38a7af9d
18 changed files with 48 additions and 48 deletions

View file

@ -138,16 +138,16 @@ local dispenserdef = {
stack:take_item()
inv:set_stack("main", stack_id, stack)
end
elseif iname == "bucket:bucket_empty" then
elseif iname == "mcl_buckets:bucket_empty" then
-- Fill empty bucket with liquid or drop bucket if no liquid
local collect_liquid = false
local bucket_id
if dropnode.name == "mcl_core:water_source" then
collect_liquid = true
bucket_id = "bucket:bucket_water"
bucket_id = "mcl_buckets:bucket_water"
elseif dropnode.name == "mcl_core:lava_source" then
collect_liquid = true
bucket_id = "bucket:bucket_lava"
bucket_id = "mcl_buckets:bucket_lava"
end
if collect_liquid then
minetest.set_node(droppos, {name="air"})
@ -170,20 +170,20 @@ local dispenserdef = {
stack:take_item()
inv:set_stack("main", stack_id, stack)
end
elseif iname == "bucket:bucket_water" or iname == "bucket:bucket_lava" then
elseif iname == "mcl_buckets:bucket_water" or iname == "mcl_buckets:bucket_lava" then
-- Place water/lava source
if dropnodedef.buildable_to then
if iname == "bucket:bucket_water" then
if iname == "mcl_buckets:bucket_water" then
minetest.set_node(droppos, {name = "mcl_core:water_source"})
elseif iname == "bucket:bucket_lava" then
elseif iname == "mcl_buckets:bucket_lava" then
minetest.set_node(droppos, {name = "mcl_core:lava_source"})
end
stack:take_item()
inv:set_stack("main", stack_id, stack)
if inv:room_for_item("main", "bucket:bucket_empty") then
inv:add_item("main", "bucket:bucket_empty")
if inv:room_for_item("main", "mcl_buckets:bucket_empty") then
inv:add_item("main", "mcl_buckets:bucket_empty")
else
minetest.add_item(droppos, dropitem)
end