fixed dirt sounds, tweaked crystal shovel and stair groups
This commit is contained in:
parent
adabd04d7b
commit
31f2fd185e
11
crystal.lua
11
crystal.lua
@ -195,13 +195,18 @@ minetest.register_tool("ethereal:shovel_crystal", {
|
||||
|
||||
nodeupdate(pos)
|
||||
|
||||
inv:add_item("main", {name = nn})
|
||||
if minetest.setting_getbool("creative_mode") then
|
||||
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
if not inv:contains_item("main", {name = nn}) then
|
||||
inv:add_item("main", {name = nn})
|
||||
end
|
||||
else
|
||||
|
||||
inv:add_item("main", {name = nn})
|
||||
itemstack:add_wear(65535 / 100) -- 111 uses
|
||||
end
|
||||
|
||||
minetest.sound_play("default_dirt_footstep", {pos = pos, gain = 0.35})
|
||||
minetest.sound_play("default_dig_crumbly", {pos = pos, gain = 0.35})
|
||||
|
||||
return itemstack
|
||||
end
|
||||
|
4
dirt.lua
4
dirt.lua
@ -68,7 +68,9 @@ for n = 1, #dirts do
|
||||
wet = "farming:soil_wet"
|
||||
},
|
||||
drop = "default:dirt",
|
||||
sounds = default.node_sound_dirt_defaults()
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name = "default_grass_footstep", gain = 0.25},
|
||||
}),
|
||||
})
|
||||
|
||||
end
|
||||
|
@ -5,7 +5,7 @@ local S = ethereal.intllib
|
||||
if stairs and stairs.mod and stairs.mod == "redo" then
|
||||
|
||||
stairs.register_all("crystal_block", "ethereal:crystal_block",
|
||||
{cracky = 1, level = 2},
|
||||
{cracky = 1, level = 2, puts_out_fire = 1, cools_lava = 1},
|
||||
{"crystal_block.png"},
|
||||
S("Crystal Block Stair"),
|
||||
S("Crystal Block Slab"),
|
||||
@ -111,7 +111,7 @@ elseif minetest.global_exists("stairsplus") then
|
||||
stairsplus:register_all("ethereal", "crystal_block", "ethereal:crystal_block", {
|
||||
description = S("Crystal block"),
|
||||
tiles = {"crystal_block.png"},
|
||||
groups = {cracky = 1, falling_node = 1, puts_out_fire = 1},
|
||||
groups = {cracky = 1, falling_node = 1, puts_out_fire = 1, cools_lava = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
@ -213,7 +213,7 @@ stairsplus:register_all("ethereal", "bamboo_wood", "ethereal:bamboo_floor", {
|
||||
else
|
||||
|
||||
stairs.register_stair_and_slab("crystal_block", "ethereal:crystal_block",
|
||||
{cracky = 1, level = 2},
|
||||
{cracky = 1, level = 2, puts_out_fire = 1, cools_lava = 1},
|
||||
{"crystal_block.png"},
|
||||
S("Crystal Block Stair"),
|
||||
S("Crystal Block Slab"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user