Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions kubejs/client_scripts/ponders/stone_growth_chamber.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
scene.idle(1);
scene.text(30, "Glass", [1.5, 3, 2.5]);
scene.idle(40);
scene.world.setBlocks([2, 2, 2], "minecraft:lava", true);
scene.text(30, "Lava in the middle", [2.5, 3, 2.5]);
scene.world.setBlocks([2, 2, 2], "minecraft:water", true);
scene.text(30, "Water in the middle", [2.5, 3, 2.5]);
scene.idle(40);
scene.world.setBlocks([1, 3, 3], "create:cut_andesite", true);
scene.idle(1);
Expand Down Expand Up @@ -108,7 +108,7 @@
scene.idle(70);
scene.text(
90,
"This currently works with Stone, Andesite and any default stone from each planet, like Moon Stone and Mars Stone",
"This currently works with Stone, Andesite, Limestone, Scoria, Basalt and any default stone from each planet, like Moon Stone and Mars Stone",
[3, 2.5, 3]
);
scene.idle(100);
Expand Down Expand Up @@ -218,13 +218,13 @@
scene.world.setBlocks([1, 3, 1, 3, 3, 3], "minecraft:air", false);
scene.idle(30);
scene.world.setBlocks([1, 2, 1, 3, 2, 3], "minecraft:tinted_glass", true);
scene.world.setBlock([2, 2, 2], "minecraft:lava", false);
scene.world.setBlock([2, 2, 2], "minecraft:water", false);
scene.idle(30);
scene.world.setBlocks([1, 2, 1, 3, 2, 3], "tconstruct:gray_clear_stained_glass", true);
scene.world.setBlock([2, 2, 2], "minecraft:lava", false);
scene.world.setBlock([2, 2, 2], "minecraft:water", false);
scene.idle(30);
scene.world.setBlocks([1, 2, 1, 3, 2, 3], "chipped:glass_48", true);
scene.world.setBlock([2, 2, 2], "minecraft:lava", false);
scene.world.setBlock([2, 2, 2], "minecraft:water", false);
scene.idle(30);
scene.world.setBlocks([1, 3, 1, 3, 3, 3], "create:small_andesite_bricks", true);
});
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"replace": false,
"values": ["minecraft:polished_basalt", "chipped:basalt_15"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"replace": false,
"values": [
"create:cut_limestone",
"create:polished_cut_limestone",
"create:cut_limestone_bricks",
"create:small_limestone_bricks"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"replace": false,
"values": [
"create:cut_scoria",
"create:polished_cut_scoria",
"create:cut_scoria_bricks",
"create:small_scoria_bricks"
]
}
5 changes: 5 additions & 0 deletions kubejs/data/createastral/tags/items/storage_unit_0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"techreborn:storage_buffer"
]
}
6 changes: 6 additions & 0 deletions kubejs/data/createastral/tags/items/storage_unit_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"values": [
"techreborn:storage_buffer",
"techreborn:crude_storage_unit"
]
}
7 changes: 7 additions & 0 deletions kubejs/data/createastral/tags/items/storage_unit_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"values": [
"techreborn:storage_buffer",
"techreborn:crude_storage_unit",
"techreborn:basic_storage_unit"
]
}
8 changes: 8 additions & 0 deletions kubejs/data/createastral/tags/items/storage_unit_3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
"techreborn:storage_buffer",
"techreborn:crude_storage_unit",
"techreborn:basic_storage_unit",
"techreborn:advanced_storage_unit"
]
}
9 changes: 9 additions & 0 deletions kubejs/data/createastral/tags/items/storage_unit_4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"values": [
"techreborn:storage_buffer",
"techreborn:crude_storage_unit",
"techreborn:basic_storage_unit",
"techreborn:advanced_storage_unit",
"techreborn:industrial_storage_unit"
]
}
10 changes: 10 additions & 0 deletions kubejs/data/createastral/tags/items/storage_unit_5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"values": [
"techreborn:storage_buffer",
"techreborn:crude_storage_unit",
"techreborn:basic_storage_unit",
"techreborn:advanced_storage_unit",
"techreborn:industrial_storage_unit",
"techreborn:quantum_storage_unit"
]
}
5 changes: 5 additions & 0 deletions kubejs/data/createastral/tags/items/tank_unit_0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"create:fluid_tank"
]
}
6 changes: 6 additions & 0 deletions kubejs/data/createastral/tags/items/tank_unit_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"values": [
"create:fluid_tank",
"techreborn:basic_tank_unit"
]
}
7 changes: 7 additions & 0 deletions kubejs/data/createastral/tags/items/tank_unit_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"values": [
"create:fluid_tank",
"techreborn:basic_tank_unit",
"techreborn:advanced_tank_unit"
]
}
8 changes: 8 additions & 0 deletions kubejs/data/createastral/tags/items/tank_unit_3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
"create:fluid_tank",
"techreborn:basic_tank_unit",
"techreborn:advanced_tank_unit",
"techreborn:industrial_tank_unit"
]
}
9 changes: 9 additions & 0 deletions kubejs/data/createastral/tags/items/tank_unit_4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"values": [
"create:fluid_tank",
"techreborn:basic_tank_unit",
"techreborn:advanced_tank_unit",
"techreborn:industrial_tank_unit",
"techreborn:quantum_tank_unit"
]
}
Original file line number Diff line number Diff line change
@@ -1,53 +1,89 @@
(function stoneGrowthChamberRecipes() {
onEvent("recipes", (event) => {
const newCopperSGCStructure = /** @type {const} */ ([
const legacyStoneGrowthChamberStructure = /** @type {const} */ ([
["aaa", "aaa", "ama"],
["ggg", "glg", "ggg"],
["aaa", "aaa", "aaa"],
]);

const stoneGrowthChamberStructure = /** @type {const} */ ([
["aaa", "aaa", "ama"],
["ggg", "gwg", "ggg"],
["aaa", "aaa", "aaa"],
]);

/**
* @typedef StoneGrowthChamberRecipe
* @property {string} material
* @property {Special.Item} output
* @property {Special.Block} blockToReact
* @property {number} time
*/

/** @satisfies {StoneGrowthChamberRecipe[]} */
const stoneGrowthChamberRecipes = /** @type {const} */([
const stoneGrowthChamberRecipes = /** @type {const} */ ([
{
material: "andesite",
output: "minecraft:andesite",
blockToReact: "minecraft:water",
time: 10,
},
{
material: "cobblestone",
output: "minecraft:cobblestone",
blockToReact: "minecraft:water",
time: 10,
},
{
material: "glacio_cobblestone",
output: "ad_astra:glacio_cobblestone",
blockToReact: "minecraft:water",
time: 10,
},
{
material: "mars_cobblestone",
output: "ad_astra:mars_cobblestone",
blockToReact: "minecraft:water",
time: 10,
},
{
material: "mercury_cobblestone",
output: "ad_astra:mercury_cobblestone",
blockToReact: "minecraft:water",
time: 10,
},
{
material: "moon_cobblestone",
output: "ad_astra:moon_cobblestone",
blockToReact: "minecraft:water",
time: 10,
},
{
material: "venus_cobblestone",
output: "ad_astra:venus_cobblestone",
blockToReact: "minecraft:water",
time: 10,
},
]);

/** @satisfies {StoneGrowthChamberRecipe[]} */
const newStoneGrowthChamberRecipes = /** @type {const} */ ([
{
material: "limestone",
output: "create:limestone",
blockToReact: "create:honey",
time: 10,
},
{
material: "scoria",
output: "create:scoria",
blockToReact: "create:chocolate",
time: 10,
},
{
material: "basalt",
output: "minecraft:basalt",
blockToReact: "minecraft:blue_ice",
time: 10,
},
]);
Expand All @@ -64,7 +100,54 @@
l: "minecraft:lava",
g: "createastral:stone_growth_chamber/glass_blocks",
},
pattern: newCopperSGCStructure,
pattern: legacyStoneGrowthChamberStructure,
},
{
type: "custommachinery:item",
item: recipe.output,
amount: 1,
mode: "output",
},
],
});
event.custom({
type: "custommachinery:custom_machine",
machine: "createastral:stone_growth_chamber",
time: recipe.time,
requirements: [
{
type: "custommachinery:structure",
keys: {
a: `createastral:stone_growth_chamber/building_blocks/${recipe.material}`,
w: recipe.blockToReact,
g: "createastral:stone_growth_chamber/glass_blocks",
},
pattern: stoneGrowthChamberStructure,
},
{
type: "custommachinery:item",
item: recipe.output,
amount: 1,
mode: "output",
},
],
});
});

newStoneGrowthChamberRecipes.forEach((recipe) => {
event.custom({
type: "custommachinery:custom_machine",
machine: "createastral:stone_growth_chamber",
time: recipe.time,
requirements: [
{
type: "custommachinery:structure",
keys: {
a: `createastral:stone_growth_chamber/building_blocks/${recipe.material}`,
w: recipe.blockToReact,
g: "createastral:stone_growth_chamber/glass_blocks",
},
pattern: stoneGrowthChamberStructure,
},
{
type: "custommachinery:item",
Expand Down
2 changes: 1 addition & 1 deletion kubejs/server_scripts/recipes/minecraft/shaped.js
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@
pattern: ["CCC", "DED", "CCC"],
key: {
D: "create:copper_sheet",
E: "minecraft:water_bucket",
E: "minecraft:lava_bucket",
C: "create:copper_casing",
},
},
Expand Down
2 changes: 0 additions & 2 deletions kubejs/server_scripts/recipes/minecraft/smithing.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@
storageUnits.forEach((unit) => {
event.smithing(
`techreborn:${unit.prefix}_storage_unit`,
// @ts-expect-error These are block tags, how does that even work???
`#createastral:storage_unit_${unit.index}`,
`createastral:t${unit.tier}_upgrade`
);
event.smithing(
`techreborn:${unit.prefix}_tank_unit`,
// @ts-expect-error These are block tags, how does that even work???
`#createastral:tank_unit_${unit.index}`,
`createastral:t${unit.tier}_upgrade`
);
Expand Down
Loading