CC: Tweaked

CC: Tweaked

57M Downloads

Peripheral subnetting

SirEdvin opened this issue · 2 comments

commented

Minecraft Version

1.20.x

Version

1.108.1

Details

So, currently inventory peripheral (and many others, actually) uses computer.getAvailablePeripheral(name) to get peripheral from name. However, due to how Wired Modems and PeripheralAPI works, it is creating confusion in some cases.

зображення

Here computer actually have two subnetworks that are not connected one to another. And it is impossible to transfer items from left and minecraft:barrel_0 to each other. However, if I would attach barrels directly to computer this transfer would work.

I am not sure if this indented behavior for current CC:T implementation, because peripheral names global and it is probably safe to allow peripheral discovery for any connected peripheral to computer

commented

This is working as intended/as designed. However, I appreciate that it definitely confuses a lot of people, so am open to solutions for this, even if those solutions are "document it better".

The root of this issue here is there's a mismatch between the mental model that CC uses for peripherals (network-centric) and the mental model that people expect CC to use (computer-centric). I'm not sure there's a good way of resolving this without changing the model, which I'm rather loathe to do.

commented

This is probably naive suggestion, but can I suggest add additional one step into deep here? So, Peripheral API computer access wrapper would also scan wired modems (or whatever interface it would be) for peripherals. It will not remove all issues with peripheral subnetting, but it would help to remediated some issues with this.