___________________________________________________________________________________________________
Download
Mod adding 323 coloured nodes. Craft not added, useful only for creative mod.
This is kind of challenge to make as small a mod as possible. In result all we have is 9 lines.
Code: Select all
for i = 1,323 do
local tex = "323_palette.png^[sheet:17x19:" .. (i - 1) % 17 .. "," .. math.floor((i - 1) / 17)
minetest.register_node("bakedclayx:" .. i, {
description = "Baked Clay ".. i,
tiles = {tex.."^mask.png"},
groups = {cracky=3, bakedclay=1},
sounds = default.node_sound_stone_defaults()
})
end