Wool
28
mods/wool/README.txt
Normal file
|
@ -0,0 +1,28 @@
|
|||
Minetest 0.4 mod: wool
|
||||
======================
|
||||
|
||||
Mostly backward-compatible with jordach's 16-color wool mod.
|
||||
|
||||
License of source code:
|
||||
-----------------------
|
||||
Copyright (C) 2012 Perttu Ahola (celeron55) <celeron55@gmail.com>
|
||||
|
||||
This program is free software. It comes without any warranty, to
|
||||
the extent permitted by applicable law. You can redistribute it
|
||||
and/or modify it under the terms of the Do What The Fuck You Want
|
||||
To Public License, Version 2, as published by Sam Hocevar. See
|
||||
http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
|
||||
License of media (textures and sounds)
|
||||
--------------------------------------
|
||||
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
||||
http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
||||
Authors of media files
|
||||
-----------------------
|
||||
Cisoun:
|
||||
- wool_black.png wool_brown.png wool_dark_green.png wool_green.png
|
||||
- wool_magenta.png wool_pink.png wool_violet.png wool_yellow.png wool_blue.png
|
||||
- wool_cyan.png wool_dark_grey.png wool_grey.png wool_orange.png wool_red.png
|
||||
- wool_white.png
|
||||
|
0
mods/wool/depends.txt
Normal file
44
mods/wool/init.lua
Normal file
|
@ -0,0 +1,44 @@
|
|||
-- minetest/wool/init.lua
|
||||
|
||||
-- Backwards compatibility with jordach's 16-color wool mod
|
||||
minetest.register_alias("wool:dark_blue", "wool:blue")
|
||||
minetest.register_alias("wool:gold", "wool:yellow")
|
||||
|
||||
local wool = {}
|
||||
wool.dyes = {
|
||||
{"white", "White"},
|
||||
{"grey", "Grey"},
|
||||
{"dark_grey", "Dark Grey"},
|
||||
{"black", "Black"},
|
||||
{"violet", "Violet"},
|
||||
{"blue", "Blue"},
|
||||
{"cyan", "Cyan"},
|
||||
{"dark_green", "Dark Green"},
|
||||
{"green", "Green"},
|
||||
{"yellow", "Yellow"},
|
||||
{"brown", "Brown"},
|
||||
{"orange", "Orange"},
|
||||
{"red", "Red"},
|
||||
{"magenta", "Magenta"},
|
||||
{"pink", "Pink"},
|
||||
}
|
||||
|
||||
for _, row in ipairs(wool.dyes) do
|
||||
local name = row[1]
|
||||
local desc = row[2]
|
||||
-- Node Definition
|
||||
minetest.register_node("wool:"..name, {
|
||||
description = desc.." Wool",
|
||||
tile_images = {"wool_"..name..".png"},
|
||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3},
|
||||
})
|
||||
if name ~= "white" then
|
||||
-- Crafting from dye and white wool
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'wool:'..name..' 16',
|
||||
recipe = {'dye:'..name, 'wool:white'},
|
||||
})
|
||||
end
|
||||
end
|
||||
|
BIN
mods/wool/textures/wool_black.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
mods/wool/textures/wool_blue.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
mods/wool/textures/wool_brown.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
mods/wool/textures/wool_cyan.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
mods/wool/textures/wool_dark_green.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
mods/wool/textures/wool_dark_grey.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
mods/wool/textures/wool_green.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
mods/wool/textures/wool_grey.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
mods/wool/textures/wool_magenta.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
mods/wool/textures/wool_orange.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
mods/wool/textures/wool_pink.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
mods/wool/textures/wool_red.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
mods/wool/textures/wool_violet.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
mods/wool/textures/wool_white.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
mods/wool/textures/wool_yellow.png
Normal file
After Width: | Height: | Size: 3.1 KiB |