1
0
Fork 0
mirror of https://github.com/xHyroM/aetheria.git synced 2024-09-19 21:03:20 +02:00
aetheria/packwiz/1.20.1/kubejs/server_scripts/ad_astra_gtc_integration.js

31 lines
844 B
JavaScript
Vendored

const AD_ASTRA_REMOVED_PLATE_RECIPES = ["steel", "iron"];
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`,
});
});
});