* gt7 removed credits/coins * port gregtech additions to java * add eslint locally * add style linting * switch target ECMA standard * run linter * clean up a bunch of linter errors * remove outdated greate API calls * forgot about the TFC multi compat issue * reverted greate recipe removals * some more linting stuff * fix some issues with greenhouse recipes * fix up some material stuff * fix recipe types * - Fixed single block machine rendering (#1465) * minor fixes and changes --------- Signed-off-by: Pyritie <pyritie@gmail.com> Co-authored-by: Pyritie <pyritie@gmail.com> Co-authored-by: Redeix <59435925+Redeix@users.noreply.github.com>
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
// priority: 0
|
||
"use strict";
|
||
|
||
const registerToolBeltRecipes = (event) => {
|
||
|
||
// Удаление всех рецептов мода
|
||
event.remove({ mod: 'toolbelt' });
|
||
|
||
// Мешочек
|
||
event.shaped('toolbelt:pouch', [
|
||
'ACA',
|
||
'B B',
|
||
'ABA'
|
||
], {
|
||
A: '#forge:string',
|
||
B: '#forge:leather',
|
||
C: '#forge:plates/wrought_iron'
|
||
}).id('tfg:toolbelt/shaped/pouch')
|
||
|
||
// ToolBelt с размером 2
|
||
event.shaped(Item.of('toolbelt:belt', {Size:2}), [
|
||
'ABA',
|
||
'B B',
|
||
'BCB'
|
||
], {
|
||
A: '#forge:string',
|
||
B: '#forge:leather',
|
||
C: '#forge:plates/wrought_iron'
|
||
}).id(`tfg:toolbelt/shaped/belt_${ 2}`)
|
||
|
||
// 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())),
|
||
'toolbelt:pouch'
|
||
]).id(`tfg:toolbelt/shaped/belt_${ i}`)
|
||
}
|
||
}
|