Remove unused "stained_wood" mod.
@ -57,7 +57,6 @@ The following mods are also included:
|
||||
* materials/
|
||||
* [moreores][] ([zlib/CC-BY-SA](mods/materials/moreores/README.md))
|
||||
* [quartz][] ([MIT](mods/materials/quartz/LICENSE.txt))
|
||||
* [stained_wood][] ([MIT](mods/materials/stained_wood/init.lua))
|
||||
* [unifieddyes][] ([GPL](mods/materials/unifieddyes/LICENSE))
|
||||
* [mesecons (modpack)][mesecons] ([LGPL/CC-BY-SA](mods/mesecons/COPYING.txt))
|
||||
* mobs/
|
||||
@ -192,7 +191,6 @@ The following mods are also included:
|
||||
[quartz]: https://forum.minetest.net/viewtopic.php?t=5682
|
||||
[signs_lib]: https://forum.minetest.net/viewtopic.php?f=11&t=13762
|
||||
[spidermob]: https://forum.minetest.net/viewtopic.php?t=10045
|
||||
[stained_wood]: mods/materials/stained_wood
|
||||
[stairsplus]: https://forum.minetest.net/viewtopic.php?id=6140
|
||||
[technic]: https://forum.minetest.net/viewtopic.php?t=2538
|
||||
[throwing]: https://forum.minetest.net/viewtopic.php?t=687
|
||||
|
@ -1,20 +0,0 @@
|
||||
# Stained Wood
|
||||
|
||||
A set of colored wood meant to replace & add to [my_door_wood][] from the
|
||||
[mydoors modpack][mydoors].
|
||||
|
||||
### License of Textures:
|
||||
Dyed woods are derived from [default_pine_wood][].
|
||||
|
||||
default_pine_wood:
|
||||
* Created by [paramat][]
|
||||
* [CC BY-SA 3.0][]
|
||||
|
||||
[mydoors]: https://forum.minetest.net/viewtopic.php?t=10626
|
||||
[my_door_wood]: https://github.com/minetest-mods/mydoors/tree/master/my_door_wood
|
||||
|
||||
|
||||
[default_pine_wood]: https://github.com/minetest/minetest_game/blob/master/mods/default/textures/default_pine_wood.png
|
||||
[sofar]: https://github.com/sofar
|
||||
[paramat]: https://github.com/paramat
|
||||
[CC BY-SA 3.0]: https://creativecommons.org/licenses/by-sa/3.0/legalcode
|
@ -1,42 +0,0 @@
|
||||
|
||||
-- The MIT License (MIT)
|
||||
--
|
||||
-- Copyright © 2016 Jordan Irwin
|
||||
--
|
||||
-- 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.
|
||||
|
||||
|
||||
|
||||
-- Define function for adding a craft recipe for stained woods
|
||||
addStainedWoodCraft = function(color)
|
||||
local node_name = "stained_wood:" .. color
|
||||
local dye_name = "dye:" .. color
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = node_name,
|
||||
recipe = {"default:wood", dye_name},
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
-- Register all stained wood craft recipes
|
||||
for i = 1, wood_colors_count do
|
||||
addStainedWoodCraft(wood_colors[i])
|
||||
end
|
@ -1,3 +0,0 @@
|
||||
default
|
||||
dye
|
||||
craft_guide?
|
@ -1,74 +0,0 @@
|
||||
|
||||
-- The MIT License (MIT)
|
||||
--
|
||||
-- Copyright © 2016 Jordan Irwin
|
||||
--
|
||||
-- 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.
|
||||
|
||||
|
||||
local modname = "stained_wood"
|
||||
|
||||
core.log("action", "[MOD] Loading '" .. modname .. "' ...")
|
||||
|
||||
|
||||
logMessage = function(message)
|
||||
core.log("action", "[" .. modname .. "] " .. message)
|
||||
end
|
||||
|
||||
|
||||
-- Get stained_wood mod path
|
||||
local modpath = minetest.get_modpath("stained_wood")
|
||||
|
||||
-- Initialize stained_wood
|
||||
stained_wood = {}
|
||||
|
||||
|
||||
-- Define function to titleize labels (for description purposes)
|
||||
titleize = function(string)
|
||||
local string = string:gsub("^%l", string.upper)
|
||||
return string
|
||||
end
|
||||
|
||||
|
||||
-- Define function to retrieve total number of stained wood colors
|
||||
getWoodColorsCount = function(colors)
|
||||
local color_count = 0
|
||||
|
||||
for _ in pairs(colors) do
|
||||
color_count = color_count + 1
|
||||
end
|
||||
|
||||
return color_count
|
||||
end
|
||||
|
||||
|
||||
-- Set stained wood colors
|
||||
wood_colors = {
|
||||
"black", "blue", "brown", "gray", "gray_dark", "green", "red", "violet",
|
||||
"white", "yellow"}
|
||||
|
||||
wood_colors_count = getWoodColorsCount(wood_colors)
|
||||
|
||||
|
||||
-- Load sub-scripts
|
||||
dofile(modpath .. "/nodes.lua")
|
||||
dofile(modpath .. "/crafting.lua")
|
||||
|
||||
|
||||
core.log("action", "[MOD] '" .. modname .. "' loaded")
|
@ -1,6 +0,0 @@
|
||||
name = stained_wood
|
||||
title = Stained_wood
|
||||
author = AntumDeluge
|
||||
description =
|
||||
license = MIT
|
||||
version = 0.1
|
@ -1,50 +0,0 @@
|
||||
|
||||
-- The MIT License (MIT)
|
||||
--
|
||||
-- Copyright © 2016 Jordan Irwin
|
||||
--
|
||||
-- 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.
|
||||
|
||||
|
||||
|
||||
-- Define function for adding a stained wood
|
||||
addStainedWood = function(color)
|
||||
local node_name = "stained_wood:" .. color
|
||||
local description = titleize(color) .. " Stained Wood"
|
||||
|
||||
if color == "gray_dark" then
|
||||
description = "Dark Gray Stained Wood"
|
||||
end
|
||||
|
||||
minetest.register_node(node_name, {
|
||||
description = description,
|
||||
tiles = {"wood_" .. color .. ".png"},
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
logMessage("nodes.lua: Registered node '" .. node_name .. "'")
|
||||
end
|
||||
|
||||
|
||||
-- Register all stained wood
|
||||
for i = 1, wood_colors_count do
|
||||
addStainedWood(wood_colors[i])
|
||||
end
|
Before Width: | Height: | Size: 304 B |
Before Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 335 B |
Before Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 360 B |
Before Width: | Height: | Size: 385 B |
Before Width: | Height: | Size: 387 B |
Before Width: | Height: | Size: 351 B |
Before Width: | Height: | Size: 360 B |