24 Commits

Author SHA1 Message Date
85ada20503 Fix Inner/Outer Stairs translation (#13)
Change case of Stairs/Slab first character to be consistent with the `stairs` mod.
2024-10-02 18:10:37 +02:00
f3d7a7017d Remove transparency from 'quartz_pillar_side.png' (#16) 2023-12-21 17:10:30 +01:00
b61d3a9398 Update to mt5 translation system (#12) 2022-10-29 21:41:24 +02:00
72ec06fff6 Allow to break stairsplus blocks by hand (#14)
Add `stairsplus` blocks in `oddly_breakable_by_hand=1` group to make them consistent with the original blocks.
2021-01-04 19:08:21 +01:00
7b5d74cfdf Change recipe for chiseled quartz (#11)
The existing recipe(s) never seem to work. I can craft multiple kinds of quartz slabs using the crafting UI, a circular saw, or an xdecor Work Bench, but none of fit back together to form chiselled quartz.
2019-06-09 20:49:39 +02:00
cdda5c8a03 Add stairsplus note into README.txt. 2019-03-01 13:05:50 -08:00
0fc7dd0d0d Add "stairsplus" as an optional dependency.
• Add "stairsplus" as an optional dependency.
 • Sort the optional dependencies in alphabetical order.
2019-03-01 13:05:50 -08:00
fcb319631f Add description and depends to mod.conf. 2019-03-01 13:05:50 -08:00
8b83145c6c Fix whitespace 2019-03-01 13:05:50 -08:00
8c60a1f77d Allow quartz to be used in circular saws 2019-03-01 13:05:50 -08:00
1c5dca224d Translation to Brazilian Portuguese (#9)
* Translation to Brazilian Portuguese

Translation to Brazilian Portuguese

* Rename pt.po to pt_br.po
2017-10-03 09:10:21 -07:00
5fb0e07fb0 added french translation (#8) 2017-10-03 09:09:55 -07:00
00ca4eb7fe Add spanish locale. (#5) 2017-02-28 22:00:47 -08:00
6d5be4c515 add intllib support. Also fix bug with quartz pillar stair/slab registration (#4)
* add intllib support. Also fix bug with quartz pillar stair/slab registration

* add intllib to depends
2017-02-28 18:05:46 -08:00
ef865187a9 Merge pull request #3 from Rui914/patch-2
Use `Settings` to read the config file
2016-07-27 11:21:40 -04:00
Rui
71cf351384 Change "--" in the config file to "#" 2016-07-27 23:47:00 +09:00
Rui
5e9e219911 Use Settings to read the config file 2016-07-24 20:18:42 +09:00
4dc529e7c9 Change issue tracker link in README 2016-01-14 18:29:41 -05:00
193b5dcd5b Use all caps in option names 2016-01-14 17:24:37 -05:00
198d6e53c3 Merge pull request #1 from minetest-mods/sofar-patch-1
Add mod.conf
2016-01-09 17:16:52 -05:00
1729abfec3 Add mod.conf
This will help new clients install these mods.
2016-01-09 14:10:37 -08:00
da78166cb3 Whoops, default is still a dependency 2016-01-09 15:54:17 -05:00
78a2a7bdc9 Use semantic versioning in README 2016-01-09 14:28:59 -05:00
791ae9da06 Change license to MIT and do some cleanup 2016-01-09 12:52:10 -05:00
19 changed files with 236 additions and 125 deletions

21
LICENSE.txt Normal file
View File

@ -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.

View File

@ -1,12 +1,21 @@
___ _ __ __ _
___ _ __ __ _
/ _ \ _ _ __ _ _ __| |_ ____ | \/ | ___ __| |
| | | | | | |/ _` | '__| __|_ / | |\/| |/ _ \ / _` |
| |_| | |_| | (_| | | | |_ / / | | | | (_) | (_| |
\__\_\\__,_|\__,_|_| \__/___| |_| |_|\___/ \__,_|
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 or stairsplus (optional, for stairsplus support)
Please report bugs at the GitHub issue tracker:
https://github.com/minetest-mods/quartz/issues/
Crafting:
@ -72,11 +81,5 @@ x|c|x
-----
x|x|x
License:
CC BY-SA 3.0
More info at http://creativecommons.org/licenses/by-sa/3.0/
If you have stairsplus (or moreblocks) installed, you will be able to use
circular saws to cut quartz blocks.

View File

@ -1,3 +0,0 @@
default,
stairs,
moreblocks?

224
init.lua
View File

@ -1,88 +1,101 @@
dofile(minetest.get_modpath("quartz").."/settings.txt")
local settings = Settings(minetest.get_modpath("quartz").."/settings.txt")
--Node Registration
local S = minetest.get_translator("quartz")
--Quartz Crystal
--
-- Item Registration
--
-- Quartz Crystal
minetest.register_craftitem("quartz:quartz_crystal", {
description = "Quartz Crystal",
description = S("Quartz Crystal"),
inventory_image = "quartz_crystal_full.png",
})
minetest.register_craftitem("quartz:quartz_crystal_piece", {
description = "Quartz Crystal Piece",
description = S("Quartz Crystal Piece"),
inventory_image = "quartz_crystal_piece.png",
})
--Ore
--
-- 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,
description = S("Quartz Ore"),
tiles = {"default_stone.png^quartz_ore.png"},
groups = {cracky=3, stone=1},
drop = 'quartz:quartz_crystal',
sounds = default.node_sound_stone_defaults(),
})
--Quartz Block
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",
description = S("Quartz Block"),
tiles = {"quartz_block.png"},
groups = {cracky=3, oddly_breakable_by_hand=1},
sounds = default.node_sound_glass_defaults(),
})
--Chiseled Quartz
-- Chiseled Quartz
minetest.register_node("quartz:chiseled", {
description = "Chiseled Quartz",
description = S("Chiseled Quartz"),
tiles = {"quartz_chiseled.png"},
groups = {cracky=3, oddly_breakable_by_hand=1},
sounds = default.node_sound_glass_defaults(),
})
--Quartz Pillar
-- Quartz Pillar
minetest.register_node("quartz:pillar", {
description = "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
})
--Stairs & Slabs
-- 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())
S("Quartz Stair"),
S("Quartz Slab"),
default.node_sound_glass_defaults(),
nil,
S("Inner Quartz Stair"),
S("Outer Quartz Stair")
)
stairs.register_slab("quartzstair", "quartz:pillar",
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 stair",
"Quartz Pillar slab",
default.node_sound_glass_defaults())
{"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(),
nil,
S("Inner Quartz Pillar Stair"),
S("Outer Quartz Pillar Stair")
)
--Crafting
--
-- Crafting
--
--Quartz Crystal Piece
-- Quartz Crystal Piece
minetest.register_craft({
output = '"quartz:quartz_crystal_piece" 3',
recipe = {
@ -90,7 +103,7 @@ minetest.register_craft({
}
})
--Quartz Block
-- Quartz Block
minetest.register_craft({
output = '"quartz:block" 4',
recipe = {
@ -99,28 +112,18 @@ minetest.register_craft({
{'', '', ''}
}
})
--Chiseled Quartz
-- Chiseled Quartz
minetest.register_craft({
output = 'quartz:chiseled 2',
output = 'quartz:chiseled 4',
recipe = {
{'stairs:slab_quartzblock', '', ''},
{'stairs:slab_quartzblock', '', ''},
{'', '', ''},
{'quartz:block', 'quartz:block', ''},
{'quartz:block', 'quartz:block', ''},
{'', '', ''},
}
})
--Chiseled Quartz(for stairsplus)
minetest.register_craft({
output = 'quartz:chiseled 2',
recipe = {
{'quartz:slab_block', '', ''},
{'quartz:slab_block', '', ''},
{'', '', ''},
}
})
--Quartz Pillar
-- Quartz Pillar
minetest.register_craft({
output = 'quartz:pillar 2',
recipe = {
@ -130,11 +133,15 @@ minetest.register_craft({
}
})
--abms
local dirs2 = { 12, 9, 18, 7, 12 }
--
-- 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" },
nodenames = {"quartz:pillar_horizontal"},
interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
@ -144,47 +151,50 @@ minetest.register_abm({
end,
})
--These are deprecated, don't use them
--
-- Compatibility with stairsplus
--
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(),
if minetest.global_exists("stairsplus") then
stairsplus:register_all("quartz", "block", "quartz:block", {
description = "Quartz Block",
tiles = {"quartz_block.png"},
groups = {cracky=3, oddly_breakable_by_hand=1},
sounds = default.node_sound_glass_defaults()
})
stairsplus:register_all("quartz", "chiseled", "quartz:chiseled", {
description = "Chiseled Quartz",
tiles = {"quartz_chiseled.png"},
groups = {cracky=3, oddly_breakable_by_hand=1},
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, oddly_breakable_by_hand=1},
sounds = default.node_sound_glass_defaults()
})
end
--
-- Deprecated
--
--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
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"},
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

19
locale/quartz.es.tr Normal file
View File

@ -0,0 +1,19 @@
# textdomain: quartz
### init.lua ###
Chiseled Quartz=Cuarzo cincelado
Inner Quartz Pillar Stair=
Inner Quartz Stair=
Outer Quartz Pillar Stair=
Outer Quartz Stair=
Quartz Block=Bloque de cuarzo
Quartz Crystal=Cristal de cuarzo
Quartz Crystal Piece=Trozo de cristal de cuarzo
Quartz Ore=Mineral de cuarzo
Quartz Pillar=Pilar de cuarzo
Quartz Pillar Slab=Losa de pilar de cuarzo
Quartz Pillar Stair=Escaleras de pilar de cuarzo
Quartz Slab=Losa de cuarzo
Quartz Stair=Escaleras de cuarzo

19
locale/quartz.fr.tr Normal file
View File

@ -0,0 +1,19 @@
# textdomain: quartz
### init.lua ###
Chiseled Quartz=Quartz ciselé
Inner Quartz Pillar Stair=Escalier intérieur en pilier en quartz
Inner Quartz Stair=Escalier intérieur en quartz
Outer Quartz Pillar Stair=Escalier extérieur en pilier de quartz
Outer Quartz Stair=Escalier extérieur en quartz
Quartz Block=Bloc de quartz
Quartz Crystal=Cristal de quartz
Quartz Crystal Piece=Morceau de cristal de quartz
Quartz Ore=Minerai de quartz
Quartz Pillar=Pilier en quartz
Quartz Pillar Slab=Dalle en pilier en quartz
Quartz Pillar Stair=Escalier en pilier en quartz
Quartz Slab=Dalle en quartz
Quartz Stair=Escalier en quartz

19
locale/quartz.pt_BR.tr Normal file
View File

@ -0,0 +1,19 @@
# textdomain: quartz
### init.lua ###
Chiseled Quartz=Quartzo Cinzelado
Inner Quartz Pillar Stair=
Inner Quartz Stair=
Outer Quartz Pillar Stair=
Outer Quartz Stair=
Quartz Block=Bloco de Quartzo
Quartz Crystal=Cristal de Quartzo
Quartz Crystal Piece=Pedaço de Cristal de Quartzo
Quartz Ore=Minério de Quartzo
Quartz Pillar=Pilar de Quartzo
Quartz Pillar Slab=Laje de Pilar de Quartzo
Quartz Pillar Stair=Escada de Pilar de Quartzo
Quartz Slab=Laje de quartzo
Quartz Stair=Escada de quartzo

19
locale/template.txt Normal file
View File

@ -0,0 +1,19 @@
# textdomain: quartz
### init.lua ###
Chiseled Quartz=
Inner Quartz Pillar Stair=
Inner Quartz Stair=
Outer Quartz Pillar Stair=
Outer Quartz Stair=
Quartz Block=
Quartz Crystal=
Quartz Crystal Piece=
Quartz Ore=
Quartz Pillar=
Quartz Pillar Slab=
Quartz Pillar Stair=
Quartz Slab=
Quartz Stair=

4
mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = quartz
description = Adds quartz ore and some decorative quartz blocks.
depends = default,stairs
optional_depends = moreblocks,stairsplus

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

View File

@ -1,7 +1,7 @@
-- Set this to true to allow usage of the stairsplus mod in moreblocks
# Set this to true to allow usage of the stairsplus mod in moreblocks
enable_stairsplus = false
ENABLE_STAIRSPLUS = false
-- This enables the old horizontal pillar block(deprecated, be sure to convert them back to normal pillars)
# This enables the old horizontal pillar block(deprecated, be sure to convert them back to normal pillars)
enable_horizontal_pillar = true
ENABLE_HORIZONTAL_PILLAR = true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 372 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 B

After

Width:  |  Height:  |  Size: 124 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 414 B