259 posts
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/
546 posts
Location
Wageningen, The Netherlands
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
477 posts
Location
Germany
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.
7083 posts
Location
Tasmania (AU)
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.
259 posts
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.
477 posts
Location
Germany
Posted 19 August 2016 - 11:01 AM
Try
p.craft("botania:petal",1)
130 posts
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".
259 posts
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!!