diff --git a/README.txt b/README.txt index 0db0cf8..383bcad 100644 --- a/README.txt +++ b/README.txt @@ -12,9 +12,10 @@ License: MIT (see LICENSE.txt) Dependencies: default (found in minetest_game) stairs (found in minetest_game) -moreblocks (optional, for stairsplus support) +intllib (optional, for translations) +moreblocks or stairsplus (optional, for stairsplus support) -Please report bugs at the github issue tracker: +Please report bugs at the GitHub issue tracker: https://github.com/minetest-mods/quartz/issues/ Crafting: @@ -80,3 +81,6 @@ x|x|x x|c|x ----- x|x|x + +If you have stairsplus (or moreblocks) installed, you will be able to use +circular saws to cut quartz blocks. diff --git a/depends.txt b/depends.txt index c2a3e1b..7f004f6 100644 --- a/depends.txt +++ b/depends.txt @@ -1,4 +1,5 @@ default stairs +intllib? moreblocks? -intllib? \ No newline at end of file +stairsplus? diff --git a/description.txt b/description.txt index adc7fc2..f2afef2 100644 --- a/description.txt +++ b/description.txt @@ -1 +1 @@ -Adds quartz ore and some decorative quartz blocks +Adds quartz ore and some decorative quartz blocks. diff --git a/init.lua b/init.lua index 6ef2ddf..9e252b8 100644 --- a/init.lua +++ b/init.lua @@ -62,7 +62,8 @@ minetest.register_node("quartz:chiseled", { minetest.register_node("quartz:pillar", { description = S("Quartz Pillar"), paramtype2 = "facedir", - tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png", "quartz_pillar_side.png"}, + tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png", + "quartz_pillar_side.png"}, groups = {cracky=3, oddly_breakable_by_hand=1}, sounds = default.node_sound_glass_defaults(), on_place = minetest.rotate_node @@ -142,7 +143,7 @@ minetest.register_abm({ -- Compatibility with stairsplus -- -if minetest.get_modpath("moreblocks") then +if minetest.global_exists("stairsplus") then local nodename = "quartz:block" local ndef = table.copy(minetest.registered_nodes[nodename]) ndef.sunlight_propagates = true @@ -176,7 +177,8 @@ else stairs.register_stair_and_slab("quartzstair", "quartz:pillar", {cracky=3, oddly_breakable_by_hand=1}, - {"quartz_pillar_top.png", "quartz_pillar_top.png", "quartz_pillar_side.png"}, + {"quartz_pillar_top.png", "quartz_pillar_top.png", + "quartz_pillar_side.png"}, S("Quartz Pillar stair"), S("Quartz Pillar slab"), default.node_sound_glass_defaults()) @@ -190,11 +192,14 @@ if settings:get_bool("ENABLE_HORIZONTAL_PILLAR") then -- Quartz Pillar (horizontal) minetest.register_node("quartz:pillar_horizontal", { description = "Quartz Pillar Horizontal", - tiles = {"quartz_pillar_side.png", "quartz_pillar_side.png", "quartz_pillar_side.png^[transformR90", - "quartz_pillar_side.png^[transformR90", "quartz_pillar_top.png", "quartz_pillar_top.png"}, + tiles = {"quartz_pillar_side.png", "quartz_pillar_side.png", + "quartz_pillar_side.png^[transformR90", + "quartz_pillar_side.png^[transformR90", "quartz_pillar_top.png", + "quartz_pillar_top.png"}, paramtype2 = "facedir", drop = 'quartz:pillar', - groups = {cracky=3, oddly_breakable_by_hand=1, not_in_creative_inventory=1}, + groups = {cracky=3, oddly_breakable_by_hand=1, + not_in_creative_inventory=1}, sounds = default.node_sound_glass_defaults(), }) end diff --git a/mod.conf b/mod.conf index a5f15f3..40a9866 100644 --- a/mod.conf +++ b/mod.conf @@ -1 +1,4 @@ -name = quartz +name = quartz +description = Adds quartz ore and some decorative quartz blocks. +depends = default,stairs +optional_depends = intllib,moreblocks,stairsplus diff --git a/settings.txt b/settings.txt index 3a11106..a28b9fc 100644 --- a/settings.txt +++ b/settings.txt @@ -1,6 +1,6 @@ # Set this to true to allow usage of the stairsplus mod in moreblocks -ENABLE_STAIRSPLUS = false +ENABLE_STAIRSPLUS = true # This enables the old horizontal pillar block(deprecated, be sure to convert them back to normal pillars)