8 Commits

Author SHA1 Message Date
f7a7a9988c Merge branch 'master' of yunohost.local:minetest-mods/quartz into nalc-1.2-dev 2019-12-22 14:54:47 +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
ee4467b5cb Merge branch 'master' into nalc-1.2 2019-05-10 01:40:08 +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
6 changed files with 29 additions and 26 deletions

View File

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

View File

@ -1,4 +1,5 @@
default
stairs
intllib?
moreblocks?
intllib?
stairsplus?

View File

@ -1 +1 @@
Adds quartz ore and some decorative quartz blocks
Adds quartz ore and some decorative quartz blocks.

View File

@ -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
@ -92,21 +93,11 @@ minetest.register_craft({
-- Chiseled Quartz
minetest.register_craft({
output = 'quartz:chiseled 2',
output = 'quartz:chiseled 4',
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:block', 'quartz:block', ''},
{'quartz:block', 'quartz:block', ''},
{'', '', ''},
}
})
@ -142,7 +133,7 @@ minetest.register_abm({
-- Compatibility with stairsplus
--
if minetest.get_modpath("moreblocks") then
if minetest.global_exists("stairsplus") then
local nodename = "quartz:block"
local ndef = table.copy(minetest.registered_nodes[nodename])
ndef.sunlight_propagates = true
@ -176,7 +167,8 @@ else
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())
@ -190,11 +182,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

View File

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

View File

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