From: Craig Davison Date: Sat, 10 Jan 2015 17:02:47 +0000 (+0000) Subject: Follow naming convention of textures and sounds in doors X-Git-Tag: 0.4.12~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=61579827875f42a08797229895a2fc2ad8bc3355;p=oweals%2Fminetest_game.git Follow naming convention of textures and sounds in doors --- diff --git a/mods/doors/init.lua b/mods/doors/init.lua index c82de236..034179a2 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -1,22 +1,6 @@ doors = {} -- Registers a door --- name: The name of the door --- def: a table with the folowing fields: --- description --- inventory_image --- groups --- tiles_bottom: the tiles of the bottom part of the door {front, side} --- tiles_top: the tiles of the bottom part of the door {front, side} --- If the following fields are not defined the default values are used --- node_box_bottom --- node_box_top --- selection_box_bottom --- selection_box_top --- only_placer_can_open: if true only the player who placed the door can --- open it - - function doors.register_door(name, def) def.groups.not_in_creative_inventory = 1 @@ -36,10 +20,10 @@ function doors.register_door(name, def) end if not def.sound_close_door then - def.sound_close_door = "door_close" + def.sound_close_door = "doors_door_close" end if not def.sound_open_door then - def.sound_open_door = "door_open" + def.sound_open_door = "doors_door_open" end @@ -292,10 +276,10 @@ end doors.register_door("doors:door_wood", { description = "Wooden Door", - inventory_image = "door_wood.png", + inventory_image = "doors_wood.png", groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, - tiles_bottom = {"door_wood_b.png", "door_brown.png"}, - tiles_top = {"door_wood_a.png", "door_brown.png"}, + tiles_bottom = {"doors_wood_b.png", "doors_brown.png"}, + tiles_top = {"doors_wood_a.png", "doors_brown.png"}, sounds = default.node_sound_wood_defaults(), sunlight = false, }) @@ -311,10 +295,10 @@ minetest.register_craft({ doors.register_door("doors:door_steel", { description = "Steel Door", - inventory_image = "door_steel.png", + inventory_image = "doors_steel.png", groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2,door=1}, - tiles_bottom = {"door_steel_b.png", "door_grey.png"}, - tiles_top = {"door_steel_a.png", "door_grey.png"}, + tiles_bottom = {"doors_steel_b.png", "doors_grey.png"}, + tiles_top = {"doors_steel_a.png", "doors_grey.png"}, only_placer_can_open = true, sounds = default.node_sound_wood_defaults(), sunlight = false, @@ -331,10 +315,10 @@ minetest.register_craft({ doors.register_door("doors:door_glass", { description = "Glass Door", - inventory_image = "door_glass.png", + inventory_image = "doors_glass.png", groups = {snappy=1,cracky=1,oddly_breakable_by_hand=3,door=1}, - tiles_bottom = {"door_glass_b.png", "door_glass_side.png"}, - tiles_top = {"door_glass_a.png", "door_glass_side.png"}, + tiles_bottom = {"doors_glass_b.png", "doors_glass_side.png"}, + tiles_top = {"doors_glass_a.png", "doors_glass_side.png"}, sounds = default.node_sound_glass_defaults(), sunlight = true, }) @@ -350,10 +334,10 @@ minetest.register_craft({ doors.register_door("doors:door_obsidian_glass", { description = "Obsidian Glass Door", - inventory_image = "door_obsidian_glass.png", + inventory_image = "doors_obsidian_glass.png", groups = {snappy=1,cracky=1,oddly_breakable_by_hand=3,door=1}, - tiles_bottom = {"door_obsidian_glass_b.png", "door_obsidian_glass_side.png"}, - tiles_top = {"door_obsidian_glass_b.png", "door_obsidian_glass_side.png"}, + tiles_bottom = {"doors_obsidian_glass_b.png", "doors_obsidian_glass_side.png"}, + tiles_top = {"doors_obsidian_glass_b.png", "doors_obsidian_glass_side.png"}, sounds = default.node_sound_glass_defaults(), sunlight = true, }) @@ -382,11 +366,11 @@ local function punch(pos) local tmp_node2 if state == 1 then state = 0 - minetest.sound_play("door_close", {pos = pos, gain = 0.3, max_hear_distance = 10}) + minetest.sound_play("doors_door_close", {pos = pos, gain = 0.3, max_hear_distance = 10}) tmp_node = {name="doors:trapdoor", param1=me.param1, param2=me.param2} else state = 1 - minetest.sound_play("door_open", {pos = pos, gain = 0.3, max_hear_distance = 10}) + minetest.sound_play("doors_door_open", {pos = pos, gain = 0.3, max_hear_distance = 10}) tmp_node = {name="doors:trapdoor_open", param1=me.param1, param2=me.param2} end update_door(pos, tmp_node) @@ -395,9 +379,9 @@ end minetest.register_node("doors:trapdoor", { description = "Trapdoor", - inventory_image = "door_trapdoor.png", + inventory_image = "doors_trapdoor.png", drawtype = "nodebox", - tiles = {"door_trapdoor.png", "door_trapdoor.png", "door_trapdoor_side.png", "door_trapdoor_side.png", "door_trapdoor_side.png", "door_trapdoor_side.png"}, + tiles = {"doors_trapdoor.png", "doors_trapdoor.png", "doors_trapdoor_side.png", "doors_trapdoor_side.png", "doors_trapdoor_side.png", "doors_trapdoor_side.png"}, paramtype = "light", paramtype2 = "facedir", groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, @@ -421,7 +405,7 @@ minetest.register_node("doors:trapdoor", { minetest.register_node("doors:trapdoor_open", { drawtype = "nodebox", - tiles = {"door_trapdoor_side.png", "door_trapdoor_side.png", "door_trapdoor_side.png", "door_trapdoor_side.png", "door_trapdoor.png", "door_trapdoor.png"}, + tiles = {"doors_trapdoor_side.png", "doors_trapdoor_side.png", "doors_trapdoor_side.png", "doors_trapdoor_side.png", "doors_trapdoor.png", "doors_trapdoor.png"}, paramtype = "light", paramtype2 = "facedir", pointable = true, diff --git a/mods/doors/sounds/door_close.ogg b/mods/doors/sounds/door_close.ogg deleted file mode 100644 index a39452ba..00000000 Binary files a/mods/doors/sounds/door_close.ogg and /dev/null differ diff --git a/mods/doors/sounds/door_open.ogg b/mods/doors/sounds/door_open.ogg deleted file mode 100644 index 7ec7f480..00000000 Binary files a/mods/doors/sounds/door_open.ogg and /dev/null differ diff --git a/mods/doors/sounds/doors_door_close.ogg b/mods/doors/sounds/doors_door_close.ogg new file mode 100644 index 00000000..a39452ba Binary files /dev/null and b/mods/doors/sounds/doors_door_close.ogg differ diff --git a/mods/doors/sounds/doors_door_open.ogg b/mods/doors/sounds/doors_door_open.ogg new file mode 100644 index 00000000..7ec7f480 Binary files /dev/null and b/mods/doors/sounds/doors_door_open.ogg differ diff --git a/mods/doors/textures/door_brown.png b/mods/doors/textures/door_brown.png deleted file mode 100644 index 77f748d8..00000000 Binary files a/mods/doors/textures/door_brown.png and /dev/null differ diff --git a/mods/doors/textures/door_glass.png b/mods/doors/textures/door_glass.png deleted file mode 100644 index 49ec245c..00000000 Binary files a/mods/doors/textures/door_glass.png and /dev/null differ diff --git a/mods/doors/textures/door_glass_a.png b/mods/doors/textures/door_glass_a.png deleted file mode 100644 index b4c7fb5f..00000000 Binary files a/mods/doors/textures/door_glass_a.png and /dev/null differ diff --git a/mods/doors/textures/door_glass_b.png b/mods/doors/textures/door_glass_b.png deleted file mode 100644 index b4c7fb5f..00000000 Binary files a/mods/doors/textures/door_glass_b.png and /dev/null differ diff --git a/mods/doors/textures/door_glass_side.png b/mods/doors/textures/door_glass_side.png deleted file mode 100644 index 755672bd..00000000 Binary files a/mods/doors/textures/door_glass_side.png and /dev/null differ diff --git a/mods/doors/textures/door_grey.png b/mods/doors/textures/door_grey.png deleted file mode 100644 index 13665d20..00000000 Binary files a/mods/doors/textures/door_grey.png and /dev/null differ diff --git a/mods/doors/textures/door_obsidian_glass.png b/mods/doors/textures/door_obsidian_glass.png deleted file mode 100644 index c3277204..00000000 Binary files a/mods/doors/textures/door_obsidian_glass.png and /dev/null differ diff --git a/mods/doors/textures/door_obsidian_glass_a.png b/mods/doors/textures/door_obsidian_glass_a.png deleted file mode 100644 index ef5f8b5a..00000000 Binary files a/mods/doors/textures/door_obsidian_glass_a.png and /dev/null differ diff --git a/mods/doors/textures/door_obsidian_glass_b.png b/mods/doors/textures/door_obsidian_glass_b.png deleted file mode 100644 index ef5f8b5a..00000000 Binary files a/mods/doors/textures/door_obsidian_glass_b.png and /dev/null differ diff --git a/mods/doors/textures/door_obsidian_glass_side.png b/mods/doors/textures/door_obsidian_glass_side.png deleted file mode 100644 index 0df598b8..00000000 Binary files a/mods/doors/textures/door_obsidian_glass_side.png and /dev/null differ diff --git a/mods/doors/textures/door_steel.png b/mods/doors/textures/door_steel.png deleted file mode 100644 index 042a1bc0..00000000 Binary files a/mods/doors/textures/door_steel.png and /dev/null differ diff --git a/mods/doors/textures/door_steel_a.png b/mods/doors/textures/door_steel_a.png deleted file mode 100644 index 515dafc0..00000000 Binary files a/mods/doors/textures/door_steel_a.png and /dev/null differ diff --git a/mods/doors/textures/door_steel_b.png b/mods/doors/textures/door_steel_b.png deleted file mode 100644 index c1b75a49..00000000 Binary files a/mods/doors/textures/door_steel_b.png and /dev/null differ diff --git a/mods/doors/textures/door_trapdoor.png b/mods/doors/textures/door_trapdoor.png deleted file mode 100644 index 3039dd80..00000000 Binary files a/mods/doors/textures/door_trapdoor.png and /dev/null differ diff --git a/mods/doors/textures/door_trapdoor_side.png b/mods/doors/textures/door_trapdoor_side.png deleted file mode 100644 index c8605230..00000000 Binary files a/mods/doors/textures/door_trapdoor_side.png and /dev/null differ diff --git a/mods/doors/textures/door_wood.png b/mods/doors/textures/door_wood.png deleted file mode 100644 index d3a62ab1..00000000 Binary files a/mods/doors/textures/door_wood.png and /dev/null differ diff --git a/mods/doors/textures/door_wood_a.png b/mods/doors/textures/door_wood_a.png deleted file mode 100644 index 0317b1f1..00000000 Binary files a/mods/doors/textures/door_wood_a.png and /dev/null differ diff --git a/mods/doors/textures/door_wood_b.png b/mods/doors/textures/door_wood_b.png deleted file mode 100644 index f016933c..00000000 Binary files a/mods/doors/textures/door_wood_b.png and /dev/null differ diff --git a/mods/doors/textures/doors_brown.png b/mods/doors/textures/doors_brown.png new file mode 100644 index 00000000..77f748d8 Binary files /dev/null and b/mods/doors/textures/doors_brown.png differ diff --git a/mods/doors/textures/doors_glass.png b/mods/doors/textures/doors_glass.png new file mode 100644 index 00000000..49ec245c Binary files /dev/null and b/mods/doors/textures/doors_glass.png differ diff --git a/mods/doors/textures/doors_glass_a.png b/mods/doors/textures/doors_glass_a.png new file mode 100644 index 00000000..b4c7fb5f Binary files /dev/null and b/mods/doors/textures/doors_glass_a.png differ diff --git a/mods/doors/textures/doors_glass_b.png b/mods/doors/textures/doors_glass_b.png new file mode 100644 index 00000000..b4c7fb5f Binary files /dev/null and b/mods/doors/textures/doors_glass_b.png differ diff --git a/mods/doors/textures/doors_glass_side.png b/mods/doors/textures/doors_glass_side.png new file mode 100644 index 00000000..755672bd Binary files /dev/null and b/mods/doors/textures/doors_glass_side.png differ diff --git a/mods/doors/textures/doors_grey.png b/mods/doors/textures/doors_grey.png new file mode 100644 index 00000000..13665d20 Binary files /dev/null and b/mods/doors/textures/doors_grey.png differ diff --git a/mods/doors/textures/doors_obsidian_glass.png b/mods/doors/textures/doors_obsidian_glass.png new file mode 100644 index 00000000..c3277204 Binary files /dev/null and b/mods/doors/textures/doors_obsidian_glass.png differ diff --git a/mods/doors/textures/doors_obsidian_glass_a.png b/mods/doors/textures/doors_obsidian_glass_a.png new file mode 100644 index 00000000..ef5f8b5a Binary files /dev/null and b/mods/doors/textures/doors_obsidian_glass_a.png differ diff --git a/mods/doors/textures/doors_obsidian_glass_b.png b/mods/doors/textures/doors_obsidian_glass_b.png new file mode 100644 index 00000000..ef5f8b5a Binary files /dev/null and b/mods/doors/textures/doors_obsidian_glass_b.png differ diff --git a/mods/doors/textures/doors_obsidian_glass_side.png b/mods/doors/textures/doors_obsidian_glass_side.png new file mode 100644 index 00000000..0df598b8 Binary files /dev/null and b/mods/doors/textures/doors_obsidian_glass_side.png differ diff --git a/mods/doors/textures/doors_steel.png b/mods/doors/textures/doors_steel.png new file mode 100644 index 00000000..042a1bc0 Binary files /dev/null and b/mods/doors/textures/doors_steel.png differ diff --git a/mods/doors/textures/doors_steel_a.png b/mods/doors/textures/doors_steel_a.png new file mode 100644 index 00000000..515dafc0 Binary files /dev/null and b/mods/doors/textures/doors_steel_a.png differ diff --git a/mods/doors/textures/doors_steel_b.png b/mods/doors/textures/doors_steel_b.png new file mode 100644 index 00000000..c1b75a49 Binary files /dev/null and b/mods/doors/textures/doors_steel_b.png differ diff --git a/mods/doors/textures/doors_trapdoor.png b/mods/doors/textures/doors_trapdoor.png new file mode 100644 index 00000000..3039dd80 Binary files /dev/null and b/mods/doors/textures/doors_trapdoor.png differ diff --git a/mods/doors/textures/doors_trapdoor_side.png b/mods/doors/textures/doors_trapdoor_side.png new file mode 100644 index 00000000..c8605230 Binary files /dev/null and b/mods/doors/textures/doors_trapdoor_side.png differ diff --git a/mods/doors/textures/doors_wood.png b/mods/doors/textures/doors_wood.png new file mode 100644 index 00000000..d3a62ab1 Binary files /dev/null and b/mods/doors/textures/doors_wood.png differ diff --git a/mods/doors/textures/doors_wood_a.png b/mods/doors/textures/doors_wood_a.png new file mode 100644 index 00000000..0317b1f1 Binary files /dev/null and b/mods/doors/textures/doors_wood_a.png differ diff --git a/mods/doors/textures/doors_wood_b.png b/mods/doors/textures/doors_wood_b.png new file mode 100644 index 00000000..f016933c Binary files /dev/null and b/mods/doors/textures/doors_wood_b.png differ