diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..d95e543 --- /dev/null +++ b/depends.txt @@ -0,0 +1,3 @@ +default +ethereal +stairs diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..fc1df6f --- /dev/null +++ b/init.lua @@ -0,0 +1,136 @@ +-- Glostone Brick +minetest.register_node( + 'yl_glostone_building_blocks:glostone_brick', + { + description = 'Glo Stone Brick', + tiles = { + 'ethereal_glostone.png^yl_glostone_building_blocks_brick_overlay.png' + }, + groups = { + cracky = 2 + }, + light_source = 10, + drop = 'yl_glostone_building_blocks:glostone_brick', + sounds = default.node_sound_stone_defaults() + } +) + +minetest.register_craft( + { + output = 'yl_glostone_building_blocks:glostone_brick 4', + recipe = { + {'ethereal:glostone', 'ethereal:glostone'}, + {'ethereal:glostone', 'ethereal:glostone'} + } + } +) + +-- Glostone Block +minetest.register_node( + 'yl_glostone_building_blocks:glostone_block', + { + description = 'Glo Stone Block', + tiles = { + 'ethereal_glostone.png^yl_glostone_building_blocks_block_overlay.png' + }, + groups = { + cracky = 2 + }, + light_source = 12, + drop = 'yl_glostone_building_blocks:glostone_block', + sounds = default.node_sound_stone_defaults() + } +) + +minetest.register_craft( + { + output = 'yl_glostone_building_blocks:glostone_block 9', + recipe = { + {'ethereal:glostone', 'ethereal:glostone', 'ethereal:glostone'}, + {'ethereal:glostone', 'ethereal:glostone', 'ethereal:glostone'}, + {'ethereal:glostone', 'ethereal:glostone', 'ethereal:glostone'} + } + } +) + +-- Glostone Brick stairs + +stairs.register_stair_and_slab( + 'glostone_brick', + 'yl_glostone_building_blocks:glostone_brick', + { + cracky = 2 + }, + { + 'ethereal_glostone.png^yl_glostone_building_blocks_brick_overlay.png' + }, + 'Glostone Brick Stair', + 'Glostone Brick Slab', + default.node_sound_stone_defaults() +) + +minetest.override_item( + 'stairs:stair_glostone_brick', + { + light_source = 10 + } +) +minetest.override_item( + 'stairs:stair_outer_glostone_brick', + { + light_source = 10 + } +) +minetest.override_item( + 'stairs:stair_inner_glostone_brick', + { + light_source = 10 + } +) +minetest.override_item( + 'stairs:slab_glostone_brick', + { + light_source = 10 + } +) + +-- Glostone Block stairs + +stairs.register_stair_and_slab( + 'glostone_block', + 'yl_glostone_building_blocks:glostone_block', + { + cracky = 2 + }, + { + 'ethereal_glostone.png^yl_glostone_building_blocks_block_overlay.png' + }, + 'Glostone Block Stair', + 'Glostone Block Slab', + default.node_sound_stone_defaults() +) + +minetest.override_item( + 'stairs:stair_glostone_block', + { + light_source = 10 + } +) +minetest.override_item( + 'stairs:stair_outer_glostone_block', + { + light_source = 10 + } +) +minetest.override_item( + 'stairs:stair_inner_glostone_block', + { + light_source = 10 + } +) +minetest.override_item( + 'stairs:slab_glostone_block', + { + light_source = 10 + } +) diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..70c4360 --- /dev/null +++ b/mod.conf @@ -0,0 +1,2 @@ +name = yl_glostone_building_blocks +description = Adds basic glostone-based building materials diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..dbfc5d3 Binary files /dev/null and b/screenshot.png differ diff --git a/textures/yl_glostone_building_blocks_block_overlay.png b/textures/yl_glostone_building_blocks_block_overlay.png new file mode 100644 index 0000000..e26c28b Binary files /dev/null and b/textures/yl_glostone_building_blocks_block_overlay.png differ diff --git a/textures/yl_glostone_building_blocks_brick_overlay.png b/textures/yl_glostone_building_blocks_brick_overlay.png new file mode 100644 index 0000000..ffbce01 Binary files /dev/null and b/textures/yl_glostone_building_blocks_brick_overlay.png differ