dsweddd2015-08-25 00:43
哈喽大家好,我是折射,今天是命令方块的教程

(表注意那个刷怪笼)今天我们来做一个可以交换厉害武器的村民

首先,我们需要一个命令方块 指令/give @p command_block

命令方块里输入
/summon villager ~ ~1 ~
{profession:5,
customname:"折射",customnamevisible:1,
attributes:[{name:generic.maxhealth,base:32767}],
offers:{recipes:[
{maxuses:32767,
buy:{id:bone,count:18,damage:0},
buyb:{id:iron_ingot,count:10,damage:0},
sell:{id:iron_sword,count:1,damage:0,damage:0s,tag:{attributemodifiers:[
{operation:0,uuidleast:1,uuidmost:1,amount:10,attributename:generic.attackdamage,name:g},
{operation:0,uuidleast:3,uuidmost:3,amount:5,attributename:generic.knockbackresistance,name:j},
{operation:0,uuidleast:5,uuidmost:5,amount:10,attributename:generic.maxhealth,name:h},
],
display:{name:"骸骨之剑",lore:["呜喵王的宝物"],color:},
ench:[{id:16,lvl:50},
{id:17,lvl:30},
{id:18,lvl:30},
{id:19,lvl:2},
{id:20,lvl:2},
{id:21,lvl:9},
],storedenchantments:[{id:16,lvl:50},
{id:17,lvl:30},
{id:18,lvl:30},
{id:19,lvl:2},
{id:20,lvl:2},
{id:21,lvl:9},
],}
}},
]}
}

拉一下拉杆,出来一只村民

可以交换流弊的骸骨之剑
嗯,这是一个命令方块教程,大家可以改变指令,比如说什么名字,交易物品什么的
今天就到这里了,大家ヾ( ̄▽ ̄)bye~bye~