Closed fntsrlike closed 7 years ago
這個問題起源於村民 NBT 標籤的 CarrerLevel
關係。
當 CarrerLevel
設置為 0
時,會重置該村民的職業 (Carrer),所以若要在生成村民指定職業時,就要將 CarrerLevel
設置為 1
或以上。
但是當 CarrerLevel
設置為 1 時,系統會認為你已經有第一層交易了,所以會在生成新交易時,直接從第二層開始。而若是生成時沒指定交易選項 Offers:{Recipes:[]}
時,在開啟交易選單時就會自動觸發生成下一階的交易,所以就導致初始交易選項是從第二層交易開始。
而當 CarrerLevel
大於該職業自動生成的最大交易階數時,就不會再自動生成交易,這也是為什麼許多村民交易都少了一層的關係。
目前偏向的解決辦法有二:
CarrerLevel
設置為 1
,並手動先設定好第一階的交易項目。(偏好做法)農民
/summon villager ~ ~ ~ {CustomName:"新手村農民",Profession:0,Career:1,CareerLevel:1,Offers:{Recipes:[{rewardExp:1b,maxUses:10,uses:0,buy:{id:wheat,Count:20b},sell:{id:emerald,Count:1b}},{rewardExp:1b,maxUses:10,uses:0,buy:{id:potato,Count:17b},sell:{id:emerald,Count:1b}},{rewardExp:1b,maxUses:10,uses:0,buy:{id:carrot,Count:17b},sell:{id:emerald,Count:1b}},{rewardExp:1b,maxUses:10,uses:0,buy:{id:emerald,Count:1b},sell:{id:bread,Count:3b}}]},Invulnerable:1,PersistenceRequired:1,Team:"normal"}
漁夫
/summon villager ~ ~ ~ {CustomName:"新手村漁夫",Profession:0,Career:2,CareerLevel:1,Offers:{Recipes:[{rewardExp:1b,maxUses:10,uses:0,buy:{id:fish,Count:6b},buyB:{id:emerald,Count:1b},sell:{id:cooked_fish,Count:6b}},{rewardExp:1b,maxUses:10,uses:0,buy:{id:string,Count:17b},sell:{id:emerald,Count:1b}},{rewardExp:1b,maxUses:2147483647,uses:0,buy:{id:coal,Count:20b},sell:{id:emerald,Count:1b}}]},Invulnerable:1,PersistenceRequired:1,Team:"normal"}
牧羊人
/summon villager ~ ~ ~ {CustomName:"新手村牧羊人",Profession:0,Career:3,CareerLevel:1,Offers:{Recipes:[{rewardExp:1b,maxUses:10,uses:0,buy:{id:wool,Count:18b},sell:{id:emerald,Count:1b}},{rewardExp:0b,maxUses:3,uses:0,buy:{id:emerald,Count:1b},sell:{id:shears,Count:1b}}]},Invulnerable:1,PersistenceRequired:1,Team:"normal"}
製箭師
/summon villager ~ ~ ~ {CustomName:"新手村製箭師",Profession:0,Career:4,CareerLevel:1,Offers:{Recipes:[{rewardExp:1b,maxUses:10,uses:0,buy:{id:string,Count:17b},sell:{id:emerald,Count:1b}},{rewardExp:0b,maxUses:10,uses:0,buy:{id:emerald,Count:1b},sell:{id:arrow,Count:10b}}]},Invulnerable:1,PersistenceRequired:1,Team:"normal"}
移動速度
Attributes:[{Name:generic.movementSpeed,Base:0}]
最後是生成對應職業的村民,再透過 entitydata
修正其屬性。本 issue 已經修正,故關閉。
基本資訊
fntsrlike
2017-04-21
新手村民換血後問題描述