summaryrefslogtreecommitdiff
path: root/crystal.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-12-07 10:56:30 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2016-12-07 10:56:30 +0000
commit31f2fd185e999aa017f17986edc4611294a7cf02 (patch)
treef60b945a32def0a91bb8661a90e840d2e32a2270 /crystal.lua
parentadabd04d7b33ffa6d2a91c521cf713e092b3dc6f (diff)
fixed dirt sounds, tweaked crystal shovel and stair groups
Diffstat (limited to 'crystal.lua')
-rw-r--r--crystal.lua11
1 files changed, 8 insertions, 3 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