Compare commits

..

14 Commits

Author SHA1 Message Date
86c95065a4 Merge remote-tracking branch 'upstream/master' 2024-09-15 09:43:52 +02:00
Niklp
f3d7a7017d
Remove transparency from 'quartz_pillar_side.png' (#16) 2023-12-21 17:10:30 +01:00
0693b2b079 Merge remote-tracking branch 'upstream/master' 2023-06-07 22:24:51 +02:00
Louis Royer
b61d3a9398
Update to mt5 translation system (#12) 2022-10-29 21:41:24 +02:00
3b520ff47a Merge remote-tracking branch 'upstream/master' 2021-01-05 22:08:27 +01:00
Andrey Kozlovskiy
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
f7a7a9988c Merge branch 'master' of yunohost.local:minetest-mods/quartz into nalc-1.2-dev 2019-12-22 14:54:47 +01:00
obl3pplifp
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
ee4467b5cb Merge branch 'master' into nalc-1.2 2019-05-10 01:40:08 +02:00
luk3yx
cdda5c8a03 Add stairsplus note into README.txt. 2019-03-01 13:05:50 -08:00
luk3yx
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
luk3yx
fcb319631f Add description and depends to mod.conf. 2019-03-01 13:05:50 -08:00
luk3yx
8b83145c6c Fix whitespace 2019-03-01 13:05:50 -08:00
luk3yx
8c60a1f77d Allow quartz to be used in circular saws 2019-03-01 13:05:50 -08:00
23 changed files with 125 additions and 337 deletions

View File

@ -12,9 +12,9 @@ License: MIT (see LICENSE.txt)
Dependencies: Dependencies:
default (found in minetest_game) default (found in minetest_game)
stairs (found in minetest_game) stairs (found in minetest_game)
moreblocks (optional, for stairsplus support) 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/ https://github.com/minetest-mods/quartz/issues/
Crafting: Crafting:
@ -80,3 +80,6 @@ x|x|x
x|c|x x|c|x
----- -----
x|x|x x|x|x
If you have stairsplus (or moreblocks) installed, you will be able to use
circular saws to cut quartz blocks.

View File

@ -1,4 +0,0 @@
default
stairs
moreblocks?
intllib?

View File

@ -1 +0,0 @@
Adds quartz ore and some decorative quartz blocks

103
init.lua
View File

@ -1,8 +1,6 @@
local settings = Settings(minetest.get_modpath("quartz").."/settings.txt") local settings = Settings(minetest.get_modpath("quartz").."/settings.txt")
-- internationalization boilerplate local S = minetest.get_translator("quartz")
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
-- --
-- Item Registration -- Item Registration
@ -62,12 +60,29 @@ minetest.register_node("quartz:chiseled", {
minetest.register_node("quartz:pillar", { minetest.register_node("quartz:pillar", {
description = S("Quartz Pillar"), description = S("Quartz Pillar"),
paramtype2 = "facedir", 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}, groups = {cracky=3, oddly_breakable_by_hand=1},
sounds = default.node_sound_glass_defaults(), sounds = default.node_sound_glass_defaults(),
on_place = minetest.rotate_node 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"},
S("Quartz stair"),
S("Quartz slab"),
default.node_sound_glass_defaults())
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"},
S("Quartz Pillar stair"),
S("Quartz Pillar slab"),
default.node_sound_glass_defaults())
-- --
-- Crafting -- Crafting
-- --
@ -92,20 +107,10 @@ minetest.register_craft({
-- Chiseled Quartz -- Chiseled Quartz
minetest.register_craft({ minetest.register_craft({
output = 'quartz:chiseled 2', output = 'quartz:chiseled 4',
recipe = { recipe = {
{'stairs:slab_quartzblock', '', ''}, {'quartz:block', 'quartz:block', ''},
{'stairs:slab_quartzblock', '', ''}, {'quartz:block', 'quartz:block', ''},
{'', '', ''},
}
})
-- Chiseled Quartz (for stairsplus)
minetest.register_craft({
output = 'quartz:chiseled 2',
recipe = {
{'quartz:slab_block', '', ''},
{'quartz:slab_block', '', ''},
{'', '', ''}, {'', '', ''},
} }
}) })
@ -142,45 +147,36 @@ minetest.register_abm({
-- Compatibility with stairsplus -- Compatibility with stairsplus
-- --
if minetest.get_modpath("moreblocks") then if minetest.global_exists("stairsplus") then
local nodename = "quartz:block" stairsplus:register_all("quartz", "block", "quartz:block", {
local ndef = table.copy(minetest.registered_nodes[nodename]) description = "Quartz Block",
ndef.sunlight_propagates = true tiles = {"quartz_block.png"},
ndef.place_param2 = nil groups = {cracky=3, oddly_breakable_by_hand=1},
stairsplus:register_all("quartz", "block", nodename, ndef) sounds = default.node_sound_glass_defaults()
})
nodename = "quartz:chiseled" stairsplus:register_all("quartz", "chiseled", "quartz:chiseled", {
ndef = table.copy(minetest.registered_nodes[nodename]) description = "Chiseled Quartz",
ndef.sunlight_propagates = true tiles = {"quartz_chiseled.png"},
ndef.place_param2 = nil groups = {cracky=3, oddly_breakable_by_hand=1},
stairsplus:register_all("quartz", "chiseled", nodename, ndef) sounds = default.node_sound_glass_defaults()
})
nodename = "quartz:pillar" stairsplus:register_all("quartz", "pillar", "quartz:pillar", {
ndef = table.copy(minetest.registered_nodes[nodename]) description = "Quartz Pillar",
ndef.sunlight_propagates = true tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png",
ndef.place_param2 = nil "quartz_pillar_side.png"},
stairsplus:register_all("quartz", "pillar", nodename, ndef) groups = {cracky=3, oddly_breakable_by_hand=1},
sounds = default.node_sound_glass_defaults()
})
end
-- NALC aliases
minetest.register_alias("stairs:stair_quartzblock", "quartz:stair_block") minetest.register_alias("stairs:stair_quartzblock", "quartz:stair_block")
minetest.register_alias("stairs:slab_quartzblock", "quartz:slab_block") minetest.register_alias("stairs:slab_quartzblock", "quartz:slab_block")
minetest.register_alias("stairs:stair_quartzstair", "quartz:stair_pillar") minetest.register_alias("stairs:stair_quartzstair", "quartz:stair_pillar")
minetest.register_alias("stairs:slab_quartzstair", "quartz:slab_pillar") minetest.register_alias("stairs:slab_quartzstair", "quartz:slab_pillar")
else
-- Stairs & Slabs
stairs.register_stair_and_slab("quartzblock", "quartz:block",
{cracky=3, oddly_breakable_by_hand=1},
{"quartz_block.png"},
S("Quartz stair"),
S("Quartz slab"),
default.node_sound_glass_defaults())
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"},
S("Quartz Pillar stair"),
S("Quartz Pillar slab"),
default.node_sound_glass_defaults())
end
-- --
-- Deprecated -- Deprecated
@ -190,11 +186,14 @@ if settings:get_bool("ENABLE_HORIZONTAL_PILLAR") then
-- Quartz Pillar (horizontal) -- Quartz Pillar (horizontal)
minetest.register_node("quartz:pillar_horizontal", { minetest.register_node("quartz:pillar_horizontal", {
description = "Quartz Pillar Horizontal", description = "Quartz Pillar Horizontal",
tiles = {"quartz_pillar_side.png", "quartz_pillar_side.png", "quartz_pillar_side.png^[transformR90", tiles = {"quartz_pillar_side.png", "quartz_pillar_side.png",
"quartz_pillar_side.png^[transformR90", "quartz_pillar_top.png", "quartz_pillar_top.png"}, "quartz_pillar_side.png^[transformR90",
"quartz_pillar_side.png^[transformR90", "quartz_pillar_top.png",
"quartz_pillar_top.png"},
paramtype2 = "facedir", paramtype2 = "facedir",
drop = 'quartz:pillar', 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(), sounds = default.node_sound_glass_defaults(),
}) })
end end

View File

@ -1,45 +0,0 @@
-- Fallback functions for when `intllib` is not installed.
-- Code released under Unlicense <http://unlicense.org>.
-- Get the latest version of this file at:
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
local function format(str, ...)
local args = { ... }
local function repl(escape, open, num, close)
if escape == "" then
local replacement = tostring(args[tonumber(num)])
if open == "" then
replacement = replacement..close
end
return replacement
else
return "@"..open..num..close
end
end
return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl))
end
local gettext, ngettext
if minetest.get_modpath("intllib") then
if intllib.make_gettext_pair then
-- New method using gettext.
gettext, ngettext = intllib.make_gettext_pair()
else
-- Old method using text files.
gettext = intllib.Getter()
end
end
-- Fill in missing functions.
gettext = gettext or function(msgid, ...)
return format(msgid, ...)
end
ngettext = ngettext or function(msgid, msgid_plural, n, ...)
return format(n==1 and msgid or msgid_plural, ...)
end
return gettext, ngettext

View File

@ -1,59 +0,0 @@
# Spanish translations for PACKAGE package
# Traducciones al español para el paquete PACKAGE.
# Copyright (C) 2017 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Diego Martínez <kaeza@users.noreply.github.com>, 2017.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-19 21:50-0700\n"
"PO-Revision-Date: 2017-02-20 15:03-0300\n"
"Last-Translator: Diego Martínez <kaeza@users.noreply.github.com>\n"
"Language-Team: Spanish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: init.lua:13
msgid "Quartz Crystal"
msgstr "Cristal de cuarzo"
#: init.lua:17
msgid "Quartz Crystal Piece"
msgstr "Trozo de cristal de cuarzo"
#: init.lua:27
msgid "Quartz Ore"
msgstr "Mineral de cuarzo"
#: init.lua:47
msgid "Quartz Block"
msgstr "Bloque de cuarzo"
#: init.lua:55
msgid "Chiseled Quartz"
msgstr "Cuarzo cincelado"
#: init.lua:63
msgid "Quartz Pillar"
msgstr "Pilar de cuarzo"
#: init.lua:75
msgid "Quartz stair"
msgstr "Escaleras de cuarzo"
#: init.lua:76
msgid "Quartz slab"
msgstr "Losa de cuarzo"
#: init.lua:82
msgid "Quartz Pillar stair"
msgstr "Escaleras de pilar de cuarzo"
#: init.lua:83
msgid "Quartz Pillar slab"
msgstr "Losa de pilar de cuarzo"

View File

@ -1,54 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-04 07:46+0100\n"
"PO-Revision-Date: 2017-03-04 07:48+0100\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.9\n"
"Last-Translator: Peppy <peppy@twang-factory.com>\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Language: fr\n"
#: init.lua:13
msgid "Quartz Crystal"
msgstr "Cristal de quartz"
#: init.lua:17
msgid "Quartz Crystal Piece"
msgstr "Morceau de cristal de quartz"
#: init.lua:27
msgid "Quartz Ore"
msgstr "Minerai de quartz"
#: init.lua:47
msgid "Quartz Block"
msgstr "Bloc de quartz"
#: init.lua:55
msgid "Chiseled Quartz"
msgstr "Quartz ciselé"
#: init.lua:63
msgid "Quartz Pillar"
msgstr "Pilier en quartz"
#: init.lua:75
msgid "Quartz stair"
msgstr "Escalier en quartz"
#: init.lua:76
msgid "Quartz slab"
msgstr "Dalle en quartz"
#: init.lua:82
msgid "Quartz Pillar stair"
msgstr "Escalier en pilier en quartz"
#: init.lua:83
msgid "Quartz Pillar slab"
msgstr "Dalle en pilier en quartz"

View File

@ -1,57 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-19 21:50-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua:13
msgid "Quartz Crystal"
msgstr "Cristal de Quartzo"
#: init.lua:17
msgid "Quartz Crystal Piece"
msgstr "Pedaço de Cristal de Quartzo"
#: init.lua:27
msgid "Quartz Ore"
msgstr "Minério de Quartzo"
#: init.lua:47
msgid "Quartz Block"
msgstr "Bloco de Quartzo"
#: init.lua:55
msgid "Chiseled Quartz"
msgstr "Quartzo Cinzelado"
#: init.lua:63
msgid "Quartz Pillar"
msgstr "Pilar de Quartzo"
#: init.lua:75
msgid "Quartz stair"
msgstr "Escada de quartzo"
#: init.lua:76
msgid "Quartz slab"
msgstr "Laje de quartzo"
#: init.lua:82
msgid "Quartz Pillar stair"
msgstr "Escada de Pilar de Quartzo"
#: init.lua:83
msgid "Quartz Pillar slab"
msgstr "Laje de Pilar de Quartzo"

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

@ -0,0 +1,15 @@
# textdomain: quartz
### init.lua ###
Chiseled Quartz=Cuarzo cincelado
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

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

@ -0,0 +1,15 @@
# textdomain: quartz
### init.lua ###
Chiseled Quartz=Quartz ciselé
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

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

@ -0,0 +1,15 @@
# textdomain: quartz
### init.lua ###
Chiseled Quartz=Quartzo Cinzelado
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

View File

@ -1,57 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-19 21:50-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua:13
msgid "Quartz Crystal"
msgstr ""
#: init.lua:17
msgid "Quartz Crystal Piece"
msgstr ""
#: init.lua:27
msgid "Quartz Ore"
msgstr ""
#: init.lua:47
msgid "Quartz Block"
msgstr ""
#: init.lua:55
msgid "Chiseled Quartz"
msgstr ""
#: init.lua:63
msgid "Quartz Pillar"
msgstr ""
#: init.lua:75
msgid "Quartz stair"
msgstr ""
#: init.lua:76
msgid "Quartz slab"
msgstr ""
#: init.lua:82
msgid "Quartz Pillar stair"
msgstr ""
#: init.lua:83
msgid "Quartz Pillar slab"
msgstr ""

15
locale/template.txt Normal file
View File

@ -0,0 +1,15 @@
# textdomain: quartz
### init.lua ###
Chiseled Quartz=
Quartz Block=
Quartz Crystal=
Quartz Crystal Piece=
Quartz Ore=
Quartz Pillar=
Quartz Pillar slab=
Quartz Pillar stair=
Quartz slab=
Quartz stair=

View File

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

View File

@ -1,6 +1,6 @@
# 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 = true
# 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)

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: 281 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