Solved Help with BookMeta

Discussion in 'Plugin Development' started by tommycake50, Aug 16, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    tommycake50

    How to determine where the lines end in book pages?
    So BookMeta.getPage(index); returns a String but this is problematic because as far as i can see there is no way to determine when one line ends and another begins.
    It has been driving me crazy for a few months now.
    Could someone please help?
    Like maybe does it use \n's? or what.
     
  2. Offline

    desht

    Yep, each line in the page is separated with a \n.
     
  3. Offline

    Door Knob

    tommycake50
    From my knowledge of NBT, \n just places a new line symbol, and Minecraft will try to print it. It's gonna give some kind of square it a little CB or CR in it. I don't remember what it says. It'll still print a new line after that weird symbol. Anyway, as far as I know, clean new lines are hard coded in books.
     
  4. Offline

    tommycake50

    So i can use a \n to determine new lines?
    or is the nbt just weird and im gonna have to accept it xD.
     
  5. Offline

    Door Knob

    lol, not sure. Maybe it's just the NBTExplorer making the weird symbols. Do some testing :p
     
  6. Offline

    tommycake50

    I never thought to look using NBTEdit lol.
    im so stupid *facepalm*
     
  7. Offline

    Door Knob

    tommycake50
    I recommend NBTExplorer, it's much better, and NBTEdit was abandoned. :)
     
  8. Offline

    tommycake50

    ok i'll use explorer then.
    But NBTEdit seems to run better in mono than explorer.
     
  9. Offline

    Door Knob

  10. Offline

    tommycake50

    It takes a little longer opening the tags in Explorer.
     
  11. Offline

    Door Knob

Thread Status:
Not open for further replies.

Share This Page