Code: Select all
local function script_event_on_entity_damaged( event )
game.print( event.cause.name .. ' -- ' .. event.cause.type )
end
script.on_event( defines.events.on_entity_damaged, script_event_on_entity_damaged )
https://wiki.factorio.com/Land_mine