Custom Machinery

Custom Machinery

3M Downloads

The custom machine upgrade created by Crafttweaker is invalid

xiakkto opened this issue ยท 4 comments

commented

I'm sorry I sent another issues, but now I have a new problem: the upgrade written by Crafttweaker has no effect.
Normally it should speed up and consume FE, but it doesn't, it just puts it in that position and has no effect whatsoever.
image

I hope what I wrote is correct...
image
image

commented

Do you declare the slot as an upgrade slot ?
You should do that by adding "variant": "custommachinery:upgrade" inside the item component json.
Also, +30% recipe duration mean the recipe will be 30% slower, not faster.

commented

Ah... But it hasn't slowed down either...
Now that I've modified it, it still hasn't changed.
image
image
It is indeed custommachinery:upgrade

commented

ok there is indeed an issue with CT integration for upgrade, if you don't specify a "chance" (4th argument of any of the mulInput, mulOutput, addInput or addOutput method) it use 0 by default, which mean the upgrade modifier is never applied.

I will fix that quickly, as a temporary solution you can set the chance yourself by using for example :
.mulInput(<requirementtype:custommachinery:speed>, 0.2, "", 1)

Note that the "target" (3rd parameter) is needed to specify the "chance" (4th parameter) as that how CT works.

commented

Should be fixed in latest version (1.16.5-0.5.8i)