Is it possible

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

blipman17

New Member
Jul 29, 2019
15
0
0
I have a stupid idea that a lot of people had before me, and did.
but now the new Direwolf20 1.6.4 pack came out, i don't know how to do this anymore.
I used the ME bridge to get the items from my ME network, compare them with a list and craft some more if the programs decided to. but now the ME bridge is gone!

do you know any other way to get a list of items and to request the crafting from some items in an ME network using computercraft?
I don't think that logistic pipes is good for this personally
 

casilleroatr

New Member
Jul 29, 2019
1,360
0
0
Open peripherals has added some more methods to allow you to do this. It still works using id and damage values.

The website is not updated but you can always use peripheral.getMethods to find them. It works on at least the ME Controller. I don't know about any other AE blocks.
 

blipman17

New Member
Jul 29, 2019
15
0
0
i tried, but i can't find any function to request the quantity of the item present, or a request to craft something. I did found functions about energyflow and things but nothing others usefull
 

casilleroatr

New Member
Jul 29, 2019
1,360
0
0
The only method that I know of for sure is called countOfItemType(int id,int dmgvalue). I am sure there are other ones too. In fact I will boot up my instance now to check more.

countOfItemType - This one can tell you how much you have of a particular item. I have tested this one before and it works.

These ones I have never tested myself

requestCrafting
getAvailableItems
containsItemType

If you haven't already check out the getAdvancedMethodsData to get more detail about the methods. It tells you what the parameters are and a description of the method. I hope this helps
 

blipman17

New Member
Jul 29, 2019
15
0
0
thank you verry much, the requestCrafting and others are from the me bridge, a block added by Miscperipherals. but the block does no longer exist any more. it could be me but i can't get the getAdvancedMethodsData working. but thank you anyway.
 

casilleroatr

New Member
Jul 29, 2019
1,360
0
0
I obtained those method names by using peripheral.getMethods on the ME controller itself and I don't even have miscperipherals installed so it should work.
I should probably have been more specific about how to use the advanced method data method too. It returns a table (with many nested tables) which you can then print out in a generic for loop. The main table has numeric keys and each point contains a subtable which has string keys like "name" or "description" (They may not be the exact names of the keys). Some of those contain further sub-tables, for example - there is one that lists all the parameters. Beware of this when iterating through the table as a common error might be "attempt to concatenate string with table"