1
0
Fork 0
mirror of https://github.com/xHyroM/aetheria.git synced 2024-12-22 12:31:06 +01:00

feat(1.20.1): improve ad astra gtc compatibility

This commit is contained in:
Jozef Steinhübl 2024-06-14 22:11:11 +02:00
parent da8f6c4932
commit e57bc2aca8
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
4 changed files with 59 additions and 9 deletions

View file

@ -0,0 +1,19 @@
const AD_ASTRA_REMOVED_PLATES = ["steel"];
const AD_ASTRA_REMOVED_RODS = ["steel"];
const AD_ASTRA_REMOVED_NUGGETS = ["steel"];
JEIEvents.hideItems((event) => {
AD_ASTRA_REMOVED_PLATES.forEach((metal) => {
event.hide(`ad_astra:${metal}_plate`);
});
AD_ASTRA_REMOVED_RODS.forEach((metal) => {
event.hide(`ad_astra:${metal}_rod`);
});
AD_ASTRA_REMOVED_NUGGETS.forEach((metal) => {
event.hide(`ad_astra:${metal}_nugget`);
});
});

View file

@ -1,4 +1,4 @@
const REMOVED_PLATES = [
const THERMAL_REMOVED_PLATES = [
"tin",
"lead",
"silver",
@ -11,7 +11,7 @@ const REMOVED_PLATES = [
"electrum",
];
const REMOVED_GEARS = [
const THERMAL_REMOVED_GEARS = [
"tin",
"lead",
"silver",
@ -27,7 +27,7 @@ const REMOVED_GEARS = [
//"quartz"
];
const REMOVED_NUGGETS = [
const THERMAL_REMOVED_NUGGETS = [
"tin",
"lead",
"silver",

View file

@ -0,0 +1,31 @@
const AD_ASTRA_REMOVED_PLATE_RECIPES = ["steel"];
const AD_ASTRA_REMOVED_ROD_RECIPES = ["steel"];
const AD_ASTRA_REMOVED_NUGGET_RECIPES = ["steel"];
ServerEvents.recipes((event) => {
// Remove Ad Astra recipes for plates
AD_ASTRA_REMOVED_PLATE_RECIPES.forEach((metal) => {
event.remove({
id: `ad_astra:compressing/${metal}_plate_from_compressing_${metal}_ingots`,
});
event.remove({
id: `ad_astra:compressing/${metal}_plate_from_compressing_${metal}_blocks`,
});
});
// Remove Ad Astra recipes for gears
AD_ASTRA_REMOVED_ROD_RECIPES.forEach((metal) => {
event.remove({
id: `ad_astra:${metal}_rod`,
});
});
// Remove Ad Astra recipes for nuggets
AD_ASTRA_REMOVED_NUGGET_RECIPES.forEach((metal) => {
event.remove({
id: `ad_astra:${metal}_nugget`,
});
});
});

View file

@ -1,4 +1,4 @@
const REMOVED_PLATE_RECIPES = [
const THERMAL_REMOVED_PLATE_RECIPES = [
"tin",
"lead",
"silver",
@ -11,7 +11,7 @@ const REMOVED_PLATE_RECIPES = [
"electrum",
];
const REMOVED_GEAR_RECIPES = [
const THERMAL_REMOVED_GEAR_RECIPES = [
"tin",
"lead",
"silver",
@ -27,7 +27,7 @@ const REMOVED_GEAR_RECIPES = [
//"quartz"
];
const REMOVED_NUGGET_RECIPES = [
const THERMAL_REMOVED_NUGGET_RECIPES = [
"tin",
"lead",
"silver",
@ -40,21 +40,21 @@ const REMOVED_NUGGET_RECIPES = [
ServerEvents.recipes((event) => {
// Remove Thermal Foundation recipes for plates
REMOVED_PLATE_RECIPES.forEach((metal) => {
THERMAL_REMOVED_PLATE_RECIPES.forEach((metal) => {
event.remove({
id: `thermal:machines/press/press_${metal}_ingot_to_plate`,
});
});
// Remove Thermal Foundation recipes for gears
REMOVED_GEAR_RECIPES.forEach((metal) => {
THERMAL_REMOVED_GEAR_RECIPES.forEach((metal) => {
event.remove({
id: `thermal:parts/${metal}_gear`,
});
});
// Remove Thermal Foundation recipes for nuggets
REMOVED_NUGGET_RECIPES.forEach((metal) => {
THERMAL_REMOVED_NUGGET_RECIPES.forEach((metal) => {
event.remove({
id: `thermal:storage/${metal}_nugget_from_ingot`,
});