1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-14 03:40:21 +02:00

Randomly receive a phone call

This commit is contained in:
jeanpatrick.guerrero@gmail.com
2015-04-17 20:48:44 +02:00
committed by Vanessa Ezekowitz
parent ff6073664d
commit 95c89f7cfd
3 changed files with 14 additions and 0 deletions

View File

@ -140,3 +140,15 @@ homedecor.register("telephone", {
collision_box = tel_cbox,
})
minetest.register_abm({
nodenames = "homedecor:telephone",
interval = 30,
chance = 10,
action = function(pos, node)
minetest.sound_play("homedecor_telephone_ringing", {
pos = pos,
gain = 1.0,
max_hear_distance = 10
})
end
})