Index: astrolabe.lua ================================================================== --- astrolabe.lua +++ astrolabe.lua @@ -121,13 +121,14 @@ note = 'Unravel the secrets of the stars'; }; }; }) +local m = sorcery.data.metals minetest.register_craft { output = 'sorcery:astrolabe'; recipe = { {'sorcery:steel_screw','default:steel_ingot','sorcery:steel_screw'}; - {'default:copper_ingot',sorcery.data.metals.brass.parts.block,'default:copper_ingot'}; + {m.copper.parts.disc,m.brass.parts.block,m.copper.parts.disc}; {'default:stick','sorcery:screw_steel','default:stick'}; }; }; Index: displacer.lua ================================================================== --- displacer.lua +++ displacer.lua @@ -197,13 +197,17 @@ -- iterate through available receptacles and see if there's room -- in any of them. otherwise, fail for _,r in pairs(remote.receptacles) do local i = minetest.get_meta(r):get_inventory() transmission = i:add_item('cache',transmission) + minetest.sound_play('sorcery_zap', { gain = 0.5, pos = r }) if transmission:is_empty() then break end end - if not transmission:is_empty() then inv:add_item('cache',transmission) end + if not transmission:is_empty() then inv:add_item('cache',transmission) else + minetest.sound_play('sorcery_zap', { gain = 0.5, pos = pos }) + end + -- TODO add particle fx as well return true elseif n.maxpower >= n.self.maxpower then -- other devices are currently drawing power and might stop, -- making enough available for us; keep iterating just in case return true