No. I don't touch on_robot_mined. I only invoke on_robot_built_entity/tile for entity revival by instant blueprint or the magic wands, because in normal gameplay, there is no way a player can revive a ghost entity. Earendel has used this characteristic to make his Text Plates mod efficient.Nexela wrote:Sending valid=false will cause the scripts to not do what they are supposed too though even if checking for .valid
on_robot_mined -- if robot.valid then replace item with new item end
Now this doesn't fire and the item I was trying to replace doesn't get replaced
So I would have to add explicit support for creative mode by adding additional logic checks that are not needed
Sending the player as the robot should have no ill effects on anything. I even do/did it in a few mods.
I don't want sending player as "robot" because I don't want other mods to misassume that it is really a robot and.... let's say, robot.destroy(). (e.g. the entity is so dangerous that if a robot build it, the robot will be destroyed immediately.)