this doesn't fix dyed toolbelts (#368), but it does fix the other long-standing issue with upgrading them
This commit is contained in:
parent
fc35769678
commit
8787781f27
3 changed files with 22 additions and 7 deletions
|
|
@ -14,7 +14,7 @@ const registerToolBeltRecipes = (event) => {
|
|||
], {
|
||||
A: '#forge:string',
|
||||
B: '#forge:leather',
|
||||
C: '#forge:plates/wrought_iron'
|
||||
C: '#forge:bolts/rose_gold'
|
||||
}).id('tfg:toolbelt/shaped/pouch')
|
||||
|
||||
// ToolBelt с размером 2
|
||||
|
|
@ -26,13 +26,28 @@ const registerToolBeltRecipes = (event) => {
|
|||
A: '#forge:string',
|
||||
B: '#forge:leather',
|
||||
C: '#forge:plates/wrought_iron'
|
||||
}).id(`tfg:toolbelt/shaped/belt_${ 2}`)
|
||||
}).id(`tfg:toolbelt/shaped/belt_${2}`)
|
||||
|
||||
event.shapeless(Item.of('toolbelt:belt', {Size:3}), [
|
||||
Ingredient.of(Item.of('toolbelt:belt').strongNBT()),
|
||||
'toolbelt:pouch'
|
||||
]).id(`tfg:toolbelt/shaped/first_upgrade`)
|
||||
|
||||
event.shapeless(Item.of('toolbelt:belt', {Size:3,Items:[]}), [
|
||||
Ingredient.of(Item.of('toolbelt:belt', {Items:[]}).strongNBT()),
|
||||
'toolbelt:pouch'
|
||||
]).id(`tfg:toolbelt/shaped/first_upgrade_alt`)
|
||||
|
||||
// ToolBelt с размером 3 - 9
|
||||
for (let i = 3; i < 10; i++) {
|
||||
event.shapeless(Item.of('toolbelt:belt', {Size:i}), [
|
||||
Ingredient.of(Item.of('toolbelt:belt', {Size:i-1}).strongNBT()).or(Ingredient.of(Item.of('toolbelt:belt', {Size:i-1,Items:[]}).strongNBT())),
|
||||
Ingredient.of(Item.of('toolbelt:belt', {Size:i-1}).strongNBT()),
|
||||
'toolbelt:pouch'
|
||||
]).id(`tfg:toolbelt/shaped/belt_${ i}`)
|
||||
]).id(`tfg:toolbelt/shaped/belt_${i}`)
|
||||
|
||||
event.shapeless(Item.of('toolbelt:belt', {Size:i}), [
|
||||
Ingredient.of(Item.of('toolbelt:belt', {Size:i-1,Items:[]}).strongNBT()),
|
||||
'toolbelt:pouch'
|
||||
]).id(`tfg:toolbelt/shaped/belt_${i}_alt`)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue