Edit: I have since found a complex workaround but the question still stands.
This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
A question on item ID's
Started by Purple, 24 November 2019 - 03:41 PMPosted 24 November 2019 - 04:41 PM
I've been doing a lot of work with turtles for automating my IC2 manufacturing setup. And when switching over to MC 1.12 from 1.72 I've run into a problem. Used to be that when you ran turtle.getItemDetail().Name on IC2 ore dusts (after you wash crushed ore in the ore washing plant) the function returned nice names separate from the useless stone dust. Now this is no longer the case and they all just return "ic2:dust". Obviously this is a serous massive problem to my efforts. So is there any way for me to actually differentiate the items in question using a turtle?
Edit: I have since found a complex workaround but the question still stands.
Edit: I have since found a complex workaround but the question still stands.
Edited on 24 November 2019 - 04:28 PM
Posted 24 November 2019 - 05:38 PM
This is likely due to how IC2 organises its items.
You might be able to use the damage values of the items to differentiate them.
You might be able to use the damage values of the items to differentiate them.
Posted 30 November 2019 - 07:57 AM
Aren't damage values how much HP an object (like tools or armor) has? How can that differ between stackable items with no health?
Posted 30 November 2019 - 08:06 AM
While the damage value is used for item health, it's also used for to store other data. For instance, the colour of wool is stored in the damage value.Aren't damage values how much HP an object (like tools or armor) has? How can that differ between stackable items with no health?
A lot of mods, especially the older ones, use "god items" where they pack every kind of item into a single item id, using different damage values for each variant. This means you end up using fewer item ids, which was important when the number was pretty limited.
Edited on 30 November 2019 - 07:06 AM
Posted 30 November 2019 - 11:51 AM
That I did not know. An ugly hack that is, if a clever one. Shall test it out immediately. Thanks.
Posted 30 November 2019 - 09:37 PM
It worked. Thanks again you guys. Now my integrated production facility can continue developing.