Initial upload
11
README.md
Normal file
@ -0,0 +1,11 @@
|
||||
Wool mod for Minetest
|
||||
|
||||
by TenPlus1
|
||||
|
||||
Yep, it's a simple replacement for the wool mod that allows you to dye any
|
||||
wool any colour including white, and I've also added a wool sound when walking
|
||||
on top of the wool blocks to replace the leaves sound.
|
||||
|
||||
Textures are from Gambit's PixelBox texture pack.
|
||||
|
||||
Sound is from freeSFX.co.uk and has a creative-commons license
|
1
depends.txt
Normal file
@ -0,0 +1 @@
|
||||
default
|
61
init.lua
Normal file
@ -0,0 +1,61 @@
|
||||
minetest.register_alias("wool:dark_blue", "wool:blue")
|
||||
minetest.register_alias("wool:gold", "wool:yellow")
|
||||
|
||||
function default.node_wool_defaults(table)
|
||||
|
||||
table = table or {}
|
||||
|
||||
table.footstep = table.footstep or
|
||||
{name = "wool_coat_movement", gain = 1.0}
|
||||
|
||||
table.dug = table.dug or
|
||||
{name = "wool_coat_movement", gain = 0.25}
|
||||
|
||||
table.place = table.place or
|
||||
{name = "default_place_node", gain = 1.0}
|
||||
|
||||
return table
|
||||
end
|
||||
|
||||
local wool_sound = default.node_wool_defaults()
|
||||
--local wool_sound = default.node_sound_leaves_defaults()
|
||||
|
||||
local wool_dyes = {
|
||||
{"white", "White"},
|
||||
{"grey", "Grey"},
|
||||
{"black", "Black"},
|
||||
{"red", "Red"},
|
||||
{"yellow", "Yellow"},
|
||||
{"green", "Green"},
|
||||
{"cyan", "Cyan"},
|
||||
{"blue", "Blue"},
|
||||
{"magenta", "Magenta"},
|
||||
{"orange", "Orange"},
|
||||
{"violet", "Violet"},
|
||||
{"brown", "Brown"},
|
||||
{"pink", "Pink"},
|
||||
{"dark_grey", "Dark Grey"},
|
||||
{"dark_green", "Dark Green"},
|
||||
}
|
||||
|
||||
for _, row in pairs(wool_dyes) do
|
||||
|
||||
minetest.register_node("wool:" .. row[1], {
|
||||
description = row[2] .. " Wool",
|
||||
tiles = {"wool_" .. row[1] .. ".png"},
|
||||
groups = {
|
||||
snappy = 2, choppy = 2, oddly_breakable_by_hand = 3,
|
||||
flammable = 3, wool = 1
|
||||
},
|
||||
sounds = wool_sound,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "wool:" .. row[1],
|
||||
recipe = {"dye:" .. row[1], "group:wool"},
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
print ("[MOD] Wool mod loaded")
|
BIN
sounds/wool_coat_movement.ogg
Normal file
BIN
textures/wool_black.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
textures/wool_blue.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/wool_brown.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/wool_cyan.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/wool_dark_green.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/wool_dark_grey.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/wool_green.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/wool_grey.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/wool_magenta.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/wool_orange.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/wool_pink.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/wool_red.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/wool_violet.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/wool_white.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/wool_yellow.png
Normal file
After Width: | Height: | Size: 160 B |