Merthew Posted March 17, 2018 Posted March 17, 2018 The custom fireball in the event handler, under util does not explode upon impact. I used the same code as in the fire talsmine and it worked there. please help. Code: https://github.com/Merthew/ModNameHere Quote The seven became one and the one became two.
jabelar Posted March 17, 2018 Posted March 17, 2018 Whenever your code doesn't do what you expect, you need to do standard debugging. That starts with observing the execution. You have a couple options, you can set a breakpoint on the onImpact() method and run Eclipse in debugger mode then step through and watch what is happening, or alternatively you can add System.out.println() or logger statements in your code to print out to console or log information that helps you understand what is happening. You need to first determine if your onImpact() method is even being called, and if it is being called trace through to understand why it isn't having effect. If you use one of the techniques above it should be quickly obvious what is wrong. Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/
Recommended Posts
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.