⑴ 我的世界怎麼給命令方塊的自定義村民交易,交易的物品命名
1、問題一:如何給命令方塊
①拿出一個命令方塊,在裡面輸入/summon Villager ~ ~1 ~{Profession:1},然後用紅石激活。這樣就可以獲得一個村民。
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)mc如何做經驗交易指令擴展閱讀
命令代碼說明
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和數量。