forked from mtcontrib/homedecor_modpack
Randomly receive a phone call
This commit is contained in:
parent
ff6073664d
commit
95c89f7cfd
@ -13,4 +13,6 @@ Licenses:
|
||||
http://freesound.org/people/guitarguy1985/sounds/69384/
|
||||
* For the book sound, Public Domain by mckinneysound's on http://www.freesfx.co.uk/
|
||||
http://www.freesfx.co.uk/sfx/book?p=3
|
||||
* For the phone ring, Public Domain by andyt's on http://www.freesfx.co.uk/
|
||||
http://www.freesfx.co.uk/sfx/phone?p=5
|
||||
* For all images and everything else, WTFPL.
|
||||
|
@ -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
|
||||
})
|
||||
|
BIN
homedecor/sounds/homedecor_telephone_ringing.ogg
Normal file
BIN
homedecor/sounds/homedecor_telephone_ringing.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user