Mod original

master
Jat 2012-11-09 18:43:49 +01:00
parent 138b9195ae
commit ebe70ba316
14 changed files with 224 additions and 4 deletions

View File

@ -1,4 +1,34 @@
steel
=====
Minetest mod
Readme/license Steel
=====
Steel adds a range of steel materials that are recyclable to minetest. working version is 4.0dev-20120603
recipes can be found in the included image
the references for /giveme steel:... are:
plate_hard
plate_soft
plate_rusted
grate_hard
grate_soft
strut
roofing
to recycle simply craft anything into scrap, and turn the scrap into an iron lump
licenses are:
Code: GPL v2
textures: CC-BY-SA
everything by
minetesting (João Matos)
Update by
Jat

1
depends.txt Normal file
View File

@ -0,0 +1 @@
default

189
init.lua Normal file
View File

@ -0,0 +1,189 @@
minetest.register_node("steel:plate_soft", {
description = "soft steel plate",
tile_images = {"steelplatesoft.png"},
is_ground_content = true,
groups = {cracky=2},
})
minetest.register_node("steel:plate_hard", {
description = "hardened steel plate",
tile_images = {"steelplatehard.png"},
is_ground_content = true,
groups = {cracky=1},
})
minetest.register_node("steel:plate_rusted", {
description = "rusted steel plate",
tile_images = {"steel_rusted.png"},
is_ground_content = true,
groups = {cracky=1,choppy=1},
})
minetest.register_node("steel:strut", {
drawtype = "glasslike",
description = "strut",
tile_images = {"strut.png"},
is_ground_content = true,
paramtype= "light",
groups = {choppy=1,cracky=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("steel:grate_soft", {
description = "soft Steel Grate",
drawtype = "fencelike",
tile_images = {"worldgratesoft.png"},
inventory_image = "gratesoft.png",
wield_image = "gratesoft.png",
paramtype = "light",
is_ground_content = true,
selection_box = {
type = "fixed",
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
},
groups = {cracky=2,choppy=2},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("steel:grate_hard", {
description = "hardened Steel Grate",
drawtype = "fencelike",
tile_images = {"worldgratehard.png"},
inventory_image = "gratehard.png",
wield_image = "gratehard.png",
paramtype = "light",
is_ground_content = true,
selection_box = {
type = "fixed",
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
},
groups = {cracky=1,choppy=1},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("steel:roofing", {
description = "corrugated steel roofing",
drawtype = "raillike",
tile_images = {"corrugated_steel.png", "corrugated_steel.png", "corrugated_steel.png", "corrugated_steel.png"},
inventory_image = "corrugated_steel.png",
wield_image = "corrugated_steel.png",
paramtype = "light",
is_ground_content = true,
walkable = false,
selection_box = {
type = "fixed",
--fixed = <default>
},
groups = {bendy=2,snappy=1,dig_immediate=2},
})
--steel scrap are only used to recover ingots
minetest.register_craftitem("steel:scrap", {
description = "steel scraps",
inventory_image = "scrap.png",
})
--recipes
minetest.register_craft({
output = 'steel:plate_soft 2',
recipe = {
{'default:steel_ingot', 'default:steel_ingot'},
{'default:steel_ingot', 'default:steel_ingot'},
}
})
minetest.register_craft({
type = "cooking",
output = "steel:plate_hard",
recipe = "steel:plate_soft",
})
minetest.register_craft({
output = 'steel:grate_soft 3',
recipe = {
{'default:steel_ingot', '', 'default:steel_ingot'},
{'default:steel_ingot', '', 'default:steel_ingot'},
}
})
minetest.register_craft({
type = "cooking",
output = "steel:grate_hard",
recipe = "steel:grate_soft",
})
minetest.register_craft({
output = 'steel:strut 5',
recipe = {
{'default:steel_ingot', '', 'default:steel_ingot'},
{'', 'default:steel_ingot', ''},
{'default:steel_ingot', '', 'default:steel_ingot'},
}
})
minetest.register_craft({
output = 'steel:roofing 6',
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
}
})
--remelting recipes
minetest.register_craft({
output = 'steel:scrap 2',
recipe = {
{'steel:strut'},
}
})
minetest.register_craft({
output = 'steel:scrap 2',
recipe = {
{'steel:grate_soft'},
}
})
minetest.register_craft({
output = 'steel:scrap 2',
recipe = {
{'steel:grate_hard'},
}
})
minetest.register_craft({
output = 'steel:scrap',
recipe = {
{'steel:roofing'},
}
})
minetest.register_craft({
output = 'steel:scrap 4',
recipe = {
{'steel:plate_soft'},
}
})
minetest.register_craft({
output = 'steel:scrap 4',
recipe = {
{'steel:plate_hard'},
}
})
minetest.register_craft({
output = 'default:iron_lump',
recipe = {
{'steel:scrap', 'steel:scrap'},
}
})

BIN
recipes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

BIN
textures/gratehard.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 B

BIN
textures/gratesoft.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

BIN
textures/scrap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 B

BIN
textures/steel_rusted.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 785 B

BIN
textures/steelplatehard.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
textures/steelplatesoft.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
textures/strut.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

BIN
textures/worldgratehard.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
textures/worldgratesoft.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B