Jump to content




ME bridge crafting


  • You cannot reply to this topic
7 replies to this topic

#1 CCJJSax

  • Members
  • 262 posts

Posted 18 August 2016 - 08: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://peripheralspl...rals/me_bridge/

#2 CrazedProgrammer

  • Members
  • 495 posts
  • LocationWageningen, The Netherlands

Posted 18 August 2016 - 08:58 PM

From the top of my head, I think you made a typo:
p.craft("[botania:petal][4]")

Edited by CrazedProgrammer, 18 August 2016 - 09:00 PM.


#3 Luca_S

  • Members
  • 407 posts
  • LocationGermany

Posted 18 August 2016 - 09: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.

#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 19 August 2016 - 12:34 AM

View PostCCJJSax, on 18 August 2016 - 08:24 PM, said:

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.

#5 CCJJSax

  • Members
  • 262 posts

Posted 19 August 2016 - 09:37 AM

View PostBomb Bloke, on 19 August 2016 - 12:34 AM, said:

View PostCCJJSax, on 18 August 2016 - 08:24 PM, said:

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.)

View PostCrazedProgrammer, on 18 August 2016 - 08:58 PM, said:

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.

#6 Luca_S

  • Members
  • 407 posts
  • LocationGermany

Posted 19 August 2016 - 10:01 AM

Try
p.craft("botania:petal",1)


#7 CoderPuppy

  • Members
  • 121 posts

Posted 19 August 2016 - 02: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".

#8 CCJJSax

  • Members
  • 262 posts

Posted 19 August 2016 - 07:45 PM

View PostCoderPuppy, on 19 August 2016 - 02:51 PM, said:

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!!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users