Page 1 of 3

[Mod] Unified Bricks [20120716] [unifiedbricks]

Posted: Mon Jul 16, 2012 04:33
by wowiamdiamonds
What it sounds like. Adds colorization of default brick blocks and default clay blocks, as well as craftable, colorable "multicolor" brick blocks, using Unified Dyes.

License of code: WTFPL
License of textures: WTFPL
Depends: Minetest 0.4.16 or newer, a corresponding minetest_game, and unifieddyes

Download: https://github.com/minetest-mods/unifie ... master.zip
... or browse the code: https://github.com/minetest-mods/unifiedbricks.git

I strongly recommend either VanessaE's photorealistic texture pack or the Misa texture pack for minetest, by Calinou, both of which support unifiedbricks with stunning textures.

Screenshots:

Image

Image

Coloring:

Simply place a standard, default brick block or a standard default block of clay along with one portion of any dye color into the crafting grid, just as you would do with virtually any colored item. Or, or place some bricks/clay blocks, then use the Unified Dyes airbrush on them. For "multicolor" brick blocks seen at the bottom of the first screenshot, first craft a basic white/grey one as below:

Light-shaded - one default brick block + two white + grey dye
Medium-shaded - one default brick block + white + grey + dark grey dye
Dark-shaded - one default brick block + grey + two dark dark grey dye

...then you can colorize it by placing it in the crafting grid along with any one new dye color, or use the airbrush.

This mod does not yet support the various shapes created by Moreblocks' circular saw, nor the ones created by the default stairs mod, nor any bricks created by other mods.

Posted: Mon Jul 16, 2012 06:09
by cornernote
awesome! ... but this will crash my game because i already have too many items.

we REALLY need to get the item limit sorted out

Posted: Mon Jul 16, 2012 06:22
by VanessaE
Can I be the first to say... .holy shit! :-)

Posted: Mon Jul 16, 2012 09:56
by mauvebic
Take it from someone who's created hundreds of nodes - its no use having so many. Its nice to have a node for every shade, but how much FPS you willing to sacrifice for twelve shades of green?

Posted: Mon Jul 16, 2012 10:22
by cornernote
i would be happier with a smaller set of colors. maybe 12 or 24

Posted: Tue Jul 17, 2012 01:43
by VanessaE
It isn't necessary, of course, to use all colors in the unifieddyes mod, though it's certainly a plus. Also, new update today, adds "light" shades for a total of 89 colors, and the gentextures.sh script now supports adding an overlay image, so you can for example make the mortar stay light grey or whatever while the bricks' colors rotate as usual.

Posted: Tue Jul 17, 2012 03:01
by wowiamdiamonds
Added settings to the mod. Now you can disable certain colors, darkness levels, saturation levels, or types (clay, bricks...). Should be helpful, especially because there are... 89*4 = 356 craftitems and nodes combined. This is temporary, because I want to move the settings into a separate config file.

Posted: Tue Jul 24, 2012 03:55
by cornernote
how do you make colored clay lumps? seems to be no recipe for that which means I cant make anything else =(

Posted: Tue Jul 24, 2012 06:22
by wowiamdiamonds
That is a problem, isn't it...

I would like for colored clay to spawn naturally, but I will make default clay colorable for the moment.

Posted: Thu Jul 26, 2012 02:28
by cornernote
Nice idea... I didnt think of them spawning. That would be cool, but clay doesnt spawn ingame. Would you make normal clay spawn too?

Eg, near sand and water it sometimes turns into clay.

Would colors be more likely next to each other, or would it be kind of random?

Also, I noticed via my craftguide and wiki that some items are missing:
http://cornernote.net/minetest/wiki/crafts.php (scroll down to unifiedbricks)

Eg,
unifiedbricks:claydark_green

should probably be:
unifiedbricks:clay_dark_green

Posted: Thu Jul 26, 2012 06:25
by wowiamdiamonds
I never noticed that default clay doesn't spawn... well shoot, that's what I get for cheating. I guess this is a trend... me cutting corners in code has done all sorts of wonders for me. Thank you for finding those mistakes ^^

Personally, I would like for all colors of clay to spawn, with similar colors sometimes spawning in the same pocket (red, light_red, red_s50, and medium_red_s50 could all be found in the same clay bed). I want to do that, but I figure it would be better to focus on primary and secondary color spawns, because you can actually use those to create more colors... but that would look weird.

I'll spawn default clay for now, and I might add support for mixing colors with previously darkened/lightened/saturated colors. After that, I can spawn more natural saturated clay colors and still let players play with the mod.

EDIT: default clay already spawns, unless that's been changed recently.
http://i.imgur.com/EStNN.png

Also, committing changes: fixed texture names, bad crafting recipes, and dark/light/saturated greyscale objects.

Posted: Thu Jul 26, 2012 11:29
by cornernote
It "spawns", but it never "respawns". Sorry I should have been more clear. Basically it never grows back. I would like if over time it did grow back.

Your color ideas sound awesome! Can't wait to see the next release.

Thanks for the fixes too!

Posted: Fri Jul 27, 2012 23:44
by wowiamdiamonds
Updated: now uses vessels and bucket so that emptied dye bottles/paint buckets are returned (unless you craft an entire stack of dyes, you only receive one of each replaced item, but I think this is a problem with minetest).

Posted: Wed Aug 01, 2012 05:10
by wowiamdiamonds
Updated: now includes light, medium, and dark multicolor bricks.

Posted: Wed Aug 01, 2012 15:34
by mauvebic
cornernote wrote:It "spawns", but it never "respawns". Sorry I should have been more clear. Basically it never grows back. I would like if over time it did grow back.
We need clay pits like caesar 3/4 :-)

