376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
|
name = 'Condenser sound effects';
nodenames = {'sorcery:condenser'};
neighbors = {'group:sorcery_ley_device'};
interval = 5.6, chance = 1, catch_up = false;
action = function(pos)
local force = sorcery.ley.estimate(pos).force
minetest.sound_play('sorcery_condenser_bg', {
pos = pos, max_hear_distance = 5 + 8*force, gain = force*0.3;
})
end;
}
end
minetest.register_craft {
output = 'sorcery:condenser';
|
|
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
|
name = 'Condenser sound effects';
nodenames = {'sorcery:condenser'};
neighbors = {'group:sorcery_ley_device'};
interval = 5.6, chance = 1, catch_up = false;
action = function(pos)
local force = sorcery.ley.estimate(pos).force
minetest.sound_play('sorcery_condenser_bg', {
pos = pos, max_hear_distance = 5 + 4*force, gain = force*0.3;
})
end;
}
end
minetest.register_craft {
output = 'sorcery:condenser';
|