mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Merged buckets
This commit is contained in:
parent
5a3e2ddede
commit
1728194d06
@ -7,10 +7,10 @@ minetest.register_alias("bucket_acid", "bucket:bucket_acid")
|
||||
minetest.register_alias("bucket_lava", "bucket:bucket_lava")
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bucket:bucket_empty 1",
|
||||
output = 'bucket:bucket_empty 1',
|
||||
recipe = {
|
||||
{"group:ingot", "", "group:ingot"},
|
||||
{"", "group:ingot", ""},
|
||||
{'group:ingot', '', 'group:ingot'},
|
||||
{'', 'group:ingot', ''},
|
||||
}
|
||||
})
|
||||
|
||||
@ -23,7 +23,7 @@ local function check_protection(pos, name, text)
|
||||
.. " tried to " .. text
|
||||
.. " at protected position "
|
||||
.. minetest.pos_to_string(pos)
|
||||
.. " with a bucket.")
|
||||
.. " with a bucket")
|
||||
minetest.record_protection_violation(pos, name)
|
||||
return true
|
||||
end
|
||||
@ -132,10 +132,10 @@ minetest.register_craftitem("bucket:bucket_empty", {
|
||||
return
|
||||
end
|
||||
|
||||
-- default set to return filled bucket
|
||||
-- default set to return filled bucket
|
||||
local giving_back = liquiddef.itemname
|
||||
|
||||
-- check if holding more than 1 empty bucket
|
||||
-- check if holding more than 1 empty bucket
|
||||
if item_count > 1 then
|
||||
|
||||
-- if space in inventory add filled bucked, otherwise drop as item
|
||||
@ -157,7 +157,7 @@ minetest.register_craftitem("bucket:bucket_empty", {
|
||||
|
||||
return ItemStack(giving_back)
|
||||
end
|
||||
end,
|
||||
end,
|
||||
})
|
||||
|
||||
bucket.register_liquid(
|
||||
@ -219,7 +219,3 @@ minetest.register_craft({
|
||||
{"bucket:bucket_water"},
|
||||
},
|
||||
})
|
||||
|
||||
if minetest.setting_getbool("log_mods") then
|
||||
minetest.log("action", "Carbone: [bucket] loaded.")
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user