summaryrefslogtreecommitdiff
path: root/quartz
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-03-06 17:01:02 -0500
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-03-06 17:01:02 -0500
commitb21c3d368077aa3a1c42ff1582cda6263c018585 (patch)
tree4053ef589ef5c5b99f0a87b567207e8c52cf4c76 /quartz
parentec25fd83415d0ecb49f41295af3dc30f14850b2f (diff)
downloaddreambuilder_modpack-b21c3d368077aa3a1c42ff1582cda6263c018585.tar
dreambuilder_modpack-b21c3d368077aa3a1c42ff1582cda6263c018585.tar.gz
dreambuilder_modpack-b21c3d368077aa3a1c42ff1582cda6263c018585.tar.bz2
dreambuilder_modpack-b21c3d368077aa3a1c42ff1582cda6263c018585.tar.xz
dreambuilder_modpack-b21c3d368077aa3a1c42ff1582cda6263c018585.zip
updated cottages, areasprotector, bees, biome_lib, technic, facade,
farming redo, homedecor, maptools, mesecons, moreblocks, moreores, pipeworks, quartz, travelnet, unified_inventory, unifieddyes, xban2 delete the playeranim mod, not 5.0.0 compatible.
Diffstat (limited to 'quartz')
-rw-r--r--quartz/README.txt8
-rw-r--r--quartz/depends.txt3
-rw-r--r--quartz/description.txt2
-rw-r--r--quartz/init.lua65
-rw-r--r--quartz/mod.conf5
5 files changed, 45 insertions, 38 deletions
diff --git a/quartz/README.txt b/quartz/README.txt
index 0db0cf8..383bcad 100644
--- a/quartz/README.txt
+++ b/quartz/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/quartz/depends.txt b/quartz/depends.txt
index c2a3e1b..7f004f6 100644
--- a/quartz/depends.txt
+++ b/quartz/depends.txt
@@ -1,4 +1,5 @@
default
stairs
+intllib?
moreblocks?
-intllib? \ No newline at end of file
+stairsplus?
diff --git a/quartz/description.txt b/quartz/description.txt
index adc7fc2..f2afef2 100644
--- a/quartz/description.txt
+++ b/quartz/description.txt
@@ -1 +1 @@
-Adds quartz ore and some decorative quartz blocks
+Adds quartz ore and some decorative quartz blocks.
diff --git a/quartz/init.lua b/quartz/init.lua
index c2870a7..4189d58 100644
--- a/quartz/init.lua
+++ b/quartz/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
@@ -78,7 +79,8 @@ stairs.register_stair_and_slab("quartzblock", "quartz:block",
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())
@@ -157,34 +159,28 @@ minetest.register_abm({
-- Compatibility with stairsplus
--
-if minetest.get_modpath("moreblocks") and settings:get_bool("ENABLE_STAIRSPLUS") then
- register_stair_slab_panel_micro("quartz", "block", "quartz:block",
- {cracky=3},
- {"quartz_block.png"},
- "Quartz Block",
- "block",
- 0
- )
-
- register_stair_slab_panel_micro("quartz", "chiseled", "quartz:chiseled",
- {cracky=3},
- {"quartz_chiseled.png"},
- "Chiseled Quartz",
- "chiseled",
- 0
- )
-
- register_stair_slab_panel_micro("quartz", "pillar", "quartz:pillar",
- {cracky=3},
- {"quartz_pillar_top.png", "quartz_pillar_top.png", "quartz_pillar_side.png"},
- "Quartz Pillar",
- "pillar",
- 0
- )
-
- table.insert(circular_saw.known_stairs, "quartz:block")
- table.insert(circular_saw.known_stairs, "quartz:chiseled")
- table.insert(circular_saw.known_stairs, "quartz:pillar")
+if minetest.global_exists("stairsplus") then
+ stairsplus:register_all("quartz", "block", "quartz:block", {
+ description = "Quartz Block",
+ tiles = {"quartz_block.png"},
+ groups = {cracky=3},
+ sounds = default.node_sound_glass_defaults()
+ })
+
+ stairsplus:register_all("quartz", "chiseled", "quartz:chiseled", {
+ description = "Chiseled Quartz",
+ tiles = {"quartz_chiseled.png"},
+ groups = {cracky=3},
+ sounds = default.node_sound_glass_defaults()
+ })
+
+ stairsplus:register_all("quartz", "pillar", "quartz:pillar", {
+ description = "Quartz Pillar",
+ tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png",
+ "quartz_pillar_side.png"},
+ groups = {cracky=3},
+ sounds = default.node_sound_glass_defaults()
+ })
end
--
@@ -195,11 +191,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/quartz/mod.conf b/quartz/mod.conf
index a5f15f3..40a9866 100644
--- a/quartz/mod.conf
+++ b/quartz/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