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

[1.16.4] ModelBakeEvent Event Listener Not Triggered


than00ber1
 Share

Recommended Posts

I am susbsribing to the ModelBakeEvent event but it seems to be skipped while the game loads.

Here's how I subscribe to the event:

public class ModelBakeHandler {

//    @OnlyIn(Dist.CLIENT)
    @SubscribeEvent
    public void onModelBakeEvent(ModelBakeEvent event) {
        System.out.println("_______________");
    }
}

and register the event in my main class:

        MinecraftForge.EVENT_BUS.register(new ModelBakeHandler());

 

This is the event logs when the event gets triggered:

[17:38:18] [Render thread/DEBUG] [ne.mi.fm.ja.FMLModContainer/LOADING]: Firing event for modid siltblocks : net.minecraftforge.client.event.ModelBakeEvent@4d98e41b
[17:38:18] [Render thread/DEBUG] [ne.mi.fm.ja.FMLModContainer/LOADING]: Fired event for modid siltblocks : net.minecraftforge.client.event.ModelBakeEvent@4d98e41b
[17:38:18] [Render thread/DEBUG] [ne.mi.fm.ja.FMLModContainer/LOADING]: Firing event for modid forge : net.minecraftforge.client.event.ModelBakeEvent@4d98e41b
[17:38:18] [Render thread/DEBUG] [ne.mi.fm.ja.FMLModContainer/LOADING]: Fired event for modid forge : net.minecraftforge.client.event.ModelBakeEvent@4d98e41b

 

My "_______________" is not logged here (or ever). Any ideas why?

 

Edit: Should I ever the "OnlyIn" decorator as a modder?

Edited by than00ber1
Link to comment
Share on other sites

37 minutes ago, Luis_ST said:

try to use a Logger#info instead of System.out

 

the OnlyIn annotation is only for vanilla

Noted.

 

24 minutes ago, diesieben07 said:

What do you need ModelBakeEvent for? You should use a custom model loader instead.

I am trying to fetch Fence blocks and add an overlay to it.

 

By 

Quote

custom model loader

you mean ICustomModelLoader?

 

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.

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

    • 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • if you are using Eclipse, you will find the vanilla code in Your Workspace Folder (in Eclipse) > Project and External Dependencies > forge_version > package net.minecraft then you need to look at the EnderChestBlock, another way to find the class would be to search for it via CTRL + SHIFT + H (Note this is the Eclipse key shortcut).
    • java.net.preferIPv4Stack=true Considering library net.minecraftforge:forge:1.12.2-14.23.5.2838: Not Downloading {Wrong Side} Considering library net.minecraft:launchwrapper:1.12: Not Downloading {Wrong Side} Considering library org.ow2.asm:asm-all:5.2 Considering library org.jline:jline:3.5.1: Not Downloading {Wrong Side} Considering library net.java.dev.jna:jna:4.4.0: Not Downloading {Wrong Side} Considering library com.typesafe.akka:akka-actor_2.11:2.3.3 Considering library com.typesafe:config:1.2.1 Considering library org.scala-lang:scala-actors-migration_2.11:1.1.0 Considering library org.scala-lang:scala-compiler:2.11.1 Considering library org.scala-lang.plugins:scala-continuations-library_2.11:1.0.2 Checking "C:\Users\<username>\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-library_2.11\1.0.2\scala-continuations-library_2.11-1.0.2.jar" internal checksums checksums.sha1 was not found, validation failed Downloading library org.scala-lang.plugins:scala-continuations-library_2.11:1.0.2 Trying unpacked library org.scala-lang.plugins:scala-continuations-library_2.11:1.0.2 Checking "C:\Users\<username>\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-library_2.11\1.0.2\scala-continuations-library_2.11-1.0.2.jar" internal checksums checksums.sha1 was not found, validation failed File not found in installer archive: /maven/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar Considering library org.scala-lang.plugins:scala-continuations-plugin_2.11.1:1.0.2 Checking "C:\Users\<username>\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-plugin_2.11.1\1.0.2\scala-continuations-plugin_2.11.1-1.0.2.jar" internal checksums checksums.sha1 was not found, validation failed Downloading library org.scala-lang.plugins:scala-continuations-plugin_2.11.1:1.0.2 Trying unpacked library org.scala-lang.plugins:scala-continuations-plugin_2.11.1:1.0.2 Checking "C:\Users\<username>\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-plugin_2.11.1\1.0.2\scala-continuations-plugin_2.11.1-1.0.2.jar" internal checksums checksums.sha1 was not found, validation failed File not found in installer archive: /maven/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar Considering library org.scala-lang:scala-library:2.11.1 Considering library org.scala-lang:scala-parser-combinators_2.11:1.0.1 Considering library org.scala-lang:scala-reflect:2.11.1 Considering library org.scala-lang:scala-swing_2.11:1.0.1 Considering library org.scala-lang:scala-xml_2.11:1.0.2 Considering library lzma:lzma:0.0.1: Not Downloading {Wrong Side} Considering library net.sf.jopt-simple:jopt-simple:5.0.3: Not Downloading {Wrong Side} Considering library java3d:vecmath:1.5.2 Considering library net.sf.trove4j:trove4j:3.0.3 Considering library org.apache.maven:maven-artifact:3.5.3 Here is the entire log. I'm trying to get RLCraft to work.  Java is updated. I used the jar version of the download.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.