This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
CCJJSax's profile picture

ME bridge crafting

Started by CCJJSax, 18 August 2016 - 07:24 PM
CCJJSax #1
Posted 18 August 2016 - 09:24 PM
I'm really trying to figure out how to do the meta data on the Peripherals++ me bridge. It says to use the format


p = peripheral.wrap("bottom")
p.craft("[Botania:pedal][4]") -- should craft yellow botania petal.

http://peripheralsplusplus.readthedocs.io/en/latest/peripherals/me_bridge/
CrazedProgrammer #2
Posted 18 August 2016 - 09:58 PM
From the top of my head, I think you made a typo:

p.craft("[botania:petal][4]")
Edited on 18 August 2016 - 08:00 PM
Luca_S #3
Posted 18 August 2016 - 10:01 PM
Do you want to set metadata or amount, if you want to set metadata I can't help you but you definitely need the amount argument.
Bomb Bloke #4
Posted 19 August 2016 - 01:34 AM
p.craft("[Botania:pedal][4]") -- should craft yellow botania petal.

… and what does it do instead?

According to your link, you should be providing two arguments - a number indicating the desired amount should follow the id/metadata combination.
CCJJSax #5
Posted 19 August 2016 - 10:37 AM
p.craft("[Botania:pedal][4]") -- should craft yellow botania petal.

… and what does it do instead?

According to your link, you should be providing two arguments - a number indicating the desired amount should follow the id/metadata combination.

It does nothing. It seems like it is trying to craft an item called "[Botania:pedal][4]" which doesn't exist. (I have checked spelling. this spelling may be wrong but I checked it in code.)

From the top of my head, I think you made a typo:

p.craft("[botania:petal][4]")

Yeah, I misspelled it here, but in code I made sure to get it right. It's more the concept than anything that I'm trying to figure out.
Luca_S #6
Posted 19 August 2016 - 11:01 AM
Try

p.craft("botania:petal",1)
CoderPuppy #7
Posted 19 August 2016 - 03:51 PM
The problem is the format, which isn't well specified in the documentation, but of course is in the code.

The format is "<id> [meta]" or for your test "botania:petal 4".
CCJJSax #8
Posted 19 August 2016 - 08:45 PM
The problem is the format, which isn't well specified in the documentation, but of course is in the code.

The format is "<id> [meta]" or for your test "botania:petal 4".

YES! That's it! Thank you so much!!