Interacting Objects

Hi,

I am looking for pointers for keywords to do research as I hit a bit of a wall.

I want to allow a player to create a “machine” from parts so that when the parts are put together the “machine” performs an action. For example, the player has a battery and a lamp, once the player puts the two together, the lamp will emit light and draw “power” from the battery.

I have been searching for interaction but all I get is examples of player interacting directly with an object rather than objects interacting with each other. Which keywords/concepts should I search for to get the info?

Thank you.