From 0fa6e0adfc7fadeba24ad9b8d12e4097423f1979 Mon Sep 17 00:00:00 2001 From: kalwantspizza Date: Wed, 8 Jul 2026 20:37:56 -0400 Subject: [PATCH 1/2] datagen for loot tables --- .../chests/abandoned_moon_base_loot.json | 94 +++++++++++++++ .../chests/crashed_rocket_loot.json | 94 +++++++++++++++ .../chests/underground_mars_outpost.json | 49 ++++++++ .../content/datagen/CSDatagen.java | 1 + .../content/datagen/CSLootTableProvider.java | 114 ++++++++++++++++++ .../rae/creatingspace/init/RecipeInit.java | 2 +- .../chests/abandoned_moon_base_loot.json | 60 --------- .../chests/crashed_rocket_loot.json | 60 --------- .../chests/underground_mars_outpost.json | 30 ----- 9 files changed, 353 insertions(+), 151 deletions(-) create mode 100644 src/generated/resources/data/creatingspace/loot_table/chests/abandoned_moon_base_loot.json create mode 100644 src/generated/resources/data/creatingspace/loot_table/chests/crashed_rocket_loot.json create mode 100644 src/generated/resources/data/creatingspace/loot_table/chests/underground_mars_outpost.json create mode 100644 src/main/java/com/rae/creatingspace/content/datagen/CSLootTableProvider.java delete mode 100644 src/main/resources/data/creatingspace/loot_table/chests/abandoned_moon_base_loot.json delete mode 100644 src/main/resources/data/creatingspace/loot_table/chests/crashed_rocket_loot.json delete mode 100644 src/main/resources/data/creatingspace/loot_table/chests/underground_mars_outpost.json diff --git a/src/generated/resources/data/creatingspace/loot_table/chests/abandoned_moon_base_loot.json b/src/generated/resources/data/creatingspace/loot_table/chests/abandoned_moon_base_loot.json new file mode 100644 index 00000000..559463c7 --- /dev/null +++ b/src/generated/resources/data/creatingspace/loot_table/chests/abandoned_moon_base_loot.json @@ -0,0 +1,94 @@ +{ + "type": "minecraft:chest", + "pools": [ + { + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "components": { + "minecraft:custom_data": { + "design": "creatingspace:ox_rich_staged_cycle", + "design_type": "creatingspace:power_pack_type" + } + }, + "function": "minecraft:set_components" + } + ], + "name": "creatingspace:design_blueprint" + }, + { + "type": "minecraft:item", + "functions": [ + { + "components": { + "minecraft:custom_data": { + "design": "creatingspace:fuel_rich_staged_cycle", + "design_type": "creatingspace:power_pack_type" + } + }, + "function": "minecraft:set_components" + } + ], + "name": "creatingspace:design_blueprint" + }, + { + "type": "minecraft:item", + "functions": [ + { + "components": { + "minecraft:custom_data": { + "design": "creatingspace:aerospike", + "design_type": "creatingspace:exhaust_pack_type" + } + }, + "function": "minecraft:set_components" + } + ], + "name": "creatingspace:design_blueprint" + }, + { + "type": "minecraft:item", + "functions": [ + { + "components": { + "minecraft:custom_data": { + "design": "creatingspace:full_flow_staged_cycle", + "design_type": "creatingspace:power_pack_type" + } + }, + "function": "minecraft:set_components" + } + ], + "name": "creatingspace:design_blueprint" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 3.0, + "min": 1.0 + }, + "function": "minecraft:set_count" + } + ], + "name": "creatingspace:cobalt_ingot", + "weight": 2 + } + ], + "rolls": 1.0 + } + ], + "random_sequence": "creatingspace:chests/abandoned_moon_base_loot" +} \ No newline at end of file diff --git a/src/generated/resources/data/creatingspace/loot_table/chests/crashed_rocket_loot.json b/src/generated/resources/data/creatingspace/loot_table/chests/crashed_rocket_loot.json new file mode 100644 index 00000000..e1665528 --- /dev/null +++ b/src/generated/resources/data/creatingspace/loot_table/chests/crashed_rocket_loot.json @@ -0,0 +1,94 @@ +{ + "type": "minecraft:chest", + "pools": [ + { + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "components": { + "minecraft:custom_data": { + "design": "creatingspace:ox_rich_staged_cycle", + "design_type": "creatingspace:power_pack_type" + } + }, + "function": "minecraft:set_components" + } + ], + "name": "creatingspace:design_blueprint" + }, + { + "type": "minecraft:item", + "functions": [ + { + "components": { + "minecraft:custom_data": { + "design": "creatingspace:fuel_rich_staged_cycle", + "design_type": "creatingspace:power_pack_type" + } + }, + "function": "minecraft:set_components" + } + ], + "name": "creatingspace:design_blueprint" + }, + { + "type": "minecraft:item", + "functions": [ + { + "components": { + "minecraft:custom_data": { + "design": "creatingspace:aerospike", + "design_type": "creatingspace:exhaust_pack_type" + } + }, + "function": "minecraft:set_components" + } + ], + "name": "creatingspace:design_blueprint" + }, + { + "type": "minecraft:item", + "functions": [ + { + "components": { + "minecraft:custom_data": { + "design": "creatingspace:full_flow_staged_cycle", + "design_type": "creatingspace:power_pack_type" + } + }, + "function": "minecraft:set_components" + } + ], + "name": "creatingspace:design_blueprint" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 6.0, + "min": 2.0 + }, + "function": "minecraft:set_count" + } + ], + "name": "creatingspace:nickel_ingot", + "weight": 2 + } + ], + "rolls": 1.0 + } + ], + "random_sequence": "creatingspace:chests/crashed_rocket_loot" +} \ No newline at end of file diff --git a/src/generated/resources/data/creatingspace/loot_table/chests/underground_mars_outpost.json b/src/generated/resources/data/creatingspace/loot_table/chests/underground_mars_outpost.json new file mode 100644 index 00000000..a5210b8a --- /dev/null +++ b/src/generated/resources/data/creatingspace/loot_table/chests/underground_mars_outpost.json @@ -0,0 +1,49 @@ +{ + "type": "minecraft:chest", + "pools": [ + { + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "components": { + "minecraft:custom_data": { + "design": "creatingspace:catalyse_cycle", + "design_type": "creatingspace:power_pack_type" + } + }, + "function": "minecraft:set_components" + } + ], + "name": "creatingspace:design_blueprint" + } + ], + "rolls": 1.0 + }, + { + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 6.0, + "min": 2.0 + }, + "function": "minecraft:set_count" + } + ], + "name": "creatingspace:cobalt_ingot", + "weight": 2 + } + ], + "rolls": 1.0 + } + ], + "random_sequence": "creatingspace:chests/underground_mars_outpost" +} \ No newline at end of file diff --git a/src/main/java/com/rae/creatingspace/content/datagen/CSDatagen.java b/src/main/java/com/rae/creatingspace/content/datagen/CSDatagen.java index f435ea0e..6e382711 100644 --- a/src/main/java/com/rae/creatingspace/content/datagen/CSDatagen.java +++ b/src/main/java/com/rae/creatingspace/content/datagen/CSDatagen.java @@ -45,6 +45,7 @@ public static void gatherData(GatherDataEvent event) { generator.addProvider(true, new CSChemicalSynthesisRecipeGen(output, lookupProvider)); generator.addProvider(true, new CSMechanicalElectrolysisRecipeGen(output, lookupProvider)); generator.addProvider(true, new CSSequencedAssemblyRecipeGen(output, lookupProvider)); + generator.addProvider(true, new CSLootTableProvider(output, lookupProvider)); //generator.addProvider(true, new EngineSequencedAssemblyProvider(output)); // it doesn't quite work. the output is wrong right now and it's missing some of it diff --git a/src/main/java/com/rae/creatingspace/content/datagen/CSLootTableProvider.java b/src/main/java/com/rae/creatingspace/content/datagen/CSLootTableProvider.java new file mode 100644 index 00000000..f52d93df --- /dev/null +++ b/src/main/java/com/rae/creatingspace/content/datagen/CSLootTableProvider.java @@ -0,0 +1,114 @@ +package com.rae.creatingspace.content.datagen; + +import com.rae.creatingspace.init.ingameobject.ItemInit; +import net.minecraft.core.HolderLookup; +import net.minecraft.core.component.DataComponents; +import net.minecraft.data.PackOutput; +import net.minecraft.data.loot.LootTableProvider; +import net.minecraft.data.loot.LootTableSubProvider; +import net.minecraft.nbt.CompoundTag; +import net.minecraft.resources.ResourceLocation; +import net.minecraft.world.item.component.CustomData; +import net.minecraft.world.level.storage.loot.LootPool; +import net.minecraft.world.level.storage.loot.LootTable; +import net.minecraft.world.level.storage.loot.entries.LootItem; +import net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer; +import net.minecraft.world.level.storage.loot.functions.SetComponentsFunction; +import net.minecraft.core.registries.Registries; +import net.minecraft.resources.ResourceKey; +import net.minecraft.world.level.storage.loot.functions.SetItemCountFunction; +import net.minecraft.world.level.storage.loot.parameters.LootContextParamSets; +import net.minecraft.world.level.storage.loot.providers.number.ConstantValue; +import net.minecraft.world.level.storage.loot.providers.number.UniformGenerator; + +import java.util.List; +import java.util.Set; +import java.util.concurrent.CompletableFuture; +import java.util.function.BiConsumer; + +import static com.rae.creatingspace.CreatingSpace.resource; + +@SuppressWarnings("unused") +public class CSLootTableProvider extends LootTableProvider { + public CSLootTableProvider(PackOutput output, CompletableFuture registries) { + super(output, Set.of(), List.of( + new SubProviderEntry(CSTreasureLootTables::new, LootContextParamSets.CHEST) + ), registries); + } + + private static class CSTreasureLootTables implements LootTableSubProvider { + private final HolderLookup.Provider registries; + + public CSTreasureLootTables(HolderLookup.Provider registries) { + this.registries = registries; + } + + @Override + public void generate(BiConsumer, LootTable.Builder> p_251236_) { + p_251236_.accept(register("chests/crashed_rocket_loot"), + LootTable.lootTable() + .withPool(LootPool.lootPool() + .setRolls(ConstantValue.exactly(1.0F)) + .add(blueprint("creatingspace:ox_rich_staged_cycle", "creatingspace:power_pack_type")) + .add(blueprint("creatingspace:fuel_rich_staged_cycle", "creatingspace:power_pack_type")) + .add(blueprint("creatingspace:aerospike", "creatingspace:exhaust_pack_type")) + .add(blueprint("creatingspace:full_flow_staged_cycle", "creatingspace:power_pack_type")) + ) + .withPool(LootPool.lootPool() + .setRolls(ConstantValue.exactly(1.0F)) + .add(LootItem.lootTableItem(ItemInit.NICKEL_INGOT.get()) + .setWeight(2) + .apply(SetItemCountFunction.setCount(UniformGenerator.between(2.0F, 6.0F))) + ) + ) + ); + + p_251236_.accept(register("chests/abandoned_moon_base_loot"), + LootTable.lootTable() + .withPool(LootPool.lootPool() + .setRolls(ConstantValue.exactly(1.0F)) + .add(blueprint("creatingspace:ox_rich_staged_cycle", "creatingspace:power_pack_type")) + .add(blueprint("creatingspace:fuel_rich_staged_cycle", "creatingspace:power_pack_type")) + .add(blueprint("creatingspace:aerospike", "creatingspace:exhaust_pack_type")) + .add(blueprint("creatingspace:full_flow_staged_cycle", "creatingspace:power_pack_type")) + ) + .withPool(LootPool.lootPool() + .setRolls(ConstantValue.exactly(1.0F)) + .add(LootItem.lootTableItem(ItemInit.COBALT_INGOT.get()) + .setWeight(2) + .apply(SetItemCountFunction.setCount(UniformGenerator.between(1.0F, 3.0F))) + ) + ) + ); + + p_251236_.accept(register("chests/underground_mars_outpost"), + LootTable.lootTable() + .withPool(LootPool.lootPool() + .setRolls(ConstantValue.exactly(1.0F)) + .add(blueprint("creatingspace:catalyse_cycle", "creatingspace:power_pack_type")) + ) + .withPool(LootPool.lootPool() + .setRolls(ConstantValue.exactly(1.0F)) + .add(LootItem.lootTableItem(ItemInit.COBALT_INGOT.get()) + .setWeight(2) + .apply(SetItemCountFunction.setCount(UniformGenerator.between(2.0F, 6.0F))) + ) + ) + ); + } + + private ResourceKey register(String path) { + return ResourceKey.create(Registries.LOOT_TABLE, resource(path)); + } + + private LootItem.Builder blueprint(String design, String designType) { + CompoundTag customDataTag = new CompoundTag(); + customDataTag.putString("design", design); + customDataTag.putString("design_type", designType); + CustomData customDataComponent = CustomData.of(customDataTag); + + return LootItem.lootTableItem(ItemInit.DESIGN_BLUEPRINT.get()) + .apply(SetComponentsFunction.setComponent(DataComponents.CUSTOM_DATA, customDataComponent)); + } + } +} diff --git a/src/main/java/com/rae/creatingspace/init/RecipeInit.java b/src/main/java/com/rae/creatingspace/init/RecipeInit.java index aae46e67..35b13f7f 100644 --- a/src/main/java/com/rae/creatingspace/init/RecipeInit.java +++ b/src/main/java/com/rae/creatingspace/init/RecipeInit.java @@ -65,7 +65,7 @@ public enum RecipeInit implements IRecipeTypeInfo , StringRepresentable { RecipeInit(StandardProcessingRecipe.Factory processingFactory) { this(() -> new StandardProcessingRecipe.Serializer<>(processingFactory)); } - RecipeInit(ProcessingRecipe.Factory liquefyingRecipeParamFactory) { + RecipeInit(ProcessingRecipe.Factory liquefyingRecipeParamFactory) { this(() -> new AirLiquefyingRecipe.Serializer<>(liquefyingRecipeParamFactory)); } diff --git a/src/main/resources/data/creatingspace/loot_table/chests/abandoned_moon_base_loot.json b/src/main/resources/data/creatingspace/loot_table/chests/abandoned_moon_base_loot.json deleted file mode 100644 index 387c951c..00000000 --- a/src/main/resources/data/creatingspace/loot_table/chests/abandoned_moon_base_loot.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "type": "minecraft:chest", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "creatingspace:design_blueprint", - "functions": [ - { - "function": "minecraft:set_custom_data", - "tag": "{\"design_type\":\"creatingspace:exhaust_pack_type\",\"design\":\"creatingspace:aerospike\"}" - } - ] - }, - { - "type": "minecraft:item", - "name": "creatingspace:design_blueprint", - "functions": [ - { - "function": "minecraft:set_custom_data", - "tag": "{\"design_type\":\"creatingspace:power_pack_type\",\"design\":\"creatingspace:ox_rich_staged_cycle\"}" - } - ] - }, - { - "type": "minecraft:item", - "name": "creatingspace:design_blueprint", - "functions": [ - { - "function": "minecraft:set_custom_data", - "tag": "{\"design_type\":\"creatingspace:power_pack_type\",\"design\":\"creatingspace:fuel_rich_staged_cycle\"}" - } - ] - }, - { - "type": "minecraft:item", - "name": "creatingspace:design_blueprint", - "functions": [ - { - "function": "minecraft:set_custom_data", - "tag": "{\"design_type\":\"creatingspace:power_pack_type\",\"design\":\"creatingspace:full_flow_staged_cycle\"}" - } - ] - } - ] - }, - { - "rolls": 3, - "entries": [ - { - "type": "minecraft:item", - "name": "creatingspace:nickel_ingot", - "weight": 2 - } - ] - } - ] -} diff --git a/src/main/resources/data/creatingspace/loot_table/chests/crashed_rocket_loot.json b/src/main/resources/data/creatingspace/loot_table/chests/crashed_rocket_loot.json deleted file mode 100644 index 387c951c..00000000 --- a/src/main/resources/data/creatingspace/loot_table/chests/crashed_rocket_loot.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "type": "minecraft:chest", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "creatingspace:design_blueprint", - "functions": [ - { - "function": "minecraft:set_custom_data", - "tag": "{\"design_type\":\"creatingspace:exhaust_pack_type\",\"design\":\"creatingspace:aerospike\"}" - } - ] - }, - { - "type": "minecraft:item", - "name": "creatingspace:design_blueprint", - "functions": [ - { - "function": "minecraft:set_custom_data", - "tag": "{\"design_type\":\"creatingspace:power_pack_type\",\"design\":\"creatingspace:ox_rich_staged_cycle\"}" - } - ] - }, - { - "type": "minecraft:item", - "name": "creatingspace:design_blueprint", - "functions": [ - { - "function": "minecraft:set_custom_data", - "tag": "{\"design_type\":\"creatingspace:power_pack_type\",\"design\":\"creatingspace:fuel_rich_staged_cycle\"}" - } - ] - }, - { - "type": "minecraft:item", - "name": "creatingspace:design_blueprint", - "functions": [ - { - "function": "minecraft:set_custom_data", - "tag": "{\"design_type\":\"creatingspace:power_pack_type\",\"design\":\"creatingspace:full_flow_staged_cycle\"}" - } - ] - } - ] - }, - { - "rolls": 3, - "entries": [ - { - "type": "minecraft:item", - "name": "creatingspace:nickel_ingot", - "weight": 2 - } - ] - } - ] -} diff --git a/src/main/resources/data/creatingspace/loot_table/chests/underground_mars_outpost.json b/src/main/resources/data/creatingspace/loot_table/chests/underground_mars_outpost.json deleted file mode 100644 index ac039b9e..00000000 --- a/src/main/resources/data/creatingspace/loot_table/chests/underground_mars_outpost.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "type": "minecraft:chest", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "creatingspace:design_blueprint", - "functions": [ - { - "function": "minecraft:set_custom_data", - "tag": "{\"design_type\":\"creatingspace:power_pack_type\",\"design\":\"creatingspace:catalyse_cycle\"}" - } - ] - } - ] - }, - { - "rolls": 3, - "entries": [ - { - "type": "minecraft:item", - "name": "creatingspace:cobalt_ingot", - "weight": 2 - } - ] - } - ] -} From 9a9d9471a8dc8597deddf30ed44b69edfff0d3e1 Mon Sep 17 00:00:00 2001 From: kalwantspizza Date: Sat, 18 Jul 2026 21:04:45 -0400 Subject: [PATCH 2/2] Datagen for Loot Tables plus a tweak for the tooltips file. --- .../assets/creatingspace/lang/en_ud.json | 2 ++ .../assets/creatingspace/lang/en_us.json | 2 ++ .../content/datagen/CSDatagen.java | 18 +++++++++--------- .../creatingspace/lang/default/tooltips.json | 2 ++ 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/generated/resources/assets/creatingspace/lang/en_ud.json b/src/generated/resources/assets/creatingspace/lang/en_ud.json index 4431ad82..e7a97ea4 100644 --- a/src/generated/resources/assets/creatingspace/lang/en_ud.json +++ b/src/generated/resources/assets/creatingspace/lang/en_ud.json @@ -24,6 +24,7 @@ "block.creatingspace.clamps.tooltip.summary": "dɯɐןɔ ɐ ʎןןɐɹǝʇıꞀ ˙suoʇsıd ʎq ǝןqɐʌoɯ 'buıʌoɯ ɯoɹɟ uoıʇdɐɹʇuoɔ ɐ ʇuǝʌǝɹԀ", "block.creatingspace.cobalt_block": "ʞɔoןᗺ ʇןɐqoƆ", "block.creatingspace.copper_oxygen_backtank": "ʞuɐʇʞɔɐᗺ uǝbʎxO ɹǝddoƆ", + "block.creatingspace.copper_oxygen_backtank.tooltip.summary": "˙uǝbʎxo pınbıן uı buıdɯnd puɐ ʞuɐʇ ǝɥʇ ɟo ɯoʇʇoq ǝɥʇ oʇ ǝdıd ɐ buıʇɔǝuuoɔ ʞuɐʇʞɔɐq ǝɥʇ ןןıℲ", "block.creatingspace.copronickel_block": "ʞɔoןᗺ ןǝʞɔıuoɹdoƆ", "block.creatingspace.cryogenic_tank": "ʞuɐ⟘ ɔıuǝboʎɹƆ", "block.creatingspace.cryogenic_tank.tooltip.summary": "ɹǝʇןıɟ ɐ uı ǝsn ǝq uɐƆ ˙buıʞɐǝɹq ɹǝʇɟɐ ʇuǝʇuoɔ s,ʇı dǝǝʞ 'pınbıן pןoɔ ɹoɟ ʞuɐʇ pınןɟ ɐ puɐ ʇǝʞɔnq ɐ ɥʇoq s,ʇI", @@ -51,6 +52,7 @@ "block.creatingspace.moon_stone_brick": "ʞɔıɹᗺ ǝuoʇS uooW", "block.creatingspace.moon_surface_regolith": "ɥʇıןobǝᴚ ǝɔɐɟɹnS uooW", "block.creatingspace.netherite_oxygen_backtank": "ʞuɐʇʞɔɐᗺ uǝbʎxO ǝʇıɹǝɥʇǝN", + "block.creatingspace.netherite_oxygen_backtank.tooltip.summary": "uǝbʎxo pınbıן uı buıdɯnd puɐ ʞuɐʇ ǝɥʇ ɟo ɯoʇʇoq ǝɥʇ oʇ ǝdıd ɐ buıʇɔǝuuoɔ ʞuɐʇʞɔɐq ǝɥʇ ןןıℲ", "block.creatingspace.nickel_block": "ʞɔoןᗺ ןǝʞɔıN", "block.creatingspace.nickel_ore": "ǝɹO ןǝʞɔıN", "block.creatingspace.nickel_sulfate_block": "ʞɔoןᗺ ǝʇɐɟןnS ןǝʞɔıN", diff --git a/src/generated/resources/assets/creatingspace/lang/en_us.json b/src/generated/resources/assets/creatingspace/lang/en_us.json index 5d111205..d4ae5b8e 100644 --- a/src/generated/resources/assets/creatingspace/lang/en_us.json +++ b/src/generated/resources/assets/creatingspace/lang/en_us.json @@ -24,6 +24,7 @@ "block.creatingspace.clamps.tooltip.summary": "Prevent a contraption from moving, movable by pistons. Literally a clamp", "block.creatingspace.cobalt_block": "Cobalt Block", "block.creatingspace.copper_oxygen_backtank": "Copper Oxygen Backtank", + "block.creatingspace.copper_oxygen_backtank.tooltip.summary": "Fill the backtank connecting a pipe to the bottom of the tank and pumping in liquid oxygen.", "block.creatingspace.copronickel_block": "Copronickel Block", "block.creatingspace.cryogenic_tank": "Cryogenic Tank", "block.creatingspace.cryogenic_tank.tooltip.summary": "It's both a bucket and a fluid tank for cold liquid, keep it's content after breaking. Can be use in a filter", @@ -51,6 +52,7 @@ "block.creatingspace.moon_stone_brick": "Moon Stone Brick", "block.creatingspace.moon_surface_regolith": "Moon Surface Regolith", "block.creatingspace.netherite_oxygen_backtank": "Netherite Oxygen Backtank", + "block.creatingspace.netherite_oxygen_backtank.tooltip.summary": "Fill the backtank connecting a pipe to the bottom of the tank and pumping in liquid oxygen", "block.creatingspace.nickel_block": "Nickel Block", "block.creatingspace.nickel_ore": "Nickel Ore", "block.creatingspace.nickel_sulfate_block": "Nickel Sulfate Block", diff --git a/src/main/java/com/rae/creatingspace/content/datagen/CSDatagen.java b/src/main/java/com/rae/creatingspace/content/datagen/CSDatagen.java index 8fce6bd0..29b4b370 100644 --- a/src/main/java/com/rae/creatingspace/content/datagen/CSDatagen.java +++ b/src/main/java/com/rae/creatingspace/content/datagen/CSDatagen.java @@ -19,14 +19,14 @@ import java.util.function.BiConsumer; public class CSDatagen { - public static void gatherDataHighPriority(GatherDataEvent event) { - if (event.getMods().contains(CreatingSpace.MODID)) - addExtraRegistrateData(); - } + public static void gatherDataHighPriority(GatherDataEvent event) { + if (event.getMods().contains(CreatingSpace.MODID)) + addExtraRegistrateData(); + } public static void gatherData(GatherDataEvent event) { - if (!event.getMods().contains(CreatingSpace.MODID)) - return; + if (!event.getMods().contains(CreatingSpace.MODID)) + return; DataGenerator generator = event.getGenerator(); PackOutput output = generator.getPackOutput(); @@ -49,11 +49,11 @@ public static void gatherData(GatherDataEvent event) { generator.addProvider(true, new CSMechanicalElectrolysisRecipeGen(output, lookupProvider)); generator.addProvider(true, new CSSequencedAssemblyRecipeGen(output, lookupProvider)); generator.addProvider(true, new CSLootTableProvider(output, lookupProvider)); - //generator.addProvider(true, new EngineSequencedAssemblyProvider(output)); + //generator.addProvider(true, new EngineSequencedAssemblyProvider(output)); // it doesn't quite work. the output is wrong right now and it's missing some of it - // event.getGenerator().addProvider(true, new RegistrateDataProvider(REGISTRATE, CreatingSpace.MODID, event)); + // event.getGenerator().addProvider(true, new RegistrateDataProvider(REGISTRATE, CreatingSpace.MODID, event)); } } @@ -98,4 +98,4 @@ private static void providePonderLang(BiConsumer consumer) { //GeneralText.provideLang(consumer); //PonderLocalization.provideLang(CreatingSpace.MODID, consumer); } -} +} \ No newline at end of file diff --git a/src/main/resources/assets/creatingspace/lang/default/tooltips.json b/src/main/resources/assets/creatingspace/lang/default/tooltips.json index 0efb4c93..402fb6cb 100644 --- a/src/main/resources/assets/creatingspace/lang/default/tooltips.json +++ b/src/main/resources/assets/creatingspace/lang/default/tooltips.json @@ -16,6 +16,8 @@ "block.creatingspace.clamps.tooltip.summary": "Prevent a contraption from moving, movable by pistons. Literally a clamp", "block.creatingspace.cryogenic_tank.tooltip.summary": "It's both a bucket and a fluid tank for cold liquid, keep it's content after breaking. Can be use in a filter", + "block.creatingspace.copper_oxygen_backtank.tooltip.summary": "Fill the backtank connecting a pipe to the bottom of the tank and pumping in liquid oxygen.", + "block.creatingspace.netherite_oxygen_backtank.tooltip.summary": "Fill the backtank connecting a pipe to the bottom of the tank and pumping in liquid oxygen", "item.creatingspace.space_food.tooltip.summary": "...ew", "item.creatingspace.design_blueprint.tooltip.summary" : "This paper contain information on engine designs.",