Add metal sounds and update a copper rail texture

This commit is contained in:
Richard Qian 2016-12-14 10:05:55 -06:00 committed by Auke Kok
parent 1e2dcc6fd6
commit 58a337ccd6
2 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,7 @@ end
-- ================= -- =================
local default_stone_sounds = default.node_sound_stone_defaults() 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 function hoe_on_use(itemstack, user, pointed_thing, uses)
local pt = pointed_thing local pt = pointed_thing
@ -110,7 +111,7 @@ local function add_ore(modname, description, mineral_name, oredef)
description = S("%s Block"):format(S(description)), description = S("%s Block"):format(S(description)),
tiles = { img_base .. "_block.png" }, tiles = { img_base .. "_block.png" },
groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2}, 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) minetest.register_alias(mineral_name.."_block", block_item)
if oredef.makes.ingot then if oredef.makes.ingot then
@ -347,6 +348,7 @@ minetest.register_node("moreores:copper_rail", {
type = "fixed", type = "fixed",
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, 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}, groups = {bendy = 2,snappy = 1,dig_immediate = 2,rail= 1, connect_to_raillike = 1},
mesecons = { mesecons = {
effector = { effector = {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 B

After

Width:  |  Height:  |  Size: 337 B