Implement few fluid related registration functions

This commit is contained in:
2025-11-11 19:50:29 +01:00
parent 17a9cab691
commit d13d2b9dfd
5 changed files with 89 additions and 1 deletions

View File

@@ -533,6 +533,9 @@ minetest.register_craftitem("industrialtest:empty_cell",{
description=S("Empty Cell"),
inventory_image="industrialtest_empty_cell.png",
liquids_pointable=true,
groups={
_industrialtest_simpleFluidStorage=1
},
on_place=function(itemstack,user,pointed)
if pointed.type~="node" or not user or not user:is_player() then
return nil
@@ -554,7 +557,9 @@ minetest.register_craftitem("industrialtest:empty_cell",{
end
minetest.remove_node(pointed.under)
return itemstack
end
end,
_industrialtest_getResultingFluidStorageItemByNode=industrialtest.api.getStorageCellByNode,
_industrialtest_simpleFluidStorageCapacity=1000
})
minetest.register_craft({
type="shaped",