Alex's Mobs

Alex's Mobs

72M Downloads

Capsid crafting is inconsistent

slava110 opened this issue ยท 0 comments

commented

Hi. I've tried to automate capsid crafting. However, I found a problem.
I'm using this setup
screenshot
At the first time when you put item into capsid it will start transformation process normally. It will transform item into another item and then pass crafting result to the container above it (in this case chest).
However, when you'll try to do it second time with the same capsid it will just pass ingredient to the container above it instead of starting transformation process.
This is caused by floatUpProgress variable being 1F. This field doesn't reset when item is passed to the container above
https://github.com/AlexModGuy/AlexsMobs/blob/1.19/src/main/java/com/github/alexthe666/alexsmobs/tileentity/TileEntityCapsid.java#L76-L86
The only way for it to reset - if you'll remove the container above capsid
(https://github.com/AlexModGuy/AlexsMobs/blob/1.19/src/main/java/com/github/alexthe666/alexsmobs/tileentity/TileEntityCapsid.java#L100)
I think item transformation should be above transportation part in the code. Check recipe, if there's no recipe - try to transport item