Page 1 of 1
[MOD] [in progress] Dyes

Posted:
Wed Feb 01, 2012 10:12
by neko259
I'm going to make a mod with dyes for wool and others. Before start, I have some questions:
@sapier: please tell me when you finish wool texture so that I can use it to make a coloured one.
@kahrl: can I register water-like liquids of different color? It would be nice to have coloured waterfalls and fountains :)
If anybody has more ideas for this, please tell me now.
Repository:
https://bitbucket.org/neko259/minetest-dyes/overview

Posted:
Wed Feb 01, 2012 10:24
by kahrl
For the liquids, register them like the default mod registers water_source and water_flowing (or lava_source and lava_flowing), and change the texture. To make buckets for the new liquids, call bucket.register_liquid (I don't have time right now but I can write some documentation about this function later).
Are you planning to make at least red, green, yellow, blue and orange dye? I have an idea that would benefit from them :)

Posted:
Wed Feb 01, 2012 10:28
by kahrl
Another thing to note is that the new liquids won't interact with the old liquids. So for example, green water won't flow into normal water nodes and change its color, it will treat it as a solid wall. You can try hacking around with ABMs, but it won't be perfect.

Posted:
Wed Feb 01, 2012 10:39
by neko259
kahrl wrote:Are you planning to make at least red, green, yellow, blue and orange dye? I have an idea that would benefit from them :)
I can make dyes from existing flowers and cactus for now. If some colors are missing, it is necessary to make new flower textures.
kahrl wrote:Another thing to note is that the new liquids won't interact with the old liquids.
That's normal for now. Maybe later I'll make them form some special node like in obsidian mod. But I don't have any ideas of what it could be.

Posted:
Wed Feb 01, 2012 11:03
by neko259
Also, I would appreciate if sapier adds wool of all these colors (without crafting recipes) to his animalmaterials mod. It's a bit uncomfortable to use loops when every color of wool is registered as "dye:wool_color" and white one is "animalmaterials:wool_color".

Posted:
Wed Feb 01, 2012 11:23
by neko259
@kahrl: I use register_liquid function to register liquids and buckets. But I can't understand how it gets textures and descriptions for tooltips.

Posted:
Wed Feb 01, 2012 13:20
by Staffs
This mod sounds like it going to be fun :D

Posted:
Wed Feb 01, 2012 13:56
by redcrab
kahrl wrote:For the liquids, register them like the default mod registers water_source and water_flowing (or lava_source and lava_flowing), and change the texture. To make buckets for the new liquids, call bucket.register_liquid (I don't have time right now but I can write some documentation about this function later).
Are you planning to make at least red, green, yellow, blue and orange dye? I have an idea that would benefit from them :)
automatic alpha blending ready (water alike) ?

Posted:
Wed Feb 01, 2012 14:01
by neko259
automatic alpha blending ready (water alike) ?
I think it depends on the texture. But I can't understand where to define it for now. I would appreciate if kahrl show me what to change (I've put a link to my repo).

Posted:
Wed Feb 01, 2012 14:10
by redcrab
neko259 wrote:automatic alpha blending ready (water alike) ?
I think it depends on the texture. But I can't understand where to define it for now. I would appreciate if kahrl show me what to change (I've put a link to my repo).
Currently transparent water is managed by the client ... it is an option at login screen ... just applied on water not on lava ... may be a setting water alike in node definition ... Or does the half alpha blend texture is enough ?