summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Qian <richwiki101@gmail.com>2016-12-14 10:05:55 -0600
committerAuke Kok <sofar+github@foo-projects.org>2016-12-31 12:35:09 -0800
commit58a337ccd6e457a5bd632ff59495480525259b49 (patch)
tree01e006188060c63ec9c57d2deed0795be94355b1
parent1e2dcc6fd6d748d269245eb291b955b2022887af (diff)
Add metal sounds and update a copper rail texture
-rw-r--r--init.lua4
-rw-r--r--textures/moreores_copper_rail_t_junction.pngbin260 -> 337 bytes
2 files changed, 3 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 83d45f6..6eee227 100644
--- a/init.lua
+++ b/init.lua
@@ -28,6 +28,7 @@ end
-- =================
local default_stone_sounds = default.node_sound_stone_defaults()
+local default_metal_sounds = default.node_sound_metal_defaults()
local function hoe_on_use(itemstack, user, pointed_thing, uses)
local pt = pointed_thing
@@ -110,7 +111,7 @@ local function add_ore(modname, description, mineral_name, oredef)
description = S("%s Block"):format(S(description)),
tiles = { img_base .. "_block.png" },
groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2},
- sounds = default_stone_sounds
+ sounds = default_metal_sounds,
})
minetest.register_alias(mineral_name.."_block", block_item)
if oredef.makes.ingot then
@@ -347,6 +348,7 @@ minetest.register_node("moreores:copper_rail", {
type = "fixed",
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
},
+ sounds = default_metal_sounds,
groups = {bendy = 2,snappy = 1,dig_immediate = 2,rail= 1, connect_to_raillike = 1},
mesecons = {
effector = {
diff --git a/textures/moreores_copper_rail_t_junction.png b/textures/moreores_copper_rail_t_junction.png
index aac2981..1e1feaa 100644
--- a/textures/moreores_copper_rail_t_junction.png
+++ b/textures/moreores_copper_rail_t_junction.png
Binary files differ