summaryrefslogtreecommitdiff
path: root/coloredwood/init.lua
blob: 23dfa1560df736c7e1e54628ac31c77044a30028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
-- Colored Wood mod by Vanessa Ezekowitz
-- based on my unifieddyes template.
--
-- License:  WTFPL
--
-- This mod provides 89 colors of wood, fences, and sticks, and enough
-- cross-compatible recipes to make everything fit together naturally.
--
-- Colored wood is crafted by putting two regular wood blocks into the
-- grid along with one dye color, in any order and position.  The result
-- is two colored wood blocks.
--
-- Colored sticks are crafted from colored wood blocks only - one colored
-- wood block in any position yields 4 colored sticks as usual.
--
-- Uncolored sticks cannot be dyed separately, but they can still be used
-- to build colored wooden fences.  These are crafted either by placing six
-- plain, uncolored sticks into the crafting grid in the usual manner, plus
-- one portion of dye in the upper-left corner of the grid
-- (D = dye, S = uncolored stick):
--
--  D - -
--  S S S
--  S S S
--
-- You can also craft a colored fence by using colored sticks derived from
-- colored wood.  Just place six of them in the same manner as with plain
-- fences (CS = colored stick):
--
--  -- -- --
--  CS CS CS
--  CS CS CS
--
-- If you find yourself with too many colors of sticks and not enough,
-- ladders, you can use any color (as long as they"re all the same) to
-- create a ladder, but it"ll always result in a plain, uncolored ladder.
-- This practice isn"t recommended of course, since it wastes dye.
--
-- All materials are flammable and can be used as fuel.

-- Hues are on a 30 degree spacing starting at red = 0 degrees.
-- "s50" in a file/item name means "saturation: 50%".
-- Texture brightness levels for the colors are 100%, 66% ("medium"),
-- and 33% ("dark").

coloredwood = {}

coloredwood.shades = {
	"dark_",
	"medium_",
	""		-- represents "no special shade name", e.g. full.
}

coloredwood.shades2 = {
	"Dark ",
	"Medium ",
	""		-- represents "no special shade name", e.g. full.
}

coloredwood.default_hues = {
	"white",
	"grey",
	"dark_grey",
	"black",
	"violet",
	"blue",
	"cyan",
	"dark_green",
	"green",
	"yellow",
	"orange",
	"red",
	"magenta"
}

coloredwood.hues = {
	"red",
	"orange",
	"yellow",
	"lime",
	"green",
	"aqua",
	"cyan",
	"skyblue",
	"blue",
	"violet",
	"magenta",
	"redviolet"
}

coloredwood.hues2 = {
	"Red ",
	"Orange ",
	"Yellow ",
	"Lime ",
	"Green ",
	"Aqua ",
	"Cyan ",
	"Sky Blue ",
	"Blue ",
	"Violet ",
	"Magenta ",
	"Red-violet "
}

coloredwood.greys = {
	"black",
	"darkgrey",
	"grey",
	"lightgrey",
	"white"
}

coloredwood.greys2 = {
	"Black ",
	"Dark Grey ",
	"Medium Grey ",
	"Light Grey ",
	"White "
}

coloredwood.greys3 = {
	"dye:black",
	"dye:dark_grey",
	"dye:grey",
	"dye:light_grey",
	"dye:white"
}

-- All of the actual code is contained in separate lua files:

dofile(minetest.get_modpath("coloredwood").."/wood.lua")
dofile(minetest.get_modpath("coloredwood").."/fence.lua")
dofile(minetest.get_modpath("coloredwood").."/stick.lua")

print("[Colored Wood] Loaded!")