MattiDragon / ExtendedDrawers

Adds drawers and more
Other
6 stars 14 forks source link

[Feature]: Make drawer storage slotted for CC:T #93

Open pauliesnug opened 9 months ago

pauliesnug commented 9 months ago

Description of the feature

When using CC: Tweaked adjacent to a drawer from Extended Drawers, Computer Craft doesn't recognize it as a peripheral, so the Computer cannot interact with it. This could be done similarly to how Create implements Computer Craft compatibility: https://github.com/Fabricators-of-Create/Create/blob/mc1.18/fabric/dev/src/main/java/com/simibubi/create/compat/computercraft/implementation/peripherals/SyncedPeripheral.java image image

How does it make the mod better?

CC: Tweaked is frequently used to manage storage, so maintaining compatibility with such a popular mod is necessary.

MattiDragon commented 9 months ago

This is caused by drawers not currently providing slots because they were coded before the slotted api was added. Once I add support for slotted access to drawers CC:T should be able to interact with them

pauliesnug commented 9 months ago

This is caused by drawers not currently providing slots because they were coded before the slotted api was added. Once I add support for slotted access to drawers CC:T should be able to interact with them

Do you know how easy this would be/an ETA? It is okay if not. I wonder if you could instead make a peripherals compatibility, instead of relying on autodetecting slots, since you already have an ExtendedDrawers API.

MattiDragon commented 9 months ago

What additional periferal options would you want from a drawer? Also, there's no ExtendedDrawers API, where did you get that?

pauliesnug commented 9 months ago

https://github.com/Fabricators-of-Create/Create/blob/mc1.18/fabric/dev/src/main/java/com/simibubi/create/compat/computercraft/implementation/peripherals/SyncedPeripheral.java

Just detection and the ability to grab a specified amount of a specified item, and see all available item amounts.