Page 1 of 1

[Mod] Paint roller [paint_roller]

PostPosted: Fri Apr 25, 2014 12:37
by Krock
Image
Put the dye to use one slot on the right of the paint roller in your hud bar.
Punch wool or any of the supported nodes to give it a new color.

+ API


Craft recipe:
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
Wool Wool  Steel
     Steel
     Steel

Depends: wool, coloredwood?
License: CC0
Download: Master *.zip | Browse code

Re: [Mod] Paint roller [paint_roller]

PostPosted: Fri Apr 25, 2014 14:07
by philipbenr
I like this one better than the spray booth mod. Nice going.

Re: [Mod] Paint roller [paint_roller]

PostPosted: Fri Apr 25, 2014 18:49
by lightonflux
Great mod, nice that you don't have a separate slot for dye or recipe but just the default action bar.

It would be awesome if the tool changes the color, so the tool shows which color is selected.

Re: [Mod] Paint roller [paint_roller]

PostPosted: Fri Apr 25, 2014 21:03
by Kilarin
This looks really cool! I noticed that you are checking the idx<7 to ensure it isn't past the end of the action bar. It was pointed out to me that some mods change the length of the default action bar. After some testing, I decided that checking the index wasn't really necessary. For BridgeTool I left it out, and I'll probably take it out of ExplorerTool on the next update. If you don't check the index, the worst thing that can happen is that the user puts the item in the very last action slot, and if they do so, the logic just wraps around and grabs whatever is on the first inventory square of the row below. Which is intuitive, even if not ideal. And that way, there is no problem with compatibility with any inventory mods that modify the width of the action bar.

Not very important, just an idea to consider. Looks like a GREAT mod, hope to play with it soon!

Re: [Mod] Paint roller [paint_roller]

PostPosted: Mon Apr 28, 2014 15:39
by Krock
*SUPERDUPERMEGABUMP*

The
"Pain Troller" - Calinou
...has returned with a simple coloredwood support.

Re: [Mod] Paint roller [paint_roller]

PostPosted: Wed Jun 11, 2014 04:14
by Wuzzy
Hi! I happily can announce now the current development snapshot of Color Cubes has optional Paint Roller compatibility!

It took me a while to get the color names right; it seems many color names didn’t work as expected or worked at all … Maybe this is just me.

Re: [Mod] Paint roller [paint_roller]

PostPosted: Fri Jun 13, 2014 13:10
by Krock
Wuzzy wrote:Hi! I happily can announce now the current development snapshot of Color Cubes has optional Paint Roller compatibility!

It took me a while to get the color names right; it seems many color names didn’t work as expected or worked at all … Maybe this is just me.

Thanks for adding support for this mod!
I know that problem, where it doesn't paint them correctly, cause for this is...

http://repo.or.cz/w/minetest_colorcubes ... :/init.lua
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
", "excolor_green", "unicolor_dark_green", "


https://github.com/BlockMen/minetest_ne ... e/init.lua
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
{"dark_green", "Dark green dye",{dye=1, basecolor_green=1,   excolor_green=1,     unicolor_dark_green=1}},


The paint roller does not know if it should take the "excolor_green" or "unicolor_dark_green" when using dark green dye. To solve this problem, you need to use the "unicolor" groups (if there are 2x green as example)

Re: [Mod] Paint roller [paint_roller]

PostPosted: Wed Sep 17, 2014 22:00
by Sokomine
As this seems to be a very nice mod, I've added a version of it to my colormachine mod. The colormachine already is mostly about figuring out which block fits to which color, so it can use quite a lot of code that exists already.

As there are sometimes multiple possible ways of painting a block (coloredbricks, blox etc.), applying the same paint multiple times cycles through those options.

The paint roller in my colormachine mod was formed after Krocks idea here. It also shares texture, craft receipe and basic functionality, although its code is a bit diffrent.

Re: [Mod] Paint roller [paint_roller]

PostPosted: Thu Sep 18, 2014 13:57
by Wuzzy
Doesn’t that create an incompatibility between the Color Machine mod and this Paint roller mod?

Re: [Mod] Paint roller [paint_roller]

PostPosted: Thu Sep 18, 2014 14:21
by Sokomine
Wuzzy wrote:Doesn’t that create an incompatibility between the Color Machine mod and this Paint roller mod?

That's right, it does. The colormachine mod contains a version of the paint roller. I first intended to change this mod here so that it may use the colormachines' functions, which would also have been possible, but in the end it seemed more plain to integrate the paint roller.