From 0e97f13aa60aebcea4dafcd24fa9cda9be1a6090 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sat, 4 Oct 2014 14:21:52 +0200 Subject: [PATCH] add gitignore --- .gitignore | 4 +++ README.txt~ | 0 init.lua~ | 96 ----------------------------------------------------- 3 files changed, 4 insertions(+), 96 deletions(-) create mode 100644 .gitignore delete mode 100644 README.txt~ delete mode 100644 init.lua~ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d9c069a --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +## Generic ignorable patterns and files +*~ +.*.swp +debug.txt diff --git a/README.txt~ b/README.txt~ deleted file mode 100644 index e69de29..0000000 diff --git a/init.lua~ b/init.lua~ deleted file mode 100644 index 0ab585d..0000000 --- a/init.lua~ +++ /dev/null @@ -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