Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Colored bricks that take on the color of dye reagent?  (Read 683 times)

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Colored bricks that take on the color of dye reagent?
« on: January 10, 2013, 05:34:48 pm »

Any ideas for whether is it possible to make a single reaction that takes sand or rocks + dye and outputs blocks that are the color of the dye?

I guess it is easy enough to brute force it with one reaction for each type of dye, but I'm wondering if it can be done elegantly with only one reaction.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Colored bricks that take on the color of dye reagent?
« Reply #1 on: January 10, 2013, 06:01:40 pm »

Yes. Material reaction products on the various dyes referring to "x dyed rock", where "x" is the color chosen. One reaction that takes blocks and dye, where the dye is B, makes a product that has the material "GET_MATERIAL_FROM_REAGENT:B:DYED_ROCK". You'll have to add the DYED_ROCK mat reaction product to each dye, of course.

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Colored bricks that take on the color of dye reagent?
« Reply #2 on: January 10, 2013, 06:13:13 pm »

Aha yes, thanks.  It seems that usually when something is just outside my grasp the answer is Material reaction products :)

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Colored bricks that take on the color of dye reagent?
« Reply #3 on: January 10, 2013, 09:53:58 pm »

Heh, I've just added this reaction to Genesis and you ask about it, what a coincidence. It happens! If you have any problems, ask and I will share the reaction.

I went with clay + specific dye though, because I don't want to force a player to use burrows to make bricks of the color they want.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Colored bricks that take on the color of dye reagent?
« Reply #4 on: January 10, 2013, 10:11:45 pm »

You could also have made them use stockpile linking :P

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Colored bricks that take on the color of dye reagent?
« Reply #5 on: January 10, 2013, 10:52:46 pm »

Yeah, but if you have a low amount of dyes, it's not relevant.

On a side note, you could use reactions with [REACTION_CLASS:DYE_COLOR] to make them easy to control and to reduce the amount of options if you have different dyes with the same color.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Colored bricks that take on the color of dye reagent?
« Reply #6 on: January 10, 2013, 10:54:49 pm »

Of course, you can do the same with HAS_MATERIAL_REACTION_PRODUCT:DYE_COLOR...

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Colored bricks that take on the color of dye reagent?
« Reply #7 on: January 10, 2013, 10:56:06 pm »

Of course, you can do the same with HAS_MATERIAL_REACTION_PRODUCT:DYE_COLOR...
If I understand it correctly, it would mean that you have to specify a material product for each dye. Rather than just a reaction class.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Colored bricks that take on the color of dye reagent?
« Reply #8 on: January 10, 2013, 10:57:22 pm »

Which is what I was suggesting in the first place!

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Colored bricks that take on the color of dye reagent?
« Reply #9 on: January 10, 2013, 11:49:13 pm »

I know, but I just like reaction classes more than specifying specific materials within dyes which may be changed and added etc.

Also you may want to use a dye for coloring of DIFFERENT stuff, which would make you to get into a problem with multiple material products. While you could just use a single reaction class with a dye color and use it everywhere. See what I mean?
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Colored bricks that take on the color of dye reagent?
« Reply #10 on: January 10, 2013, 11:59:18 pm »

3...2...1...
Spoiler: FIGHT (click to show/hide)

Anyway, shouldnt bricks not be glazed with dye to make them a different color ? improvements and such ? ^^
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Colored bricks that take on the color of dye reagent?
« Reply #11 on: January 11, 2013, 12:07:08 am »

Yeah, the proper way to do it is via glazing, but making a brick painter's workshop works too :D.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository