use strict

This commit is contained in:
Gustavo 2025-07-21 13:52:18 +10:00
parent 89d74ee72d
commit 3d89d59d4d
272 changed files with 388 additions and 21 deletions

3
.gitignore vendored
View file

@ -11,6 +11,9 @@
.vs/
.vscode/
.idea/
package.json
package-lock.json
node_modules/
# Pakku
build/

30
eslint.config.js Normal file
View file

@ -0,0 +1,30 @@
import js from "@eslint/js";
import globals from "globals";
import { defineConfig } from "eslint/config";
import stylistic from '@stylistic/eslint-plugin'
export default defineConfig([
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
plugins: {
"js": js,
"@stylistic": stylistic
},
extends: ["js/recommended"],
languageOptions: { globals: globals.node, ecmaVersion: "ES2015" },
rules: {
"no-undef": "off",
"no-unused-vars": "off",
"@stylistic/comma-style": [1, "last"],
"@stylistic/brace-style": [1, "1tbs"],
"@stylistic/function-call-spacing": [1, "never"],
"@stylistic/no-floating-decimal": "error",
"@stylistic/arrow-spacing": [1, { "before": true, "after": true }],
"@stylistic/block-spacing": [1, "always"],
"@stylistic/keyword-spacing": [1, { "before": true, "after": true }],
"@stylistic/dot-location": [1, "property"]
}
},
]);

View file

