t1546542
版本:1.14.4
给自己一本名字为123,描述为1234和12345,作者为1234的成书
书内容为
第一页:(空行)123(空行)1234
第二页:12345(空行)123456(空行)1234567
外加无法破坏,攻击力加999的属性

枯若Kuro
本帖最后由 crfst99936484 于 2019-10-26 18:43 编辑
  1. /give @p minecraft:written_book{AttributeModifiers:[{Operation:0,Amount:999,UUIDLeast:1L,UUIDMost:1L,AttributeName:"generic.attackDamage",Name:"CBC"}],Unbreakable:1,title:"1234",author:"12345",pages:["[{"text":"\\n123\\n\\n1234","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]","[{"text":"12345\\n\\n123456\\n\\n1234567"}]"]} 1
复制代码

1.14的语法记得不是很清楚了,大概是这个样子吧。 可能有误

xmdhs
give @s minecraft:written_book{Unbreakable:1,AttributeModifiers:[{Amount:999,UUIDLeast:1L,UUIDMost:1L,AttributeName:"generic.attackDamage"}],generation:3,author:"1234",title:"123",pages:['{"text":" 123 1234"}','{"text":"12345 123456 1234567"}']} 1

t1546542
crfst99936484 发表于 2019-10-26 18:32
1.14的语法记得不是很清楚了,大概是这个样子吧。 可能有误

没有描述,去哪了

t1546542
xmdhs 发表于 2019-10-26 18:35
give @s minecraft:written_book{Unbreakable:1,AttributeModifiers:[{Amount:999,UUIDLeast:1L,UUIDMost:1 ...

没有描述,而且是空行不是空格

WarnNCP
give @s minecraft:written_book{Unbreakable:1,AttributeModifiers:[{Amount:999,UUIDLeast:1L,UUIDMost:1L,AttributeName:"generic.attackDamage"}],generation:3,author:"1234",title:"123",pages:['{"text":"
123 1234"}','{"text":"
12345 123456 1234567"}']} 1 试试吧

t1546542
WarnNCP 发表于 2019-10-26 18:44
give @s minecraft:written_book{Unbreakable:1,AttributeModifiers:[{Amount:999,UUIDLeast:1L,UUIDMost:1 ...

没描述,不是空格是空行
(直接照抄的?)

xmdhs
t1546542 发表于 2019-10-26 18:40
没有描述,而且是空行不是空格

give @a minecraft:written_book{display:{Lore:["1234","12345"]},Unbreakable:1,AttributeModifiers:[{Amount:999,UUIDLeast:1L,UUIDMost:1L,AttributeName:"generic.attackDamage"}],generation:3,author:"1234",title:"123",pages:['{"text":"123\\n1234"}','{"text":"12345\\n123456\\n1234567"}']} 1

WarnNCP
额 我以为按个enter就能空行

枯若Kuro
本帖最后由 crfst99936484 于 2019-10-26 18:56 编辑
t1546542 发表于 2019-10-26 18:39
没有描述,去哪了

不好意思 题没看清
  1. /give @p minecraft:written_book{display:{Lore:["1234","12345"]},AttributeModifiers:[{Operation:0,Amount:999,UUIDLeast:1L,UUIDMost:1L,AttributeName:"generic.attackDamage",Name:"CBC"}],Unbreakable:1,title:"1234",author:"12345",pages:["[{"text":"\\n123\\n\\n1234"}]","[{"text":"12345\\n\\n123456\\n\\n1234567"}]"]} 1
复制代码


Delamer
本帖最后由 爱心魔王FHC 于 2019-10-27 01:25 编辑

虽然已经有最佳答案了,但是我还是贴一下吧,这样码给其他有需要的人看会更清楚
give @p written_book{
        pages:[
                '"第一页第一行\\n第一页第二行"','"第二页第一行\\n第二页第二行"'
                ],
        title:"成书名",
        author:"作者名",
        Unbreakable:1b,
        AttributeModifiers:[
                        {
                                Amount:999,UUIDLeast:1L,UUIDMost:1L,AttributeName:"generic.attackDamage"
                        }
                ],
        display:{
                Lore:[
                        '{"text":"描述行"}'
                        ]
                }
        }
命令过长时建议使用命令方块执行以避免输入框字节溢出

n839406178
看不懂   好厉害的样子

第一页 上一页 下一页 最后一页