Skip to content
Snippets Groups Projects
Commit 8739c4e7 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Wool

parent 3ea6096a
No related branches found
No related tags found
No related merge requests found
Showing
with 72 additions and 0 deletions
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
-- 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
mods/wool/textures/wool_black.png

3.1 KiB

mods/wool/textures/wool_blue.png

3.14 KiB

mods/wool/textures/wool_brown.png

3.15 KiB

mods/wool/textures/wool_cyan.png

3.17 KiB

mods/wool/textures/wool_dark_green.png

3.19 KiB

mods/wool/textures/wool_dark_grey.png

3.3 KiB

mods/wool/textures/wool_green.png

3.3 KiB

mods/wool/textures/wool_grey.png

3.35 KiB

mods/wool/textures/wool_magenta.png

3.29 KiB

mods/wool/textures/wool_orange.png

3.31 KiB

mods/wool/textures/wool_pink.png

3.04 KiB

mods/wool/textures/wool_red.png

3.28 KiB

mods/wool/textures/wool_violet.png

3.17 KiB

mods/wool/textures/wool_white.png

3.2 KiB

mods/wool/textures/wool_yellow.png

3.12 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment