grinder, recycler: sounds
parent
f08a8be4dc
commit
3a9dbb6834
|
@ -105,6 +105,8 @@ local grinder_process = function(pos)
|
|||
--take 1 item from src inventory for each activation
|
||||
stack=stack:take_item(1); inv:remove_item("src", stack)
|
||||
|
||||
minetest.sound_play("grinder", {pos=pos,gain=0.5,max_hear_distance = 8,})
|
||||
|
||||
fuel = fuel-def[1]; -- burn fuel
|
||||
meta:set_float("fuel",fuel);
|
||||
meta:set_string("infotext", "fuel status " .. fuel);
|
||||
|
|
|
@ -102,6 +102,9 @@ local recycler_process = function(pos)
|
|||
--take 1 item from src inventory for each activation
|
||||
stack=stack:take_item(1); inv:remove_item("src", stack)
|
||||
|
||||
minetest.sound_play("recycler", {pos=pos,gain=0.5,max_hear_distance = 8,})
|
||||
|
||||
|
||||
fuel = fuel-1; -- burn fuel on succesful operation
|
||||
meta:set_float("fuel",fuel); meta:set_string("infotext", "fuel status " .. fuel .. ", recycling " .. meta:get_string("node"));
|
||||
end
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue