1 posts
Posted 23 December 2017 - 06:01 PM
Hi everyone, :)/>
can anyone tell me how to read the burn time of an Item?
Greetings
schUk0
7083 posts
Location
Tasmania (AU)
Posted 24 December 2017 - 01:50 AM
I suspect that you might be able to read this information out of certain machines using OpenPeripheral (while they're running), but no method comes to mind for reading it out of items directly. You'll likely need to build your own lookup table and have your script reference that.
2427 posts
Location
UK
Posted 24 December 2017 - 12:56 PM
You'll likely need to build your own lookup table and have your script reference that.
Two ways to do this:
- Have the turtle put items in a furnace and time the duration (the furnace will need to be operating so smelt some stone or something)
- Look up the durations in JEI/NEI and manually input them
1023 posts
Posted 24 December 2017 - 06:04 PM
"Note that other items are accepted (including both vanilla / mod items) - generally, if an item can be used in a furnace it'll provide fuel equal to the number of items it could smelt, multiplied by ten." - from the wiki
Another solution would be to simply use the item to refuel a turtle. Calculate how much the turtle fuel level has changed from refueling using the item. At that point you take that amount divide by 10 and that is how many items it could smelt, or leave the number as it is and that is how many seconds it would last if left to burn in a furnace.
However, due to how the fuel amount is calculated the numbers gotten through this method might be a little off due to integer division being used when calculating the number of moves a turtle gets from a piece of fuel. Without testing I would assume any item that can smelt a fraction of a item would be misrepresented.