Jump to content

2 problems with my mod


Lutherion

Recommended Posts

sometimes i get this

 

Variable references empty selection: ${project_loc}

 

but my real problem is that when i run the client, it just crashes when it's initializing mod phase 2

 

2017-03-11 12:29:31,142 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-03-11 12:29:31,144 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[12:29:31] [main/INFO] [GradleStart]: Extra: []
[12:29:31] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/LukasAlienware/.gradle/caches/minecraft/assets, --assetIndex, 1.11, --accessToken{REDACTED}, --version, 1.11.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[12:29:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:29:31] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:29:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:29:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[12:29:31] [main/INFO] [FML]: Forge Mod Loader version 13.20.0.2255 for Minecraft 1.11.2 loading
[12:29:31] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_121, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_121
[12:29:31] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[12:29:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:29:31] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[12:29:31] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[12:29:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:29:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:29:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:29:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:29:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:29:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:29:31] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[12:29:32] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[12:29:32] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:29:32] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:29:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:29:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:29:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:29:33] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
2017-03-11 12:29:33,808 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-03-11 12:29:33,839 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-03-11 12:29:33,841 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[12:29:34] [Client thread/INFO]: Setting user: Player303
[12:29:38] [Client thread/WARN]: Skipping bad option: lastServer:
[12:29:38] [Client thread/INFO]: LWJGL Version: 2.9.4
[12:29:39] [Client thread/INFO]: [STDOUT]: ---- Minecraft Crash Report ----
// Why is it breaking :(
Time: 3/11/17 12:29 PM
Description: Loading screen debug info
This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
 Minecraft Version: 1.11.2
 Operating System: Windows 10 (amd64) version 10.0
 Java Version: 1.8.0_121, Oracle Corporation
 Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
 Memory: 711656824 bytes (678 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
 JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
 IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
 FML:
 Loaded coremods (and transformers):
 GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 369.45' Renderer: 'GeForce GTX 1070/PCIe/SSE2'
[12:29:39] [Client thread/INFO] [FML]: MinecraftForge v13.20.0.2255 Initialized
[12:29:39] [Client thread/INFO] [FML]: Replaced 232 ore recipes
[12:29:39] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[12:29:39] [Client thread/INFO] [FML]: Searching D:\Minecraft Mod\run\mods for mods
[12:29:41] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[12:29:41] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, mod] at CLIENT
[12:29:41] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, mod] at SERVER
[12:29:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:MinecraftExpansion
[12:29:42] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[12:29:42] [Client thread/INFO] [FML]: Found 444 ObjectHolder annotations
[12:29:42] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[12:29:42] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[12:29:42] [Client thread/INFO] [FML]: Applying holder lookups
[12:29:42] [Client thread/INFO] [FML]: Holder lookups applied
[12:29:42] [Client thread/INFO] [FML]: Applying holder lookups
[12:29:42] [Client thread/INFO] [FML]: Holder lookups applied
[12:29:42] [Client thread/INFO] [FML]: Applying holder lookups
[12:29:42] [Client thread/INFO] [FML]: Holder lookups applied
[12:29:42] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[12:29:42] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[12:29:42] [Client thread/INFO] [FML]: Applying holder lookups
[12:29:42] [Client thread/INFO] [FML]: Holder lookups applied
[12:29:42] [Client thread/INFO] [FML]: Injecting itemstacks
[12:29:42] [Client thread/INFO] [FML]: Itemstack injection complete
[12:29:42] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue
[12:29:42] [Client thread/ERROR] [FML]:
 States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
 UCH minecraft{1.11.2} [Minecraft] (minecraft.jar)
 UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
 UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.0.2255.jar)
 UCH forge{13.20.0.2255} [Minecraft Forge] (forgeSrc-1.11.2-13.20.0.2255.jar)
 UCE mod{1.0.0} [MinecraftExpansion] (bin)
[12:29:42] [Client thread/ERROR] [FML]: The following problems were captured during this phase
[12:29:42] [Client thread/ERROR] [FML]: Caught exception from MinecraftExpansion (mod)
java.lang.NullPointerException
 at net.minecraftforge.fml.common.registry.IForgeRegistryEntry$Impl.setRegistryName(IForgeRegistryEntry.java:78) ~[forgeSrc-1.11.2-13.20.0.2255.jar:?]
 at items.ItemObsidianingot.<init>(ItemObsidianingot.java:10) ~[bin/:?]
 at init.ModItems.init(ModItems.java:15) ~[bin/:?]
 at com.Lutherion.MinecraftExpansion.MinecraftExpansion.preInit(MinecraftExpansion.java:24) ~[bin/:?]
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
 at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
 at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:643) ~[forgeSrc-1.11.2-13.20.0.2255.jar:?]
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
 at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
 at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
 at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
 at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
 at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
 at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
 at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:246) ~[forgeSrc-1.11.2-13.20.0.2255.jar:?]
 at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:224) ~[forgeSrc-1.11.2-13.20.0.2255.jar:?]
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
 at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
 at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
 at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
 at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
 at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
 at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
 at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:147) [LoadController.class:?]
 at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:647) [Loader.class:?]
 at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:275) [FMLClientHandler.class:?]
 at net.minecraft.client.Minecraft.init(Minecraft.java:478) [Minecraft.class:?]
 at net.minecraft.client.Minecraft.run(Minecraft.java:387) [Minecraft.class:?]
 at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
 at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
 at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
 at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
 at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
 at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
 at GradleStart.main(GradleStart.java:26) [start/:?]
