[Mod] Paint roller [paint_roller]

User avatar
Krock
Developer
 
Posts: 4148
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

[Mod] Paint roller [paint_roller]

by Krock » Fri Apr 25, 2014 12:37

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:
Code: Select all
Wool Wool  Steel
     Steel
     Steel

Depends: wool, coloredwood?
License: CC0
Download: Master *.zip | Browse code
Last edited by Krock on Sun Sep 04, 2016 07:23, edited 6 times in total.
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
philipbenr
Member
 
Posts: 1688
Joined: Fri Jun 14, 2013 01:56
Location: United States
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi

Re: [Mod] Paint roller [paint_roller]

by philipbenr » Fri Apr 25, 2014 14:07

I like this one better than the spray booth mod. Nice going.
 

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
Location: Germany
In-game: lof

Re: [Mod] Paint roller [paint_roller]

by lightonflux » Fri Apr 25, 2014 18:49

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.
 

Kilarin
Member
 
Posts: 712
Joined: Mon Mar 10, 2014 00:36

Re: [Mod] Paint roller [paint_roller]

by Kilarin » Fri Apr 25, 2014 21:03

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!
 

User avatar
Krock
Developer
 
Posts: 4148
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod] Paint roller [paint_roller]

by Krock » Mon Apr 28, 2014 15:39

*SUPERDUPERMEGABUMP*

The
"Pain Troller" - Calinou
...has returned with a simple coloredwood support.
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

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

Re: [Mod] Paint roller [paint_roller]

by Wuzzy » Wed Jun 11, 2014 04:14

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.
 

User avatar
Krock
Developer
 
Posts: 4148
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod] Paint roller [paint_roller]

by Krock » Fri Jun 13, 2014 13:10

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
Code: Select all
", "excolor_green", "unicolor_dark_green", "


https://github.com/BlockMen/minetest_ne ... e/init.lua
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)
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

Sokomine
Member
 
Posts: 3616
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] Paint roller [paint_roller]

by Sokomine » Wed Sep 17, 2014 22:00

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.
A list of my mods can be found here.
 

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

Re: [Mod] Paint roller [paint_roller]

by Wuzzy » Thu Sep 18, 2014 13:57

Doesn’t that create an incompatibility between the Color Machine mod and this Paint roller mod?
 

Sokomine
Member
 
Posts: 3616
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] Paint roller [paint_roller]

by Sokomine » Thu Sep 18, 2014 14:21

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.
A list of my mods can be found here.
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 14 guests