Posted: Sun Jun 30, 2013 01:32
by Inocudom
This mod is used on VanessaE's Creative Server, but it looks like it isn't supported anymore. There are bug fixes that need to be done (when colored bricks are dug up, they do not appear in the inventory,) and the textures could take up less space by using the .png cruncher. Also, there could be a small chance of the colored clay spawning in the world.

Posted: Sun Jun 30, 2013 06:35
by VanessaE
I once tried to look into fixing this mod but I just couldn't make sense of the code.

Posted: Sun Jun 30, 2013 12:28
by Inocudom
Like with colored_woods and stained_glass, a coloring machine could be used for this mod.

Posted: Sun Jun 30, 2013 17:02
by VanessaE
I suck at using formspecs or I'd have made something like that for Coloredwoods actually. :D

Posted: Sun Jun 30, 2013 17:56
by Inocudom
Maybe Sokomine would know what to do here? She was the original creator of the circular saw, which is now part of moreblocks.

Posted: Sun Jun 30, 2013 18:08
by Sokomine
Such a formspec might be very useful for selecting colors, yes. Someone else asked for a similar formspec/functionality to select one option out of several. The question with the painting machine is: How would it be supposed to work? Insert unpainted material, klick on desired color, get the painted material? Or should it ask for the necessary indigrents for that particular color (i.e. color pigments)? It could also store 3 basic pigments and create all the necessary colors out of them.

Posted: Sun Jun 30, 2013 18:57
by VanessaE
The way I see it working is you build this hypothetical machine, place it, and then insert the material you want to colorize into one slot, and a few stacks of dyes of various dyes into several other slots so dedicated. Select how many colored objects you want, then click a color swatch (which should be a formspec button, not an inventory slot). The machine takes from its inventory whatever it needs to to make as many of the colored object as you requested (or as many as it can if less).

If it's at all possible, the machine should adapt its available palette choices according to the material being inserted, so that for example coloredwoods are given fewer choices than unified bricks, which gets fewer yet than stained glass.

Obviously the machine should behave as if it's "locked" when it has stuff in it, so that you can safely leave it alone still filled with dyes, and come back to it later when needed.

Posted: Tue Jul 23, 2013 23:38
by Sokomine
The finished color machine can be found here: colormachine / spray booth. Just wanted it linked to this thread because part of the relevant discussion happened here - and of course the mod is very useful for unified bricks.

Posted: Wed Jul 24, 2013 01:00
by Inocudom
Sokomine wrote:The finished color machine can be found here: colormachine / spray booth. Just wanted it linked to this thread because part of the relevant discussion happened here - and of course the mod is very useful for unified bricks.
For each of the mods that are compatible with the spray booth, their colorable nodes could be taken out of the creative inventory if the device is detected.

Posted: Wed Jul 24, 2013 03:39
by VanessaE
I've got a fork of unified bricks that has been so modified:

https://github.com/VanessaE/unifiedbric ... its/master