make entities more immortal

This commit is contained in:
flux 2022-11-09 07:37:26 -08:00
parent 1d260c12e7
commit 2f01468fc0
No known key found for this signature in database
GPG Key ID: 9333B27816848A15
2 changed files with 8 additions and 0 deletions

View File

@ -41,6 +41,10 @@ minetest.register_entity("cottages:anvil_item", {
obj:set_armor_groups({immortal = 1})
end,
on_punch = function()
return true
end,
on_blast = function(self, damage)
return false, false, {}
end,

View File

@ -29,6 +29,10 @@ minetest.register_entity("cottages:bucket_entity", {
obj:set_armor_groups({immortal = 1})
end,
on_punch = function()
return true
end,
on_blast = function(self, damage)
return false, false, {}
end,