Follow naming convention of textures and sounds in doors
authorCraig Davison <craig.davison3@gmail.com>
Sat, 10 Jan 2015 17:02:47 +0000 (17:02 +0000)
committerNovatux <nathanael.courant@laposte.net>
Sat, 17 Jan 2015 15:05:23 +0000 (16:05 +0100)
41 files changed:
mods/doors/init.lua
mods/doors/sounds/door_close.ogg [deleted file]
mods/doors/sounds/door_open.ogg [deleted file]
mods/doors/sounds/doors_door_close.ogg [new file with mode: 0644]
mods/doors/sounds/doors_door_open.ogg [new file with mode: 0644]
mods/doors/textures/door_brown.png [deleted file]
mods/doors/textures/door_glass.png [deleted file]
mods/doors/textures/door_glass_a.png [deleted file]
mods/doors/textures/door_glass_b.png [deleted file]
mods/doors/textures/door_glass_side.png [deleted file]
mods/doors/textures/door_grey.png [deleted file]
mods/doors/textures/door_obsidian_glass.png [deleted file]
mods/doors/textures/door_obsidian_glass_a.png [deleted file]
mods/doors/textures/door_obsidian_glass_b.png [deleted file]
mods/doors/textures/door_obsidian_glass_side.png [deleted file]
mods/doors/textures/door_steel.png [deleted file]
mods/doors/textures/door_steel_a.png [deleted file]
mods/doors/textures/door_steel_b.png [deleted file]
mods/doors/textures/door_trapdoor.png [deleted file]
mods/doors/textures/door_trapdoor_side.png [deleted file]
mods/doors/textures/door_wood.png [deleted file]
mods/doors/textures/door_wood_a.png [deleted file]
mods/doors/textures/door_wood_b.png [deleted file]
mods/doors/textures/doors_brown.png [new file with mode: 0644]
mods/doors/textures/doors_glass.png [new file with mode: 0644]
mods/doors/textures/doors_glass_a.png [new file with mode: 0644]
mods/doors/textures/doors_glass_b.png [new file with mode: 0644]
mods/doors/textures/doors_glass_side.png [new file with mode: 0644]
mods/doors/textures/doors_grey.png [new file with mode: 0644]
mods/doors/textures/doors_obsidian_glass.png [new file with mode: 0644]
mods/doors/textures/doors_obsidian_glass_a.png [new file with mode: 0644]
mods/doors/textures/doors_obsidian_glass_b.png [new file with mode: 0644]
mods/doors/textures/doors_obsidian_glass_side.png [new file with mode: 0644]
mods/doors/textures/doors_steel.png [new file with mode: 0644]
mods/doors/textures/doors_steel_a.png [new file with mode: 0644]
mods/doors/textures/doors_steel_b.png [new file with mode: 0644]
mods/doors/textures/doors_trapdoor.png [new file with mode: 0644]
mods/doors/textures/doors_trapdoor_side.png [new file with mode: 0644]
mods/doors/textures/doors_wood.png [new file with mode: 0644]
mods/doors/textures/doors_wood_a.png [new file with mode: 0644]
mods/doors/textures/doors_wood_b.png [new file with mode: 0644]

index c82de236622783e298696b1c77ec911dde578630..034179a2d6d63aca8aec5cf23d5865e914209b5b 100644 (file)
@@ -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 (file)
index a39452b..0000000
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 (file)
index 7ec7f48..0000000
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 (file)
index 0000000..a39452b
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 (file)
index 0000000..7ec7f48
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 (file)
index 77f748d..0000000
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 (file)
index 49ec245..0000000
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 (file)
index b4c7fb5..0000000
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 (file)
index b4c7fb5..0000000
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 (file)
index 755672b..0000000
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 (file)
index 13665d2..0000000
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 (file)
index c327720..0000000
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 (file)
index ef5f8b5..0000000
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 (file)
index ef5f8b5..0000000
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 (file)
index 0df598b..0000000
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 (file)
index 042a1bc..0000000
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 (file)
index 515dafc..0000000
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 (file)
index c1b75a4..0000000
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 (file)
index 3039dd8..0000000
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 (file)
index c860523..0000000
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 (file)
index d3a62ab..0000000
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 (file)
index 0317b1f..0000000
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 (file)
index f016933..0000000
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 (file)
index 0000000..77f748d
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 (file)
index 0000000..49ec245
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 (file)
index 0000000..b4c7fb5
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 (file)
index 0000000..b4c7fb5
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 (file)
index 0000000..755672b
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 (file)
index 0000000..13665d2
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 (file)
index 0000000..c327720
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 (file)
index 0000000..ef5f8b5
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 (file)
index 0000000..ef5f8b5
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 (file)
index 0000000..0df598b
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 (file)
index 0000000..042a1bc
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 (file)
index 0000000..515dafc
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 (file)
index 0000000..c1b75a4
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 (file)
index 0000000..3039dd8
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 (file)
index 0000000..c860523
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 (file)
index 0000000..d3a62ab
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 (file)
index 0000000..0317b1f
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 (file)
index 0000000..f016933
Binary files /dev/null and b/mods/doors/textures/doors_wood_b.png differ