add gitignore
This commit is contained in:
parent
c5d8a62f2f
commit
0e97f13aa6
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
## Generic ignorable patterns and files
|
||||
*~
|
||||
.*.swp
|
||||
debug.txt
|
96
init.lua~
96
init.lua~
@ -1,96 +0,0 @@
|
||||
-- These is a mod that puts dog blocks. I give credit to, and not in a particular order, OldCoder, kaeza, babyface1013, jojoa1997
|
||||
|
||||
--Definatios, b=black bw=brown w=white y=yellow o=orange
|
||||
--This is for the fur blocks.
|
||||
|
||||
local colours = {
|
||||
["b"] = "black",
|
||||
["bw"] = "brown",
|
||||
["w"] = "white",
|
||||
["y"] = "yellow",
|
||||
["o"] = "orange"
|
||||
}
|
||||
|
||||
for s,l in pairs(colours) do
|
||||
local desc = string.upper(string.sub(l, 1, 1))..string.sub(l, 2)
|
||||
local name = "dogblocks:fur_"..s
|
||||
local input = "wool:"..l
|
||||
|
||||
minetest.register_node(name, {
|
||||
description = desc.." Fur Block",
|
||||
tiles = {"dogblocks_fur_"..s..".png"},
|
||||
groups = {oddly_breakable_by_hand=3,snappy=2,choppy=2},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = name.." 6",
|
||||
recipe = {
|
||||
{"", "", ""},
|
||||
{input, input, input},
|
||||
{input, input, input},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
--This is for the actual Dog blocks.------------------------------------------------------------
|
||||
|
||||
local dogs = {
|
||||
["Pug"] = {"b"},
|
||||
["Beagle"] = {"b", "bw", "bw", "w", "w"},
|
||||
["German Shepherd"] = {"b", "b", "bw", "bw", "bw", name="gs"},
|
||||
["Fox Terrier"] = {"w", "w", "bw", name="ft"},
|
||||
["Bichon Frise"] = {"w", name="bf"},
|
||||
["Labrador Retriever"] = {
|
||||
name = "lb",
|
||||
recipe = {
|
||||
{"", "", "default:torch"},
|
||||
{"dogblocks:fur_b", "dogblocks:fur_b", "wool:black"},
|
||||
{"dogblocks:fur_b", "", "dogblocks:fur_b"},
|
||||
}
|
||||
|
||||
},
|
||||
["Rottweiler"] = {"b", "b", "b", "bw", "bw"},
|
||||
["Labradoodle"] = {
|
||||
name = "ld",
|
||||
recipe = {
|
||||
{"", "", "default:torch"},
|
||||
{"dogblocks:fur_w", "dogblocks:fur_w", "wool:white"},
|
||||
{"dogblocks:fur_w", "", "dogblocks:fur_w"},
|
||||
}
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
for dog,data in pairs(dogs) do
|
||||
local s = data.name or string.lower(string.sub(dog, 1, 1))
|
||||
local name = "dogblocks:dog_"..s
|
||||
|
||||
local recipe = data.recipe
|
||||
if not recipe then
|
||||
recipe = {
|
||||
{"", "", "default:torch"},
|
||||
{"dogblocks:fur_", "dogblocks:fur_", "dogblocks:fur_"},
|
||||
{"dogblocks:fur_", "", "dogblocks:fur_"},
|
||||
}
|
||||
|
||||
local default = data[1]
|
||||
|
||||
for i = 1,3 do
|
||||
recipe[2][i] = recipe[2][i]..(data[i] or default)
|
||||
end
|
||||
for i = 1,3,2 do
|
||||
recipe[3][i] = recipe[3][i]..(data[math.ceil(i/2)+3] or default)
|
||||
end
|
||||
end
|
||||
|
||||
minetest.register_node(name, {
|
||||
description = dog.." Block",
|
||||
tiles = {"dogblocks_dog_"..s..".png"},
|
||||
light_source = 15,
|
||||
groups = {oddly_breakable_by_hand=3,snappy=2,choppy=2},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = name.." 6",
|
||||
recipe = recipe
|
||||
})
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user