I took an other look and I found that in fact you forgot all three script_raised event
2 new event to listen to:
I added the following lines after:
script.on_event(defines.events.on_robot_built_entity, function(event) events.on_robot_built_entity(event) end)
script.on_event(defines.events.script_raised_built, function(event) events.on_script_built_entity(event) end)
script.on_event(defines.events.script_raised_revive, function(event) events.on_script_built_entity(event) end)
here is the function "on_script_built_entity" that need to be placed in the event.lua file
-- This function is called whenever an entity is built by a mod
function events.on_script_built_entity(_event)
if pairdata.exists(_event.entity) then
table.insert(global.task_queue, struct.TaskSpecification(tasks.trigger_create_paired_entity, {_event.entity}))
end
end
with that the construction drone can now also place entities :)
the event "script_raised_revive" has not been tested