Page 1 of 1

Non-flowing liquid

PostPosted: Tue Sep 11, 2012 04:53
by Sokomine
Is there a way to create water and lava which will just remain where placed and not start to flow around? Mostly they only have to look like water/lava. It would be good if the nodes could be used to "swim" up (elevator/rope/ladder). Some of the maps I'd like to import use water for kitchen sink, as elevator or for an improvised door.

PostPosted: Tue Sep 11, 2012 07:28
by Mito551
you can try to retexture the ladder.or smth like thst.

PostPosted: Tue Sep 11, 2012 11:09
by cornernote
You can use the water texture on your own custom nodes, then it won't flow. You can set climbable = true to make it like a ladder that you can go up. I'm on iPad so hard to paste an example, if your still stuck let me know and I'll post some code tomorrow.

PostPosted: Tue Sep 11, 2012 15:54
by Sokomine
Seems to almost work: can be walked through, can be "climbed", looks like water...however...right now it might be more of a fun item: it makes floor and wall transparent from the water-side. Funny effect. How do I get the first block that isn't water to be drawn?

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_node("mcimport:stationary_water", {
        description = "Stationary water for building",
        inventory_image = minetest.inventorycube("default_water.png"),
        --drawtype = "flowingliquid",
        tiles ={"default_water.png"},
        special_tiles = {
                {name="default_water.png", backface_culling=false},
                {name="default_water.png", backface_culling=true},
        },
        alpha = WATER_ALPHA,
        paramtype = "light",
        walkable = false,
        pointable = false,
        diggable = false,
        buildable_to = true,
        climbable = true,
        post_effect_color = {a=64, r=100, g=100, b=200},
        groups = {},
})