Page 1 of 1

[Mod] Sponges [sponge]

Posted: Fri Feb 01, 2013 01:16
by aximx51v
Here's a Sponge mod, since all the older ones have disappeared.
place a sponge and it'll soak up all water around it, as long as you leave it there.

Image


don't place it in lava though, it'll just burn...

Image


that's what the iron sponge is for! iron sponges work in water and lava. they also soak up a bigger area than normal sponges do.

Image


use them to create underwater(or underlava) rooms and tunnels, or to mop up any spills.

Image


and here's the recipes:

sponge:
leaves, leaves, leaves,
leaves, mese, leaves
leaves, leaves, leaves

iron sponge:
steel ingot, steel ingot, steel ingot
steel ingot, sponge, steel ingot
steel ingot, steel ingot, steel ingot

The code license is: WTFPL, and the textures license is CC BY

Mod dependencies: default

here you go:
https://www.dropbox.com/s/adcuzavvz522yyf/sponge.zip

any ideas or comments, let me know.

Posted: Fri Feb 01, 2013 01:43
by rarkenin
+1024

Posted: Fri Feb 01, 2013 01:59
by jojoa1997
it works but the iron sponge also works in water.

Posted: Fri Feb 01, 2013 02:03
by MAC
CRAZY MAN! I love see more!

Posted: Fri Feb 01, 2013 02:10
by Likwid H-Craft
Hey aximx51v, I was thinking why you, don't use my Sponge I made for my, portaltest it called Something Block in the textures, and use it for yours lava Sponge since, I made it like a lava Sponge.

Posted: Fri Feb 01, 2013 02:18
by aximx51v
jojoa1997 wrote:it works but the iron sponge also works in water.
that's the idea. iron sponge does the same thing a normal sponge does, and more.

Posted: Fri Feb 01, 2013 09:51
by Topywo
There's an very old post (also interesting for it's other links for new forum members),

http://forum.minetest.net/viewtopic.php ... 692#p13692

that mentions erlehmann's sponge-mod. It gives the following, still working, links to the file and to a screenshot:

http://daten.dieweltistgarnichtso.net/s ... nge.tar.gz

http://daten.dieweltistgarnichtso.net/p ... sponge.png

I couldn't find it as a modding topic.


There exists a mod removing water and lava called watergone, by Switch5681. Link to the modding page (with still working link to the down;oad file:

http://forum.minetest.net/viewtopic.php ... 512#p24512


They are old mods, at least 8 months. I didn't test them.

I think people will find your mod very usefull, because it will be up to date. Maybe you can integrate code/ideas from those mods and expand it a bit more.

Posted: Fri Feb 01, 2013 10:27
by Melkor
Topywo wrote:There's an very old post (also interesting for it's other links for new forum members),

http://forum.minetest.net/viewtopic.php ... 692#p13692

that mentions erlehmann's sponge-mod. It gives the following, still working, links to the file and to a screenshot:

http://daten.dieweltistgarnichtso.net/s ... nge.tar.gz

http://daten.dieweltistgarnichtso.net/p ... sponge.png

I couldn't find it as a modding topic.


There exists a mod removing water and lava called watergone, by Switch5681. Link to the modding page (with still working link to the down;oad file:

http://forum.minetest.net/viewtopic.php ... 512#p24512


They are old mods, at least 8 months. I didn't test them.

I think people will find your mod very usefull, because it will be up to date. Maybe you can integrate code/ideas from those mods and expand it a bit more.
hey, this is an old post mine! the first version was from sometime around december 2011, some people didn't like it XD

Here's more OLD mods http://minetest.net/wiki/doku.php?id=mods

The sponge mod by erlehmann was one of the first mods introduced in Minetest, far as i know

Posted: Mon Feb 04, 2013 03:19
by aximx51v
Melkor wrote:
Topywo wrote:There's an very old post (also interesting for it's other links for new forum members),

http://forum.minetest.net/viewtopic.php ... 692#p13692

that mentions erlehmann's sponge-mod. It gives the following, still working, links to the file and to a screenshot:

http://daten.dieweltistgarnichtso.net/s ... nge.tar.gz

http://daten.dieweltistgarnichtso.net/p ... sponge.png

I couldn't find it as a modding topic.


