Code: Select all
script.on_event({defines.events.on_built_entity, defines.events.script_raised_built}, function(event)
local entity = event.entity
entity.surface.create_entity{
name = entity.name,
force = entity.force,
position = entity.position,
raise_built = true,
}
end)
- ensure that code is run (through mod or /c)
- place any entity down
- instantly crash to desktop (if on mac "factorio quit unexpectedly" window should appear)
Mac crash report available through discord.