1

Having a Bit of a Problem with Written Books

ean521's Avatar ean5214/11/14 10:08 pm
1 emeralds 267 1
4/13/2014 5:19 pm
TheRedSkorpion's Avatar TheRedSkorpion
I am not very new to redstone/commands/NBT Tags, but this is the first time I've wanted to use NBT tags with written books. I tried to test it with:


/give @p written_book 1 0 {tag:{author:"Master",title:"Happay"}}



For some reason, I just get a blank written book with no title or author. Is there anything that I'm doing wrong? I am also a bit confused with the "pages" tag, too, so can someone explain to me that?
Posted by ean521's Avatar
ean521
Level 11 : Journeyman Ranger
0

Create an account or sign in to comment.

1

TheRedSkorpion
04/13/2014 5:19 pm
Level 20 : Expert Engineer
TheRedSkorpion's Avatar
It's very easy I'm gonna show you
first, you need to get rid of the "tag" compound because your first curly braces ARE the tag compound.
So it should look like this:

/give @p written_book 1 0 {author:"Master",title:"Happay"}

Pages are simple, you just add: pages:["blabla page 1","blabla page 2","etc"]
So basicaly it's a list (list because []) of strings separated by commas.
Example:

/give @p written_book 1 0 {author:"Master",title:"Happay",pages:["this is the first page and blablablablabla","this is the second pages","and up to 50 I think"]}

The words line up automatically in the book (if you try the last command with the lore, you should see what I mean).

Hope it helped!
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome