我的世界怎么给命令方块的自定义村民交易,交易的物品命名?

2020-06-06 游戏 140阅读

1、问题一:如何给命令方块

①拿出一个命令方块,在里面输入‍‍/summon Villager ~ ~1 ~ {Profession:1},然后用红石激活。这样就可以获得一个村民。

②拿出命令方块输入代码,buy是玩家给村民的物品,sell是村民卖给玩家的物品。

③最后,根据自己需要进行交换即可。

2、交易的物品名称

交易的时候使用的命令代码:

/summon Villager ~ ~1 ~

{Offers:{Recipes:[{maxUses:9999999,buy:{id:264,Count:1},sell:{id:267,Count:1}}]}}

中的id就是物品ID,对应物品的名称和ID可以用tmi看,或者百度搜索 “我的世界物品ID大全”,以下为部分物品名称:

0 Air(minecraft:air)

1 Stone(minecraft:stone)

1:1 Granite(minecraft:stone)

1:2 Polished Granite(minecraft:stone)

1:3 Diorite(minecraft:stone)

1:4 Polished Diorite(minecraft:stone)

1:5 Andesite(minecraft:stone)

1:6 Polished Andesite(minecraft:stone)

2 Grass(minecraft:grass)

3 Dirt(minecraft:dirt)

3:1 Coarse Dirt(minecraft:dirt)

3:2 Podzol(minecraft:dirt)

4 Cobblestone(minecraft:cobblestone)

5 Oak Wood Plank(minecraft:planks)

5:1 Spruce Wood Plank(minecraft:planks)

5:2 Birch Wood Plank(minecraft:planks)

5:3 Jungle Wood Plank(minecraft:planks)

5:4 Acacia Wood Plank(minecraft:planks)

5:5 Dark Oak Wood Plank(minecraft:planks)

6 Oak Sapling(minecraft:sapling)

6:1 Spruce Sapling(minecraft:sapling)

6:2 Birch Sapling(minecraft:sapling)

6:3 Jungle Sapling(minecraft:sapling)

6:4 Acacia Sapling(minecraft:sapling)

6:5 Dark Oak Sapling(minecraft:sapling)

7 Bedrock(minecraft:bedrock)

8 Flowing Water(minecraft:flowing_water)

9 Still Water(minecraft:water)

10 Flowing Lava(minecraft:flowing_lava)

11 Still Lava(minecraft:lava)

12 Sand(minecraft:sand)

12:1 Red Sand(minecraft:sand)

13 Gravel(minecraft:gravel)

14 Gold Ore(minecraft:gold_ore)

15 Iron Ore(minecraft:iron_ore)

16 Coal Ore(minecraft:coal_ore)

17 Oak Wood(minecraft:log)

17:1 Spruce Wood(minecraft:log)

17:2 Birch Wood(minecraft:log)

17:3 Jungle Wood(minecraft:log)

18 Oak Leaves(minecraft:leaves)

18:1 Spruce Leaves(minecraft:leaves)

18:2 Birch Leaves(minecraft:leaves)

18:3 Jungle Leaves(minecraft:leaves)

19 Sponge(minecraft:sponge)

19:1 Wet Sponge(minecraft:sponge)

20 Glass(minecraft:glass)

扩展资料

命令代码说明

1、获取村民代码:/summon Villager ~ ~1 ~ {Profession:1}

prpfession后面的数字表示村民的ID,可以进行替换,村民ID列表:

0 - 农民

1 - 图书管理员

2 - 神父

3 - 铁匠

4 - 屠夫

5 - 特殊绿色外套村民

2、交易代码:

/summon Villager ~ ~1 ~

{Offers:{Recipes:[{maxUses:9999999,buy:{id:264,Count:1},sell:{id:267,Count:1}}]}}

maxUses:填村民要交易的次数,填1就代表一次,交易完了就没了,可以填999999,接近无限交易。

buy:玩家给村民的物品。id是物品ID。

Count:是物品数量,填64就是给村民1组。

sell:村民卖给玩家的物品,后面也是ID和数量。

参考资料:百度百科-Minecraft

参考资料:百度百科-命令方块

声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com