Non-flowing liquid

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

Non-flowing liquid

by Sokomine » Tue Sep 11, 2012 04:53

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.
A list of my mods can be found here.
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Tue Sep 11, 2012 07:28

you can try to retexture the ladder.or smth like thst.
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Tue Sep 11, 2012 11:09

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.
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

by Sokomine » Tue Sep 11, 2012 15:54

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 = {},
})
A list of my mods can be found here.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 24 guests

cron