Jump to content

NolValue

Members
  • Posts

    42
  • Joined

  • Last visited

Everything posted by NolValue

  1. So, I have finally managed to get Capabilities working for me after several months of trying to figure out what was wrong with my code, haha. Now, since I haven't got around to setting up a GUI for showing my capabilities data yet, I decided to just use a command for easier testing purposes. The log for the crash is here: [12:59:30] [main/INFO] [GradleStart]: Extra: [] [12:59:30] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, /Users/abowers2/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [12:59:30] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:59:30] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:59:30] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [12:59:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [12:59:30] [main/INFO] [FML]: Forge Mod Loader version 14.23.3.2691 for Minecraft 1.12.2 loading [12:59:30] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_172, running on Mac OS X:x86_64:10.12.6, installed at /Users/abowers2/Desktop/Important/Stuff/Modding/Contents/Home/jre [12:59:30] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory. [12:59:30] [main/ERROR] [FML]: Full: /Users/abowers2/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4/maven-artifact-3.5.3.jar [12:59:30] [main/ERROR] [FML]: Trimmed: /users/abowers2/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/ [12:59:30] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [12:59:30] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin [12:59:30] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin [12:59:30] [main/INFO] [FML]: Searching /Users/abowers2/Desktop/Important/Stuff/Modding/forge-1.12.2-14.23.3.2691-mdk/run/./mods for mods [12:59:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [12:59:30] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [12:59:30] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [12:59:30] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:59:30] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:59:30] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:59:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:59:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:59:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:59:33] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [12:59:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:59:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:59:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:59:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [12:59:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [12:59:33] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [12:59:35] [main/INFO] [net.minecraft.client.Minecraft]: Setting user: Player69 [12:59:42] [main/WARN] [net.minecraft.client.settings.GameSettings]: Skipping bad option: lastServer: [12:59:42] [main/INFO] [net.minecraft.client.Minecraft]: LWJGL Version: 2.9.2 [12:59:42] [main/INFO] [FML]: -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Mac OS X (x86_64) version 10.12.6 Java Version: 1.8.0_172, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 320998360 bytes (306 MB) / 567803904 bytes (541 MB) up to 1908932608 bytes (1820 MB) JVM Flags: 0 total; IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'Intel Inc.' Version: '2.1 INTEL-10.25.17' Renderer: 'Intel(R) HD Graphics 6000' [12:59:42] [main/INFO] [FML]: MinecraftForge v14.23.3.2691 Initialized [12:59:42] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients. [12:59:43] [main/INFO] [FML]: Replaced 1036 ore ingredients [12:59:43] [main/INFO] [FML]: Searching /Users/abowers2/Desktop/Important/Stuff/Modding/forge-1.12.2-14.23.3.2691-mdk/run/./mods for mods [12:59:45] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 851301656 nanos [12:59:45] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [12:59:46] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, dbs] at CLIENT [12:59:46] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, dbs] at SERVER [12:59:47] [main/INFO] [net.minecraft.client.resources.SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Dragon Block Super [12:59:47] [main/INFO] [FML]: Processing ObjectHolder annotations [12:59:47] [main/INFO] [FML]: Found 1168 ObjectHolder annotations [12:59:47] [main/INFO] [FML]: Identifying ItemStackHolder annotations [12:59:47] [main/INFO] [FML]: Found 0 ItemStackHolder annotations [12:59:47] [main/INFO] [FML]: Configured a dormant chunk cache size of 0 [12:59:47] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [12:59:47] [main/INFO] [STDOUT]: [NolValue.DBS.Capabilities.ModCapabilities:registerCapabilities:16]: Registering Capabilities! [12:59:47] [main/INFO] [FML]: Applying holder lookups [12:59:47] [main/INFO] [FML]: Holder lookups applied [12:59:47] [main/INFO] [FML]: Applying holder lookups [12:59:47] [main/INFO] [FML]: Holder lookups applied [12:59:47] [main/INFO] [FML]: Applying holder lookups [12:59:47] [main/INFO] [FML]: Holder lookups applied [12:59:48] [main/INFO] [FML]: Applying holder lookups [12:59:48] [main/INFO] [FML]: Holder lookups applied [12:59:48] [main/INFO] [FML]: Injecting itemstacks [12:59:48] [main/INFO] [FML]: Itemstack injection complete [12:59:50] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: OUTDATED Target: 14.23.5.2768 [12:59:50] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager]: Starting up SoundSystem... [12:59:51] [Thread-4/INFO] [net.minecraft.client.audio.SoundManager]: Initializing LWJGL OpenAL [12:59:51] [Thread-4/INFO] [net.minecraft.client.audio.SoundManager]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:59:51] [Thread-4/INFO] [net.minecraft.client.audio.SoundManager]: OpenAL initialized. [12:59:51] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager]: Sound engine started [12:59:55] [main/INFO] [FML]: Max texture size: 16384 [12:59:56] [main/INFO] [net.minecraft.client.renderer.texture.TextureMap]: Created: 1024x512 textures-atlas [12:59:58] [main/ERROR] [FML]: Exception loading model for variant dbs:edball#inventory for item "dbs:edball", normal location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model dbs:item/edball with loader VanillaLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:314) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:164) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_172] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_172] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_172] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_172] 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_172] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_172] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_172] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_172] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: java.io.FileNotFoundException: dbs:models/item/edball.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:69) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:65) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:334) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1600(ModelLoader.java:130) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:880) ~[ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 20 more [12:59:58] [main/ERROR] [FML]: Exception loading model for variant dbs:edball#inventory for item "dbs:edball", blockstate location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model dbs:edball#inventory with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:322) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:164) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_172] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_172] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_172] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_172] 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_172] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_172] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_172] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_172] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1191) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 20 more [13:00:00] [main/INFO] [FML]: Applying holder lookups [13:00:00] [main/INFO] [FML]: Holder lookups applied [13:00:00] [main/INFO] [FML]: Injecting itemstacks [13:00:00] [main/INFO] [FML]: Itemstack injection complete [13:00:00] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [13:00:00] [main/WARN] [net.minecraft.client.settings.GameSettings]: Skipping bad option: lastServer: [13:00:05] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer]: Starting integrated minecraft server version 1.12.2 [13:00:05] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer]: Generating keypair [13:00:06] [Server thread/INFO] [FML]: Injecting existing registry data into this server instance [13:00:06] [Server thread/INFO] [FML]: Applying holder lookups [13:00:06] [Server thread/INFO] [FML]: Holder lookups applied [13:00:06] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@299f7f42) [13:00:07] [Server thread/INFO] [net.minecraft.advancements.AdvancementList]: Loaded 488 advancements [13:00:07] [Realms Notification Availability checker #1/INFO] [com.mojang.realmsclient.client.RealmsClient]: Could not authorize you against Realms server: Invalid session id [13:00:07] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@299f7f42) [13:00:07] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@299f7f42) [13:00:07] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Preparing start region for level 0 [13:00:08] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Preparing spawn area: 53% [13:00:08] [Server thread/ERROR] [FML]: A fatal exception occurred during the server starting event net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Dragon Block Super (dbs) Caused by: java.lang.NullPointerException at net.minecraft.command.CommandHandler.registerCommand(CommandHandler.java:162) ~[forgeSrc-1.12.2-14.23.3.2691.jar:?] at net.minecraftforge.fml.common.event.FMLServerStartingEvent.registerServerCommand(FMLServerStartingEvent.java:59) ~[forgeSrc-1.12.2-14.23.3.2691.jar:?] at NolValue.DBS.dbs.ServerStarting(dbs.java:46) ~[forge-1.12.2-14.23.3.2691-mdk_main/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_172] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_172] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_172] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_172] at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:629) ~[forgeSrc-1.12.2-14.23.3.2691.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_172] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_172] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_172] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_172] at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) ~[guava-21.0.jar:?] at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) ~[guava-21.0.jar:?] at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) ~[guava-21.0.jar:?] at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) ~[guava-21.0.jar:?] at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) ~[guava-21.0.jar:?] at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) ~[guava-21.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:217) ~[guava-21.0.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218) ~[forgeSrc-1.12.2-14.23.3.2691.jar:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196) ~[forgeSrc-1.12.2-14.23.3.2691.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_172] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_172] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_172] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_172] at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) ~[guava-21.0.jar:?] at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) ~[guava-21.0.jar:?] at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) ~[guava-21.0.jar:?] at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) ~[guava-21.0.jar:?] at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) ~[guava-21.0.jar:?] at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) ~[guava-21.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:217) ~[guava-21.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135) ~[LoadController.class:?] at net.minecraftforge.fml.common.Loader.serverStarting(Loader.java:794) [Loader.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.handleServerStarting(FMLCommonHandler.java:296) [FMLCommonHandler.class:?] at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:162) [IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:550) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172] [13:00:08] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Stopping server [13:00:08] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving players [13:00:08] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving worlds [13:00:08] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving chunks for level 'New World'/overworld [13:00:08] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving chunks for level 'New World'/the_nether [13:00:08] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving chunks for level 'New World'/the_end [13:00:09] [Server thread/INFO] [FML]: Unloading dimension 0 [13:00:09] [Server thread/INFO] [FML]: Unloading dimension -1 [13:00:09] [Server thread/INFO] [FML]: Unloading dimension 1 [13:00:09] [Server thread/INFO] [FML]: Applying holder lookups [13:00:09] [Server thread/INFO] [FML]: Holder lookups applied [13:00:09] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded. The code for my main file, where the registration for the command is done is here: package NolValue.DBS; import NolValue.DBS.Capabilities.CapabilitiesEvents; import NolValue.DBS.Capabilities.ModCapabilities; import NolValue.DBS.Commands.CommandGetStats; import NolValue.DBS.Proxy.CommonProxy; import NolValue.DBS.Util.References; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.*; import net.minecraftforge.fml.common.Mod.EventHandler; 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; import net.minecraftforge.fml.common.event.FMLServerStartingEvent; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @Mod(modid = References.MOD_ID, name = References.NAME, version = References.VERSION) public class dbs { public static Logger logger = LogManager.getLogger(References.MOD_ID); @Instance public static dbs instance; @SidedProxy(clientSide = References.CLIENT_PROXY, serverSide = References.COMMON_PROXY) public static CommonProxy proxy; @EventHandler public static void PreInit(FMLPreInitializationEvent event){ ModCapabilities.registerCapabilities(); } @EventHandler public static void Init(FMLInitializationEvent event){ } @EventHandler public static void PostInit(FMLPostInitializationEvent event){ MinecraftForge.EVENT_BUS.register(new CapabilitiesEvents()); } @EventHandler public void ServerStarting(FMLServerStartingEvent event) { event.registerServerCommand(new CommandGetStats()); } } And finally, the command itself: package NolValue.DBS.Commands; import NolValue.DBS.Capabilities.ModCapabilities; import NolValue.DBS.Capabilities.StatsCapability; import NolValue.DBS.Util.Helpers.TextHelper; import net.minecraft.command.CommandException; import net.minecraft.command.ICommand; import net.minecraft.command.ICommandSender; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.server.MinecraftServer; import net.minecraft.util.math.BlockPos; import net.minecraft.util.text.TextFormatting; import javax.annotation.Nullable; import java.util.List; public class CommandGetStats implements ICommand { @Override public String getName () { return "CommandGetStats"; } public int getRequiredPermissionLevel () { return 0; } @Override public String getUsage (ICommandSender sender) { return "/CommandGetStats <value>"; } @Override public List<String> getAliases () { return null; } @Override public boolean isUsernameIndex (String[] args, int index) { return false; } @Override public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException { if (sender.getCommandSenderEntity() instanceof EntityPlayer) if (args.length == 0){ StatsCapability.IPlayerStats STATS = ((EntityPlayer) sender.getCommandSenderEntity()).getCapability(ModCapabilities.PLAYER_STATS, null); TextHelper.sendFormattedChatMessage("Strength:" + STATS.getStr() + " Defense:" + STATS.getDef() + " HitPoints:" + STATS.getHP(), TextFormatting.GREEN, (EntityPlayer) sender.getCommandSenderEntity()); } } @Override public boolean checkPermission(MinecraftServer server, ICommandSender sender) { return false; } @Override public List<String> getTabCompletions(MinecraftServer server, ICommandSender sender, String[] args, @Nullable BlockPos targetPos) { return null; } @Override public int compareTo(ICommand o) { return 0; } } I'm not sure what would be causing the issue. If you need any information beyond this, tell me and I'll supply it. I can't see what's causing this to error out though.
  2. Most people, like me, use it because it was a lot less of a pain in the ass to implement capabilities, or as it was called Extended Entity Properties. Though I that's really about it.
  3. Well, for someone like me who hasn't touched modding since all the way back in 1.7.10, it's been a huge pain in the butt to learn the capability system. You telling me the old method is still usable is nice, as I had no idea what the hell a factory was, haha. Anyways, I'm assuming what I need to do is to have an ENUM with the stats I need, then use an NBT compound to put the ENUM and the Stat's value into the Player, correct?
  4. Well, it seems that the new system is far too big of a mess for me to even to begin to attempt to use, so I'm just gonna go ahead and drop modding once again. So thread closed I guess or whatever.
  5. I actually have been through that post, several times actually. It uses an outdated method for Capabilities which is completely deprecated, otherwise, I would be using that.
  6. Well, I am attempting to use it on players, however I can still probably use your code to figure out how to do it for a player. Also I do want 1 capability with multiple values, sorry for wording it so poorly.
  7. So, I've been looking around at various old forum posts and such after being unable to figure this out myself, aside from some github sources which implement their own capability system instead of using forge's which is way too much effort for me to do. I'm going to go ahead and ask this: What's the easiest way to implement a multiple capability system, IE Stats (Strength, Constitution, Dexterity, etc. . .) with each stat containing a value. Also, how would one inject it? The new capability system is way messier than IEEP for me to figure out. Other things I need to be able to do is read, set, and add to the stats. That's really it. I've been trying for the past 3 days to get a working code and was unable to. I don't need you to code the full thing out, just some pointers for what I need to do, seeing as the Forge Documentation is very limited in what it tells you.
  8. Sure, I'd be fine with that. Also, I just realized you already implemented the code you needed to run a particle. So, the code you need to actual spawn it in is this. worldObj.spawnParticle("reddust", posX, posY, posZ, 0.0D /*red*/, 1.0D /*green*/, 0.0D /*blue*/); Where posX, posY, and posZ are will be replaced by the code of your current location. And a list of various particles is: largesmoke portal reddust largeexplode (like shearing mooshrooms) explode (when a mob dies) largeexplosion (a bunch of largeexplode particles) note bubble flame crit smoke (torches) heart splash snowballpoof suspended depthsuspend townaura magicCrit mobSpell spell instantSpell enchantmenttable lava footstep cloud dripLava dripWater snowshovel slime iconcrack_ (after the underscore, put an item's id) tilecrack_ (same here, except with block ids)
  9. public void onEntityWalk(World worldIn, BlockPos pos, Entity entityIn) { this.activate(worldIn, pos); super.onEntityWalk(worldIn, pos, entityIn); } private void activate(World worldIn, BlockPos pos) { this.spawnParticles(worldIn, pos); if (this == Blocks.REDSTONE_ORE) { worldIn.setBlockState(pos, Blocks.LIT_REDSTONE_ORE.getDefaultState()); } } Now, if you want to spawn a custom particle, that's a different story. However if you can understand code on your own, I'd recommend using Draco18s's Github folder, linked Here, which contains the code necessary to load a custom particle effect. Cheers on your mod by the way! I've given up on mine myself because the Capability system confuses the living heck out of me.
  10. I actually tried using an enum at an earlier point, but when I tried to use NBTTagCompound it'd throw up an incompatible types error, I should be using .setInteger right?
  11. Man, that's extremely simple. I'm an idiot, I swear.
  12. The entity that it will be attached to is a player, if that helps any.
  13. So, say I want to use a HashMap to store capability data. I'm using the code Map<String, String> stat = new HashMap<>(); The first String is the stats/args, whatever you want to call it, and the second is the value. I have all the add, set, and remove functions setup (albeit really not optimally) public void addStat(String args, String value, int amount) { int valTemp = Integer.parseInt(value); valTemp += amount; if (args.equals("str")||equals("cons")||equals("dex")||equals("will")||equals("mind")||equals("spir")){ value = Integer.toString(valTemp); stat.put(args, value); } } public void removeStat(String args, String value, int amount) { int valTemp = Integer.parseInt(value); valTemp -= amount; if (args.equals("str")||equals("cons")||equals("dex")||equals("will")||equals("mind")||equals("spir")){ value = Integer.toString(valTemp); stat.put(args, value);} } public void setStat(String args, String value) { if (args.equals("str")||equals("cons")||equals("dex")||equals("will")||equals("mind")||equals("spir"){ stat.put(args, value)} } public void getStat(String args) { if (args.equals("str")||equals("cons")||equals("dex")||equals("will")||equals("mind")||equals("spir"){ stat.get(args);} } this is the code used for what each of the functions do. How would I go about writing and reading the data? I've tried NBTTagCompound, which always sent out an error. I'm not really truly experienced with Java, so I may be missing something extremely obvious.
  14. So, I've been working on a mod for a fair bit, and I finally got around to working on capabilities, which are linked to the player. However, whenever I try to actually register one using CapabilityManager.INSTANCE.register(IClass.class, new Storage(), Class.class); It states that the register function is deprecated. Heading over to the actual CapabilityManager file I find this: @Deprecated public <T> void register(Class<T> type, Capability.IStorage<T> storage, final Class<? extends T> implementation) { Preconditions.checkArgument(implementation != null, "Attempted to register a capability with no default implementation"); register(type, storage, () -> { try { return implementation.newInstance(); } catch (InstantiationException | IllegalAccessException e) { throw new RuntimeException(e); } }); } The file is stating that the register is deprecated, and will be fully removed for 1.13. Is there some alternative to what I am doing? If so, how does one go about doing it?
×
×
  • Create New...

Important Information

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