CyclopsMC / IntegratedDynamics

A Minecraft mod to take full and automated control of your appliances.
http://cyclopsmc.github.io/IntegratedDynamics/
MIT License
126 stars 59 forks source link

Ingr.with_item and Ingr.with_fluid do not convey size/amount informations #1351

Closed RuelYasa closed 1 week ago

RuelYasa commented 2 weeks ago

Issue type:


Short description:

When using Ingr.with_item, the inserted item's amount is always 1, no matter what the second input is. The Ingr.with_fluid shows similar behaviours, where the amount of the fluid is always 1000mB.

Besides, applying these operators to empty Ingredients always produce an empty Ingredients.

Steps to reproduce the problem:

  1. Create an Ingredients, an Integer and an Items by logic programmers.
  2. Use Ingr.with_fluid with the cards to create a new varible.
  3. Put it in a display panel and check the output.

Expected behaviour:

The inserted item's amount isn't 1.


Versions:

Log file:

rubensworks commented 2 weeks ago

Thanks for reporting!

rubensworks commented 1 week ago

I followed your exact steps, and I am able to successfully create an ingredient with items/fluids that keep their given amounts.

RuelYasa commented 5 days ago

Sorry for late reply! I tried it again recently, and the issue still occurred. Here are the variable cards: 1

2

3

4

Did I wrongly used the operators? Thank for your consideration!

rubensworks commented 5 days ago

I see you used the value 23 as integer. Are you aware that this is the index position in the ingredient, and not the amount for the item? For specifying the amount of the item, you need to encode the amount when creating the item itself.