Jump to content

Keheck

Members
  • Posts

    62
  • Joined

  • Last visited

Everything posted by Keheck

  1. I uploaded the whole project in one folder. Btw, I deleted the "mcmod.info" file. The mod information is created during pre-init
  2. I uploaded my project to GitHub https://github.com/Keheck/Logicblox I want every "neighbourChanged" method to be "updateTick"
  3. Should classes be lowercase as well or can they be CamelCase?
  4. I don't know because the thing is it worked just fine for previous versions... will give it a try
  5. https://github.com/Keheck/Logicblox I uploaded it to the guthub
  6. Using cmd, going to the project directory and typing the command "gradlew build"
  7. After building my mod and trying to launch it in the minecraft launcher, the game crashed when coming to pre-init my mod with following crash report: ---- Minecraft Crash Report ---- // You're mean. Time: 2/11/19 8:00 PM Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: com.keheck.logicBlox.util.Handlers.RegistryHandler at net.minecraftforge.fml.common.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:89) at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:602) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) at com.google.common.eventbus.EventBus.post(EventBus.java:217) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) at com.google.common.eventbus.EventBus.post(EventBus.java:217) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135) at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:593) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:225) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:466) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:377) at net.minecraft.client.main.Main.main(SourceFile:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.ClassNotFoundException: com.keheck.logicBlox.util.Handlers.RegistryHandler at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at net.minecraftforge.fml.common.ModClassLoader.loadClass(ModClassLoader.java:75) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at net.minecraftforge.fml.common.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:81) ... 37 more Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ... 43 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 331636344 bytes (316 MB) / 536870912 bytes (512 MB) up to 2147483648 bytes (2048 MB) JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.42 Powered by Forge 14.23.4.2705 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 | State | ID | Version | Source | Signature | |:----- |:--------- |:------------ |:----------------------------- |:---------------------------------------- | | UC | minecraft | 1.12.2 | minecraft.jar | None | | UC | mcp | 9.42 | minecraft.jar | None | | UC | FML | 8.0.99.99 | forge-1.12.2-14.23.4.2705.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 | | UC | forge | 14.23.4.2705 | forge-1.12.2-14.23.4.2705.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 | | UE | logicblox | 0.6 | LogicBlox_1.12.2_v_0.6.jar | None | Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 417.35' Renderer: 'GeForce GTX 1050 Ti/PCIe/SSE2' In one line it says: "ClassNotFoundException: com.keheck.logicBlox.util.Handlers.RegistryHandler", although the class and package very much exist! Stranger is, that when I run my mod in the IDE, Minecraft starts without problems! Why does this error appear
  8. I am currently working on a redstone block that implements logic gates in your world. For the block updates I currently use "neightbourChanged(IBlockState, World, BlockPos, Block, BlockPos)" method. But, because I have gates that, when self powered, should form a clock, throw a StackOverflow (doesn't crash the game though). So, I've tried to use the "updateTick(World, BlockPos, IBlockState, Random)" method. By debugging I found out that the method only gets called when the blocks should be activated, but never when they should be deactivated, wich is a problem. I tried to figure out why the method doesn't get called on deactivation, but the stacktrace didn't give me any clue. When looking at the example I used, the redstone comparator, "updateTick(...)" allways gets called, no matter if turned on or off. Here's the method: @Override public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos) { boolean flag = this.shouldBePowered(worldIn, pos, state); //Is only important fo calculating whether the gate should give an output. //This is the only time the method gets called if(flag && !state.getValue(ACTIVE)) { worldIn.setBlockState(pos, getPoweredState(state)); worldIn.notifyNeighborsOfStateChange(pos, this, false); } else if(!flag && state.getValue(ACTIVE)) { worldIn.setBlockState(pos, getUnpoweredState(state)); worldIn.notifyNeighborsOfStateChange(pos, this, false); } } Disclaimer: I still use "neighbourChanged(...)", I only swaped out the method names and parameters. That's what I did originaly as well. Forge version: 1.12.2-14.23.4.2705 Every gate is only one block, with the blockstate "ACTIVE" and "FACING", indicating whether the gate is active and which direction the block faces respectively. If you need anything else, feel free to ask
  9. Yep, that was it. I've done the wrong operations
  10. Hey there! I have a problem with my directional blocks. Everytime I enter the world to test changes I've done to the mod the blocks get redirected to south. I don't know why, because the default state isn't even south, but north
×
×
  • Create New...

Important Information

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