1
0
Fork 0

Rename mod: hardened_clay → mcl_colorblocks

This commit is contained in:
Wuzzy 2017-02-11 23:17:16 +01:00
parent 296520c06c
commit 2cb1f76c25
21 changed files with 12 additions and 10 deletions

View File

@ -0,0 +1 @@
Adds blocks which can be colored, namely hardened clay.

View File

@ -1,7 +1,7 @@
local init = os.clock() local init = os.clock()
local clay = {} local block = {}
clay.dyes = { block.dyes = {
{"white", "White", "white"}, {"white", "White", "white"},
{"grey", "Grey", "dark_grey"}, {"grey", "Grey", "dark_grey"},
{"silver", "Light Gray", "grey"}, {"silver", "Light Gray", "grey"},
@ -20,7 +20,7 @@ clay.dyes = {
{"light_blue", "Light Blue", "lightblue"}, {"light_blue", "Light Blue", "lightblue"},
} }
minetest.register_node("hardened_clay:hardened_clay", { minetest.register_node("mcl_colorblocks:hardened_clay", {
description = "Hardened Clay", description = "Hardened Clay",
tiles = {"hardened_clay.png"}, tiles = {"hardened_clay.png"},
stack_max = 64, stack_max = 64,
@ -30,18 +30,18 @@ minetest.register_node("hardened_clay:hardened_clay", {
minetest.register_craft({ minetest.register_craft({
type = "cooking", type = "cooking",
output = "hardened_clay:hardened_clay", output = "mcl_colorblocks:hardened_clay",
recipe = "mcl_core:clay", recipe = "mcl_core:clay",
cooktime = 10, cooktime = 10,
}) })
for _, row in ipairs(clay.dyes) do for _, row in ipairs(block.dyes) do
local name = row[1] local name = row[1]
local desc = row[2] local desc = row[2]
local craft_color_group = row[3] local craft_color_group = row[3]
-- Node Definition -- Node Definition
minetest.register_node("hardened_clay:"..name, { minetest.register_node("mcl_colorblocks:hardened_clay_"..name, {
description = desc.." Hardened Clay", description = desc.." Hardened Clay",
tiles = {"hardened_clay_stained_"..name..".png"}, tiles = {"hardened_clay_stained_"..name..".png"},
groups = {cracky=3,hardened_clay=1,building_block=1}, groups = {cracky=3,hardened_clay=1,building_block=1},
@ -50,11 +50,11 @@ for _, row in ipairs(clay.dyes) do
}) })
if craft_color_group then if craft_color_group then
minetest.register_craft({ minetest.register_craft({
output = 'hardened_clay:'..name..' 8', output = 'mcl_colorblocks:'..name..' 8',
recipe = { recipe = {
{'hardened_clay:hardened_clay', 'hardened_clay:hardened_clay', 'hardened_clay:hardened_clay'}, {'mcl_colorblocks:hardened_clay', 'mcl_colorblocks:hardened_clay', 'mcl_colorblocks:hardened_clay'},
{'hardened_clay:hardened_clay', 'mcl_dye:'..craft_color_group, 'hardened_clay:hardened_clay'}, {'mcl_colorblocks:hardened_clay', 'mcl_dye:'..craft_color_group, 'mcl_colorblocks:hardened_clay'},
{'hardened_clay:hardened_clay', 'hardened_clay:hardened_clay', 'hardened_clay:hardened_clay'}, {'mcl_colorblocks:hardened_clay', 'mcl_colorblocks:hardened_clay', 'mcl_colorblocks:hardened_clay'},
}, },
}) })
end end

View File

@ -0,0 +1 @@
name = mcl_colorblocks

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 855 B

After

Width:  |  Height:  |  Size: 855 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB