[colored_steel] Add colored_steel mod

- Fix #8
master
LeMagnesium 2015-09-16 15:28:01 +02:00
parent 647720b4cd
commit b99d5bd038
7 changed files with 101 additions and 0 deletions

View File

@ -0,0 +1,16 @@
License for Code
----------------
Copyright (C) 2015 cd2 (cdqwertz) <cdqwertz@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
http://www.gnu.org/licenses/lgpl-2.1.html
License for Media
-----------------
CC-BY-SA 3.0 UNPORTED. Created by cd2 (cdqwertz)

View File

@ -0,0 +1,15 @@
#colored_steel by cd2
#description
This mod adds some new steel blocks and ingots
#license
see LICENSE.txt
#how to install it?
unzip the folder and copy it into the subfolder mods in your minetest folder.
for help see http://wiki.minetest.com/wiki/Installing_Mods
#bugs
report bugs in the forum

View File

@ -0,0 +1,2 @@
default
dye

View File

@ -0,0 +1 @@
This mod adds some new steel blocks and ingots

View File

@ -0,0 +1,66 @@
colored_steel = {}
function colored_steel.register_steel(color)
minetest.register_node("colored_steel:block_"..color, {
description = color .. " Steel Block",
tiles = {"default_steel_block.png^[colorize:"..color..":100"},
is_ground_content = false,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("colored_steel:glowing_block_"..color, {
description = color .. " Steel Block (GLOWING)",
tiles = {"default_steel_block.png^[colorize:"..color..":100^colored_steel_glowing.png"},
is_ground_content = false,
light_source = 14,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("colored_steel:steel_ingot_"..color, {
description = color.." Steel Ingot",
inventory_image = "default_steel_ingot.png^[colorize:"..color..":100",
})
minetest.register_craft({
output = "colored_steel:block_"..color,
recipe = {
{"colored_steel:steel_ingot_"..color, "colored_steel:steel_ingot_"..color, "colored_steel:steel_ingot_"..color},
{"colored_steel:steel_ingot_"..color, "colored_steel:steel_ingot_"..color, "colored_steel:steel_ingot_"..color},
{"colored_steel:steel_ingot_"..color, "colored_steel:steel_ingot_"..color, "colored_steel:steel_ingot_"..color},
}
})
minetest.register_craft({
output = "colored_steel:steel_ingot_"..color.." 9",
recipe = {
{"colored_steel:block_"..color},
}
})
minetest.register_craft({
output = "colored_steel:steel_ingot_"..color.." 2",
recipe = {
{"default:steel_ingot", "dye:" .. color},
}
})
minetest.register_craft({
output = "colored_steel:glowing_block_"..color.." 9",
recipe = {
{"colored_steel:block_"..color, "default:mese"},
}
})
end
colored_steel.register_steel("green")
colored_steel.register_steel("cyan")
colored_steel.register_steel("red")
colored_steel.register_steel("black")
colored_steel.register_steel("yellow")
colored_steel.register_steel("blue")
colored_steel.register_steel("magenta")
colored_steel.register_steel("lime")

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

View File

@ -19,6 +19,7 @@ load_mod_cavestuff = true
load_mod_chatplus = true
load_mod_christmas_craft = true
load_mod_clams = true
load_mod_colored_steel = true
load_mod_coloredwood = true
load_mod_colouredstonebricks = true
load_mod_columnia = true