Compare commits
1 Commits
sofar-patc
...
master
Author | SHA1 | Date | |
---|---|---|---|
51a8f46e1c |
21
LICENSE.txt
@ -1,21 +0,0 @@
|
|||||||
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.
|
|
20
README.txt
Normal file → Executable file
@ -4,18 +4,9 @@
|
|||||||
| |_| | |_| | (_| | | | |_ / / | | | | (_) | (_| |
|
| |_| | |_| | (_| | | | |_ / / | | | | (_) | (_| |
|
||||||
\__\_\\__,_|\__,_|_| \__/___| |_| |_|\___/ \__,_|
|
\__\_\\__,_|\__,_|_| \__/___| |_| |_|\___/ \__,_|
|
||||||
|
|
||||||
|
|
||||||
This mod adds quartz ore and some decorative blocks to minetest.
|
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:
|
Crafting:
|
||||||
|
|
||||||
@ -80,3 +71,12 @@ x|x|x
|
|||||||
x|c|x
|
x|c|x
|
||||||
-----
|
-----
|
||||||
x|x|x
|
x|x|x
|
||||||
|
|
||||||
|
|
||||||
|
License:
|
||||||
|
|
||||||
|
CC BY-SA 3.0
|
||||||
|
|
||||||
|
More info at http://creativecommons.org/licenses/by-sa/3.0/
|
||||||
|
|
||||||
|
|
||||||
|
4
depends.txt
Normal file → Executable file
@ -1,3 +1,3 @@
|
|||||||
default
|
default,
|
||||||
stairs
|
stairs,
|
||||||
moreblocks?
|
moreblocks?
|
||||||
|
@ -1 +0,0 @@
|
|||||||
Adds quartz ore and some decorative quartz blocks
|
|
112
init.lua
Normal file → Executable file
@ -1,8 +1,6 @@
|
|||||||
dofile(minetest.get_modpath("quartz").."/settings.txt")
|
dofile(minetest.get_modpath("quartz").."/settings.txt")
|
||||||
|
|
||||||
--
|
--Node Registration
|
||||||
-- Item Registration
|
|
||||||
--
|
|
||||||
|
|
||||||
--Quartz Crystal
|
--Quartz Crystal
|
||||||
minetest.register_craftitem("quartz:quartz_crystal", {
|
minetest.register_craftitem("quartz:quartz_crystal", {
|
||||||
@ -14,10 +12,6 @@ minetest.register_craftitem("quartz:quartz_crystal_piece", {
|
|||||||
inventory_image = "quartz_crystal_piece.png",
|
inventory_image = "quartz_crystal_piece.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
--
|
|
||||||
-- Node Registration
|
|
||||||
--
|
|
||||||
|
|
||||||
--Ore
|
--Ore
|
||||||
minetest.register_node("quartz:quartz_ore", {
|
minetest.register_node("quartz:quartz_ore", {
|
||||||
description = "Quartz Ore",
|
description = "Quartz Ore",
|
||||||
@ -38,6 +32,17 @@ minetest.register_ore({
|
|||||||
y_max = -5,
|
y_max = -5,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "quartz:quartz_ore",
|
||||||
|
wherein = "default:stone",
|
||||||
|
clust_scarcity = 30*30*30,
|
||||||
|
clust_num_ores = 64,
|
||||||
|
clust_size = 5,
|
||||||
|
y_min = -10240,
|
||||||
|
y_max = -8192,
|
||||||
|
})
|
||||||
|
|
||||||
--Quartz Block
|
--Quartz Block
|
||||||
minetest.register_node("quartz:block", {
|
minetest.register_node("quartz:block", {
|
||||||
description = "Quartz Block",
|
description = "Quartz Block",
|
||||||
@ -64,6 +69,7 @@ minetest.register_node("quartz:pillar", {
|
|||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
--Stairs & Slabs
|
--Stairs & Slabs
|
||||||
stairs.register_stair_and_slab("quartzblock", "quartz:block",
|
stairs.register_stair_and_slab("quartzblock", "quartz:block",
|
||||||
{cracky=3, oddly_breakable_by_hand=1},
|
{cracky=3, oddly_breakable_by_hand=1},
|
||||||
@ -79,13 +85,17 @@ stairs.register_slab("quartzstair", "quartz:pillar",
|
|||||||
"Quartz Pillar slab",
|
"Quartz Pillar slab",
|
||||||
default.node_sound_glass_defaults())
|
default.node_sound_glass_defaults())
|
||||||
|
|
||||||
--
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--Crafting
|
--Crafting
|
||||||
--
|
|
||||||
|
|
||||||
--Quartz Crystal Piece
|
--Quartz Crystal Piece
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = '"quartz:quartz_crystal_piece" 3',
|
output = "quartz:quartz_crystal_piece 3",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'quartz:quartz_crystal'}
|
{'quartz:quartz_crystal'}
|
||||||
}
|
}
|
||||||
@ -93,7 +103,7 @@ minetest.register_craft({
|
|||||||
|
|
||||||
--Quartz Block
|
--Quartz Block
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = '"quartz:block" 4',
|
output = "quartz:block 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'quartz:quartz_crystal', 'quartz:quartz_crystal', ''},
|
{'quartz:quartz_crystal', 'quartz:quartz_crystal', ''},
|
||||||
{'quartz:quartz_crystal', 'quartz:quartz_crystal', ''},
|
{'quartz:quartz_crystal', 'quartz:quartz_crystal', ''},
|
||||||
@ -103,7 +113,7 @@ minetest.register_craft({
|
|||||||
|
|
||||||
--Chiseled Quartz
|
--Chiseled Quartz
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'quartz:chiseled 2',
|
output = "quartz:chiseled 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{'stairs:slab_quartzblock', '', ''},
|
{'stairs:slab_quartzblock', '', ''},
|
||||||
{'stairs:slab_quartzblock', '', ''},
|
{'stairs:slab_quartzblock', '', ''},
|
||||||
@ -112,14 +122,14 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
--Chiseled Quartz(for stairsplus)
|
--Chiseled Quartz(for stairsplus)
|
||||||
minetest.register_craft({
|
--[[minetest.register_craft({
|
||||||
output = 'quartz:chiseled 2',
|
output = 'quartz:chiseled 2',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'quartz:slab_block', '', ''},
|
{'quartz:slab_block', '', ''},
|
||||||
{'quartz:slab_block', '', ''},
|
{'quartz:slab_block', '', ''},
|
||||||
{'', '', ''},
|
{'', '', ''},
|
||||||
}
|
}
|
||||||
})
|
}) ]]-- Disabled. Item "quartz:slab_block" is unknown //MFF(Mg|08/09/15)
|
||||||
|
|
||||||
--Quartz Pillar
|
--Quartz Pillar
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -131,13 +141,9 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
--
|
--abms
|
||||||
-- ABMS
|
|
||||||
--
|
|
||||||
|
|
||||||
local dirs2 = { 12, 9, 18, 7, 12 }
|
local dirs2 = { 12, 9, 18, 7, 12 }
|
||||||
|
|
||||||
-- Replace all instances of the horizontal quartz pillar with the
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = { "quartz:pillar_horizontal" },
|
nodenames = { "quartz:pillar_horizontal" },
|
||||||
interval = 1,
|
interval = 1,
|
||||||
@ -149,43 +155,7 @@ minetest.register_abm({
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
--
|
--These are deprecated, don't use them
|
||||||
-- 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
|
if enable_horizontal_pillar then
|
||||||
--Quartz Pillar (horizontal)
|
--Quartz Pillar (horizontal)
|
||||||
@ -199,3 +169,33 @@ if enable_horizontal_pillar then
|
|||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
end
|
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
|
||||||
|
BIN
screenshot.png
Before Width: | Height: | Size: 106 KiB |
0
settings.txt
Normal file → Executable file
BIN
textures/quartz_block.png
Normal file → Executable file
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 264 B |
BIN
textures/quartz_chiseled.png
Normal file → Executable file
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 361 B |
BIN
textures/quartz_crystal_full.png
Normal file → Executable file
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 193 B |
BIN
textures/quartz_crystal_piece.png
Normal file → Executable file
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 138 B |
Before Width: | Height: | Size: 281 B After Width: | Height: | Size: 166 B |
BIN
textures/quartz_pillar_side.png
Normal file → Executable file
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 384 B |
BIN
textures/quartz_pillar_side_horizontal.png
Normal file → Executable file
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 261 B |
BIN
textures/quartz_pillar_top.png
Normal file → Executable file
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 369 B |