Jump to content

Beethoven92

Members
  • Posts

    687
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by Beethoven92

  1. You did not specify the event to which your listener listens to...you need to do the same you did for this method: public void setup(final FMLCommonSetupEvent event) and change the listened event to FMLClientSetupEvent...the other two methods, preInit and postInit, do not serve a purpose anymore, you won't need those. Also, its true that you have registered the StartupClientOnly class, but the methods that listen to events inside that class still need to be annotated with @SubscribeEvent. Also, where is this method in your code? modEventBus.addListener(this::initClient);
  2. Thats a possibility, show the rest of your code please
  3. Well, in the beacon TER there should be everything you need to understand in order to render simple geometry, like a box. Also I think you will find this example useful: https://github.com/TheGreyGhost/MinecraftByExample/tree/1-14-4-partial/src/main/java/minecraftbyexample/mbe21_tileentityspecialrenderer
  4. What we meant is that there is no software (free or not) that will teach you how to make mods for minecraft. You will have to learn it by yourself by: 1) exploring vanilla code 2) exploring other people code, and that includes all the tutorials or example mods you can find around 3) try to write your own code and understand why it works/doesn't works. Sometimes it will be a process of trial and error 4) when all of the above fails to lead you to succesful results, asking for an answer on this forum the way to go
  5. You are getting a RegistryObject from this, not the actual object..you need to chain also the get() method
  6. Your "free software" would be other people mods, possibly those who are working correctly, unfortunately you need to understand yourself what their code does. Anyway i think you will find this tutorial useful: https://github.com/TheGreyGhost/MinecraftByExample/tree/1-15-2-working/src/main/java/minecraftbyexample/mbe32_inventory_item
  7. That means your event handler is now actually doing something, and correctly listening to the ColorHandlerEvent
  8. Look, right now you event handler is just a normal class with a method inside..there is nothing making it an actual event listener. Your event handler is missing something
  9. But are you sure this event is actually triggering? That's what poopoodice meant..you can test if the event is triggering for example by logging something on the console or any other action that produce a visible result (of course inside the event handler)
  10. Nevermind, i did not see any change to them earlier...anyway your problem is in the blockstate file..your pointing to a model which is inside a model/blocks folder, but your folder name is model/block
  11. Post the updated jsons
  12. Your mod ID appears to be "grubinsect", but your mod assets sub folder name is "grub", they have to be the same name
  13. My bad, should have asked to see your block class, for some reason i did not think you could have not set it to render as a model. Glad to help anyway
  14. I guess you could create your custom goals (that will mimic the patrols behaviour) and add them to the zombie goalSelector but i am not sure you can do that effectively..otherwise just create custom entities that extend PatrollerEntity and give them the look you want, as you already said
  15. Mmmmm there seems to be a problem with the Biomes You'll go mod...try launching the game again without that mod
  16. Post your updated code again please...however, it must be said..you can also register your class to the event bus without the annotation @EventBusSubscriber...similarly to what you were doing here: MinecraftForge.EVENT_BUS.register(StartupMessageManager.class); But with the line above you were registering the wrong class to the wrong event bus...you would need to use MOD_EVENT_BUS.register(StartupClientOnly.class) where MOD_EVENT_BUS is FMLJavaModLoadingContext.get().getModEventBus()
  17. Just put one of them at a time of course (Maybe you already did, just for clarification)
  18. there are parameters you need to specify...the default bus, if not specified is the forge bus, you have to subscribe to the mod bus
  19. Yeah, it subscribes the class, but that class does absolutely nothing in regard of your problem. You need to add the @EventBusSubscriber annotation on top of your startupclient class. That way every method in this class annotated with @SubscribeEvent will listen to the specified event
  20. MinecraftForge.EVENT_BUS.register(StartupMessageManager.class); What would that do^^^ ? I don't see you registering your StartupClientOnly class to the Mod event bus
  21. All right, now its correct, before it wasn't, at least in the file you linked...still your StartupClientOnly class is not subscribed to the event bus, so no event will be listened by the function of this class
  22. Yeah, i saw that, but RenderType.get() is not a thing as far as i know, shouldn't it be RenderType.getCutout()?
  23. It seems that your code is missing some things, maybe it is a copy-paste issue? For example the @Mod annotation on top of your main class or this line inside your client setup event: RenderTypeLookup.setRenderLayer(RegistryHandler.ZING_RED.get(), RenderType.get()); which shouldn't even compile. Also it seems that your client event handler class is not subscribed to the event bus (@EventBusSubscriber)
  24. Does this helps with what you are trying to achieve? https://github.com/TheGreyGhost/MinecraftByExample/tree/1-15-2-working-latestMCP/src/main/java/minecraftbyexample/mbe15_item_dynamic_item_model
  25. Which forge version are you using?
×
×
  • Create New...

Important Information

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