Electric Tiles


Adds conductive floor tiles that transmit power to adjacent tiles (including diagonals) and any structure on top of them, just place a power source or electric pole on top and enjoy the extra space!

Content
2 months ago
2.0
4.26K
Power

i API method for "electrifying" existing tiles

5 days ago

Can API call be created for adding electric capabilities for existing tiles without creating copy (or completely replacing original with copy). It makes sense for hi-tech tiles e.g. space platforms on ground etc and removes unnecessary recipes from menus.

5 days ago

Figured it out, works, but looks ugly.
local carrier = data.raw["mod-data"]["F077ET-data-carrier"]
table.insert(carrier.data["list-allowed-tiles"].new_tile.name)

4 days ago
(updated 4 days ago)

yeah, i tend to feel uncomfortable when the code looks weird too. And, the code is the same the mod uses to adapt some other mods, like SE.

Directly inserting the names in the carrier is not exactly the "expected" way, since it could give some problems on already started play-throughs, but mehhh, it works (and there are also some console commands to fix some situations).

New response