-
Posts
687 -
Joined
-
Last visited
-
Days Won
10
Everything posted by Beethoven92
-
[1.14.4]How to render a box(x, y, z) near a block
Beethoven92 replied to dyno's topic in Modder Support
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); -
[1.14.4]How to render a box(x, y, z) near a block
Beethoven92 replied to dyno's topic in Modder Support
Thats a possibility, show the rest of your code please -
[1.14.4]How to render a box(x, y, z) near a block
Beethoven92 replied to dyno's topic in Modder Support
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 -
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
-
You are getting a RegistryObject from this, not the actual object..you need to chain also the get() method
-
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
-
[1.16.1] I need help with getting my item to have colored layers.
Beethoven92 replied to Silivek's topic in Modder Support
That means your event handler is now actually doing something, and correctly listening to the ColorHandlerEvent -
[1.16.1] I need help with getting my item to have colored layers.
Beethoven92 replied to Silivek's topic in Modder Support
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 -
[1.16.1] I need help with getting my item to have colored layers.
Beethoven92 replied to Silivek's topic in Modder Support
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) -
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
-
Post the updated jsons
-
Your mod ID appears to be "grubinsect", but your mod assets sub folder name is "grub", they have to be the same name
-
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
-
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
-
The game crashed whilst initializing game... lol
Beethoven92 replied to DogeBoyWowe's topic in Support & Bug Reports
Mmmmm there seems to be a problem with the Biomes You'll go mod...try launching the game again without that mod -
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()
-
Just put one of them at a time of course (Maybe you already did, just for clarification)
-
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
-
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
-
MinecraftForge.EVENT_BUS.register(StartupMessageManager.class); What would that do^^^ ? I don't see you registering your StartupClientOnly class to the Mod event bus
-
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
-
Yeah, i saw that, but RenderType.get() is not a thing as far as i know, shouldn't it be RenderType.getCutout()?
-
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)
-
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
-
Which forge version are you using?