Need Help with Position of something

Place to get help with not working mods / modding interface.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Need Help with Position of something

Post by TheSAguy »

Hi,

I'm trying to create a mod for a Solar mat. (Attached.)
They way it works is that I create a hidden solar panel with the placement of a tile.

My problem is that I group and delete hidden entities by identifying the position. Because I'm using a combination of Tile and Entities, I'm having a problem getting the same location.
Code
Currently I'm not deleting the hidden solar panel when mining the mat. and I believe the problem is that my position when placing the mat and when mining it is not matching up.
Could someone maybe review what I did and point out where I'm going wrong?

Thanks.
Attachments
Solar_Mat_0.0.1.zip
Solar Mat
(352.37 KiB) Downloaded 47 times
Post Reply

Return to “Modding help”