disable create and ad_astra dead items
This commit is contained in:
parent
8e71ee4c23
commit
1fd91ff176
12 changed files with 123 additions and 37 deletions
|
|
@ -3,11 +3,5 @@
|
|||
const registerAdAstraRecipes = (event) => {
|
||||
|
||||
// Удаление рецептов мода
|
||||
// event.remove({ mod: 'ad_astra' });
|
||||
|
||||
event.remove({ id: 'ad_astra:recipes/steel_trapdoor' })
|
||||
event.remove({ id: 'ad_astra:recipes/steel_door' })
|
||||
event.remove({ id: 'ad_astra:recipes/hammer' })
|
||||
event.remove({ id: 'ad_astra:recipes/iron_rod' })
|
||||
event.remove({ id: 'ad_astra:hammering/steel_plate' })
|
||||
event.remove({ mod: 'ad_astra' });
|
||||
}
|
||||
9
kubejs/server_scripts/ad_astra/tags.js
Normal file
9
kubejs/server_scripts/ad_astra/tags.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// priority: 0
|
||||
|
||||
const registerAdAstraItemTags = (event) => {
|
||||
|
||||
// Удаление тегов у отключенных предметов
|
||||
global.AD_ASTRA_DISABLED_ITEMS.forEach(item => {
|
||||
event.removeAllTagsFrom(item)
|
||||
})
|
||||
}
|
||||
|
|
@ -6,6 +6,7 @@ const registerCreateRecipes = (event) => {
|
|||
event.remove({ mod: 'create' });
|
||||
|
||||
// Деревянная пластина для шестеренки
|
||||
/*
|
||||
event.shaped('gtceu:wood_plate', [
|
||||
' A',
|
||||
' B ',
|
||||
|
|
@ -33,7 +34,7 @@ const registerCreateRecipes = (event) => {
|
|||
], {
|
||||
A: 'create:shaft',
|
||||
B: 'gtceu:wood_gear',
|
||||
});
|
||||
});*/
|
||||
|
||||
// todo: использовать ютилити методы для создания рецептов ниже (порядок, heatItem -> heatRecipe -> любые другие тфкшные)
|
||||
// galvanized_iron
|
||||
|
|
|
|||
|
|
@ -1,6 +1,12 @@
|
|||
// priority: 0
|
||||
|
||||
const registerCreateTags = (event) => {
|
||||
const registerCreateItemTags = (event) => {
|
||||
|
||||
// Удаление тегов у отключенных предметов
|
||||
global.CREATE_DISABLED_ITEMS.forEach(item => {
|
||||
event.removeAllTagsFrom(item)
|
||||
})
|
||||
|
||||
// TODO: move to TFG-MOD
|
||||
event.add('forge:ingots/galvanized_iron', 'kubejs:galvanized_iron');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,13 @@
|
|||
// priority: 0
|
||||
|
||||
const registerFirmaLifeItemTags = (event) => {
|
||||
|
||||
// Удаление тегов у отключенных предметов
|
||||
global.FIRMALIFE_DISABLED_ITEMS.forEach(item => {
|
||||
event.removeAllTagsFrom(item)
|
||||
})
|
||||
}
|
||||
|
||||
const registerFirmaLifePlacedFeatures = (event) => {
|
||||
event.remove('tfc:in_biome/veins', 'firmalife:vein/normal_chromite')
|
||||
event.remove('tfc:in_biome/veins', 'firmalife:vein/deep_chromite')
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ const modifyLootGT = (event) => {
|
|||
event.addBlockLootModifier(`gtceu:tfc_${stoneType}_${material}_ore`)
|
||||
.removeLoot(Ingredient.all)
|
||||
.addWeightedLoot([
|
||||
Item.of(`gtceu:rich_raw_${material}`).withChance(25),
|
||||
Item.of(`gtceu:raw_${material}`).withChance(50),
|
||||
Item.of(`gtceu:poor_raw_${material}`).withChance(25)
|
||||
Item.of(`gtceu:rich_raw_${material}`).withChance(15),
|
||||
Item.of(`gtceu:raw_${material}`).withChance(25),
|
||||
Item.of(`gtceu:poor_raw_${material}`).withChance(60)
|
||||
]);
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -5,8 +5,10 @@
|
|||
*/
|
||||
ServerEvents.tags('item', event => {
|
||||
registerTFCItemTags(event)
|
||||
registerFirmaLifeItemTags(event)
|
||||
// registerMinecraftItemTags(event)
|
||||
// registerCreateItemTags(event)
|
||||
registerCreateItemTags(event)
|
||||
registerAdAstraItemTags(event)
|
||||
})
|
||||
|
||||
/**
|
||||
|
|
@ -59,10 +61,10 @@ ServerEvents.recipes(event => {
|
|||
registerWaterFlasksRecipes(event)
|
||||
// registerMinecraftRecipes(event)
|
||||
// registerGTCEURecipes(event)
|
||||
// registerCreateRecipes(event)
|
||||
registerCreateRecipes(event)
|
||||
// registerAE2Recipes(event)
|
||||
// registerComputerCraftRecipes(event)
|
||||
// registerAdAstraRecipes(event)
|
||||
registerAdAstraRecipes(event)
|
||||
// registerTreeTapRecipes(event)
|
||||
// registerMoreRedRecipes(event)
|
||||
// registerSophisticatedBackpacksRecipes(event)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
const registerTFCItemTags = (event) => {
|
||||
|
||||
// Удаление тегов у откоюченных предметов
|
||||
// Удаление тегов у отключенных предметов
|
||||
global.TFC_DISABLED_ITEMS.forEach(item => {
|
||||
event.removeAllTagsFrom(item)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ const registerToolBeltRecipes = (event) => {
|
|||
], {
|
||||
A: '#forge:string',
|
||||
B: '#forge:leather',
|
||||
C: '#forge:plates/steel'
|
||||
C: '#forge:plates/wrought_iron'
|
||||
})
|
||||
|
||||
// ToolBelt с размером 3
|
||||
|
|
|
|||
|
|
@ -1,15 +1,40 @@
|
|||
// priority: 0
|
||||
|
||||
/**
|
||||
* Список хранит предметы,
|
||||
* Список хранит предметы,
|
||||
* у которых должны быть удалены тэги и они должны быть скрыты в REI.
|
||||
*/
|
||||
global.AD_ASTRA_DISABLED_ITEMS = [
|
||||
'ad_astra:steel_ingot',
|
||||
'ad_astra:steel_plate',
|
||||
'ad_astra:steel_nugget',
|
||||
'ad_astra:steel_door',
|
||||
'ad_astra:steel_trapdoor',
|
||||
'ad_astra:iron_plate',
|
||||
'ad_astra:iron_rod'
|
||||
];
|
||||
// Random
|
||||
"ad_astra:steel_ingot",
|
||||
"ad_astra:steel_plate",
|
||||
"ad_astra:iron_plate",
|
||||
"ad_astra:iron_rod",
|
||||
"ad_astra:steel_nugget",
|
||||
"ad_astra:steel_trapdoor",
|
||||
"ad_astra:steel_door",
|
||||
|
||||
// Ores
|
||||
"ad_astra:glacio_lapis_ore",
|
||||
"ad_astra:moon_cheese_ore",
|
||||
"ad_astra:moon_desh_ore",
|
||||
"ad_astra:deepslate_desh_ore",
|
||||
"ad_astra:moon_iron_ore",
|
||||
"ad_astra:moon_ice_shard_ore",
|
||||
"ad_astra:deepslate_ice_shard_ore",
|
||||
"ad_astra:mars_iron_ore",
|
||||
"ad_astra:mars_diamond_ore",
|
||||
"ad_astra:mars_ostrum_ore",
|
||||
"ad_astra:deepslate_ostrum_ore",
|
||||
"ad_astra:mars_ice_shard_ore",
|
||||
"ad_astra:venus_coal_ore",
|
||||
"ad_astra:venus_gold_ore",
|
||||
"ad_astra:venus_diamond_ore",
|
||||
"ad_astra:venus_calorite_ore",
|
||||
"ad_astra:deepslate_calorite_ore",
|
||||
"ad_astra:mercury_iron_ore",
|
||||
"ad_astra:glacio_ice_shard_ore",
|
||||
"ad_astra:glacio_coal_ore",
|
||||
"ad_astra:glacio_copper_ore",
|
||||
"ad_astra:glacio_iron_ore",
|
||||
];
|
||||
|
|
|
|||
|
|
@ -5,17 +5,29 @@
|
|||
* у которых должны быть удалены тэги и они должны быть скрыты в REI.
|
||||
*/
|
||||
global.CREATE_DISABLED_ITEMS = [
|
||||
"create:zinc_ore",
|
||||
"create:deepslate_zinc_ore",
|
||||
"create:crushed_raw_silver",
|
||||
"create:crushed_raw_tin",
|
||||
"create:crushed_raw_nickel",
|
||||
"create:copper_sheet",
|
||||
"create:brass_sheet",
|
||||
"create:iron_sheet",
|
||||
"create:golden_sheet",
|
||||
"create:zinc_ingot",
|
||||
"create:brass_ingot",
|
||||
// Ores
|
||||
'create:zinc_ore',
|
||||
'create:deepslate_zinc_ore',
|
||||
|
||||
// Raw Ores
|
||||
'create:raw_zinc',
|
||||
|
||||
// Nuggets
|
||||
'create:copper_nugget',
|
||||
'create:zinc_nugget',
|
||||
'create:brass_nugget',
|
||||
|
||||
// Sheets
|
||||
'create:copper_sheet',
|
||||
'create:brass_sheet',
|
||||
'create:iron_sheet',
|
||||
'create:golden_sheet',
|
||||
|
||||
// Ingot
|
||||
'create:zinc_ingot',
|
||||
'create:brass_ingot',
|
||||
|
||||
// Flour
|
||||
'create:wheat_flour',
|
||||
'create:wheat_flour'
|
||||
];
|
||||
29
kubejs/startup_scripts/firmalife/constants.js
Normal file
29
kubejs/startup_scripts/firmalife/constants.js
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// priority: 0
|
||||
|
||||
/**
|
||||
* Список хранит предметы,
|
||||
* у которых должны быть удалены тэги и они должны быть скрыты в REI.
|
||||
*/
|
||||
global.FIRMALIFE_DISABLED_ITEMS = [
|
||||
|
||||
// Chromite
|
||||
'firmalife:ore/small_chromite',
|
||||
'firmalife:ore/poor_chromite',
|
||||
'firmalife:ore/normal_chromite',
|
||||
'firmalife:ore/rich_chromite',
|
||||
'firmalife:metal/ingot/chromium',
|
||||
'firmalife:metal/double_ingot/chromium',
|
||||
'firmalife:metal/sheet/chromium',
|
||||
'firmalife:metal/double_sheet/chromium',
|
||||
'firmalife:metal/rod/chromium',
|
||||
|
||||
// Stainless Steel
|
||||
|
||||
'firmalife:metal/ingot/stainless_steel',
|
||||
'firmalife:metal/double_ingot/stainless_steel',
|
||||
'firmalife:metal/sheet/stainless_steel',
|
||||
'firmalife:metal/double_sheet/stainless_steel',
|
||||
'firmalife:metal/rod/stainless_steel',
|
||||
|
||||
// Other
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue