1
0
mirror of https://github.com/adrido/darkage.git synced 2024-11-11 04:40:27 +01:00
darkage/building.lua

270 lines
7.3 KiB
Lua
Raw Normal View History

minetest.register_node("darkage:glass", {
description = "Medieval Glass",
drawtype = "glasslike",
tiles = {"darkage_glass.png"},
use_texture_alpha=true,
paramtype = "light",
sunlight_propagates = true,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_node("darkage:glow_glass", {
description = "Medieval Glow Glass",
drawtype = "glasslike",
tiles = {"darkage_glass.png"},
use_texture_alpha=true,
paramtype = "light",
sunlight_propagates = true,
light_source = default.LIGHT_MAX-1,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = 'darkage:glow_glass 1',
recipe = {
{'darkage:glass', '', ''},
{'default:torch', '', ''},
{'', '', ''},
}
})
2013-05-10 06:55:51 +02:00
minetest.register_craft({
output = 'darkage:glass 1',
recipe = {
{'darkage:glow_glass'},
}
})
minetest.register_craft({
output = 'darkage:glass 8',
recipe = {
{'default:glass', 'default:steel_ingot', 'default:glass'},
{'default:steel_ingot', 'default:glass', 'default:steel_ingot'},
{'default:glass', 'default:steel_ingot', 'default:glass'},
}
})
2012-10-25 23:33:20 +02:00
minetest.register_node("darkage:reinforced_chalk", {
description = "Reinforced Chalk",
tiles = {"darkage_chalk.png^darkage_reinforce.png"},
2012-10-25 23:33:20 +02:00
groups = {cracky=3},
sounds = default.node_sound_stone_defaults()
})
2016-06-12 07:52:55 +02:00
minetest.register_node("darkage:reinforced_chalk_right", {
description = "Reinforced Chalk",
tiles = {"darkage_chalk.png^darkage_reinforce_right.png"},
groups = {cracky=3},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("darkage:reinforced_chalk_left", {
description = "Reinforced Chalk",
tiles = {"darkage_chalk.png^darkage_reinforce_left.png"},
groups = {cracky=3},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("darkage:reinforced_chalk_arrow", {
description = "Reinforced Chalk Arrow \nHint: use the screwdriver to rotate.",
tiles = {"darkage_chalk.png" , "darkage_chalk.png" , --top ,down
"darkage_chalk.png^(darkage_reinforce_arrow.png^[transformR90)" , "darkage_chalk.png^(darkage_reinforce_arrow.png^[transformR270)" , --right, left
"darkage_chalk.png^(darkage_reinforce_arrow.png^[transformR180)" , "darkage_chalk.png^darkage_reinforce_arrow.png"}, -- front, back
paramtype2 = "facedir",
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = 'darkage:reinforced_chalk_arrow 4',
recipe = {
{'darkage:chalk_powder', 'group:stick', 'darkage:chalk_powder'},
{'group:stick', 'darkage:chalk_powder', 'group:stick'},
{'group:stick', 'darkage:chalk_powder', 'group:stick'},
}
})
2016-06-12 08:03:46 +02:00
minetest.register_node("darkage:reinforced_chalk_bars", {
2016-06-12 07:52:55 +02:00
description = "Chalk Bars",
tiles = {"darkage_chalk.png^darkage_bars.png"},
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
2016-06-12 08:03:46 +02:00
output = 'darkage:reinforced_chalk_bars 4',
2016-06-12 07:52:55 +02:00
recipe = {
{'group:stick', 'darkage:chalk_powder', 'group:stick'},
{'group:stick', 'darkage:chalk_powder', 'group:stick'},
{'group:stick', 'darkage:chalk_powder', 'group:stick'},
}
})
2012-10-25 23:33:20 +02:00
minetest.register_node("darkage:reinforced_wood", {
description = "Reinforced Wood",
tiles = {"default_wood.png^darkage_reinforce.png"},
2012-10-25 23:33:20 +02:00
groups = {snappy=2,choppy=3,oddly_breakable_by_hand=3,flammable=3},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("darkage:reinforced_wood_right", {
description = "Reinforced Wood Right",
2016-06-12 07:52:55 +02:00
tiles = {"default_wood.png^darkage_reinforce_right.png"},
2012-10-25 23:33:20 +02:00
groups = {snappy=2,choppy=3,oddly_breakable_by_hand=3,flammable=3},
sounds = default.node_sound_wood_defaults()
})
minetest.register_node("darkage:reinforced_wood_left", {
description = "Reinforced Wood Left",
2016-06-12 07:52:55 +02:00
tiles = {"default_wood.png^darkage_reinforce_left.png"},
2012-10-25 23:33:20 +02:00
groups = {snappy=2,choppy=3,oddly_breakable_by_hand=3,flammable=3},
sounds = default.node_sound_wood_defaults()
})
2016-06-12 07:52:55 +02:00
minetest.register_node("darkage:reinforced_wood_arrow", {
description = "Reinforced Wood Arrow \nHint: use the screwdriver to rotate.",
tiles = {"default_wood.png" , "default_wood.png" , --top ,down
"default_wood.png^(darkage_reinforce_arrow.png^[transformR90)" , "default_wood.png^(darkage_reinforce_arrow.png^[transformR270)" , --right, left
"default_wood.png^(darkage_reinforce_arrow.png^[transformR180)" , "default_wood.png^darkage_reinforce_arrow.png"}, -- front, back
paramtype2 = "facedir",
groups = {snappy=2,choppy=3,oddly_breakable_by_hand=3,flammable=3},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_craft({
output = 'darkage:reinforced_wood_arrow 4',
recipe = {
{'default:wood', 'group:stick', 'default:wood'},
{'group:stick', 'default:wood', 'group:stick'},
{'group:stick', 'default:wood', 'group:stick'},
}
})
2016-06-12 08:03:46 +02:00
minetest.register_node("darkage:reinforced_wood_bars", {
2016-06-12 07:52:55 +02:00
description = "Wooden Bars",
tiles = {"default_wood.png^darkage_bars.png"},
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_craft({
2016-06-12 08:03:46 +02:00
output = 'darkage:reinforced_wood_bars 4',
2016-06-12 07:52:55 +02:00
recipe = {
{'group:stick', 'default:wood', 'group:stick'},
{'group:stick', 'default:wood', 'group:stick'},
{'group:stick', 'default:wood', 'group:stick'},
}
})
2012-10-25 23:33:20 +02:00
minetest.register_craft({
output = 'darkage:reinforced_chalk',
recipe = {
2016-06-12 07:52:55 +02:00
{'group:stick','','group:stick'},
{'','darkage:chalk',''},
{'group:stick','','group:stick'},
}
})
minetest.register_craft({
output = 'darkage:reinforced_chalk_right',
recipe = {
{'','','group:stick'},
{'','darkage:chalk',''},
{'group:stick','',''},
}
})
minetest.register_craft({
output = 'darkage:reinforced_chalk_left',
recipe = {
{'group:stick','',''},
2012-10-25 23:33:20 +02:00
{'','darkage:chalk',''},
2016-06-12 07:52:55 +02:00
{'','','group:stick'},
2012-10-25 23:33:20 +02:00
}
})
minetest.register_craft({
output = 'darkage:chalk',
recipe = {
2016-06-12 08:27:43 +02:00
{'darkage:chalk_powder','darkage:chalk_powder'},
{'darkage:chalk_powder','darkage:chalk_powder'},
}
})
2012-10-25 23:33:20 +02:00
minetest.register_craft({
output = 'darkage:reinforced_wood',
recipe = {
2016-06-12 07:52:55 +02:00
{'group:stick','','group:stick'},
2012-10-25 23:33:20 +02:00
{'','default:wood',''},
2016-06-12 07:52:55 +02:00
{'group:stick','','group:stick'},
2012-10-25 23:33:20 +02:00
}
})
minetest.register_craft({
output = 'default:wood',
recipe = {
{'darkage:reinforced_wood'},
}
})
minetest.register_craft({
output = 'darkage:reinforced_wood_left',
recipe = {
2016-06-12 07:52:55 +02:00
{'group:stick','',''},
2012-10-25 23:33:20 +02:00
{'','default:wood',''},
2016-06-12 07:52:55 +02:00
{'','','group:stick'},
2012-10-25 23:33:20 +02:00
}
})
minetest.register_craft({
output = 'default:wood',
recipe = {
{'darkage:reinforced_wood_left'},
}
})
minetest.register_craft({
output = 'darkage:reinforced_wood_right',
recipe = {
2016-06-12 07:52:55 +02:00
{'','','group:stick'},
2012-10-25 23:33:20 +02:00
{'','default:wood',''},
2016-06-12 07:52:55 +02:00
{'group:stick','',''},
2012-10-25 23:33:20 +02:00
}
})
minetest.register_craft({
output = 'default:wood',
recipe = {
{'darkage:reinforced_wood_right'},
}
})
2013-05-10 06:55:51 +02:00
minetest.register_craft({
output = 'darkage:glow_glass 1',
recipe = {
{'darkage:glass', '', ''},
{'default:torch', '', ''},
{'', '', ''},
}
})
minetest.register_craft({
output = 'darkage:glass 1',
recipe = {
{'darkage:glow_glass'},
}
})
minetest.register_craft({
output = 'darkage:glass 8',
recipe = {
{'default:glass', 'default:steel_ingot', 'default:glass'},
{'default:steel_ingot', 'default:glass', 'default:steel_ingot'},
{'default:glass', 'default:steel_ingot', 'default:glass'},
}
})