mirror of
https://github.com/mt-mods/basic_materials.git
synced 2024-11-22 14:03:44 +01:00
116 lines
2.9 KiB
Lua
116 lines
2.9 KiB
Lua
--items
|
|
|
|
minetest.register_craftitem("basic_materials:oil_extract", {
|
|
description = "Oil extract",
|
|
inventory_image = "basic_materials_oil_extract.png",
|
|
})
|
|
|
|
minetest.register_craftitem("basic_materials:paraffin", {
|
|
description = "Unprocessed paraffin",
|
|
inventory_image = "basic_materials_paraffin.png",
|
|
})
|
|
|
|
minetest.register_craftitem("basic_materials:terracotta_base", {
|
|
description = "Uncooked Terracotta Base",
|
|
inventory_image = "basic_materials_terracotta_base.png",
|
|
})
|
|
|
|
minetest.register_craftitem("basic_materials:wet_cement", {
|
|
description = "Wet Cement",
|
|
inventory_image = "basic_materials_wet_cement.png",
|
|
})
|
|
|
|
-- nodes
|
|
|
|
minetest.register_node("basic_materials:cement_block", {
|
|
description = "Cement",
|
|
tiles = {"basic_materials_cement_block.png"},
|
|
is_ground_content = true,
|
|
groups = {cracky=2},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
})
|
|
|
|
-- crafts
|
|
|
|
minetest.register_craft({
|
|
type = "shapeless",
|
|
output = "basic_materials:oil_extract 3",
|
|
recipe = {
|
|
"group:leaves",
|
|
"group:leaves",
|
|
"group:leaves",
|
|
"group:leaves",
|
|
"group:leaves",
|
|
"group:leaves"
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "cooking",
|
|
output = "basic_materials:paraffin",
|
|
recipe = "basic_materials:oil_extract",
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "basic_materials:oil_extract",
|
|
burntime = 30,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "basic_materials:paraffin",
|
|
burntime = 30,
|
|
})
|
|
|
|
minetest.register_craft( {
|
|
type = "shapeless",
|
|
output = "basic_materials:terracotta_base 8",
|
|
recipe = {
|
|
"default:dirt",
|
|
"default:clay_lump",
|
|
"bucket:bucket_water"
|
|
},
|
|
replacements = { {"bucket:bucket_water", "bucket:bucket_empty"}, },
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "shapeless",
|
|
output = "basic_materials:wet_cement 2",
|
|
recipe = {
|
|
"bucket:bucket_water",
|
|
"default:clay_lump",
|
|
"default:gravel",
|
|
},
|
|
replacements = {{'bucket:bucket_water', 'bucket:bucket_empty'},},
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "cooking",
|
|
output = "basic_materials:cement_block",
|
|
recipe = "basic_materials:wet_cement",
|
|
cooktime = 8
|
|
})
|
|
|
|
minetest.register_craft( {
|
|
type = "shapeless",
|
|
output = "basic_materials:terracotta_base 8",
|
|
recipe = {
|
|
"default:dirt",
|
|
"default:clay_lump",
|
|
"bucket:bucket_water"
|
|
},
|
|
replacements = { {"bucket:bucket_water", "bucket:bucket_empty"}, },
|
|
})
|
|
|
|
-- aliases
|
|
|
|
minetest.register_alias("homedecor:oil_extract", "basic_materials:oil_extract")
|
|
minetest.register_alias("homedecor:paraffin", "basic_materials:paraffin")
|
|
minetest.register_alias("homedecor:plastic_base", "basic_materials:paraffin")
|
|
minetest.register_alias("homedecor:terracotta_base", "basic_materials:terracotta_base")
|
|
minetest.register_alias("homedecor:power_crystal", "basic_materials:energy_crystal")
|
|
|
|
minetest.register_alias("gloopblocks:wet_cement", "basic_materials:wet_cement")
|
|
minetest.register_alias("gloopblocks:cement", "basic_materials:cement_block")
|