
OutCraft
Members-
Posts
190 -
Joined
-
Last visited
Everything posted by OutCraft
-
Do you use the Mojang or MCP mappings? Also you can just search in your IDE for something like RenderEvent and it should show up
-
1.16.5, but you need to change to ModEntityTypes.FIRE_CRACKER.get() because your EntityTypes class is named "ModEntityTypes"
-
But you need a texture for the Item, otherwise it's just black-pink
-
Vanilla does this in the Client renderer registry: @SubscribeEvent public static void registerEntityRenders(EntityRenderersEvent.RegisterRenderers event) { event.registerEntityRenderer(EntityList.FIRE_CRACKER.get(), ThrownItemRenderer::new); } I did the same and now it works!
-
I added this, but it crashes because it doesn't have a renderer. Does your Entity have a renderer?
-
I copied your code and tried it, but for me it crashes: "java.lang.NullPointerException: Cannot invoke "net.minecraft.client.renderer.entity.EntityRenderer.shouldRender(net.minecraft.world.entity.Entity, net.minecraft.client.renderer.culling.Frustum, double, double, double)" because "entityrenderer" is null" This means that the Entity doesn't have a renderer or model. Does it crash also for you?
-
Are you on 1.16.5?
-
... Try changing the extending class from FirecrackerEntity to just Entity
-
Also not when you summon it?
-
First: Can you see a white cube when Bounding boxes (F3 + B) are enabled and you throw it?
-
Can I inject or override a private method without using Mixin?
-
Then test if this line is being executed (print something in console etc.) Edit: Also: does the Entity have a model? Try throwing it with Bounding boxes (F3 + B) enabled
-
Does /summon yourmodid:fire_cracker work?
-
Sorry but I really have no Idea
-
Try running the jar through console: java -jar <name-of-your-installer-with-.jar-at-the-end> Or try using jarfix
-
First you need to run "cd C:\Users\jsphb\Desktop\". Then you can run "java -jar forge-1.16.5-36.2.20-installer.jar". Sorry for the bad explanation at this point, I just wanted to use another word for running because else the text sounds unnormal. I hope it works Edit: Oh, I saw that too late But one thing: If you want to program mods or anything other with java, you need to know these three commands. You don't need to learn them, there are quite easy, but don't forget them: <drive>: <- Changing the Drive you're in cd <path> <- Changing the Path java -jar <file with .jar at the end>: <- Running a jar file manually that is in the selected path Just don't forget them, these three are the most important commands (and I think the only ones) you need for programming java
-
How to navigate to the file: Open the command prompt and type the name of the drive the file is in. If the file is in C:/Users/yourUser/desktop execute "c:" in the command prompt. If the file is in D:/ThisIsAFolder execute "d:" etc. Now navigate to the file. Type cd and the path. Example: "cd C:/this/is/the/path/to/the/installer" Now you can run "java -jar installerName.jar" I hope this helps
-
Hi! You can get the movement as Vector3 with Entity.getDeltaMovement()
-
Which problems? I thought your method is working
-
Then look at how DebugRenderer renders the color and make the same in your renderNameTag function, if DebugRenderer isn't working for you
-
Different name for Launch Files generated by gradle
OutCraft replied to Anubis's topic in Modder Support
I think you can't set the name in gradle, just in eclipse. But the name shouldn't reset normally (when I rebuild it doesn't reset) -
Points to the waypoint or is at the position of the waypoint?
-
I don't understand what you're calculating