neuralgia/kubejs/server_scripts/toolbelt/recipes.js
Gustavo f3dfa471ec
Refactor & update to gt7
* 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>
2025-07-28 12:27:06 +10:00

38 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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}`)
}
}