[minetest-mod-quartz] 01/03: New upstream version 1.0.0
Julien Puydt
julien.puydt at laposte.net
Sat Sep 16 09:17:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
jpuydt-guest pushed a commit to branch master
in repository minetest-mod-quartz.
commit 32a5cecafa697805af07b4160bf7ecfcf31e8a62
Author: Julien Puydt <julien.puydt at laposte.net>
Date: Fri Sep 15 22:49:07 2017 +0200
New upstream version 1.0.0
---
LICENSE.txt | 21 +++
README.txt | 82 ++++++++++++
depends.txt | 3 +
description.txt | 1 +
init.lua | 201 +++++++++++++++++++++++++++++
screenshot.png | Bin 0 -> 108271 bytes
settings.txt | 7 +
textures/quartz_block.png | Bin 0 -> 1166 bytes
textures/quartz_chiseled.png | Bin 0 -> 1166 bytes
textures/quartz_crystal_full.png | Bin 0 -> 1166 bytes
textures/quartz_crystal_piece.png | Bin 0 -> 206 bytes
textures/quartz_ore.png | Bin 0 -> 281 bytes
textures/quartz_pillar_side.png | Bin 0 -> 1166 bytes
textures/quartz_pillar_side_horizontal.png | Bin 0 -> 1166 bytes
textures/quartz_pillar_top.png | Bin 0 -> 1166 bytes
15 files changed, 315 insertions(+)
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..cce7753
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 EvergreenTree
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..e8674ad
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,82 @@
+ ___ _ __ __ _
+ / _ \ _ _ __ _ _ __| |_ ____ | \/ | ___ __| |
+ | | | | | | |/ _` | '__| __|_ / | |\/| |/ _ \ / _` |
+ | |_| | |_| | (_| | | | |_ / / | | | | (_) | (_| |
+ \__\_\\__,_|\__,_|_| \__/___| |_| |_|\___/ \__,_|
+
+This mod adds quartz ore and some decorative blocks to minetest.
+
+Version: 1.0.0
+License: MIT (see LICENSE.txt)
+
+Dependencies:
+default (found in minetest_game)
+stairs (found in minetest_game)
+moreblocks (optional, for stairsplus support)
+
+Please report bugs at the github issue tracker:
+https://github.com/4Evergreen4/quartz/issues/
+
+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
diff --git a/depends.txt b/depends.txt
new file mode 100644
index 0000000..4451908
--- /dev/null
+++ b/depends.txt
@@ -0,0 +1,3 @@
+default
+stairs
+moreblocks?
diff --git a/description.txt b/description.txt
new file mode 100644
index 0000000..adc7fc2
--- /dev/null
+++ b/description.txt
@@ -0,0 +1 @@
+Adds quartz ore and some decorative quartz blocks
diff --git a/init.lua b/init.lua
new file mode 100644
index 0000000..6b0a41b
--- /dev/null
+++ b/init.lua
@@ -0,0 +1,201 @@
+dofile(minetest.get_modpath("quartz").."/settings.txt")
+
+--
+-- Item 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",
+})
+
+--
+-- Node Registration
+--
+
+-- 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}
+
+-- Replace all instances of the horizontal quartz pillar with the
+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,
+})
+
+--
+-- 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
+
+--
+-- Deprecated
+--
+
+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
diff --git a/screenshot.png b/screenshot.png
new file mode 100644
index 0000000..3d3cba9
Binary files /dev/null and b/screenshot.png differ
diff --git a/settings.txt b/settings.txt
new file mode 100644
index 0000000..246021e
--- /dev/null
+++ b/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/textures/quartz_block.png b/textures/quartz_block.png
new file mode 100644
index 0000000..802b3d5
Binary files /dev/null and b/textures/quartz_block.png differ
diff --git a/textures/quartz_chiseled.png b/textures/quartz_chiseled.png
new file mode 100644
index 0000000..aef1c2f
Binary files /dev/null and b/textures/quartz_chiseled.png differ
diff --git a/textures/quartz_crystal_full.png b/textures/quartz_crystal_full.png
new file mode 100644
index 0000000..c647df0
Binary files /dev/null and b/textures/quartz_crystal_full.png differ
diff --git a/textures/quartz_crystal_piece.png b/textures/quartz_crystal_piece.png
new file mode 100644
index 0000000..45e448f
Binary files /dev/null and b/textures/quartz_crystal_piece.png differ
diff --git a/textures/quartz_ore.png b/textures/quartz_ore.png
new file mode 100644
index 0000000..69d5ec4
Binary files /dev/null and b/textures/quartz_ore.png differ
diff --git a/textures/quartz_pillar_side.png b/textures/quartz_pillar_side.png
new file mode 100644
index 0000000..71a5c30
Binary files /dev/null and b/textures/quartz_pillar_side.png differ
diff --git a/textures/quartz_pillar_side_horizontal.png b/textures/quartz_pillar_side_horizontal.png
new file mode 100644
index 0000000..4d58985
Binary files /dev/null and b/textures/quartz_pillar_side_horizontal.png differ
diff --git a/textures/quartz_pillar_top.png b/textures/quartz_pillar_top.png
new file mode 100644
index 0000000..9ad9a03
Binary files /dev/null and b/textures/quartz_pillar_top.png differ
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/minetest-mod-quartz.git
More information about the Pkg-games-commits
mailing list