Page 1 of 1
Help from experienced modders to create a hidden lightning rod
Posted: Sat May 31, 2025 8:37 pm
by Hoochie
Hi! Help me create a hidden lightning rod for a medium electric pole, I can't do it. I looked at examples of different loaders, but nothing worked.
I have almost no modding experience, maybe someone can help?
That is, a pillar that absorbs lightning is needed.
Re: Help from experienced modders to create a hidden lightning rod
Posted: Mon Jun 02, 2025 3:44 pm
by sarfact
Hey, you can make a hidden lightning rod by creating a dummy electric pole entity with no graphics (__core__/graphics/empty.png) and no collision (collision_mask = {}). Give it a unique name like hidden-lightning-rod and spawn it with your medium pole using the on_built_entity event. Since Factorio doesn’t have lightning by default, you'd need to simulate the effect or use a mod that adds it.
Re: Help from experienced modders to create a hidden lightning rod
Posted: Tue Jun 03, 2025 3:54 am
by robot256
For a better example of compound entity management, look at how Shortwave Fixed radios work, and how Cargo Ships oil rigs work.