colors = {"white","black","blue","red"}
for i,color in ipairs( colors ) do
minetest.register_node("hardenedclay:hardened_clay_"..color, {
description = color.." Hardened Clay",
tiles = {"hardened_clay_"..color..".png"},
groups = {cracky=3},
})
end
Sokomine wrote:In order for this mod to be supported by the colormachine, it needs to follow some naming conventions. The colormachine expects the color name to be at a certain location. Right now, this mod here uses hardenedclay:COLOR_hardened_clay as a name for the nodes and COLOR_hardened_clay.png as the name for the textures. For usage with the colormachine, the naming schem would have to be hardenedclay:hardened_clay_COLOR for the nodes and hardened_clay_COLOR.png for the textures.
There are already some mods which do require quite a lot of workaround to get their names right. I don't want to add more to that. So please rename nodes and textures :-) At least the texture names ought to be no problem at all.
You can also use a loop to define all the nodes, i.e.: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
colors = {"white","black","blue","red"}
for i,color in ipairs( colors ) do
minetest.register_node("hardenedclay:hardened_clay_"..color, {
description = color.." Hardened Clay",
tiles = {"hardened_clay_"..color..".png"},
groups = {cracky=3},
})
end
Please stick either to the color names wool has or to the color names unifieddyes uses (looks more like the wool colors).
VanessaE wrote:More updates over the past month:
2014-02-15: Added support for Nore/sfan5's MG mod.
2014-02-15: Re-rendered basalt and also made it darker (I'm still not happy with it :-/ ).
2014-02-11: "disable" the texture extrude effect on the wieldhand by applying a 25% alpha along the right side of the hand (to the edge of the image). Thanks to gsmanners and MichaelRpdx for the tip!
2014-01-29: Re-based homedecor/signs_lib's sign-on-fencepost textures on current wood texture.
2014-01-23: Added default snowball.
2014-01-22: Added shrubbery textures for gloopblocks.
2014-01-19: Flowing lava texture for Nostalgia game, probably affects 0.3.x/-classic also?
2014-01-15: Much-improved quality of default leaves, and got rid of that damn blue edging finally!
2014-01-15: Improved quality of breaking animation's edges (using alpha blending and re-rendered from original source file).
Inocudom: I'll add support for the hardened clay mod after he fixes his texture filenames.
Ferdi Napoli wrote:Thank you chain for this mod!
Sokomine wrote:In order for this mod to be supported by the colormachine, it needs to follow some naming conventions. The colormachine expects the color name to be at a certain location. Right now, this mod here uses hardenedclay:COLOR_hardened_clay as a name for the nodes and COLOR_hardened_clay.png as the name for the textures. For usage with the colormachine, the naming schem would have to be hardenedclay:hardened_clay_COLOR for the nodes and hardened_clay_COLOR.png for the textures.
There are already some mods which do require quite a lot of workaround to get their names right. I don't want to add more to that. So please rename nodes and textures :-) At least the texture names ought to be no problem at all.
You can also use a loop to define all the nodes, i.e.: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
colors = {"white","black","blue","red"}
for i,color in ipairs( colors ) do
minetest.register_node("hardenedclay:hardened_clay_"..color, {
description = color.." Hardened Clay",
tiles = {"hardened_clay_"..color..".png"},
groups = {cracky=3},
})
end
Please stick either to the color names wool has or to the color names unifieddyes uses (looks more like the wool colors).
ShadowNinja wrote:The color machine should not depend on texture names, it should use the texture from minetest.registered_nodes[node_name].tiles[1].
ShadowNinja wrote:That said, I've changed the texture names to match the mod. You may have trouble with hardenedclay:hardened_clay using the hardenedclay_regular.png texture file though. (Oh, you also shouldn't depend on the file being a png file, if you do)
Users browsing this forum: No registered users and 13 guests