Page 1 of 1

Get blueprint entity for a LuaEntity

Posted: Tue Nov 12, 2019 7:41 pm
by alercah
I have a small personal mod to make the pipette able to carry the settings of the entity is pipetting. However, it is currently implemented with settings copy-paste onto a ghost, which has a number of limitations; it doesn't work properly for ghosts, struggles with modded entities somewhat, etc.

A better way might be if my mod simply create a blueprint of the entity, similar to Ctrl-C, but without including anything else at that point, and put that on the cursor. The problem with that is that there is no way to easily create a blueprint of a single entity. I think it may be technically possible at the moment, but it would be nice to be able to create the blueprint entity table for an entity directly, rather than having to actually create a blueprint item from the map and extract it that way.