summaryrefslogtreecommitdiff
path: root/quartz
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 20:02:19 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 21:09:33 -0400
commitda66780a569712c23ae4f2996cfb4608a9f9d69d (patch)
tree217556029a78bc23ad4564720afc86de97228a04 /quartz
parent615b22df4d423aded3613db7716943a2f389b047 (diff)
downloaddreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.gz
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.bz2
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.xz
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.zip
copy all standard Dreambuilder mods in from the old subgame
(exactly as last supplied there, updates to these mods will follow later)
Diffstat (limited to 'quartz')
-rw-r--r--quartz/README.txt82
-rw-r--r--quartz/depends.txt3
-rw-r--r--quartz/init.lua190
-rw-r--r--quartz/settings.txt7
-rw-r--r--quartz/textures/quartz_block.pngbin0 -> 1166 bytes
-rw-r--r--quartz/textures/quartz_chiseled.pngbin0 -> 1166 bytes
-rw-r--r--quartz/textures/quartz_crystal_full.pngbin0 -> 1166 bytes
-rw-r--r--quartz/textures/quartz_crystal_piece.pngbin0 -> 206 bytes
-rw-r--r--quartz/textures/quartz_ore.pngbin0 -> 291 bytes
-rw-r--r--quartz/textures/quartz_pillar_side.pngbin0 -> 1166 bytes
-rw-r--r--quartz/textures/quartz_pillar_side_horizontal.pngbin0 -> 1166 bytes
-rw-r--r--quartz/textures/quartz_pillar_top.pngbin0 -> 1166 bytes
12 files changed, 282 insertions, 0 deletions
diff --git a/quartz/README.txt b/quartz/README.txt
new file mode 100644
index 0000000..8e6fd5d
--- /dev/null
+++ b/quartz/README.txt
@@ -0,0 +1,82 @@
+ ___ _ __ __ _
+ / _ \ _ _ __ _ _ __| |_ ____ | \/ | ___ __| |
+ | | | | | | |/ _` | '__| __|_ / | |\/| |/ _ \ / _` |
+ | |_| | |_| | (_| | | | |_ / / | | | | (_) | (_| |
+ \__\_\\__,_|\__,_|_| \__/___| |_| |_|\___/ \__,_|
+
+
+This mod adds quartz ore and some decorative blocks to minetest.
+
+
+Crafting:
+
+Quartz Block:
+c = quartz crystal x = nothing
+
+x|x|x
+-----
+c|c|x
+-----
+c|c|x
+
+Quartz Pillar:
+q = quartz block x = nothing
+
+x|x|x
+-----
+x|q|x
+-----
+x|x|x
+
+
+Quartz Slab:
+q = quartz block x = nothing
+
+x|x|x
+-----
+x|x|x
+-----
+q|q|q
+
+Quartz Stairs:
+q = quartz block x = nothing
+
+q|x|x
+q|q|x
+q|q|q
+
+Quartz Pillar Slab:
+q = quartz pillar x = nothing
+
+x|x|x
+-----
+x|x|x
+-----
+q|q|q
+
+Chiseled Quartz:
+q = quartz slab x = nothing
+
+x|x|x
+-----
+x|q|x
+-----
+x|q|x
+
+Quartz Crystal Piece (usless as of now):
+c = quartz crystal x = nothing
+
+x|x|x
+-----
+x|c|x
+-----
+x|x|x
+
+
+License:
+
+CC BY-SA 3.0
+
+More info at http://creativecommons.org/licenses/by-sa/3.0/
+
+
diff --git a/quartz/depends.txt b/quartz/depends.txt
new file mode 100644
index 0000000..40c22ed
--- /dev/null
+++ b/quartz/depends.txt
@@ -0,0 +1,3 @@
+default,
+stairs,
+moreblocks?
diff --git a/quartz/init.lua b/quartz/init.lua
new file mode 100644
index 0000000..6b1f7e8
--- /dev/null
+++ b/quartz/init.lua
@@ -0,0 +1,190 @@
+dofile(minetest.get_modpath("quartz").."/settings.txt")
+
+--Node Registration
+
+--Quartz Crystal
+minetest.register_craftitem("quartz:quartz_crystal", {
+ description = "Quartz Crystal",
+ inventory_image = "quartz_crystal_full.png",
+})
+minetest.register_craftitem("quartz:quartz_crystal_piece", {
+ description = "Quartz Crystal Piece",
+ inventory_image = "quartz_crystal_piece.png",
+})
+
+--Ore
+minetest.register_node("quartz:quartz_ore", {
+ description = "Quartz Ore",
+ tiles = {"default_stone.png^quartz_ore.png"},
+ groups = {cracky=3, stone=1},
+ drop = 'quartz:quartz_crystal',
+ sounds = default.node_sound_stone_defaults(),
+})
+
+minetest.register_ore({
+ ore_type = "scatter",
+ ore = "quartz:quartz_ore",
+ wherein = "default:stone",
+ clust_scarcity = 10*10*10,
+ clust_num_ores = 6,
+ clust_size = 5,
+ y_min = -31000,
+ y_max = -5,
+})
+
+--Quartz Block
+minetest.register_node("quartz:block", {
+ description = "Quartz Block",
+ tiles = {"quartz_block.png"},
+ groups = {cracky=3, oddly_breakable_by_hand=1},
+ sounds = default.node_sound_glass_defaults(),
+})
+
+--Chiseled Quartz
+minetest.register_node("quartz:chiseled", {
+ description = "Chiseled Quartz",
+ tiles = {"quartz_chiseled.png"},
+ groups = {cracky=3, oddly_breakable_by_hand=1},
+ sounds = default.node_sound_glass_defaults(),
+})
+
+--Quartz Pillar
+minetest.register_node("quartz:pillar", {
+ description = "Quartz Pillar",
+ paramtype2 = "facedir",
+ 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
+})
+
+
+--Stairs & Slabs
+stairs.register_stair_and_slab("quartzblock", "quartz:block",
+ {cracky=3, oddly_breakable_by_hand=1},
+ {"quartz_block.png"},
+ "Quartz stair",
+ "Quartz slab",
+ default.node_sound_glass_defaults())
+
+stairs.register_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 stair",
+ "Quartz Pillar slab",
+ default.node_sound_glass_defaults())
+
+
+
+
+
+
+
+--Crafting
+
+--Quartz Crystal Piece
+minetest.register_craft({
+ output = '"quartz:quartz_crystal_piece" 3',
+ recipe = {
+ {'quartz:quartz_crystal'}
+ }
+})
+
+--Quartz Block
+minetest.register_craft({
+ output = '"quartz:block" 4',
+ recipe = {
+ {'quartz:quartz_crystal', 'quartz:quartz_crystal', ''},
+ {'quartz:quartz_crystal', 'quartz:quartz_crystal', ''},
+ {'', '', ''}
+ }
+})
+
+--Chiseled Quartz
+minetest.register_craft({
+ output = 'quartz:chiseled 2',
+ recipe = {
+ {'stairs:slab_quartzblock', '', ''},
+ {'stairs:slab_quartzblock', '', ''},
+ {'', '', ''},
+ }
+})
+
+--Chiseled Quartz(for stairsplus)
+minetest.register_craft({
+ output = 'quartz:chiseled 2',
+ recipe = {
+ {'quartz:slab_block', '', ''},
+ {'quartz:slab_block', '', ''},
+ {'', '', ''},
+ }
+})
+
+--Quartz Pillar
+minetest.register_craft({
+ output = 'quartz:pillar 2',
+ recipe = {
+ {'quartz:block', '', ''},
+ {'quartz:block', '', ''},
+ {'', '', ''},
+ }
+})
+
+--abms
+local dirs2 = { 12, 9, 18, 7, 12 }
+
+minetest.register_abm({
+ nodenames = { "quartz:pillar_horizontal" },
+ interval = 1,
+ chance = 1,
+ action = function(pos, node, active_object_count, active_object_count_wider)
+ local fdir = node.param2 or 0
+ nfdir = dirs2[fdir+1]
+ minetest.add_node(pos, {name = "quartz:pillar", param2 = nfdir})
+ end,
+})
+
+--These are deprecated, don't use them
+
+if 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"},
+ paramtype2 = "facedir",
+ drop = 'quartz:pillar',
+ groups = {cracky=3, oddly_breakable_by_hand=1, not_in_creative_inventory=1},
+ sounds = default.node_sound_glass_defaults(),
+ })
+end
+
+
+--Compatibility with stairsplus
+
+if minetest.get_modpath("moreblocks") and 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")
+end
diff --git a/quartz/settings.txt b/quartz/settings.txt
new file mode 100644
index 0000000..246021e
--- /dev/null
+++ b/quartz/settings.txt
@@ -0,0 +1,7 @@
+-- Set this to true to allow usage of the stairsplus mod in moreblocks
+
+enable_stairsplus = false
+
+-- This enables the old horizontal pillar block(deprecated, be sure to convert them back to normal pillars)
+
+enable_horizontal_pillar = true
diff --git a/quartz/textures/quartz_block.png b/quartz/textures/quartz_block.png
new file mode 100644
index 0000000..802b3d5
--- /dev/null
+++ b/quartz/textures/quartz_block.png
Binary files differ
diff --git a/quartz/textures/quartz_chiseled.png b/quartz/textures/quartz_chiseled.png
new file mode 100644
index 0000000..aef1c2f
--- /dev/null
+++ b/quartz/textures/quartz_chiseled.png
Binary files differ
diff --git a/quartz/textures/quartz_crystal_full.png b/quartz/textures/quartz_crystal_full.png
new file mode 100644
index 0000000..c647df0
--- /dev/null
+++ b/quartz/textures/quartz_crystal_full.png
Binary files differ
diff --git a/quartz/textures/quartz_crystal_piece.png b/quartz/textures/quartz_crystal_piece.png
new file mode 100644
index 0000000..45e448f
--- /dev/null
+++ b/quartz/textures/quartz_crystal_piece.png
Binary files differ
diff --git a/quartz/textures/quartz_ore.png b/quartz/textures/quartz_ore.png
new file mode 100644
index 0000000..805666a
--- /dev/null
+++ b/quartz/textures/quartz_ore.png
Binary files differ
diff --git a/quartz/textures/quartz_pillar_side.png b/quartz/textures/quartz_pillar_side.png
new file mode 100644
index 0000000..71a5c30
--- /dev/null
+++ b/quartz/textures/quartz_pillar_side.png
Binary files differ
diff --git a/quartz/textures/quartz_pillar_side_horizontal.png b/quartz/textures/quartz_pillar_side_horizontal.png
new file mode 100644
index 0000000..4d58985
--- /dev/null
+++ b/quartz/textures/quartz_pillar_side_horizontal.png
Binary files differ
diff --git a/quartz/textures/quartz_pillar_top.png b/quartz/textures/quartz_pillar_top.png
new file mode 100644
index 0000000..9ad9a03
--- /dev/null
+++ b/quartz/textures/quartz_pillar_top.png
Binary files differ