How to use drawtype liquid on non-liquid nodes?

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

How to use drawtype liquid on non-liquid nodes?

by Wuzzy » Wed Nov 23, 2016 21:26

Hey, I wonder whether it is possible to use the liquid drawtype on non-liquid nodes. And if yes, how.
Or are there certain restrictions on using the liquid drawtype? E.g. do I have to set some extra fields in the node definition?

The reason I ask is because I want to use semi-transparency on a node, like on water in Minetest Game, only that my node is not water, but a cloud piece.

Thanks to those who will help me. :-)
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
Christian9
Member
 
Posts: 273
Joined: Fri Sep 19, 2014 20:29
In-game: Christian9

Re: How to use drawtype liquid on non-liquid nodes?

by Christian9 » Thu Nov 24, 2016 05:04

Try what this guy did

viewtopic.php?f=11&t=15913
"I dreamed of becoming a scientist, in general, and a paleontologist, in particular, ever since the Tyrannosaurus skeleton awed and scared me" - Steven Jay Gould

My Deviantart Page
My Website
 

User avatar
Christian9
Member
 
Posts: 273
Joined: Fri Sep 19, 2014 20:29
In-game: Christian9

Re: How to use drawtype liquid on non-liquid nodes?

by Christian9 » Tue Dec 13, 2016 20:59

OR Something much more easy and the result is better would be making the parts of the texture you want semi-transparent, semi-transparent in the .png its self and use the code use_texture_alpha = true, in the registry code. Hope this helps
"I dreamed of becoming a scientist, in general, and a paleontologist, in particular, ever since the Tyrannosaurus skeleton awed and scared me" - Steven Jay Gould

My Deviantart Page
My Website
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: How to use drawtype liquid on non-liquid nodes?

by Wuzzy » Tue Dec 13, 2016 22:30

Hmm, using a semi-transparent PNG might be an option, yes. But this feels like a hack.
What if I can't change the texture because I want to use the identical texture of another mod?
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
Christian9
Member
 
Posts: 273
Joined: Fri Sep 19, 2014 20:29
In-game: Christian9

Re: How to use drawtype liquid on non-liquid nodes?

by Christian9 » Tue Dec 13, 2016 23:08

Not sure, maybe use an image editor to modify transparency? Though I don't if that's a thing or not
"I dreamed of becoming a scientist, in general, and a paleontologist, in particular, ever since the Tyrannosaurus skeleton awed and scared me" - Steven Jay Gould

My Deviantart Page
My Website
 

User avatar
pithy
Member
 
Posts: 252
Joined: Wed Apr 13, 2016 17:34
GitHub: pithydon

Re: How to use drawtype liquid on non-liquid nodes?

by pithy » Wed Dec 14, 2016 00:26

If only node alpha worked on all drawtypes.
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 56 guests

cron