Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0

Using Mystcraft with OpenComputers



I am trying to develop a program that can look at the details, specifically the name, of linked books from Mystcraft. I saw here that there is active support for it, but I am not sure how I am supposed to wrap the itemstacks from a transposer into something I can parse, so I am able to get the properties I'm looking for.

Any help is greatly appreciated.


Share this post

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Disclaimer first, I have never tried to use any of these specific blocks.  That said, I have enjoyed using opencomputers for other things.  From what I can see here, there is a getStackInSlot() function that will let you get an itemstack as a table from a specified inventory slot.  According to documentation for a different component with almost identical purpose and function name, that table should look something like this:

  • damage:number - the current damage value of the item.
  • maxDamage:number - the maximum damage this item can have before it breaks.
  • size:number - the current stack size of the item.
  • maxSize:number - the maximum stack size of this item.
  • id:number - the Minecraft id of the item. Note that this field is only included if insertIdsInConverters=true in the configs, and can vary between servers!
  • name:string - the untranslated item name, which is an internal Minecraft value like oc:item.FloppyDisk
  • label:string - the translated item name
  • hasTag:boolean - whether or not the item has an NBT tag associated with it.

Of corse, it will return nil if there is a problem.  As "name" is the internal name, you probably want to look at "label" for  the name that is displayed in-game.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.