Initial Commit

This commit is contained in:
MT-Modder 2015-02-17 14:47:09 -05:00
parent 49fcf068c7
commit a158aa1586
82 changed files with 179 additions and 0 deletions

28
LICENSE.txt Normal file
View File

@ -0,0 +1,28 @@
License of source code:
-----------------------
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
This license is also known as "WTFPL".
License of media (textures and sounds)
--------------------------------------
Design:
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
http://creativecommons.org/licenses/by-sa/3.0/
Colors:
GPL 2.0 or above

15
README.md Normal file
View File

@ -0,0 +1,15 @@
"Unified Wool" (unifiedwool)
Author:
Code - mtmodder148
Texture Design - Cisoun, modified by mtmodder148
Texture Colors - VanessaE
License:
Code - WTFPL
Textures - CC BY-SA 3.0
Colors - GPL 2.0 or above
Dependencies: dye (Comes with minetest_game), wool (Comes with minetest_game), unifieddyes
Adds:
- 75 wool nodes for unifieddyes

3
depends.txt Normal file
View File

@ -0,0 +1,3 @@
dye
wool
unifieddyes

133
init.lua Normal file
View File

@ -0,0 +1,133 @@
-- Minetest Mod: "Unified Wool"
unifiedwool = {}
unifiedwool.dyes = {
{"red", "Red"},
{"orange", "Orange"},
{"yellow", "Yellow"},
{"lime", "Lime"},
{"green", "Green"},
{"aqua", "Aqua"},
{"cyan", "Cyan"},
{"skyblue", "Sky-blue"},
{"blue", "Blue"},
{"violet", "Violet"},
{"magenta", "Magenta"},
{"redviolet", "Red-violet"}
}
-- Light Grey
minetest.register_node("unifiedwool:light_grey", {
description = "Light Grey Wool",
tiles = {"unifiedwool_lightgrey.png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1,not_in_creative_inventory=1},
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
type = "shapeless",
output = "unifiedwool:light_grey",
recipe = {"dye:light_grey", "group:wool"},
})
for _, row in ipairs(unifiedwool.dyes) do
local name = row[1]
local desc = row[2]
-- Extended Colors
if name == "lime" or name == "aqua" or name == "skyblue" or name == "redviolet" then
minetest.register_node("unifiedwool:"..name, {
description = desc.." Wool",
tiles = {"unifiedwool_"..name..".png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1,not_in_creative_inventory=1},
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
type = "shapeless",
output = "unifiedwool:"..name,
recipe = {"dye:"..name, "group:wool"},
})
end
-- Dark & low saturation
minetest.register_node("unifiedwool:dark_"..name.."_s50", {
description = "Dark "..desc.." Wool (low saturation)",
tiles = {"unifiedwool_dark_"..name.."_s50.png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1,not_in_creative_inventory=1},
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
type = "shapeless",
output = "unifiedwool:dark_"..name.."_s50",
recipe = {"unifieddyes:dark_"..name.."_s50", "group:wool"},
})
-- Dark
if name ~= "green" then
minetest.register_node("unifiedwool:dark"..name, {
description = "Dark "..desc.." Wool",
tiles = {"unifiedwool_dark_"..name..".png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1,not_in_creative_inventory=1},
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
type = "shapeless",
output = "unifiedwool:dark_"..name,
recipe = {"unifieddyes:dark_"..name, "group:wool"},
})
end
-- Medium & low saturation
minetest.register_node("unifiedwool:medium_"..name.."_s50", {
description = "Medium "..desc.." Wool (low saturation)",
tiles = {"unifiedwool_medium_"..name.."_s50.png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1,not_in_creative_inventory=1},
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
type = "shapeless",
output = "unifiedwool:medium_"..name.."_s50",
recipe = {"unifieddyes:medium_"..name.."_s50", "group:wool"},
})
-- Medium
minetest.register_node("unifiedwool:medium_"..name, {
description = "Medium "..desc.." Wool",
tiles = {"unifiedwool_medium_"..name..".png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1,not_in_creative_inventory=1},
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
type = "shapeless",
output = "unifiedwool:medium_"..name,
recipe = {"unifieddyes:medium_"..name, "group:wool"},
})
-- Light
if name ~= "red" then
minetest.register_node("unifiedwool:light_"..name, {
description = "Light "..desc.." Wool",
tiles = {"unifiedwool_light_"..name..".png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1,not_in_creative_inventory=1},
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
type = "shapeless",
output = "unifiedwool:light"..name,
recipe = {"unifieddyes:light_"..name, "group:wool"},
})
end
-- Low Saturation
minetest.register_node("unifiedwool:"..name.."_s50", {
description = desc.." Wool (low saturation)",
tiles = {"unifiedwool_"..name.."_s50.png"},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1,not_in_creative_inventory=1},
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
type = "shapeless",
output = "unifiedwool:"..name.."_s50",
recipe = {"unifieddyes:"..name.."_s50", "group:wool"},
})
end
print("[UnifiedWool] Loaded!")

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B