[Mod] Fluid API - Fluid Storage and Transfer! [fluid_lib]

User avatar
IcyDiamond
Member
 
Posts: 147
Joined: Fri Mar 30, 2018 08:55
Location: Estonia
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond

[Mod] Fluid API - Fluid Storage and Transfer! [fluid_lib]

by IcyDiamond » Wed Jun 20, 2018 14:08

Image

This is a Fluid Transfer and Storage API based on node_io for Minetest. It overrides the default bucket mod and adds these features:

  • Nodes can now have "internal buffers" of fluid.
  • Buckets can be registered with a color instead of an image.
  • Buckets have callbacks that can insert and take fluid from certain nodes with internal buffers.
  • Fluid storage tanks!
  • Fluid transfer!

Note: Default storage tanks are registered for all fluids that have a bucket.

API documentation is available in the README.

Direct Download

Source Code: https://gitlab.icynet.eu/evert/fluid_lib
License: MIT
Last edited by IcyDiamond on Sat Jan 05, 2019 18:37, edited 4 times in total.
Web developer | Minetest modder | Systems Administrator | Donate
Mods - elepower | melterns | towny
 

User avatar
GamingAssociation39
Member
 
Posts: 819
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

Re: [Mod] Fluid API - Fluid Storage and more! [fluid_lib]

by GamingAssociation39 » Thu Jun 21, 2018 02:42

Does this change the flow mechanic of MT?
Jesus Is Lord and Savior!!!
 

User avatar
IcyDiamond
Member
 
Posts: 147
Joined: Fri Mar 30, 2018 08:55
Location: Estonia
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond

Re: [Mod] Fluid API - Fluid Storage and more! [fluid_lib]

by IcyDiamond » Thu Jun 21, 2018 04:24

GamingAssociation39 wrote:Does this change the flow mechanic of MT?

No. It is merely for fluid storage.
Web developer | Minetest modder | Systems Administrator | Donate
Mods - elepower | melterns | towny
 

User avatar
GamingAssociation39
Member
 
Posts: 819
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

Re: [Mod] Fluid API - Fluid Storage and more! [fluid_lib]

by GamingAssociation39 » Thu Jun 21, 2018 05:20

Oh :( So we can make water pumping systems and store them in blocks?
Jesus Is Lord and Savior!!!
 

User avatar
IcyDiamond
Member
 
Posts: 147
Joined: Fri Mar 30, 2018 08:55
Location: Estonia
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond

Re: [Mod] Fluid API - Fluid Storage and more! [fluid_lib]

by IcyDiamond » Thu Jun 21, 2018 05:21

GamingAssociation39 wrote:Oh :( So we can make water pumping systems and store them in blocks?

Indeed.
Web developer | Minetest modder | Systems Administrator | Donate
Mods - elepower | melterns | towny
 

bell07
Member
 
Posts: 574
Joined: Sun Sep 04, 2016 15:15
GitHub: bell07

Re: [Mod] Fluid API - Fluid Storage and more! [fluid_lib]

by bell07 » Sun Jul 08, 2018 10:28

Some fixes on depends.txt files:
Code: Select all
diff --git a/bucket/depends.txt b/bucket/depends.txt
index a7c6667..d15f7fc 100644
--- a/bucket/depends.txt
+++ b/bucket/depends.txt
@@ -1 +1,2 @@
-default,fluid_lib
+default
+fluid_lib
diff --git a/fluid_tanks/depends.txt b/fluid_tanks/depends.txt
index e43a56a..7434fbc 100644
--- a/fluid_tanks/depends.txt
+++ b/fluid_tanks/depends.txt
@@ -1 +1,2 @@
+fluid_lib
 bucket
 

Terumoc
Member
 
Posts: 57
Joined: Thu Dec 28, 2017 20:00
GitHub: Terumoc
In-game: Terumoc

Re: [Mod] Fluid API - Fluid Storage and more! [fluid_lib]

by Terumoc » Thu Aug 30, 2018 21:55

Perhaps this would be something better for elepower, but its functionality is strictly available by what's provided by fluid_lib: some sort of very basic node that can accept liquid and fill buckets placed inside would be extremely useful for automation. After all there are some mods (*cough*like my own*cough*) that use filled buckets a lot with crafting.

I was thinking of creating something like it myself in Terumetal to assist with automated crafting, but it does seem like a good idea for a basic functional tool in fluid_lib (or elepower). If you want to keep it strictly a code library and without any "gameplay content" I certainly understand though.

EDIT: I decided to implement this in a separate mod anyway. I'll link to it once it's in a usable state :)
Maker of Terumetal and Teruview mods at https://github.com/Terumoc
 

User avatar
IcyDiamond
Member
 
Posts: 147
Joined: Fri Mar 30, 2018 08:55
Location: Estonia
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond

Re: [Mod] Fluid API - Fluid Storage and more! [fluid_lib]

by IcyDiamond » Fri Aug 31, 2018 09:54

Terumoc wrote:some sort of very basic node that can accept liquid and fill buckets placed inside would be extremely useful for automation.

That's already implemented in Elepower, it's called the Bucketer.
Web developer | Minetest modder | Systems Administrator | Donate
Mods - elepower | melterns | towny
 

Terumoc
Member
 
Posts: 57
Joined: Thu Dec 28, 2017 20:00
GitHub: Terumoc
In-game: Terumoc

Re: [Mod] Fluid API - Fluid Storage and more! [fluid_lib]

by Terumoc » Fri Aug 31, 2018 15:14

IcyDiamond wrote:
Terumoc wrote:some sort of very basic node that can accept liquid and fill buckets placed inside would be extremely useful for automation.

That's already implemented in Elepower, it's called the Bucketer.


Oh is it? I must have overlooked it or it was added after last time I checked it out. Great to hear!
Maker of Terumetal and Teruview mods at https://github.com/Terumoc
 

User avatar
IcyDiamond
Member
 
Posts: 147
Joined: Fri Mar 30, 2018 08:55
Location: Estonia
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond

Re: [Mod] Fluid API - Fluid Storage and more! [fluid_lib]

by IcyDiamond » Fri Aug 31, 2018 18:16

Terumoc wrote:Oh is it? I must have overlooked it or it was added after last time I checked it out. Great to hear!

Yeah, it was added recently.
Web developer | Minetest modder | Systems Administrator | Donate
Mods - elepower | melterns | towny
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 8 guests