Fix lang and parts
This commit is contained in:
parent
db9db5b77d
commit
9ac21ded30
8 changed files with 366 additions and 994 deletions
|
@ -28,6 +28,8 @@ import net.fabricmc.api.ModInitializer;
|
|||
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
|
||||
import net.minecraft.block.DispenserBlock;
|
||||
import net.minecraft.item.ItemGroup;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.Items;
|
||||
import net.minecraft.util.Identifier;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
@ -53,19 +55,19 @@ public class TechReborn implements ModInitializer {
|
|||
public static CommonProxy proxy = new CommonProxy();
|
||||
public static TechReborn INSTANCE;
|
||||
|
||||
public static final ItemGroup ITEMGROUP = FabricItemGroupBuilder.build(new Identifier("techreborn", "item_group"), TRContent.Parts.MACHINE_PARTS::getStack);
|
||||
public static ItemGroup ITEMGROUP = FabricItemGroupBuilder.build(
|
||||
new Identifier("techreborn", "item_group"),
|
||||
() -> new ItemStack(TRContent.NUKE));
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
INSTANCE = this;
|
||||
|
||||
RegistrationManager registrationManager = new RegistrationManager("techreborn", getClass());
|
||||
|
||||
TechRebornAPI.subItemRetriever = new SubItemRetriever();
|
||||
//Done like this to load them here
|
||||
// RegistrationManager registrationManager = new RegistrationManager("techreborn", getClass());
|
||||
// TechRebornAPI.subItemRetriever = new SubItemRetriever();
|
||||
// Done like this to load them here
|
||||
ModFluids.values();
|
||||
|
||||
//Done to force the class to load
|
||||
// Done to force the class to load
|
||||
ModRecipes.GRINDER.getName();
|
||||
|
||||
ClientboundPackets.init();
|
||||
|
@ -77,9 +79,9 @@ public class TechReborn implements ModInitializer {
|
|||
|
||||
// Registers Chest Loot
|
||||
ModLoot.init();
|
||||
//MinecraftForge.EVENT_BUS.register(new ModLoot());
|
||||
// MinecraftForge.EVENT_BUS.register(new ModLoot());
|
||||
// Sounds
|
||||
//TODO 1.13 registry events
|
||||
// TODO 1.13 registry events
|
||||
ModSounds.init();
|
||||
// Client only init, needs to be done before parts system
|
||||
proxy.init();
|
||||
|
@ -91,7 +93,7 @@ public class TechReborn implements ModInitializer {
|
|||
StackWIPHandler.setup();
|
||||
|
||||
// WorldGen
|
||||
//GameRegistry.registerWorldGenerator(new OilLakeGenerator(), 0);
|
||||
// GameRegistry.registerWorldGenerator(new OilLakeGenerator(), 0);
|
||||
// Register Gui Handler
|
||||
// Event busses
|
||||
// MinecraftForge.EVENT_BUS.register(new BlockBreakHandler());
|
||||
|
@ -102,7 +104,7 @@ public class TechReborn implements ModInitializer {
|
|||
|
||||
GuiHandler.register();
|
||||
|
||||
//Village stuff
|
||||
// Village stuff
|
||||
// if (ConfigTechReborn.enableRubberTreePlantation) {
|
||||
// VillagerRegistry.instance().registerVillageCreationHandler(new VillagePlantaionHandler());
|
||||
// //MapGenStructureIO.registerStructureComponent(VillageComponentRubberPlantaion.class, new ResourceLocation(MOD_ID, "rubberplantation").toString());
|
||||
|
@ -120,7 +122,6 @@ public class TechReborn implements ModInitializer {
|
|||
|
||||
ModRecipes.postInit();
|
||||
|
||||
|
||||
LOGGER.info("TechReborn setup done!");
|
||||
|
||||
}
|
||||
|
|
|
@ -90,7 +90,7 @@ public class ModRegistry {
|
|||
RebornRegistry.registerBlock(value.frame, itemGroup);
|
||||
RebornRegistry.registerBlock(value.casing, itemGroup);
|
||||
});
|
||||
Arrays.stream(TRContent.SolarPanels.values()).forEach(value -> RebornRegistry.registerBlock(value.block, itemGroup));
|
||||
Arrays.stream(SolarPanels.values()).forEach(value -> RebornRegistry.registerBlock(value.block, itemGroup));
|
||||
Arrays.stream(Cables.values()).forEach(value -> RebornRegistry.registerBlock(value.block, itemGroup));
|
||||
Arrays.stream(Machine.values()).forEach(value -> RebornRegistry.registerBlock(value.block, itemGroup));
|
||||
|
||||
|
|
|
@ -618,9 +618,11 @@ public class TRContent {
|
|||
, WATER_COOLANT_CELL_10K,
|
||||
WATER_COOLANT_CELL_30K,
|
||||
WATER_COOLANT_CELL_60K,
|
||||
|
||||
HELIUM_COOLANT_CELL_60K,
|
||||
HELIUM_COOLANT_CELL_360K,
|
||||
HELIUM_COOLANT_CELL_180K,
|
||||
HELIUM_COOLANT_CELL_360K,
|
||||
|
||||
NAK_COOLANT_CELL_60K,
|
||||
NAK_COOLANT_CELL_180K,
|
||||
NAK_COOLANT_CELL_360K,
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -10,7 +10,7 @@
|
|||
"item": "techreborn:advanced_circuit"
|
||||
},
|
||||
"P": {
|
||||
"item": "techreborn:aluminium_plate"
|
||||
"item": "techreborn:aluminum_plate"
|
||||
},
|
||||
"B": {
|
||||
"item": "techreborn:lithium_ion_battery"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"item": "techreborn:insulated_gold_cable"
|
||||
},
|
||||
"P": {
|
||||
"item": "techreborn:aluminium_plate"
|
||||
"item": "techreborn:aluminum_plate"
|
||||
},
|
||||
"F": {
|
||||
"item": "techreborn:cell"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern": [
|
||||
"DC",
|
||||
"DC",
|
||||
"DC ",
|
||||
"DC ",
|
||||
"GLG"
|
||||
],
|
||||
"key": {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern": [
|
||||
"DT",
|
||||
"DT",
|
||||
"DT ",
|
||||
"DT ",
|
||||
"DCB"
|
||||
],
|
||||
"key": {
|
||||
|
|
Loading…
Add table
Reference in a new issue