[Updated Question] machine is running + Energy Network Value
Posted: Sun Jan 11, 2015 9:55 am
[Edited to clarify some stuff]
So I have some custom type = "assembling-machine" machine. The primary thing is I cannot figure out how to tell if it is crafting or not and the wiki isn't the most helpful.
Is there a way to check if an item is being made? Perhaps just getting the number of ingredients in the main slot?
The second and much more awesome thing would be how to check how much energy is available on the network and pull it out of the network.
Basically once built, it has a 1MW drain so it takes a lot of power regardless of if its being used or not. I first needs an activation energy of 100MW.
If so then I either need to be able to then modify the energy requirement.
If you can't modify how much energy it requires could I do the following? \(I'm sure i could, ive not tried however. I know you can set what item drops and the item would be set to place the Machine_Deactivated entitiy.
Have 3 entities:
Machine_Deactivated - Empty crafting list so it can't craft anything
- Checks grid for power availability and when above target, remove and replace entity with Machine_Charging
Machine_Charging - Entity with 100MW drain. Also empty crafting list.
- After one second of existing this is replaced with the Machine_Active
Machine_Active
- Actual machine with recipes.
So I have some custom type = "assembling-machine" machine. The primary thing is I cannot figure out how to tell if it is crafting or not and the wiki isn't the most helpful.
Is there a way to check if an item is being made? Perhaps just getting the number of ingredients in the main slot?
The second and much more awesome thing would be how to check how much energy is available on the network and pull it out of the network.
Basically once built, it has a 1MW drain so it takes a lot of power regardless of if its being used or not. I first needs an activation energy of 100MW.
If so then I either need to be able to then modify the energy requirement.
If you can't modify how much energy it requires could I do the following? \(I'm sure i could, ive not tried however. I know you can set what item drops and the item would be set to place the Machine_Deactivated entitiy.
Have 3 entities:
Machine_Deactivated - Empty crafting list so it can't craft anything
- Checks grid for power availability and when above target, remove and replace entity with Machine_Charging
Machine_Charging - Entity with 100MW drain. Also empty crafting list.
- After one second of existing this is replaced with the Machine_Active
Machine_Active
- Actual machine with recipes.