[12:29:42] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: ---- Minecraft Crash Report ----
// Would you like a cupcake?
Time: 3/11/17 12:29 PM
Description: There was a severe problem during mod loading that has caused the game to fail
net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from MinecraftExpansion (mod)
Caused by: java.lang.NullPointerException
 at net.minecraftforge.fml.common.registry.IForgeRegistryEntry$Impl.setRegistryName(IForgeRegistryEntry.java:78)
 at items.ItemObsidianingot.<init>(ItemObsidianingot.java:10)
 at init.ModItems.init(ModItems.java:15)
 at com.Lutherion.MinecraftExpansion.MinecraftExpansion.preInit(MinecraftExpansion.java:24)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:643)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
 at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
 at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
 at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
 at com.google.common.eventbus.EventBus.post(EventBus.java:275)
 at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:246)
 at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:224)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
 at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
 at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
 at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
 at com.google.common.eventbus.EventBus.post(EventBus.java:275)
 at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:147)
 at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:647)
 at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:275)
 at net.minecraft.client.Minecraft.init(Minecraft.java:478)
 at net.minecraft.client.Minecraft.run(Minecraft.java:387)
 at net.minecraft.client.main.Main.main(Main.java:118)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
 at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
 at GradleStart.main(GradleStart.java:26)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
 Minecraft Version: 1.11.2
 Operating System: Windows 10 (amd64) version 10.0
 Java Version: 1.8.0_121, Oracle Corporation
 Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
 Memory: 820916568 bytes (782 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
 JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
 IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
 FML: MCP 9.38 Powered by Forge 13.20.0.2255 5 mods loaded, 5 mods active
 States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
 UCH minecraft{1.11.2} [Minecraft] (minecraft.jar)
 UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
 UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.0.2255.jar)
 UCH forge{13.20.0.2255} [Minecraft Forge] (forgeSrc-1.11.2-13.20.0.2255.jar)
 UCE mod{1.0.0} [MinecraftExpansion] (bin)
 Loaded coremods (and transformers):
 GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 369.45' Renderer: 'GeForce GTX 1070/PCIe/SSE2'
[12:29:42] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: #@!@# Game crashed! Crash report saved to: #@!@# D:\Minecraft Mod\run\.\crash-reports\crash-2017-03-11_12.29.42-client.txt
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

Link to comment
Share on other sites

package items;
import com.Lutherion.MinecraftExpansion.Reference;
import net.minecraft.item.Item;
public class ItemObsidianingot extends Item {
 public ItemObsidianingot(){
  setUnlocalizedName(Reference.MinecraftExpansionItems.OBSIDIANINGOT.getUnlocalizedName());
  setRegistryName(Reference.MinecraftExpansionItems.OBSIDIANINGOT.getRegistryName());
 }
}
 
 
 
package init;
import com.Lutherion.MinecraftExpansion.Reference;
import items.ItemObsidianingot;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;
public class ModItems {
 public static Item obsidianingot;
 
 public static void init() {
  obsidianingot = new ItemObsidianingot();
 }
 
 public static void register() {
  GameRegistry.register(obsidianingot);
 }
 
 public static void registerRenders() {
  registerRender(obsidianingot);
 }
 
 private static void registerRender(Item item) {
  Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
 }
}
 
 
 
package com.Lutherion.MinecraftExpansion;
public class Reference {
 public static final String MOD_ID = "mod";
 public static final String NAME = "MinecraftExpansion";
 public static final String VERSION = "1.0.0";
 public static final String ACCEPTED_VERSIONS = "[1.11.2]";
 
 public static final String CLIENT_PROXY_CLASS = "com.Lutherion.MinecraftExpansion.proxy.ClientProxy";
 public static final String SERVER_PROXY_CLASS = "com.Lutherion.MinecraftExpansion.proxy.ServerProxy";
 
 public static enum MinecraftExpansionItems{
  OBSIDIANINGOT("obsidianingot", "ItemObsidianingot");
  
  private String unlocalizedName;
  private String registryName;
  
  MinecraftExpansionItems(String unlocalizedName, String reistryName) {
   this.unlocalizedName = unlocalizedName;
   this.registryName = registryName;
  }
  public String getUnlocalizedName(){
   return unlocalizedName;
  }
  public String getRegistryName(){
   return registryName;
  }
 }
}
 
 
 
package com.Lutherion.MinecraftExpansion;
import com.Lutherion.MinecraftExpansion.proxy.CommonProxy;
import init.ModItems;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
@Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION, acceptedMinecraftVersions = Reference.ACCEPTED_VERSIONS)
public class MinecraftExpansion {
 @Instance
 public static MinecraftExpansion instance;
 
