diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-12-07 10:56:30 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-12-07 10:56:30 +0000 |
commit | 31f2fd185e999aa017f17986edc4611294a7cf02 (patch) | |
tree | f60b945a32def0a91bb8661a90e840d2e32a2270 | |
parent | adabd04d7b33ffa6d2a91c521cf713e092b3dc6f (diff) |
fixed dirt sounds, tweaked crystal shovel and stair groups
-rw-r--r-- | crystal.lua | 11 | ||||
-rw-r--r-- | dirt.lua | 4 | ||||
-rw-r--r-- | stairs.lua | 6 |
3 files changed, 14 insertions, 7 deletions
diff --git a/crystal.lua b/crystal.lua index 2e9ecd2..56afe08 100644 --- a/crystal.lua +++ b/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 @@ -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"), |