Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.6.4]Creating custom events


Jdb100
 Share

Recommended Posts

I have been working on a research api and was trying to find a way to allow the coder to intervene when the player researches something. The best way i can think to do this is create an event that the coder can use to determine what they want to do like they BreakEvent in BlockEvent. i just need to understand how these are created. i have looked at the Universal Electricity code on there custom event but it wasn't very helpful.

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
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.

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello, I am trying to add a new chest entity but my chests are invisible. Does anyone know why that might be? I would really appreciate any help that I can get.  GitHub: https://github.com/StijnArts/All-The-Wood
    • You need to give minecraft/forge more memory. It is the -Xmx option in these examples https://forums.minecraftforge.net/topic/113190-trouble-creating-minecraft-modded-server-1165/
    • Hello, This might be an issue from my side but I'm unable to download a file server, I'm redirected to an AdFoc.us page saying 502 GateWay Error. Am I the only one with this issue? Thanks all Edit: Nvm everythings fine
    • Now it says this  [14:28:02] [main/WARN] [minecraft/ResourcePack]: ResourcePack: ignored non-lowercase namespace: .DS_Store in .\global_data_packs\the-forbidden-castle-v1-1.zip [14:39:01] [Worker-Main1/ERROR] [minecraft/JsonReloadListener]: Couldn't parse data file create:blocks/paved_andesite_wall from create:loot_tables/blocks/paved_andesite_wall.json java.io.FileNotFoundException: create:loot_tables/blocks/paved_andesite_wall.json         at net.minecraft.resources.SimpleReloadableResourceManager.func_199002_a(SimpleReloadableResourceManager.java:63) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:repurposed_structures.mixins.json:resources.SimpleReloadableResourceManagerAccessor,pl:mixin:A,pl:runtimedistcleaner:A}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:44) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:22) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.ReloadListener.func_215270_b(SourceFile:11) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_333] {re:computing_frames}         at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_333] {} [14:39:01] [Worker-Main2/ERROR] [minecraft/JsonReloadListener]: Couldn't parse data file minecraft:recipes/building_blocks/polished_diorite_from_diorite_stonecutting from minecraft:advancements/recipes/building_blocks/polished_diorite_from_diorite_stonecutting.json java.io.FileNotFoundException: minecraft:advancements/recipes/building_blocks/polished_diorite_from_diorite_stonecutting.json         at net.minecraft.resources.SimpleReloadableResourceManager.func_199002_a(SimpleReloadableResourceManager.java:63) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:repurposed_structures.mixins.json:resources.SimpleReloadableResourceManagerAccessor,pl:mixin:A,pl:runtimedistcleaner:A}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:44) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:22) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.ReloadListener.func_215270_b(SourceFile:11) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_333] {re:computing_frames}         at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_333] {} [14:39:01] [Worker-Main1/ERROR] [minecraft/JsonReloadListener]: Couldn't parse data file create:blocks/paved_dark_scoria from create:loot_tables/blocks/paved_dark_scoria.json java.io.FileNotFoundException: create:loot_tables/blocks/paved_dark_scoria.json         at net.minecraft.resources.SimpleReloadableResourceManager.func_199002_a(SimpleReloadableResourceManager.java:63) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:repurposed_structures.mixins.json:resources.SimpleReloadableResourceManagerAccessor,pl:mixin:A,pl:runtimedistcleaner:A}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:44) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:22) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.ReloadListener.func_215270_b(SourceFile:11) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_333] {re:computing_frames}         at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_333] {} [14:39:01] [main/WARN] [minecraft/Main]: Failed to load datapacks, can't proceed with server load. You can either fix your datapacks or reset to vanilla with --safeMode java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space         at java.util.concurrent.CompletableFuture.reportGet(Unknown Source) ~[?:1.8.0_333] {}         at java.util.concurrent.CompletableFuture.get(Unknown Source) ~[?:1.8.0_333] {}         at net.minecraft.server.Main.main(Main.java:130) ~[?:?] {re:classloading,re:mixin,pl:mixin:A}         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_333] {}         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_333] {}         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_333] {}         at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_333] {}         at net.minecraftforge.fml.loading.FMLServerLaunchProvider.lambda$launchService$0(FMLServerLaunchProvider.java:51) ~[forge.jar:36.2] {}         at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.1.3.jar:?] {}         at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.1.3.jar:?] {}         at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.1.3.jar:?] {}         at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.1.3.jar:?] {}         at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.1.3.jar:?] {}         at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63) [forge.jar:?] {}         at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60) [forge.jar:?] {}         at net.minecraftforge.server.ServerMain.main(ServerMain.java:57) [forge.jar:?] {} Caused by: java.lang.OutOfMemoryError: Java heap space         at java.util.Arrays.copyOf(Unknown Source) ~[?:1.8.0_333] {}         at com.sun.nio.zipfs.ZipFileSystem.getInode(ZipFileSystem.java:1344) ~[zipfs.jar:1.8.0_333] {}         at com.sun.nio.zipfs.ZipFileSystem.getFileAttributes(ZipFileSystem.java:319) ~[zipfs.jar:1.8.0_333] {}         at com.sun.nio.zipfs.ZipPath.checkAccess(ZipPath.java:830) ~[zipfs.jar:1.8.0_333] {}         at com.sun.nio.zipfs.ZipFileSystemProvider.checkAccess(ZipFileSystemProvider.java:187) ~[zipfs.jar:1.8.0_333] {}         at java.nio.file.Files.exists(Unknown Source) ~[?:1.8.0_333] {}         at net.minecraftforge.fml.loading.LoadingModList$1.findNextURL(LoadingModList.java:151) ~[forge.jar:36.2] {}         at net.minecraftforge.fml.loading.LoadingModList$1.hasMoreElements(LoadingModList.java:132) ~[forge.jar:36.2] {}         at cpw.mods.modlauncher.EnumerationHelper$1.hasMoreElements(EnumerationHelper.java:32) ~[modlauncher-8.1.3.jar:?] {}         at cpw.mods.modlauncher.EnumerationHelper$1.hasMoreElements(EnumerationHelper.java:32) ~[modlauncher-8.1.3.jar:?] {}         at cpw.mods.modlauncher.EnumerationHelper$1.hasMoreElements(EnumerationHelper.java:32) ~[modlauncher-8.1.3.jar:?] {}         at cpw.mods.modlauncher.EnumerationHelper.firstElementOrNull(EnumerationHelper.java:47) ~[modlauncher-8.1.3.jar:?] {}         at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findResource(TransformingClassLoader.java:232) ~[modlauncher-8.1.3.jar:?] {}         at cpw.mods.modlauncher.TransformingClassLoader.findResource(TransformingClassLoader.java:159) ~[modlauncher-8.1.3.jar:?] {re:classloading}         at java.lang.ClassLoader.getResource(Unknown Source) ~[?:1.8.0_333] {}         at java.lang.Class.getResource(Unknown Source) ~[?:1.8.0_333] {}         at net.minecraft.resources.VanillaPack.func_195764_b(VanillaPack.java:203) ~[?:?] {re:classloading}         at net.minecraft.resources.FallbackResourceManager.func_199002_a(FallbackResourceManager.java:49) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:repurposed_structures.mixins.json:resources.FallbackResourceManagerAccessor,pl:mixin:A,pl:runtimedistcleaner:A}         at net.minecraft.resources.SimpleReloadableResourceManager.func_199002_a(SimpleReloadableResourceManager.java:61) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:repurposed_structures.mixins.json:resources.SimpleReloadableResourceManagerAccessor,pl:mixin:A,pl:runtimedistcleaner:A}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:44) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:22) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.ReloadListener.func_215270_b(SourceFile:11) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.ReloadListener$$Lambda$31096/1130236750.get(Unknown Source) ~[?:?] {}         at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) ~[?:1.8.0_333] {}         at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) ~[?:1.8.0_333] {}         at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) ~[?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) ~[?:1.8.0_333] {re:computing_frames}         at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) ~[?:1.8.0_333] {} [14:39:01] [Worker-Main1/ERROR] [minecraft/JsonReloadListener]: Couldn't parse data file create:blocks/paved_dark_scoria_slab from create:loot_tables/blocks/paved_dark_scoria_slab.json java.io.FileNotFoundException: create:loot_tables/blocks/paved_dark_scoria_slab.json         at net.minecraft.resources.SimpleReloadableResourceManager.func_199002_a(SimpleReloadableResourceManager.java:63) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:repurposed_structures.mixins.json:resources.SimpleReloadableResourceManagerAccessor,pl:mixin:A,pl:runtimedistcleaner:A}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:44) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:22) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.ReloadListener.func_215270_b(SourceFile:11) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_333] {re:computing_frames}         at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_333] {} [14:39:01] [Worker-Main2/ERROR] [minecraft/JsonReloadListener]: Couldn't parse data file minecraft:recipes/building_blocks/polished_diorite_slab from minecraft:advancements/recipes/building_blocks/polished_diorite_slab.json java.io.FileNotFoundException: minecraft:advancements/recipes/building_blocks/polished_diorite_slab.json         at net.minecraft.resources.SimpleReloadableResourceManager.func_199002_a(SimpleReloadableResourceManager.java:63) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:repurposed_structures.mixins.json:resources.SimpleReloadableResourceManagerAccessor,pl:mixin:A,pl:runtimedistcleaner:A}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:44) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:22) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.ReloadListener.func_215270_b(SourceFile:11) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_333] {re:computing_frames}         at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_333] {} [14:39:01] [Worker-Main1/ERROR] [minecraft/JsonReloadListener]: Couldn't parse data file create:blocks/paved_dark_scoria_stairs from create:loot_tables/blocks/paved_dark_scoria_stairs.json java.io.FileNotFoundException: create:loot_tables/blocks/paved_dark_scoria_stairs.json         at net.minecraft.resources.SimpleReloadableResourceManager.func_199002_a(SimpleReloadableResourceManager.java:63) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:repurposed_structures.mixins.json:resources.SimpleReloadableResourceManagerAccessor,pl:mixin:A,pl:runtimedistcleaner:A}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:44) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:22) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.ReloadListener.func_215270_b(SourceFile:11) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_333] {re:computing_frames}         at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_333] {} [14:39:01] [Worker-Main2/ERROR] [minecraft/JsonReloadListener]: Couldn't parse data file minecraft:recipes/building_blocks/polished_diorite_slab_from_diorite_stonecutting from minecraft:advancements/recipes/building_blocks/polished_diorite_slab_from_diorite_stonecutting.json java.io.FileNotFoundException: minecraft:advancements/recipes/building_blocks/polished_diorite_slab_from_diorite_stonecutting.json         at net.minecraft.resources.SimpleReloadableResourceManager.func_199002_a(SimpleReloadableResourceManager.java:63) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:repurposed_structures.mixins.json:resources.SimpleReloadableResourceManagerAccessor,pl:mixin:A,pl:runtimedistcleaner:A}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:44) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:22) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.ReloadListener.func_215270_b(SourceFile:11) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_333] {re:computing_frames}         at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_333] {} [14:39:01] [Worker-Main1/ERROR] [minecraft/JsonReloadListener]: Couldn't parse data file create:blocks/paved_dark_scoria_wall from create:loot_tables/blocks/paved_dark_scoria_wall.json java.io.FileNotFoundException: create:loot_tables/blocks/paved_dark_scoria_wall.json         at net.minecraft.resources.SimpleReloadableResourceManager.func_199002_a(SimpleReloadableResourceManager.java:63) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:repurposed_structures.mixins.json:resources.SimpleReloadableResourceManagerAccessor,pl:mixin:A,pl:runtimedistcleaner:A}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:44) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.JsonReloadListener.func_212854_a_(JsonReloadListener.java:22) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at net.minecraft.client.resources.ReloadListener.func_215270_b(SourceFile:11) ~[?:?] {re:computing_frames,re:classloading,re:mixin}         at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_333] {}         at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_333] {re:computing_frames}         at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_333] {}
    • I can't download forge version 1.8.9 server error Please help me     Thanks..
  • Topics

×
×
  • Create New...

Important Information

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