[Mod] Sponges [sponge]

Post Reply
aximx51v
Member
Posts: 60
Joined: Fri Dec 07, 2012 03:47

[Mod] Sponges [sponge]

by aximx51v » Post

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.
Last edited by aximx51v on Tue Feb 12, 2013 16:33, edited 1 time in total.

rarkenin
Member
Posts: 668
Joined: Tue Nov 20, 2012 20:48

by rarkenin » Post

+1024
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

it works but the iron sponge also works in water.
Coding;
1X coding
3X debugging
12X tweaking to be just right

MAC
Member
Posts: 10
Joined: Fri Feb 01, 2013 00:39

by MAC » Post

CRAZY MAN! I love see more!

User avatar
Likwid H-Craft
Member
Posts: 1113
Joined: Sun Jan 06, 2013 14:20
Location: Lost in Crypt

by Likwid H-Craft » Post

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.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)

aximx51v
Member
Posts: 60
Joined: Fri Dec 07, 2012 03:47

by aximx51v » Post

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.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

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.

User avatar
Melkor
Member
Posts: 369
Joined: Sat Sep 24, 2011 01:03
Location: Underground

by Melkor » Post

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

aximx51v
Member
Posts: 60
Joined: Fri Dec 07, 2012 03:47

by aximx51v » Post

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
Last edited by aximx51v on Mon Feb 04, 2013 03:22, edited 1 time in total.

proller
Member
Posts: 222
Joined: Sat Jan 26, 2013 15:22

by proller » Post

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

User avatar
Gambit
Member
Posts: 453
Joined: Sat Oct 29, 2011 19:31
Location: United States

by Gambit » Post

iron sponge?
Current Projects: MineToon | PixelBOX
Gambit's Checkmate Server - 43.65.296.232 - port: 30001

aximx51v
Member
Posts: 60
Joined: Fri Dec 07, 2012 03:47

by aximx51v » Post

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...?

proller
Member
Posts: 222
Joined: Sat Jan 26, 2013 15:22

by proller » Post

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

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Post

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.

aximx51v
Member
Posts: 60
Joined: Fri Dec 07, 2012 03:47

by aximx51v » Post

interesting ideas, I'll have to play around with this

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

put my cake on the sponge, jordach's texture pack, minecraft. nice mod
Last edited by jordan4ibanez on Fri Mar 08, 2013 17:11, edited 1 time in total.
hello, am program. do language in rust. make computer do. okay i go now.

proller
Member
Posts: 222
Joined: Sat Jan 26, 2013 15:22

by proller » Post

maybe use infinite sponge if minetest.setting_get("liquid_finite") and minetest.setting_get("liquid_relax")>0 else current sponge.
Last edited by proller on Mon Mar 11, 2013 19:21, edited 1 time in total.

proller
Member
Posts: 222
Joined: Sat Jan 26, 2013 15:22

by proller » Post

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"
Last edited by proller on Mon Mar 11, 2013 19:40, edited 1 time in total.

CalumMc
Member
Posts: 58
Joined: Mon Dec 12, 2011 16:50
Location: England

by CalumMc » Post

The sponge seems to be unbreakable - is this a glitch with newer versions of minetest?

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

CalumMc wrote:The sponge seems to be unbreakable - is this a glitch with newer versions of minetest?
You need at least a wooden sword.

User avatar
Rancon
Member
Posts: 240
Joined: Tue Jan 01, 2013 14:59
Location: Gladstone, Missouri

by Rancon » Post

+1000000000000000000000
Any tips on blender, gimp, or codea?

proller
Member
Posts: 222
Joined: Sat Jan 26, 2013 15:22

by proller » Post


Josh04
Member
Posts: 92
Joined: Wed Aug 20, 2014 13:44
GitHub: DerMinetestPro
IRC: Josh04
In-game: Josh04
Location: Deutschland

Re: [Mod] Sponges [sponge]

by Josh04 » Post

Oh shit, thats AMAZING!! I love it
Nennt mich nicht Josh! Sagt Josh04 oder JJ!
Wer etwas von mir wissen will, schreib mir eine PM
Schreibt mir auch eine PM, wenn ihr meine Lieblings-Mods oder Tex-Packs erfahren wollt!

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests