AdvancedPeripherals icon indicating copy to clipboard operation
AdvancedPeripherals copied to clipboard

create integration for redstone link

Open chipsams opened this issue 3 years ago • 1 comments

Describe your idea

integration for create that allows sending and reciving signals on redstone links/redstone link chanels. this could be done one of two ways:

  • an interface similar to the redstone api, but that takes two item ids or some form of item description in order to specify the channel before the value. the api could look something like this:
link=peripheral.find("redstoneLink")
link.setOutput("minecraft:dirt","create:brass_ingot",true)
v=link.getAnalogInput("minecraft:stone","minecraft:iron_ingot")
link.setAnalogInput("minecraft:stone","minecraft:gold_ingot",v)

link.clearOutputs() --outputs to channels preserve even when other channels are set, so it is probably for the best to have some bulk clearing.
  • the redstone link having methods to set its two slots. this is less versatile, but perhaps easier to implement.
link=peripheral.find("redstoneLink")
link.setTopSlot("minecraft:dirt")
link.setBottomSlot("create:brass_ingot")
link.getTopSlot() --"minecraft:dirt"
link.getBottomSlot() --"create:brass_ingot"
link.getSlots() --{"minecraft:dirt","create:brass_ingot"}
link.setSlots("minecraft:stone","minecraft:dirt")

Describe alternatives you've considered if you've any

No response

Additional context

No response

Linked Issues

No response

chipsams avatar Feb 17 '22 19:02 chipsams

create: computing already adds this: https://www.curseforge.com/minecraft/mc-mods/create-computing

awesomebossdj7 avatar Aug 28 '22 00:08 awesomebossdj7