@ -1,3 +1,5 @@
"use strict";
const registerTooltips = (event) =>
{
event.addAdvanced(['gtceu:lv_macerator', 'gtceu:mv_macerator', 'gtceu:hp_steam_macerator'], (item, advanced, text) => {

View file

@ -1,16 +0,0 @@
{
"compilerOptions": {
"lib": [
"ES5",
"ES2015"
],
"rootDirs": [
"probe/generated",
"probe/user",
"server_scripts",
"startup_scripts",
"client_scripts"
],
"target": "ES2015"
}
}

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerTFCDataForAdAstra(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerAdAstraLoots(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerAdAstraRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerAdAstraFluidTags = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerAdvancedPeripheralsRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerAdvancedPeripheralsRecyclingRecipes(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerAdvancedPeripheralsItemTags = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerAE2Recipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerAE2ItemTags = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerAE2InsertExportCardRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerAE2NetworkAnalyzerRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerAE2WTLibRecipes = (event) => {

View file

@ -1,3 +1,5 @@
"use strict";
/**
*
* @param {Internal.TFCDataEventJS} event

View file

@ -1,3 +1,5 @@
"use strict";
/**
*
* @param {Internal.RecipesEventJS} event

View file

@ -1,3 +1,5 @@
"use strict";
/**
*
* @param {TagEvent.Item} event

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerAlekiroofsItemTags = (event) => {

View file

@ -1,3 +1,5 @@
"use strict";
/**
*
* @param {Internal.RecipesEventJS} event

View file

@ -1,3 +1,4 @@
"use strict";
/**
*

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerAsticorCartsRecipes = (event) => {
event.remove({ id: 'astikorcarts:animal_cart' })

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerAsticorCartsItemTags = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerBeneathRecipes = (event) => {

View file

@ -1,3 +1,5 @@
"use strict";
const registerBeneathBlockTags = (event) => {
global.BENEATH_DISABLED_ITEMS.forEach(item => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerBetterEndRecipes(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerBetterEndItemTags(event) {

View file

@ -1,3 +1,5 @@
"use strict";
const registerBuildingGadgetsRecipes = (event) => {
event.remove({ mod: 'buildinggadgets2' })

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerCccBridgeRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerCccBridgeRecyclingRecipes(event) {

View file

@ -1,3 +1,5 @@
"use strict";
/**
*
* @param {Internal.TFCDataEventJS} evt

View file

@ -1,3 +1,5 @@
"use strict";
/**
*
* @param {Internal.RecipesEventJS} evt

View file

@ -1,3 +1,5 @@
"use strict";
/**
*
* @param {TagEvent.Item} evt

View file

@ -1,3 +1,5 @@
"use strict";
/**
*
* @param {Internal.RecipesEventJS} event

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerComputerCraftData = (event) => {
const TURTLE_TOOL_TYPES = [ GTToolType.SWORD, GTToolType.PICKAXE, GTToolType.AXE, GTToolType.SHOVEL, GTToolType.HOE ]

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerComputerCraftRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerComputerCraftRecyclingRecipes(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerComputerCraftItemTags = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerConstructionwandRecipes(event) {
//remove recipes

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerConstructionWandItemTags(event) {
event.add('tfc:usable_on_tool_rack', 'constructionwand:stone_wand')

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerCreateRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerCreateItemTags = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerTFCDataForCreateAddition(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const $FoodData = Java.loadClass("net.dries007.tfc.common.capabilities.food.FoodData")

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerCreateAdditionsRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerCreateAdditionsItemTags = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerCreateConnectedRecipes = (event) => {

View file

@ -1,3 +1,5 @@
"use strict";
const registerCreateConnectedItemTags = (event) => {
global.CREATE_CONNECTED_DISABLED_ITEMS.forEach(item => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerCreateFactoryLogisticsRecipes(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerCreateFactoryLogisticsItemTags(event) {
event.add('c:hidden_from_recipe_viewers', 'create_factory_logistics:incomplete_fluid_mechanism')

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerCreateHorsePowerBlockRecipes(event) {

View file

@ -1,3 +1,5 @@
"use strict";
function registerCreateHypertubeRecipes(event) {
event.remove({ mod: 'create_hypertube' })

View file

@ -1,3 +1,5 @@
"use strict";
const registerCreatedecoRecipes = (event) => {
//#region Item Replacements

View file

@ -1,3 +1,5 @@
"use strict";
const metalBars = ['andesite', 'brass', 'iron', 'copper', 'industrial_iron', 'zinc'];
const registerCreateDecoItemTags = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerDiggerHelmetRecipes(event) {
event.remove({ mod: 'diggerhelmet' })

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerDiggerHelmetItemTags(event) {

View file

@ -1,3 +1,5 @@
"use strict";
const registerDomumOrnamentumRecipes = (event) => {
event.remove({ mod: 'domum_ornamentum', type: 'minecraft:crafting_shaped' })

View file

@ -1,3 +1,5 @@
"use strict";
const registerDomumOrnamentumBlockTags = (event) => {
//#region Hidden Items

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerEndermanOverhaulRecipes(event) {

View file

@ -1,3 +1,5 @@
"use strict";
const registerEndermanOverhaulItemTags = (event) => {
const DISABLED_ITEMS = [

View file

@ -1,4 +1,6 @@
// priority: 0
"use strict";
/**
*
* @param {Internal.RecipesEventJS} event

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerEveryCompatRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerEveryCompatItemTags = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerExposureRecipes = (event) => {

View file

@ -1,3 +1,5 @@
"use strict";
/**
*
* @param {TagEvent.Item} evt

View file

@ -1,3 +1,5 @@
"use strict";
const registerExtendedAE2Recipes = (event) => {
event.remove({not:[

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerExtendedAE2ItemTags = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerFirmaCivRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerFirmaCivItemTags = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerTFCDataForFirmalife = (event) => {
registerFirmalifeItemSize(event)

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerFirmaLifeRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerFirmaLifeItemTags = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerFramedBlocksRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerFramedBlocksItemTags = (event) => {

View file

@ -1,3 +1,5 @@
"use strict";
// Handles the quest for drinking water. The drinking water quest checks if the player has this stage.
ItemEvents.firstRightClicked(evt =>
{

View file

@ -1,3 +1,5 @@
"use strict";
//#region Preservation Filter
FTBFilterSystemEvents.customFilter("HasPreservation", evt =>
{

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerFTBQuestsRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerFTBQuestsItemTags = (event) => {

View file

@ -1,3 +1,4 @@
"use strict";
/*
* NBT Structure of a Grappling Hook:

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerGrapplemodItemTags(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerGreateRecipes(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerGreateRecyclingRecipes(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function removeGreateRecipes(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerGreateItemTags(event) {

View file

@ -1,3 +1,4 @@
"use strict";
global.GTCEU_ANVIL_TOOL_TYPES = [

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerTFCDataForGTCEU = (event) => {
registerGTCEUHeats(event)

View file

@ -1,3 +1,5 @@
"use strict";
PlayerEvents.tick((event) => {
const { player } = event;
if (player.age % 100 == 0 && player.legsArmorItem == 'gtceu:nanomuscle_leggings') {

View file

@ -1,5 +1,5 @@
// priority: 10
"use strict";
const STONE_TYPES_TO_COBBLE = {
gabbro: 'tfc:rock/cobble/gabbro',
shale: 'tfc:rock/cobble/shale',

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
/**
*

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerGTCEuMachineRecipes(event) {
//#region Выход: Filter Casing

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerGTCEUMetalRecipes(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerGTCEURecyclingRecipes(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function removeGTCEURecipes(event) {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
function registerGTCEuTFCMetalsRecipes(event)
{

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerGTCEUItemTags = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
//#region Mixer Recipes
/**

View file

@ -1,5 +1,5 @@
// priority: 0
"use strict";
const registerHandGliderRecipes = (event) => {
event.remove({id: 'hangglider:glider_framework'})

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerHotOrNotRecipes = (event) => {

View file

@ -1,4 +1,5 @@
// priority: 0
"use strict";
const registerHotOrNotItemTags = (event) => {

Some files were not shown because too many files have changed in this diff Show more