Got it :D
Add this to the bottom of data.lua (or in a separate file)
if mods["space-exploration"] then
local collision_mask_util_extended = require("__space-exploration__/collision-mask-util-extended/data/collision-mask-util-extended")
local data_util = require("__space-exploration__/data_util")
local space_collision_layer = collision_mask_util_extended.get_make_named_collision_mask("space-tile")
local names = {"lex-flying-cargo", "lex-flying-gunship", "lex-flying-heavyship"}
for _, name in pairs(names) do
local prototype = data.raw["spider-vehicle"][name]
prototype.collision_mask = collision_mask_util_extended.get_mask(prototype)
collision_mask_util_extended.add_layer(prototype.collision_mask, space_collision_layer)
for _, leg_specification in pairs(prototype.spider_engine.legs) do
local leg_prototype = data.raw["spider-leg"][leg_specification.leg]
leg_prototype.collision_mask = collision_mask_util_extended.get_mask(leg_prototype)
collision_mask_util_extended.add_layer(leg_prototype.collision_mask, space_collision_layer)
collision_mask_util_extended.add_layer(leg_prototype.collision_mask, "colliding-with-tiles-only")
end
data_util.collision_description(prototype) -- Adds "Cannot be placed on..." to tooltip
end
end
And add a optional hidden dependency on space-exploration in info.json:
"(?) space-exploration"