diff --git a/README.md b/README.md index d52bf14..8e21feb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,120 @@ # MineClone2 Furniture and decorations mod [mcl_decor] (W.I.P.) -Adds more decoration and furniture blocks to MineClone 2 (5) [WIP] +Adds more decoration and furniture blocks to MineClone 2 (5) + +![Screenshot](screenshot_big.png "Screenshot") + +## Blocks +### Armchairs +Armchairs are 1x1 size blocks, on which you can sit by right-click! Uses wool and sticks for crafting. 16 colors available! + +**Screenshot:** + +![Screenshot](https://i.ibb.co/fNXWDQh/screenshot-20220324-135852.png "16 armchairs") + +**Craft (has mirrored variant too):** + +![Screenshot](https://i.ibb.co/3YhDML4/Webp-net-gifmaker-2.gif "Crafting") + +### Chairs +Chairs are small blocks made out of wood, on which you can sit by right-click! Uses sticks and wood planks for crafting. 6 types available! + +**Screenshot:** + +![Screenshot](https://i.ibb.co/rcG3D0N/screenshot-20220324-141118.png "6 chairs") + +**Craft (has mirrored variant too):** + +![Screenshot](https://i.ibb.co/dJ84rPT/Webp-net-gifmaker-3.gif "Crafting") + +### Tables +This mod has 2 types of tables: Regular Table (4 small legs in one block) and Slab Table (1 leg in one block, can be expanded by using wood slabs and more slab tables). +Regular Tables are 1x1 size blocks made out of wood. Slab tables are 1x1 size blocks made out of wood too, but they look like if wood slab was combined with wood fence in one block. +Every table uses sticks and wood planks for crafting. + +**Screenshot:** + +![Screenshot](https://i.ibb.co/6D6xv4d/screenshot-20220324-143209.png "12 various tables") + +**Craft:** + +![Screenshot](https://i.ibb.co/rcNTLTC/Webp-net-gifmaker-5.gif "Crafting (regular ones)") + +![Screenshot](https://i.ibb.co/M91Cj47/Webp-net-gifmaker-4.gif "Crafting (slab ones)") + +### Dyed Planks +Dyed planks are 1x1 size blocks, acting like any other wood planks. Uses dye and any wood plank for crafting. 16 colors available! + +**Screenshot:** + +![Screenshot](https://i.ibb.co/dWFC1R6/screenshot-20220324-150234.png "16 dyed planks") + +**Craft (shapeless):** + +![Screenshot](https://i.ibb.co/PQrJWt7/Webp-net-gifmaker-6.gif "Crafting") + +### Paths +This mod has 7 types of them: Gravel, Cobblestone, Stone, Granite, Andesite, Diorite and Netherrack paths. +Paths are nearly carpet size blocks, on which you can walk. Uses corresponding for its' type material for crafting. + +**Screenshot:** + +![Screenshot](https://i.ibb.co/kgqwhW2/screenshot-20220324-155134.png "7 paths") + +**Craft:** + +![Screenshot](https://i.ibb.co/G53JJhG/Webp-net-gifmaker-7.gif "Crafting") + +### Coalquartz Tile +Coalquartz tile is 1x1 size block, that looks and acts like coal and quartz blocks were combined. Uses coal and quartz items for crafting. Has slab and stair variants too! + +**Screenshot:** + +![Screenshot](https://i.ibb.co/j6hwy4J/screenshot-20220324-161814.png "Coalquartz slab, blocks and stair") + +**Craft (has mirrored variant too):** + +![Screenshot](https://i.ibb.co/Nrvy89T/screenshot-20220324-161942.png "Crafting") + +### Table Lamp +Table lamp is 1x1 size block, that emits light. Uses wool, stone and torch for crafting. + +**Screenshot:** + +![Screenshot](https://i.ibb.co/sRJy8DF/screenshot-20220324-163824.png "Table lamp on a birch table") + +**Craft:** + +![Screenshot](https://i.ibb.co/LrJq4vg/screenshot-20220324-165553.png "Crafting") + + + +## Contributing (how I can help?) +### Translate the mod +Just fork this repo, copy "template.txt" and paste as "mcl_decor.XX.tr", where XX is your 2-letter language code (for example, "de"). After that, you can open the file and translate strings! +After the work is done you need to create a pull request and I will merge it! + +### Report bugs +Yes! Via "Issues". I can't fix everything though but if you find something in my mod that looks like a bug - report it. + +### Share mod with friends and make positive reviews! +On ContentDB of course. Reviews can motivate me to continue active work on the mod and stuff! + +### Help me with the code +I'm not a very good coder, more like a novice (combining practice and theory at once) so if you can - please, fix some bugs or maybe add something via pull requests! + +**Thanks.** + + + +## License +Code licensed under GPLv3, see LICENSE file for details. +Media licensed under CC-BY-SA 4.0, see [this deed](https://creativecommons.org/licenses/by-sa/4.0/) for details. + + + +## Credits +- [Coalquartz Tile texture](textures/mcl_decor_coalquartz_tile.png) uses [coal block](https://git.minetest.land/MineClone2/MineClone2/src/branch/master/mods/ITEMS/mcl_core/textures/default_coal_block.png) and [quartz block](https://git.minetest.land/MineClone2/MineClone2/src/branch/master/mods/ITEMS/mcl_nether/textures/mcl_nether_quartz_block_side.png) textures under [CC-BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) by [XSSheep](https://github.com/XSSheep) (combined) +- [Dyed planks template texture](textures/mcl_decor_dyed_planks.png) uses [oak planks](https://git.minetest.land/MineClone2/MineClone2/src/branch/master/mods/ITEMS/mcl_core/textures/default_wood.png) texture under [CC-BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) by [XSSheep](https://github.com/XSSheep) (desaturated and lighted up a bit from original) +- [Table Lamp top texture](textures/mcl_decor_table_lamp.png) uses [grey wool](https://git.minetest.land/MineClone2/MineClone2/src/branch/master/mods/ITEMS/mcl_wool/textures/wool_grey.png) texture under [CC-BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) by [XSSheep](https://github.com/XSSheep) (resized from original) +- [Table Lamp bottom texture](textures/mcl_decor_table_lamp_bottom.png) uses [grey wool](https://git.minetest.land/MineClone2/MineClone2/src/branch/master/mods/ITEMS/mcl_wool/textures/wool_grey.png) texture under [CC-BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) by [XSSheep](https://github.com/XSSheep) (resized and partly darkened up from original) +- [Table Lamp side texture](textures/mcl_decor_table_lamp_side.png) uses [grey wool](https://git.minetest.land/MineClone2/MineClone2/src/branch/master/mods/ITEMS/mcl_wool/textures/wool_grey.png) and [oak tree](https://git.minetest.land/MineClone2/MineClone2/src/branch/master/mods/ITEMS/mcl_core/textures/default_tree.png) textures under [CC-BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) by [XSSheep](https://github.com/XSSheep) (combined) diff --git a/api.lua b/api.lua index b84cf28..fe51be2 100644 --- a/api.lua +++ b/api.lua @@ -2,7 +2,7 @@ local S = minetest.get_translator(minetest.get_current_modname()) --- originally from the ts_furniture mod (which is from cozy) by Thomas--S // https://github.com/minetest-mods/ts_furniture/ +-- originally from the ts_furniture mod (which is from cozy) by Thomas--S // mcl_decor.sit = function(pos, _, player) local name = player:get_player_name() if not mcl_player.player_attached[name] then @@ -214,12 +214,6 @@ function mcl_decor.register_slab_table(name, desc, material, tiles) {-0.5, 0, -0.5, 0.5, 0.5, 0.5}, } }, - --[[ - selection_box = { - type = "fixed", - fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }, - }, - ]] tiles = {tiles}, is_ground_content = false, paramtype = "light", @@ -318,11 +312,6 @@ function mcl_decor.register_dyed_planks(name, desc, hexcolor, dye, colorgroup) output = "mcl_decor:"..name, recipe = {"group:wood", "mcl_dye:" .. dye} }) - minetest.register_craft({ - type = "fuel", - recipe = "mcl_decor:"..name, - burntime = 12, - }) -- maybe descriptions of slabs/stairs after that workaround will be VERY CRAPPY (especially with translations via locales), but at least it works mcl_stairs.register_stair_and_slab_simple(name, "mcl_decor:"..name, desc..S(" Stair"), desc..S(" Slab"), S("Double")..desc..S(" Slab"), "woodlike") end diff --git a/mod.conf b/mod.conf index fd9f734..b861b15 100644 --- a/mod.conf +++ b/mod.conf @@ -1,5 +1,4 @@ name = mcl_decor -title = MineClone2 Furniture and decorations description = Adds more decoration and furniture blocks to MineClone 2 (5) depends = mcl_core, mcl_torches, mcl_player, mcl_sounds, mcl_dye, mcl_nether, mcl_stairs optional_depends = mcl_cozy diff --git a/register.lua b/register.lua index 702c906..e02bbba 100644 --- a/register.lua +++ b/register.lua @@ -91,7 +91,7 @@ mcl_decor.register_path( --- Table Lamp --- minetest.register_node("mcl_decor:table_lamp", { description = S("Table Lamp"), - tiles = {"mcl_decor_table_lamp.png", "mcl_decor_table_lamp.png", "mcl_decor_table_lamp_side.png", + tiles = {"mcl_decor_table_lamp.png", "mcl_decor_table_lamp_bottom.png", "mcl_decor_table_lamp_side.png", "mcl_decor_table_lamp_side.png", "mcl_decor_table_lamp_side.png", "mcl_decor_table_lamp_side.png"}, drawtype = "nodebox", paramtype = "light", @@ -120,7 +120,7 @@ minetest.register_craft({ recipe = { {"group:wool", "group:wool", "group:wool"}, {"group:wool", "mcl_torches:torch", "group:wool"}, - {"group:stone", "group:stone", "group:stone"} + {"mcl_core:cobble", "mcl_core:cobble", "mcl_core:cobble"} } }) diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..a9c7ff2 Binary files /dev/null and b/screenshot.png differ diff --git a/screenshot_big.png b/screenshot_big.png new file mode 100644 index 0000000..7006cf4 Binary files /dev/null and b/screenshot_big.png differ diff --git a/textures/mcl_decor_table_lamp.png b/textures/mcl_decor_table_lamp.png index d3ae6ae..99525ae 100644 Binary files a/textures/mcl_decor_table_lamp.png and b/textures/mcl_decor_table_lamp.png differ diff --git a/textures/mcl_decor_table_lamp_bottom.png b/textures/mcl_decor_table_lamp_bottom.png new file mode 100644 index 0000000..d884696 Binary files /dev/null and b/textures/mcl_decor_table_lamp_bottom.png differ diff --git a/textures/mcl_decor_table_lamp_side.png b/textures/mcl_decor_table_lamp_side.png index 8638f06..0862929 100644 Binary files a/textures/mcl_decor_table_lamp_side.png and b/textures/mcl_decor_table_lamp_side.png differ