Integrated Dynamics

Integrated Dynamics

63M Downloads

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

RuelYasa opened this issue ยท 4 comments

commented

Issue type:

  • ๐Ÿ› Bug

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:

  • This mod: 1.21.3
  • Minecraft: 1.20.1
  • Forge: 47.1.105 (NeoForge)

Log file:

commented

Thanks for reporting!

commented

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

commented

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!

commented

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.