Associating an electric-energy-interface to my entity.

Place to get help with not working mods / modding interface.
Post Reply
Ickis
Burner Inserter
Burner Inserter
Posts: 13
Joined: Mon Nov 19, 2018 12:31 pm
Contact:

Associating an electric-energy-interface to my entity.

Post by Ickis »

I have created an entity that does not typically require power. To solve this I have created an electric-energy-interface entity that is invisible, but how do I make my original entity show that it needs power and the power state when I hover over it?

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Associating an electric-energy-interface to my entity.

Post by eradicator »

You can not. The entity_info windows (that shows up when you mouse over an entity) is not moddable or configurable. The best you can do is use a fancy localized description. Or make the eei selectable.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Ickis
Burner Inserter
Burner Inserter
Posts: 13
Joined: Mon Nov 19, 2018 12:31 pm
Contact:

Re: Associating an electric-energy-interface to my entity.

Post by Ickis »

Ah that's a right shame - thank you anyways.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Associating an electric-energy-interface to my entity.

Post by eradicator »

Depending on what you're trying to do another approach would be to make the eei the main selectable entity. It doesn't have to be visible for that. But without knowing what exactly you're trying to do i can't really help. And chance are that there are just no "nice and clean" solutions, so it depends on how much hacking you're willing to accept.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Modding help”