colored things adding func moved to "dye",stone_bricks moved to stone_brick mod, colored stone bricks added
|
@ -37,80 +37,17 @@ minetest.register_craft({
|
|||
{'flowers:cotton','flowers:cotton'},
|
||||
}
|
||||
})
|
||||
|
||||
local addCBrecipe = function(new, first, second)
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{first, "dye:" .. second},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{"dye:".. second, "dye:" .. first},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{first},
|
||||
{"dye:".. second},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{"dye:".. second},
|
||||
{first},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{"dye:".. second,""},
|
||||
{"",first},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{first,""},
|
||||
{"","dye:".. second},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{"","dye:".. second},
|
||||
{first,""},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{"",first},
|
||||
{"dye:".. second,""},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
for color, name in pairs(CB_NAMES_COLORS) do
|
||||
minetest.register_node("cotton_blocks:" .. color, {
|
||||
description = name,
|
||||
tile_images = {"cb_" .. color .. ".png"},
|
||||
inventory_image = minetest.inventorycube("cb_" .. color .. ".png"),
|
||||
tile_images = "cb_" .. color .. ".png",
|
||||
inventory_image = "cb_" .. color .. ".png",
|
||||
is_ground_content = true,
|
||||
groups = {snappy=3, cotton=1},
|
||||
sounds = default.node_sound_cotton_defaults(),
|
||||
stack_max = 128,
|
||||
})
|
||||
addCBrecipe("cotton_blocks:" .. color,"cotton_blocks:white",color)
|
||||
addCBrecipe("cotton_blocks:white","cotton_blocks:" .. color,"white")
|
||||
dye.add_dye_recipe("cotton_blocks:" .. color,"cotton_blocks:white",color)
|
||||
dye.add_dye_recipe("cotton_blocks:white","cotton_blocks:" .. color,"white")
|
||||
end
|
||||
|
|
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 188 B |
|
@ -1,5 +1,73 @@
|
|||
--Colors mod for RTMMP
|
||||
|
||||
|
||||
-- Dye table for public funcs
|
||||
dye = {}
|
||||
|
||||
dye.add_dye_recipe = function(new, first, second)
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{first, "dye:" .. second},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{"dye:".. second, "dye:" .. first},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{first},
|
||||
{"dye:".. second},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{"dye:".. second},
|
||||
{first},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{"dye:".. second,""},
|
||||
{"",first},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{first,""},
|
||||
{"","dye:".. second},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{"","dye:".. second},
|
||||
{first,""},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = new,
|
||||
recipe = {
|
||||
{"",first},
|
||||
{"dye:".. second,""},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
--Public colors for mods:
|
||||
DYE_COLORS = {
|
||||
'white',
|
||||
|
|
|
@ -1,22 +1,3 @@
|
|||
-- stone brick
|
||||
minetest.register_craft({
|
||||
output = 'node "moarcraft_rtmmp:stone_brick" 4',
|
||||
recipe = {
|
||||
{'node "default:stone"','node "default:stone"'},
|
||||
{'node "default:stone"','node "default:stone"'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("moarcraft_rtmmp:stone_brick", {
|
||||
tile_images = {"default_stone.png^moarcraft_rtmmp_stone_brick.png"},
|
||||
paramtype = "mineral",
|
||||
is_ground_content = true,
|
||||
often_contains_mineral = true, -- Texture atlas hint
|
||||
groups = {cracky=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
stack_max = 128,
|
||||
})
|
||||
|
||||
-- steel block fix
|
||||
minetest.register_craft({
|
||||
output = 'default:steel_ingot 9',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
dye
|
|
@ -0,0 +1,71 @@
|
|||
-- stone bricks
|
||||
|
||||
local SB_NAMES_COLORS = {
|
||||
["white"] = "White stone brick",
|
||||
["light_gray"] = "Light-gray stone brick",
|
||||
["gray"] = "Gray stone brick",
|
||||
["black"] = "Black stone brick",
|
||||
["red"] = "Red stone brick",
|
||||
["orange"] = "Orange stone brick",
|
||||
["yellow"] = "Yellow stone brick",
|
||||
["lime"] = "Lime stone brick",
|
||||
["green"] = "Green stone brick",
|
||||
["light_blue"] = "Light-blue stone brick",
|
||||
["cyan"] = "Cyan stone brick",
|
||||
["blue"] = "Blue stone brick",
|
||||
["purple"] = "Purple stone brick",
|
||||
["magenta"] = "Magenta stone brick",
|
||||
["pink"] = "Pink stone brick",
|
||||
["brown"] = "Brown stone brick",
|
||||
}
|
||||
|
||||
|
||||
-- Stone brick
|
||||
minetest.register_craft({
|
||||
output = 'node "stone_brick:stone_brick" 4',
|
||||
recipe = {
|
||||
{'node "default:stone"','node "default:stone"'},
|
||||
{'node "default:stone"','node "default:stone"'},
|
||||
}
|
||||
})
|
||||
minetest.register_node("stone_brick:stone_brick", {
|
||||
tile_images = {"default_stone.png^stone_brick_stone_brick.png"},
|
||||
paramtype = "mineral",
|
||||
is_ground_content = true,
|
||||
groups = {cracky=2, level=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
stack_max = 128,
|
||||
})
|
||||
|
||||
-- Desert stone brick
|
||||
minetest.register_craft({
|
||||
output = "stone_brick:desert_stone_brick 4",
|
||||
recipe = {
|
||||
{"default:desert_stone","default:desert_stone"},
|
||||
{"default:desert_stone","default:desert_stone"},
|
||||
}
|
||||
})
|
||||
minetest.register_node("stone_brick:desert_stone_brick", {
|
||||
tile_images = {"stone_brick_desert_stone.png"},
|
||||
paramtype = "mineral",
|
||||
is_ground_content = true,
|
||||
groups = {cracky=2, level=2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
stack_max = 128,
|
||||
})
|
||||
|
||||
-- Colored bricks:
|
||||
for color, name in pairs(SB_NAMES_COLORS) do
|
||||
local texture = "stone_brick_" .. color .. ".png"
|
||||
minetest.register_node("stone_brick:" .. color .. "_stone_brick", {
|
||||
description = name,
|
||||
paramtype = "mineral",
|
||||
tile_images = {texture},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=2, level=2},
|
||||
sounds = default.node_sound_cotton_defaults(),
|
||||
stack_max = 128,
|
||||
})
|
||||
dye.add_dye_recipe("stone_brick:" .. color .. "_stone_brick","stone_brick:stone_brick",color)
|
||||
dye.add_dye_recipe("stone_brick:white","stone_brick:" .. color .. "_stone_brick","white")
|
||||
end
|
After Width: | Height: | Size: 659 B |
After Width: | Height: | Size: 630 B |
After Width: | Height: | Size: 667 B |
After Width: | Height: | Size: 715 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 610 B |
After Width: | Height: | Size: 696 B |
After Width: | Height: | Size: 720 B |
After Width: | Height: | Size: 696 B |
After Width: | Height: | Size: 671 B |
After Width: | Height: | Size: 708 B |
After Width: | Height: | Size: 745 B |
After Width: | Height: | Size: 754 B |
After Width: | Height: | Size: 679 B |
After Width: | Height: | Size: 684 B |
After Width: | Height: | Size: 450 B |
After Width: | Height: | Size: 477 B |
After Width: | Height: | Size: 631 B |