Hi,
I just got started with integrated dynamics. I have seen some spotlights but not much around there that goes into details.
I understand a bit of programming so I get what a variable is and operators, pointers, variable types,...
never the less I can't get my head around on how to make a simple:
- check if Cobblestone is on a vanilla chest and output a Redstone signal.
Lets split it up were my problems are.
I just got started with integrated dynamics. I have seen some spotlights but not much around there that goes into details.
I understand a bit of programming so I get what a variable is and operators, pointers, variable types,...
never the less I can't get my head around on how to make a simple:
- check if Cobblestone is on a vanilla chest and output a Redstone signal.
Lets split it up were my problems are.
- Set item to search for. (Searched_Item)
- Item Variable Card set to: Cobblestone
- or String Variable Card set to: "Cobblestone"
- Item Variable Card set to: Cobblestone
- Get the item in the chest. (Inv_Item)
- I tried with the "List". My idea was to check the list content against the Item type. This way I do not have to care about Item slots. Otherwise, I would need to make a loop that checks each item Slot. (not sure if loops are possible)
- I understand that the elements of the lists are of type 'String'. So in 1 I need to set a String variable to: "Cobblestone"
- I tried with the "List". My idea was to check the list content against the Item type. This way I do not have to care about Item slots. Otherwise, I would need to make a loop that checks each item Slot. (not sure if loops are possible)
- Check content vs item (Comparator)
- Tried with the compare function... but does not seems to work. Take in as Argument 1 a List and Argument 2 = Any gives back boolean.
- Output if true or false.(Output)
- Easy.. just get the boolean return from the Comparator and set it on a Redstone Writer.
Last edited: