commit 89d1581d498b224366876414ac203ae19f2ffd57 Author: sys4-fr Date: Fri Sep 7 21:52:53 2018 +0200 Remplissage du dépôt. diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..5307fcb --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*~ +.DS_Store +Thumbs.db + diff --git a/depends.txt b/depends.txt new file mode 100755 index 0000000..765575d --- /dev/null +++ b/depends.txt @@ -0,0 +1,2 @@ +default +dye? diff --git a/init.lua b/init.lua new file mode 100755 index 0000000..ba9aa68 --- /dev/null +++ b/init.lua @@ -0,0 +1,118 @@ +-- Minetest 0.4.7 mod: framedglass + +minetest.register_craft({ + output = 'framedglass:wooden_framed_glass 4', + recipe = { + {'default:glass', 'default:glass', 'default:stick'}, + {'default:glass', 'default:glass', 'default:stick'}, + {'default:stick', 'default:stick', ''}, + } +}) + +minetest.register_craft({ + output = 'framedglass:steel_framed_glass 4', + recipe = { + {'default:glass', 'default:glass', 'default:steel_ingot'}, + {'default:glass', 'default:glass', 'default:steel_ingot'}, + {'default:steel_ingot', 'default:steel_ingot', ''}, + } +}) + +minetest.register_craft({ + output = 'framedglass:wooden_framed_obsidian_glass 4', + recipe = { + {'default:obsidian_glass', 'default:obsidian_glass', 'default:stick'}, + {'default:obsidian_glass', 'default:obsidian_glass', 'default:stick'}, + {'default:stick', 'default:stick', ''}, + } +}) + +minetest.register_craft({ + output = 'framedglass:steel_framed_obsidian_glass 4', + recipe = { + {'default:obsidian_glass', 'default:obsidian_glass', 'default:steel_ingot'}, + {'default:obsidian_glass', 'default:obsidian_glass', 'default:steel_ingot'}, + {'default:steel_ingot', 'default:steel_ingot', ''}, + } +}) + +minetest.register_node("framedglass:wooden_framed_glass", { + description = "Wooden-framed Glass", + drawtype = "glasslike_framed_optional", + tiles = {"framedglass_woodenglass_face_streaks_frame.png","framedglass_glass_face_streaks.png"}, + paramtype = "light", + sunlight_propagates = true, + groups = {cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("framedglass:steel_framed_glass", { + description = "Steel-framed Glass", + drawtype = "glasslike_framed_optional", + tiles = {"framedglass_steelglass_face_streaks_frame.png","framedglass_glass_face_streaks.png"}, + paramtype = "light", + sunlight_propagates = true, + groups = {cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("framedglass:wooden_framed_obsidian_glass", { + description = "Wooden-framed Obsidian Glass", + drawtype = "glasslike_framed_optional", + tiles = {"framedglass_woodenglass_face_clean_frame.png","framedglass_glass_face_clean.png"}, + paramtype = "light", + sunlight_propagates = true, + groups = {cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("framedglass:steel_framed_obsidian_glass", { + description = "Steel-framed Obsidian Glass", + drawtype = "glasslike_framed_optional", + tiles = {"framedglass_steelglass_face_clean_frame.png","framedglass_glass_face_clean.png"}, + paramtype = "light", + sunlight_propagates = true, + groups = {cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +function add_coloured_framedglass(name, desc, dye) + minetest.register_node( "framedglass:steel_framed_obsidian_glass"..name, { + description = "Steel-framed "..desc.." Obsidian Glass", + tiles = {"framedglass_".. name.. "glass_frame.png", "framedglass_".. name.. "glass.png"}, + drawtype = "glasslike_framed_optional", + paramtype = "light", + sunlight_propagates = true, + is_ground_content = true, + use_texture_alpha = true, + groups = {cracky=3}, + sounds = default.node_sound_glass_defaults(), + }) + + minetest.register_craft({ + type = "shapeless", + output = "framedglass:steel_framed_obsidian_glass"..name, + recipe = { + "framedglass:steel_framed_glass", + "group:basecolor_white", + dye + } + }) + +end + +add_coloured_framedglass ("red","Red","group:basecolor_red") +add_coloured_framedglass ("green","Green","group:basecolor_green") +add_coloured_framedglass ("blue","Blue","group:basecolor_blue") +add_coloured_framedglass ("cyan","Cyan","group:basecolor_cyan") +add_coloured_framedglass ("darkgreen","Dark Green","group:unicolor_dark_green") +add_coloured_framedglass ("violet","Violet","group:excolor_violet") +add_coloured_framedglass ("pink","Pink","group:unicolor_light_red") +add_coloured_framedglass ("yellow","Yellow","group:basecolor_yellow") +add_coloured_framedglass ("orange","Orange","group:basecolor_orange") +add_coloured_framedglass ("brown","Brown","group:unicolor_dark_orange") +add_coloured_framedglass ("white","White","group:basecolor_white") +add_coloured_framedglass ("grey","Grey","group:basecolor_grey") +add_coloured_framedglass ("darkgrey","Dark Grey","group:excolor_darkgrey") +add_coloured_framedglass ("black","Black","group:basecolor_black") + diff --git a/textures/framedglass_blackglass.png b/textures/framedglass_blackglass.png new file mode 100755 index 0000000..4e82027 Binary files /dev/null and b/textures/framedglass_blackglass.png differ diff --git a/textures/framedglass_blackglass_frame.png b/textures/framedglass_blackglass_frame.png new file mode 100755 index 0000000..a8c8ff6 Binary files /dev/null and b/textures/framedglass_blackglass_frame.png differ diff --git a/textures/framedglass_blueglass.png b/textures/framedglass_blueglass.png new file mode 100755 index 0000000..2768017 Binary files /dev/null and b/textures/framedglass_blueglass.png differ diff --git a/textures/framedglass_blueglass_frame.png b/textures/framedglass_blueglass_frame.png new file mode 100755 index 0000000..ac24843 Binary files /dev/null and b/textures/framedglass_blueglass_frame.png differ diff --git a/textures/framedglass_brownglass.png b/textures/framedglass_brownglass.png new file mode 100755 index 0000000..b61bdbf Binary files /dev/null and b/textures/framedglass_brownglass.png differ diff --git a/textures/framedglass_brownglass_frame.png b/textures/framedglass_brownglass_frame.png new file mode 100755 index 0000000..b9be813 Binary files /dev/null and b/textures/framedglass_brownglass_frame.png differ diff --git a/textures/framedglass_cyanglass.png b/textures/framedglass_cyanglass.png new file mode 100755 index 0000000..31edcc6 Binary files /dev/null and b/textures/framedglass_cyanglass.png differ diff --git a/textures/framedglass_cyanglass_frame.png b/textures/framedglass_cyanglass_frame.png new file mode 100755 index 0000000..c8e0b19 Binary files /dev/null and b/textures/framedglass_cyanglass_frame.png differ diff --git a/textures/framedglass_darkgreenglass.png b/textures/framedglass_darkgreenglass.png new file mode 100755 index 0000000..c90a027 Binary files /dev/null and b/textures/framedglass_darkgreenglass.png differ diff --git a/textures/framedglass_darkgreenglass_frame.png b/textures/framedglass_darkgreenglass_frame.png new file mode 100755 index 0000000..ff2c4c0 Binary files /dev/null and b/textures/framedglass_darkgreenglass_frame.png differ diff --git a/textures/framedglass_darkgreyglass.png b/textures/framedglass_darkgreyglass.png new file mode 100755 index 0000000..c67c31c Binary files /dev/null and b/textures/framedglass_darkgreyglass.png differ diff --git a/textures/framedglass_darkgreyglass_frame.png b/textures/framedglass_darkgreyglass_frame.png new file mode 100755 index 0000000..1ec8258 Binary files /dev/null and b/textures/framedglass_darkgreyglass_frame.png differ diff --git a/textures/framedglass_glass_face_clean.png b/textures/framedglass_glass_face_clean.png new file mode 100755 index 0000000..c22f319 Binary files /dev/null and b/textures/framedglass_glass_face_clean.png differ diff --git a/textures/framedglass_glass_face_streaks.png b/textures/framedglass_glass_face_streaks.png new file mode 100755 index 0000000..5a3ad77 Binary files /dev/null and b/textures/framedglass_glass_face_streaks.png differ diff --git a/textures/framedglass_greenglass.png b/textures/framedglass_greenglass.png new file mode 100755 index 0000000..0886c74 Binary files /dev/null and b/textures/framedglass_greenglass.png differ diff --git a/textures/framedglass_greenglass_frame.png b/textures/framedglass_greenglass_frame.png new file mode 100755 index 0000000..136eee3 Binary files /dev/null and b/textures/framedglass_greenglass_frame.png differ diff --git a/textures/framedglass_greyglass.png b/textures/framedglass_greyglass.png new file mode 100755 index 0000000..bb1927d Binary files /dev/null and b/textures/framedglass_greyglass.png differ diff --git a/textures/framedglass_greyglass_frame.png b/textures/framedglass_greyglass_frame.png new file mode 100755 index 0000000..22a4aca Binary files /dev/null and b/textures/framedglass_greyglass_frame.png differ diff --git a/textures/framedglass_orangeglass.png b/textures/framedglass_orangeglass.png new file mode 100755 index 0000000..4ac3eb7 Binary files /dev/null and b/textures/framedglass_orangeglass.png differ diff --git a/textures/framedglass_orangeglass_frame.png b/textures/framedglass_orangeglass_frame.png new file mode 100755 index 0000000..be4568e Binary files /dev/null and b/textures/framedglass_orangeglass_frame.png differ diff --git a/textures/framedglass_pinkglass.png b/textures/framedglass_pinkglass.png new file mode 100755 index 0000000..68185c7 Binary files /dev/null and b/textures/framedglass_pinkglass.png differ diff --git a/textures/framedglass_pinkglass_frame.png b/textures/framedglass_pinkglass_frame.png new file mode 100755 index 0000000..4e4b5a4 Binary files /dev/null and b/textures/framedglass_pinkglass_frame.png differ diff --git a/textures/framedglass_redglass.png b/textures/framedglass_redglass.png new file mode 100755 index 0000000..1d20920 Binary files /dev/null and b/textures/framedglass_redglass.png differ diff --git a/textures/framedglass_redglass_frame.png b/textures/framedglass_redglass_frame.png new file mode 100755 index 0000000..903bbc4 Binary files /dev/null and b/textures/framedglass_redglass_frame.png differ diff --git a/textures/framedglass_steel_frame.png b/textures/framedglass_steel_frame.png new file mode 100755 index 0000000..383eab7 Binary files /dev/null and b/textures/framedglass_steel_frame.png differ diff --git a/textures/framedglass_steelglass_face_clean_frame.png b/textures/framedglass_steelglass_face_clean_frame.png new file mode 100755 index 0000000..eb072db Binary files /dev/null and b/textures/framedglass_steelglass_face_clean_frame.png differ diff --git a/textures/framedglass_steelglass_face_streaks_frame.png b/textures/framedglass_steelglass_face_streaks_frame.png new file mode 100755 index 0000000..0d2918e Binary files /dev/null and b/textures/framedglass_steelglass_face_streaks_frame.png differ diff --git a/textures/framedglass_violetglass.png b/textures/framedglass_violetglass.png new file mode 100755 index 0000000..aec8ce0 Binary files /dev/null and b/textures/framedglass_violetglass.png differ diff --git a/textures/framedglass_violetglass_frame.png b/textures/framedglass_violetglass_frame.png new file mode 100755 index 0000000..e3083f7 Binary files /dev/null and b/textures/framedglass_violetglass_frame.png differ diff --git a/textures/framedglass_whiteglass.png b/textures/framedglass_whiteglass.png new file mode 100755 index 0000000..0f2a170 Binary files /dev/null and b/textures/framedglass_whiteglass.png differ diff --git a/textures/framedglass_whiteglass_frame.png b/textures/framedglass_whiteglass_frame.png new file mode 100755 index 0000000..cde6c23 Binary files /dev/null and b/textures/framedglass_whiteglass_frame.png differ diff --git a/textures/framedglass_wooden_frame.png b/textures/framedglass_wooden_frame.png new file mode 100755 index 0000000..ed0cd99 Binary files /dev/null and b/textures/framedglass_wooden_frame.png differ diff --git a/textures/framedglass_woodenglass_face_clean_frame.png b/textures/framedglass_woodenglass_face_clean_frame.png new file mode 100755 index 0000000..93e952b Binary files /dev/null and b/textures/framedglass_woodenglass_face_clean_frame.png differ diff --git a/textures/framedglass_woodenglass_face_streaks_frame.png b/textures/framedglass_woodenglass_face_streaks_frame.png new file mode 100755 index 0000000..e2351f9 Binary files /dev/null and b/textures/framedglass_woodenglass_face_streaks_frame.png differ diff --git a/textures/framedglass_yellowglass.png b/textures/framedglass_yellowglass.png new file mode 100755 index 0000000..521198c Binary files /dev/null and b/textures/framedglass_yellowglass.png differ diff --git a/textures/framedglass_yellowglass_frame.png b/textures/framedglass_yellowglass_frame.png new file mode 100755 index 0000000..691799a Binary files /dev/null and b/textures/framedglass_yellowglass_frame.png differ