123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343 |
- lapis = lapis or {}
- dofile(minetest.get_modpath("lapis").."/columns.lua")
- ----------
- --Nodes
- ----------
- minetest.register_node( "lapis:lapis_block", {
- description = "Lapis With Calcite",
- tiles = {"lapis_block.png"},
- paramtype = "light",
- is_ground_content = true,
- groups = utility.dig_groups("stone"),
- drop = {
- max_items = 1,
- items = {
- {items = {'lapis:lapis_stone'}, rarity = 10},
- {items = {'lapis:lapis_cobble'}},
- },
- },
- sounds = default.node_sound_stone_defaults()
- })
- minetest.register_node( "lapis:lapis_brick", {
- description = "Lapis Brick",
- tiles = {
- "lapis_brick_top.png",
- "lapis_brick_top.png^[transformFXR90",
- "lapis_brick_side.png",
- "lapis_brick_side.png^[transformFX",
- "lapis_brick.png^[transformFX",
- "lapis_brick.png"
- },
- paramtype = "light",
- paramtype2 = "facedir",
- is_ground_content = false,
- groups = utility.dig_groups("brick"),
- sounds = default.node_sound_stone_defaults()
- })
- minetest.register_node( "lapis:lapis_cobble", {
- description = "Cobbled Lapis",
- tiles = {
- "lapis_cobble.png",
- "lapis_cobble.png^[transformFY",
- "lapis_cobble.png^[transformFX",
- "lapis_cobble.png",
- "lapis_cobble.png^[transformFX",
- "lapis_cobble.png"
- },
- paramtype = "light",
- is_ground_content = false,
- groups = utility.dig_groups("cobble"),
- sounds = default.node_sound_stone_defaults()
- })
- minetest.register_node( "lapis:lazurite_block", {
- description = "Lazurite",
- tiles = {"lapis_lazurite_block.png"},
- paramtype = "light",
- is_ground_content = true,
- groups = utility.dig_groups("block"),
- sounds = default.node_sound_stone_defaults()
- })
- minetest.register_node( "lapis:lazurite_brick", {
- description = "Lazurite Brick",
- tiles = {
- "lapis_lazurite_brick_top.png",
- "lapis_lazurite_brick_top.png^[transformFXR90",
- "lapis_lazurite_brick_side.png",
- "lapis_lazurite_brick_side.png^[transformFX",
- "lapis_lazurite_brick.png^[transformFX",
- "lapis_lazurite_brick.png"
- },
- paramtype = "light",
- paramtype2 = "facedir",
- is_ground_content = false,
- groups = utility.dig_groups("brick"),
- sounds = default.node_sound_stone_defaults()
- })
- minetest.register_node( "lapis:lapis_tile", {
- description = "Lapis Floor Tile",
- tiles = {"lapis_tile.png" },
- is_ground_content = false,
- paramtype = 'light',
- groups = utility.dig_groups("block"),
- sounds = default.node_sound_stone_defaults()
- })
- minetest.register_node( "lapis:pyrite_ore", {
- description = "Pyrite Ore",
- tiles = {"default_stone.png^lapis_mineral_pyrite.png" },
- paramtype = "light",
- is_ground_content = true,
- drop = 'lapis:pyrite_lump 2',
- silverpick_drop = true,
- groups = utility.dig_groups("mineral"),
- sounds = default.node_sound_stone_defaults(),
- place_param2 = 10,
- })
- minetest.register_node( "lapis:pyrite_block", {
- description = "Pyrite Block",
- tiles = {
- "lapis_pyrite_sacred.png",
- "lapis_pyrite_sacred.png",
- "lapis_pyrite_block.png"
- },
- paramtype = "light",
- paramtype2 = "facedir",
- is_ground_content = false,
- groups = utility.dig_groups("block"),
- sounds = default.node_sound_metal_defaults({
- footstep = {name = "default_hard_footstep", gain = 0.5},
- place = {name = "default_place_node_hard", gain = 1.0},
- }),
- })
- --Unused Rosace Stone from Darkage mod
- minetest.register_node("lapis:rosace", {
- description = "Rose Stone",
- tiles = {"lapis_rosace_front.png",
- "lapis_rosace_front.png",
- "lapis_rosace_side.png^[transformFX",
- "lapis_rosace_side.png^[transformFYR90",
- "lapis_rosace_side.png^[transformFY",
- "lapis_rosace_side.png"},
- paramtype2 = "facedir",
- is_ground_content = false,
- groups = utility.dig_groups("block"),
- sounds = default.node_sound_stone_defaults(),
- })
- -------------------
- --Stairs & Slabs
- -------------------
- stairs.register_stair_and_slab("lapis_block", "lapis:lapis_block",
- {cracky = 3},
- {"lapis_block.png"},
- "Lapis",
- default.node_sound_stone_defaults())
- stairs.register_stair_and_slab("lapis_brick", "lapis:lapis_brick",
- {cracky = 3},
- {"lapis_brick.png"},
- "Lapis Brick",
- default.node_sound_stone_defaults())
- stairs.register_stair_and_slab("lapis_cobble", "lapis:lapis_cobble",
- {cracky = 3},
- {"lapis_cobble.png"},
- "Lapis Cobble",
- default.node_sound_stone_defaults())
- stairs.register_stair_and_slab("lazurite", "lapis:lazurite_block",
- {cracky = 3},
- {"lapis_lazurite_block.png"},
- "Lazurite",
- default.node_sound_stone_defaults())
- stairs.register_stair_and_slab("lazurite_brick", "lapis:lazurite_brick",
- {cracky = 3},
- {"lapis_lazurite_brick.png"},
- "Lazurite Brick",
- default.node_sound_stone_defaults())
- stairs.register_stair_and_slab("pyrite_block", "lapis:pyrite_block",
- {cracky = 2},
- {"lapis_pyrite_sacred.png", "lapis_pyrite_sacred.png", "lapis_pyrite_block.png"},
- "Pyrite Block",
- default.node_sound_stone_defaults({
- footstep = {name = "default_hard_footstep", gain = 0.5},
- place = {name = "default_place_node_hard", gain = 1.0},
- }))
- ---------------
- -- Crafts Items
- ---------------
- minetest.register_craftitem("lapis:lapis_stone", {
- description = "Lapis Gemstone",
- inventory_image = "lapis_stone.png",
- })
- minetest.register_craftitem("lapis:pyrite_ingot", {
- description = "Pyrite Ingot",
- inventory_image = "lapis_pyrite_ingot.png",
- })
- minetest.register_craftitem("lapis:pyrite_lump", {
- description = "Fool's Gold",
- inventory_image = "lapis_pyrite_nugget.png",
- })
- ----------
- -- Crafts
- ----------
- minetest.register_craft({
- output = 'lapis:lazurite_block',
- recipe = {
- {'lapis:lapis_stone', 'lapis:lapis_stone', 'lapis:lapis_stone'},
- {'lapis:lapis_stone', 'lapis:pyrite_lump', 'lapis:lapis_stone'},
- {'lapis:lapis_stone', 'lapis:lapis_stone', 'lapis:lapis_stone'},
- }
- })
- minetest.register_craft({
- output = 'lapis:lapis_stone 9',
- recipe = {
- {'lapis:lapis_block'},
- }
- })
- minetest.register_craft({
- output = 'lapis:lapis_brick 4',
- recipe = {
- { 'lapis:lapis_block', 'lapis:lapis_block'},
- { 'lapis:lapis_block', 'lapis:lapis_block'},
- }
- })
- minetest.register_craft({
- output = 'lapis:lazurite_brick 4',
- recipe = {
- { '', 'lapis:lapis_brick', ''},
- { 'lapis:lapis_brick', 'lapis:pyrite_lump', 'lapis:lapis_brick'},
- { '', 'lapis:lapis_brick', ''},
- }
- })
- minetest.register_craft({
- output = 'lapis:lapis_tile',
- recipe = {
- { 'lapis:lazurite_brick'},
- }
- })
- minetest.register_craft({
- output = 'lapis:pyrite_block',
- recipe = {
- {'lapis:pyrite_ingot', 'lapis:pyrite_ingot', 'lapis:pyrite_ingot'},
- {'lapis:pyrite_ingot', 'lapis:pyrite_ingot', 'lapis:pyrite_ingot'},
- {'lapis:pyrite_ingot', 'lapis:pyrite_ingot', 'lapis:pyrite_ingot'},
- }
- })
- minetest.register_craft({
- output = 'lapis:pyrite_ingot 9',
- recipe = {
- {'lapis:pyrite_block'},
- }
- })
- minetest.register_craft({
- output = "lapis:rosace",
- recipe = {
- { "lapis:pyrite_ingot", "lapis:lapis_stone", "lapis:pyrite_ingot" },
- { "lapis:lapis_stone", "lapis:pyrite_ingot", "lapis:lapis_stone" },
- { "lapis:pyrite_ingot", "lapis:lapis_stone", "lapis:pyrite_ingot" },
- }
- })
- minetest.register_craft({
- output = 'dye:blue 2',
- recipe = {
- {'lapis:lapis_stone'},
- }
- })
- ------------
- -- Cooking
- ------------
- minetest.register_craft({
- type = 'cooking',
- output = 'lapis:lapis_block',
- recipe = 'lapis:lapis_cobble',
- })
- minetest.register_craft({
- type = "cooking",
- output = "lapis:pyrite_ingot",
- recipe = "lapis:pyrite_lump",
- })
- --------------------
- -- Ore Generation
- --------------------
- --lapis
- --Sheet ore registration
- oregen.register_ore({
- ore_type = "sheet",
- ore = "lapis:lapis_block",
- wherein = "default:stone",
- column_height_min = 1,
- column_height_max = 3,
- column_midpoint_factor = 0.5,
- y_min = 128,
- y_max = 164,
- noise_threshhold = 1.5,
- noise_params = {offset=0, scale=2, spread={x=20, y=20, z=10}, seed= 10 , octaves=2, persist=0.8}
- })
- -- pyrite
- oregen.register_ore({
- ore_type = "scatter",
- ore = "lapis:pyrite_ore",
- wherein = "default:stone",
- clust_scarcity = 15 * 15 * 15,
- clust_num_ores = 4,
- clust_size = 3,
- y_min = -50,
- y_max = 60,
- })
- oregen.register_ore({
- ore_type = "scatter",
- ore = "lapis:pyrite_ore",
- wherein = "default:stone",
- clust_scarcity = 13 * 13 * 13,
- clust_num_ores = 4,
- clust_size = 3,
- y_min = -150,
- y_max = -51,
- })
- ----------
- --Aliases
- ----------
- minetest.register_alias("lapis:lapis_paver", "lapis:lapis_cobble")
- minetest.register_alias("lapis:lazurite", "lapis:lapis_block")
- minetest.register_alias("lapis:pyrite_sacred","lapis:pyrite_block")
- minetest.register_alias("lapis:pyrite_coin","lapis:pyrite_ingot")
- minetest.register_alias("lapis:sacred_ore", "lapis:lazurite_block")
|