[Mod] Baked Clay X [bakedclayx]

Post Reply
User avatar
bosapara
Member
Posts: 611
Joined: Fri Apr 07, 2017 08:49

[Mod] Baked Clay X [bakedclayx]

by bosapara » Post

Baked Clay X
___________________________________________________________________________________________________

Image 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
Image
Attachments
bakedclayx.zip
(3.95 KiB) Downloaded 6 times
screenshot_20200829_223513.png
(139 KiB) Not downloaded yet

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests