pushItems and pullItems fail to detect inventories
electrovoyage opened this issue · 2 comments
Minecraft Version
1.21.1
Version
1.116.1
Details
Making an ATM-like computer setup. There are already multiple of these in my world and those work flawlessly, but it seems as if the farther I go from the 0,0 chunk, the more random issues with inventories happen. Not sure if that's actually the case, but the ATMs set up using the same code at spawn didn't ever crash.
The "issues with inventories" described above are mostly "source minecraft:barrel_X doesn't exist" when using pullItems, despite that inventory existing:


I was previously using pushItems which had similar problems but with the create:item_vault side of things, so I switched to pullItems which worked for some time, but then also broke. I also feel it's worth noting that the computer in this screenshot has an ID of 12. There's another computer №12 and that one works perfectly. Could it be that the new one is somehow using the other's peripheral list for pullItems and pushItems?
If that's the case then that's really weird. The first few ATMs in the world all have the same ID yet they have no issues.
Why even use peripheral names for these functions? I feel like if there was an overload or alternate function that used a peripheral handle it could be much more reliable.
I've checked the logs and couldn't find anything about this issue but I have attached them anyway: debug.log latest.log
I'm not exactly sure if this is reproduce-able, but I would suggest the following steps:
- Create a computer with two inventories attached
- Create a script on it to transfer items from one inventory to the other using pullItems or pushItems on startup
- Copy the setup a few times using middle-click
- source minecraft:barrel_X doesn't exist
Which vault is used in example you are showing? "back" one or network named one? CC:T item movements are limited to be within same wired network, and sided network is considered separate from wired named nework, as showcases in this image:
Red, green and blue are 3 separate networks that computer can interact with, and it is not allowed to move items between separate networks.
Can you show screenshot how your setup is connected and which peripherals are you attempting to move items between? any change you have used peripheral.find which might have accidentally found and created peripheral wraps on separate networks?