Currently there is no way that I've found to simply retrieve a crafting machine's current productivity bonus. You can get the crafting speed, but the productivity bonus isn't included with that. Right now the only way to calculate it is to retrieve all of the beacons that are affecting the machine and combine the productivity that they're broadcasting.
The bonus is shown in the crafter's tooltip so the game already calculates it, it's just a matter of exposing it to the API.
Thanks!
LuaEntity::productivity_bonus read
LuaEntity::productivity_bonus read
Don't forget, you're here forever.
Re: LuaEntity::productivity_bonus read
Ok.
If you want to get ahold of me I'm almost always on Discord.