Change license to MIT and do some cleanup

This commit is contained in:
4Evergreen4 2016-01-09 12:52:10 -05:00
parent 03d08a62f4
commit 791ae9da06
7 changed files with 118 additions and 87 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

@ -4,9 +4,17 @@
| |_| | |_| | (_| | | | |_ / / | | | | (_) | (_| |
\__\_\\__,_|\__,_|_| \__/___| |_| |_|\___/ \__,_|
This mod adds quartz ore and some decorative blocks to minetest.
Version: 1.0
License: MIT (see LICENSE.txt)
Dependencies:
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:
@ -71,12 +79,3 @@ x|x|x
x|c|x
-----
x|x|x
License:
CC BY-SA 3.0
More info at http://creativecommons.org/licenses/by-sa/3.0/

View File

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

1
description.txt Normal file
View File

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

View File

@ -1,6 +1,8 @@
dofile(minetest.get_modpath("quartz").."/settings.txt")
--Node Registration
--
-- Item Registration
--
-- Quartz Crystal
minetest.register_craftitem("quartz:quartz_crystal", {
@ -12,6 +14,10 @@ minetest.register_craftitem("quartz:quartz_crystal_piece", {
inventory_image = "quartz_crystal_piece.png",
})
--
-- Node Registration
--
-- Ore
minetest.register_node("quartz:quartz_ore", {
description = "Quartz Ore",
@ -58,7 +64,6 @@ minetest.register_node("quartz:pillar", {
on_place = minetest.rotate_node
})
-- Stairs & Slabs
stairs.register_stair_and_slab("quartzblock", "quartz:block",
{cracky=3, oddly_breakable_by_hand=1},
@ -74,13 +79,9 @@ stairs.register_slab("quartzstair", "quartz:pillar",
"Quartz Pillar slab",
default.node_sound_glass_defaults())
--
-- Crafting
--
-- Quartz Crystal Piece
minetest.register_craft({
@ -130,9 +131,13 @@ minetest.register_craft({
}
})
--abms
--
-- 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,
@ -144,7 +149,43 @@ minetest.register_abm({
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
-- Quartz Pillar (horizontal)
@ -158,33 +199,3 @@ if enable_horizontal_pillar then
sounds = default.node_sound_glass_defaults(),
})
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 Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 281 B