mirror of
https://github.com/xHyroM/aetheria.git
synced 2024-12-22 12:31:06 +01:00
feat: gregify button recipes
This commit is contained in:
parent
799073db4a
commit
292b7c1a30
10 changed files with 146 additions and 0 deletions
20
packwiz/1.20.1/kubejs/server_scripts/ad_astra/buttons.js
vendored
Executable file
20
packwiz/1.20.1/kubejs/server_scripts/ad_astra/buttons.js
vendored
Executable file
|
@ -0,0 +1,20 @@
|
|||
// Modifies the recipes for buttons to match the Gregified Integrations recipes
|
||||
|
||||
ServerEvents.recipes((event) => {
|
||||
["ad_astra:glacian_button"].forEach((d) =>
|
||||
gregifyButtonRecipe(event, "<identifier>:<name>", d)
|
||||
);
|
||||
|
||||
[
|
||||
"ad_astra:iron_plating_button",
|
||||
"ad_astra:steel_plating_button",
|
||||
"ad_astra:desh_plating_button",
|
||||
"ad_astra:ostrum_plating_button",
|
||||
"ad_astra:calorite_plating_button",
|
||||
].forEach((d) =>
|
||||
gregifyButtonRecipe(event, "<identifier>:<name>", d, [
|
||||
`ad_astra:${idToType(d)}`,
|
||||
"#forge:tools/hammers",
|
||||
])
|
||||
);
|
||||
});
|
10
packwiz/1.20.1/kubejs/server_scripts/aether/buttons.js
vendored
Executable file
10
packwiz/1.20.1/kubejs/server_scripts/aether/buttons.js
vendored
Executable file
|
@ -0,0 +1,10 @@
|
|||
// Modifies the recipes for trapdoors to match the Gregified Integrations recipes
|
||||
|
||||
ServerEvents.recipes((event) => {
|
||||
gregifyButtonRecipe(event, "<identifier>:<name>", "aether:skyroot_button");
|
||||
|
||||
gregifyButtonRecipe(event, "<identifier>:<name>", "aether:holystone_button", [
|
||||
`aether:holystone`,
|
||||
"#forge:tools/hammers",
|
||||
]);
|
||||
});
|
|
@ -73,3 +73,23 @@ function gregifyTrapdoorRecipe(event, recipePattern, id, materials) {
|
|||
S: materials[1] || "minecraft:stick",
|
||||
});
|
||||
}
|
||||
|
||||
function gregifyButtonRecipe(event, recipePattern, id, materials) {
|
||||
const [identifier, name] = id.split(":");
|
||||
const type = idToType(id);
|
||||
|
||||
event.remove({
|
||||
id: recipePattern
|
||||
.replace("<identifier>", identifier)
|
||||
.replace("<name>", name)
|
||||
.replace("<type>", type),
|
||||
});
|
||||
|
||||
if (!materials) materials = [];
|
||||
if (materials.length === 0) materials.push(`${identifier}:${type}_planks`);
|
||||
|
||||
event.shaped(Item.of(id, 6), [" ", "SW ", " "], {
|
||||
W: materials[0],
|
||||
S: materials[1] || "#forge:tools/saws",
|
||||
});
|
||||
}
|
||||
|
|
7
packwiz/1.20.1/kubejs/server_scripts/gtceu/buttons.js
vendored
Executable file
7
packwiz/1.20.1/kubejs/server_scripts/gtceu/buttons.js
vendored
Executable file
|
@ -0,0 +1,7 @@
|
|||
// Modifies the recipes for buttons to match the Gregified Integrations recipes
|
||||
|
||||
ServerEvents.recipes((event) => {
|
||||
["gtceu:rubber_button", "gtceu:treated_wood_button"].forEach((d) =>
|
||||
gregifyButtonRecipe(event, "<identifier>:shapeless/<name>", d)
|
||||
);
|
||||
});
|
5
packwiz/1.20.1/kubejs/server_scripts/meadow/buttons.js
vendored
Executable file
5
packwiz/1.20.1/kubejs/server_scripts/meadow/buttons.js
vendored
Executable file
|
@ -0,0 +1,5 @@
|
|||
// Modifies the recipes for trapdoors to match the Gregified Integrations recipes
|
||||
|
||||
ServerEvents.recipes((event) => {
|
||||
gregifyButtonRecipe(event, "<identifier>:<name>", "meadow:pine_button");
|
||||
});
|
27
packwiz/1.20.1/kubejs/server_scripts/minecraft/buttons.js
vendored
Executable file
27
packwiz/1.20.1/kubejs/server_scripts/minecraft/buttons.js
vendored
Executable file
|
@ -0,0 +1,27 @@
|
|||
// Modifies the recipes for buttons to match the Gregified Integrations recipes
|
||||
|
||||
ServerEvents.recipes((event) => {
|
||||
[
|
||||
"minecraft:oak_button",
|
||||
"minecraft:spruce_button",
|
||||
"minecraft:birch_button",
|
||||
"minecraft:jungle_button",
|
||||
"minecraft:acacia_button",
|
||||
"minecraft:dark_oak_button",
|
||||
"minecraft:mangrove_button",
|
||||
"minecraft:cherry_button",
|
||||
"minecraft:bamboo_button",
|
||||
"minecraft:crimson_button",
|
||||
"minecraft:warped_button",
|
||||
].forEach((d) => gregifyButtonRecipe(event, "<identifier>:<name>", d));
|
||||
|
||||
["minecraft:stone_button", "minecraft:polished_blackstone_button"].forEach(
|
||||
(d) =>
|
||||
gregifyButtonRecipe(event, "<identifier>:<name>", d, [
|
||||
`minecraft:${idToType(d)}`,
|
||||
"#forge:tools/hammers",
|
||||
])
|
||||
);
|
||||
|
||||
event.remove({ id: "regions_unexplored:oak_button" });
|
||||
});
|
11
packwiz/1.20.1/kubejs/server_scripts/quark/buttons.js
vendored
Executable file
11
packwiz/1.20.1/kubejs/server_scripts/quark/buttons.js
vendored
Executable file
|
@ -0,0 +1,11 @@
|
|||
// Modifies the recipes for buttons to match the Gregified Integrations recipes
|
||||
|
||||
ServerEvents.recipes((event) => {
|
||||
[
|
||||
"quark:ancient_button",
|
||||
"quark:azalea_button",
|
||||
"quark:blossom_button",
|
||||
].forEach((d) =>
|
||||
gregifyButtonRecipe(event, "quark:world/crafting/woodsets/<type>/button", d)
|
||||
);
|
||||
});
|
28
packwiz/1.20.1/kubejs/server_scripts/regions_unexplored/buttons.js
vendored
Executable file
28
packwiz/1.20.1/kubejs/server_scripts/regions_unexplored/buttons.js
vendored
Executable file
|
@ -0,0 +1,28 @@
|
|||
// Modifies the recipes for buttons to match the Gregified Integrations recipes
|
||||
|
||||
ServerEvents.recipes((event) => {
|
||||
[
|
||||
"regions_unexplored:baobab_button",
|
||||
"regions_unexplored:blackwood_button",
|
||||
"regions_unexplored:blue_bioshroom_button",
|
||||
"regions_unexplored:brimwood_button",
|
||||
"regions_unexplored:cobalt_button",
|
||||
"regions_unexplored:cypress_button",
|
||||
"regions_unexplored:dead_button",
|
||||
"regions_unexplored:eucalyptus_button",
|
||||
"regions_unexplored:green_bioshroom_button",
|
||||
"regions_unexplored:joshua_button",
|
||||
"regions_unexplored:kapok_button",
|
||||
"regions_unexplored:larch_button",
|
||||
"regions_unexplored:magnolia_button",
|
||||
"regions_unexplored:maple_button",
|
||||
"regions_unexplored:mauve_button",
|
||||
"regions_unexplored:palm_button",
|
||||
"regions_unexplored:pine_button",
|
||||
"regions_unexplored:pink_bioshroom_button",
|
||||
"regions_unexplored:redwood_button",
|
||||
"regions_unexplored:socotra_button",
|
||||
"regions_unexplored:willow_button",
|
||||
"regions_unexplored:yellow_bioshroom_button",
|
||||
].forEach((d) => gregifyButtonRecipe(event, "<identifier>:<name>", d));
|
||||
});
|
9
packwiz/1.20.1/kubejs/server_scripts/thermal/buttons.js
vendored
Executable file
9
packwiz/1.20.1/kubejs/server_scripts/thermal/buttons.js
vendored
Executable file
|
@ -0,0 +1,9 @@
|
|||
// Modifies the recipes for doors to match the Gregified Integrations recipes
|
||||
|
||||
ServerEvents.recipes((event) => {
|
||||
gregifyButtonRecipe(
|
||||
event,
|
||||
"<identifier>:<name>",
|
||||
"thermal:rubberwood_button"
|
||||
);
|
||||
});
|
9
packwiz/1.20.1/kubejs/server_scripts/vinery/buttons.js
vendored
Executable file
9
packwiz/1.20.1/kubejs/server_scripts/vinery/buttons.js
vendored
Executable file
|
@ -0,0 +1,9 @@
|
|||
// Modifies the recipes for doors to match the Gregified Integrations recipes
|
||||
|
||||
ServerEvents.recipes((event) => {
|
||||
gregifyButtonRecipe(
|
||||
event,
|
||||
"<identifier>:<name>",
|
||||
"vinery:dark_cherry_button"
|
||||
);
|
||||
});
|
Loading…
Reference in a new issue