 @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)
 public static CommonProxy proxy;
 @EventHandler
 public void preInit(FMLPreInitializationEvent event){
  ModItems.init();
  ModItems.register();
 }
 
 @EventHandler
 public void Init(FMLInitializationEvent event){
  proxy.init();
 }
 
 @EventHandler
 public void PostInit(FMLPostInitializationEvent event){
  
 }
}
 
 
 
package com.Lutherion.MinecraftExpansion.proxy;
import init.ModItems;
public class ClientProxy implements CommonProxy{
 @Override
 public void init() {
  ModItems.registerRenders();
 }
}
 
 
 
package com.Lutherion.MinecraftExpansion.proxy;
public interface CommonProxy {
 public void init();
}
 
 
 
package com.Lutherion.MinecraftExpansion.proxy;
public class ServerProxy implements CommonProxy{
 @Override
 public void init() {
  
 }
}
Link to comment
Share on other sites

Please use the code tags (the <> button) and a spoiler (the eye icon) to post your code, it makes it much easier to read.

 

Quote

Variable references empty selection: ${project_loc}

This is a problem with Eclipse. It happens when you try to launch your project while you don't have a project class selected. Just click on any file in your project and then launch again and it should work.

 

Quote

MinecraftExpansionItems(String unlocalizedName, String reistryName) {
   this.unlocalizedName = unlocalizedName;
   this.registryName = registryName;
  }

 

You have a typo here. The second parameter of your constructor is called reistryName instead of registryName. That means you are assigning this.registryName to itself, which is null.

Edited by Jay Avery
  • Like 1
Link to comment
Share on other sites

5 hours ago, Lutherion said:

sometimes i get this

 

Variable references empty selection: ${project_loc}

This is a "bug" in Eclipse.  Simply click on anything in the Project Explorer again and it'll be fine.

 

Alternatively you can edit your project's run directory to be a hardlinked rather than a programatic one.  It's annoying as fuck and only occurs because of the bug and how Forge's setup points Eclipse at the run directory.

 

Go to the Run Configurations window, find the "Arguments" tab and at the bottom, change the working directory from

${project_loc}
 

to

${workspace_loc:MDKExample}\run

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • If you're seeking an unparalleled solution to recover lost or stolen cryptocurrency, let me introduce you to GearHead Engineers Solutions. Their exceptional team of cybersecurity experts doesn't just restore your funds; they restore your peace of mind. With a blend of cutting-edge technology and unparalleled expertise, GearHead Engineers swiftly navigates the intricate web of the digital underworld to reclaim what's rightfully yours. In your moment of distress, they become your steadfast allies, guiding you through the intricate process of recovery with transparency, trustworthiness, and unwavering professionalism. Their team of seasoned web developers and cyber specialists possesses the acumen to dissect the most sophisticated schemes, leaving no stone unturned in their quest for justice. They don't just stop at recovering your assets; they go the extra mile to identify and track down the perpetrators, ensuring they face the consequences of their deceitful actions. What sets  GearHead Engineers apart is not just their technical prowess, but their unwavering commitment to their clients. From the moment you reach out to them, you're met with compassion, understanding, and a resolute determination to right the wrongs inflicted upon you. It's not just about reclaiming lost funds; it's about restoring faith in the digital landscape and empowering individuals to reclaim control over their financial futures. If you find yourself ensnared in the clutches of cybercrime, don't despair. Reach out to GearHead Engineers and let them weave their magic. With their expertise by your side, you can turn the tide against adversity and emerge stronger than ever before. In the realm of cybersecurity, GearHead Engineers reigns supreme. Don't just take my word for it—experience their unparalleled excellence for yourself. Your journey to recovery starts here.
    • Ok so this specific code freezes the game on world creation. This is what gets me so confused, i get that it might not be the best thing, but is it really so generation heavy?
    • Wizard web recovery has exhibited unparalleled strength in the realm of recovery. They stand out as the premier team to collaborate with if you encounter withdrawal difficulties from the platform where you’ve invested. Recently, I engaged with them to recover over a million dollars trapped in an investment platform I’d been involved with for months. I furnished their team with every detail of the investment, including accounts, names, and wallet addresses to which I sent the funds. This decision proved to be the best I’ve made, especially after realizing the company had scammed me.   Wizard web recovery ensures exemplary service delivery and ensures the perpetrators face justice. They employ advanced techniques to ensure you regain access to your funds. Understandably, many individuals who have fallen victim to investment scams may still regret engaging in online services again due to the trauma of being scammed. However, I implore you to take action. Seek assistance from Wizard Web Recovery today and witness their remarkable capabilities. I am grateful that I resisted their enticements, and despite the time it took me to discover Wizard web recovery, they ultimately fulfilled my primary objective. Without wizard web recovery intervention, I would have remained despondent and perplexed indefinitely.
    • I've tested the same code on three different envionrments (Desktop win10, desktop Linux and Laptop Linux) and it kinda blows up all the same. Gonna try this code and see if i can tune it
    • Minecraft version? Mod loader?
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.