Code: Select all
script.on_event({defines.events.on_robot_pre_mined},
function
game.print("A bot is about to mine an entity"..event.tick)
if event.entity = ("container", "logistic-container")
then event.robot
end
end
)
Any help would be appreciated.