There exists a mod removing water and lava called watergone, by Switch5681. Link to the modding page (with still working link to the down;oad file:

http://forum.minetest.net/viewtopic.php ... 512#p24512


They are old mods, at least 8 months. I didn't test them.

I think people will find your mod very usefull, because it will be up to date. Maybe you can integrate code/ideas from those mods and expand it a bit more.
hey, this is an old post mine! the first version was from sometime around december 2011, some people didn't like it XD

Here's more OLD mods http://minetest.net/wiki/doku.php?id=mods

The sponge mod by erlehmann was one of the first mods introduced in Minetest, far as i know
thanks so much for the links!
i've tried the sponge/water_remover mods, and they still work. i borrowed some code from the sponge mod to make the iron sponge repel more water/lava.
i also tried the two exploding mods, but they don't explode anymore, oh well..
maybe they could be fixed, anybody wanna try? :D

Posted: Sun Mar 03, 2013 10:49
by proller
now with latest minetest build
liquid_finite = true
liquid_relax = 0
liquid_fast_flood = 0

water/lava can be replaced with default "air" in this mod, and sponge will destroy all water around

Posted: Sun Mar 03, 2013 11:24
by Gambit
iron sponge?

Posted: Sun Mar 03, 2013 18:27
by aximx51v
proller wrote:now with latest minetest build
liquid_finite = true
liquid_relax = 0
liquid_fast_flood = 0

water/lava can be replaced with default "air" in this mod, and sponge will destroy all water around
are you talking about the current dev, or stable release?
I can update this mod if it'll still work in the stable...
Gambit wrote:iron sponge?
yep. normal sponges would burn up in lava. so it's coated in metal to withstand the higher temperatures, or something like that...

who says it has to be realistic anyway...?

Posted: Thu Mar 07, 2013 20:11
by proller
in 0.4.5 release
you can use
if minetest.setting_get("liquid_finite") then ....

and suggestion:
two types of sponges:
1. finite sponge like current - can absorb only 8 or 63(iron) blocks of water, can be moved to dry place and and release water on punch.

2. infinite sponge for new water - always absorb water around, and may be can release 8 or 64 waters on punch

Posted: Fri Mar 08, 2013 07:36
by 4aiman
If sponges are to release water, then only on punch AND shift. Other way one will end up releasing water before he/she even dug it.

Posted: Fri Mar 08, 2013 13:33
by aximx51v
interesting ideas, I'll have to play around with this

Posted: Fri Mar 08, 2013 17:10
by jordan4ibanez
put my cake on the sponge, jordach's texture pack, minecraft. nice mod

Posted: Mon Mar 11, 2013 19:12
by proller
maybe use infinite sponge if minetest.setting_get("liquid_finite") and minetest.setting_get("liquid_relax")>0 else current sponge.

Posted: Mon Mar 11, 2013 19:38
by proller

Code: Select all

diff -u sponge_orig/init.lua sponge/init.lua
--- sponge_orig/init.lua        2013-02-03 21:03:04.000000000 +0400
+++ sponge/init.lua     2013-03-11 23:33:49.000000000 +0400
@@ -37,13 +37,18 @@
        groups = {not_in_creative_inventory=1},
 })

+local replacewith = "sponge:fake_air"
+if minetest.setting_get("liquid_finite") and minetest.setting_get("liquid_relax") > "0" then
+    replacewith = "air"
+end
+
 minetest.register_abm({
     nodenames = {"default:water_source", "default:water_flowing"},
     neighbors = {"sponge:sponge", "sponge:iron_sponge"},
     interval = 1.0,
     chance = 1,
     action = function(pos, node, active_object_count, active_object_count_wider)
-            minetest.env:add_node(pos, {name="sponge:fake_air"})
+            minetest.env:add_node(pos, {name=replacewith})
     end
 })

@@ -59,7 +64,7 @@
                 n = minetest.env:get_node(p)
                 if (n.name=="default:water_flowing")
                 or (n.name == "default:water_source") then
-                    minetest.env:add_node(p, {name="sponge:fake_air"})
+                    minetest.env:add_node(p, {name=replacewith})
                 end
             end
         end
@@ -77,11 +82,11 @@
             for k=-2,2 do
                 p = {x=pos.x+i, y=pos.y+j, z=pos.z+k}
                 n = minetest.env:get_node(p)
-                if (n.name=="default:water_flowing")
+                if (n.name == "default:water_flowing")
                 or (n.name == "default:water_source")
                 or (n.name == "default:lava_source")
                 or (n.name == "default:lava_flowing") then
-                    minetest.env:add_node(p, {name="sponge:fake_air"})
+                    minetest.env:add_node(p, {name=replacewith})
                 end
             end
         end
maybe without
and minetest.setting_get("liquid_relax") > "0"

Posted: Mon Jun 24, 2013 18:41
by CalumMc
The sponge seems to be unbreakable - is this a glitch with newer versions of minetest?

Posted: Mon Jun 24, 2013 18:46
by PilzAdam
CalumMc wrote:The sponge seems to be unbreakable - is this a glitch with newer versions of minetest?
You need at least a wooden sword.

Posted: Sat Jun 29, 2013 17:38
by Rancon
+1000000000000000000000

Posted: Thu Jul 04, 2013 21:13
by proller

Re: [Mod] Sponges [sponge]

Posted: Sat Sep 06, 2014 10:25
by Josh04
Oh shit, thats AMAZING!! I love it