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.
Help from experienced modders to create a hidden lightning rod
Re: Help from experienced modders to create a hidden lightning rod
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
For a better example of compound entity management, look at how Shortwave Fixed radios work, and how Cargo Ships oil rigs work.
My mods: Multiple Unit Train Control, Smart Artillery Wagons
Maintainer of Vehicle Wagon 2, Cargo Ships, Honk
Maintainer of Vehicle Wagon 2, Cargo Ships, Honk