Skip to content

Commit

Permalink
Add gamers recipe fixes and remove distant horizons
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-evelyn committed Nov 30, 2024
1 parent 1e2fa62 commit f0a6f5e
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 24 deletions.
9 changes: 4 additions & 5 deletions index.toml
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,10 @@ hash = "7ea109dacee39772f296e34586b2e5bc0891f6c13d594451b05ee617b670ee60"
file = "kubejs/server_scripts/createadditions/charging.js"
hash = "c6f5233610de98f80eb2b1b2b6cf5e73df472a0ba096c0f5d209c53ee1b7b3e5"

[[files]]
file = "kubejs/server_scripts/gamers recipe fixs.js"
hash = "bf19de6432befdeb2f6f55f1f0492ac2636a6a1f9f229457a7a6abbb70b856e1"

[[files]]
file = "kubejs/server_scripts/local_chat.js"
hash = "e33d12f0409dc096d3408899bf30093b2d80930d2806c90f1d3b3625039825d6"
Expand Down Expand Up @@ -1037,11 +1041,6 @@ file = "mods/detail-armor-bar.pw.toml"
hash = "89d22d515a1b5b1349b21eaa191a00bf529acca7673ba6af27dfda0380abea2b"
metafile = true

[[files]]
file = "mods/distanthorizons.pw.toml"
hash = "bfea39fa87d572fb36860c915666ca16daca9d93bfdbcdd9185f8b490f0ecb41"
metafile = true

[[files]]
file = "mods/do-a-barrel-roll.pw.toml"
hash = "5eddd4c6a5cba7cd4d3d9a0acd0e810ae040d92b6c1928984a9497a5187d143b"
Expand Down
174 changes: 174 additions & 0 deletions kubejs/server_scripts/gamers recipe fixs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
//travertine fix

//put this in server scripts (but you know this... right?)

// Recipes only need to be registered once here :3
ServerEvents.recipes((event) => {
// These are the prefixes for the blocks
const mainVariants = ["cobbled_travertine", "polished_travertine", "travertine_brick", "travertine_tile"]
// And the suffixes
const blockTypes = ["stairs", "slab", "wall"]

// We cycle through the main variants
mainVariants.forEach(variant => {
// Then also loop within this loop for the suffixes (block types)
blockTypes.forEach(type => {
// This is a conditional statement. It checks with the "?" if type is equal to slab. If so set the multiplier to "x2", otherwise set to nothing.
const multiplier = type === 'slab' ? "2x " : "";
// Input all out information into the template literal
event.stonecutting(`${multiplier}natures_spirit:${variant}_${type}`, 'natures_spirit:travertine')
})
})
// Repeat with the other variants we can't include in the main variants due to weird naming
const otherVariants = ["cobbled_travertine", "travertine_slab", "chiseled_travertine", "travertine_bricks", "travertine_tiles"]
otherVariants.forEach(variant => event.stonecutting(`natures_spirit:${variant}`, 'natures_spirit:travertine'))
});
//thanks Evelyn for this :3
//enjoy Katherine (i know that they will never see this but still)

//sky steel ingot mixer recipe
ServerEvents.recipes(event => {
event.custom({
type: "create:mixing",
ingredients: [
{
item: "ae2:charged_certus_quartz_crystal",
},
{
tag: "c:iron_ingots",
},
//{
//fluid: "minecraft:lava",
//amount: 8100,
//},
{
item: "ae2:sky_stone_block",
},
],
results: [
{
item: "megacells:sky_steel_ingot",
count: 2
},
],
heatRequirement: "heated"
});
})

//the compact iron fluid tank recipe fix

ServerEvents.recipes(event => {
event.shaped('design_decor:gas_tank', [// arg 1: output
'BAB',
'B B', // arg 2: the shape (array of strings)
'BBB'
], {
A: 'create:andesite_alloy',
B: 'create:iron_sheet' //arg 3: the mapping object
})
})
ServerEvents.recipes(event => {
event.remove({ id: 'design_decor:crafting/gas_tank' })
})

// certus quartz budding mixer recipe
//hi evelyn :3 i hope i made this good idk if there is some way to do the same thing as the stone cutter recipes

ServerEvents.recipes((event) => {
event.custom({
type: "create:mixing",
ingredients: [
{
item: "ae2:charged_certus_quartz_crystal",
},
{
fluid: "minecraft:water",
amount: 8100,
},
{
item: "ae2:quartz_block",
},
],
results: [
{
item: "ae2:damaged_budding_quartz"
},
],
//heatRequirement: "heated",
});
});
ServerEvents.recipes((event) => {
event.custom({
type: "create:mixing",
ingredients: [
{
item: "ae2:charged_certus_quartz_crystal",
},
{
fluid: "minecraft:water",
amount: 8100,
},
{
item: "ae2:damaged_budding_quartz",
},
],
results: [
{
item: "ae2:chipped_budding_quartz"
},
],
//heatRequirement: "heated",
});
});
ServerEvents.recipes((event) => {
event.custom({
type: "create:mixing",
ingredients: [
{
item: "ae2:charged_certus_quartz_crystal",
},
{
fluid: "minecraft:water",
amount: 8100,
},
{
item: "ae2:chipped_budding_quartz",
},
],
results: [
{
item: "ae2:flawed_budding_quartz"
},
],
//heatRequirement: "heated",
});
});

//dedelion tea fix recipe

ServerEvents.recipes((event) => {
event.custom({
type: "create:mixing",
ingredients: [
{
tag: "c:tea_leaves",
},
{
item: "minecraft:dandelion",
},
{
fluid: "minecraft:water",
amount: 20250,
},
],
results: [
{
fluid: "respitecreators:dandelion_tea",
amount: 20250,
},
],
heatRequirement: "heated",
});
});
//i am getting better at this (i think)

18 changes: 0 additions & 18 deletions mods/distanthorizons.pw.toml

This file was deleted.

2 changes: 1 addition & 1 deletion pack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0"
[index]
file = "index.toml"
hash-format = "sha256"
hash = "3a770f79e9575a75018dc5683514237f94d7d6f17392ac6b392396c8eb05901d"
hash = "901e6acf1cddf5787c5ffe1611b809e20f3fcfe36e34be48b5f91041d066cb66"

[versions]
fabric = "0.16.5"
Expand Down

0 comments on commit f0a6f5e

Please sign in to comment.