Started by
KBEHAN
on
Topic category: Advanced modding
For people who know how to code in minecraft (specifically 1.7.10), I tried making a custom mob that shoots a custom entity throwable projectile. Everything has compiled correctly but crashes a few seconds after when I spawn the entity. It gives me a ticking entity error.
here is the error: https://hastebin.com/ikiwicatur.sql
Here is my code: https://hastebin.com/zepesotola.java
I am led to believe it might be a "byte" error but I am not sure. Please help.
The "ticking entity" is not the error. It just says when the actual error has occured, in this case - during an entity tick. The actual error is java.lang.NullPointerException. That means that some variable used either in your code or in a code that your code fires is null.
And if you look just two lines under the error, you can see where it has been used - line 205. Because you are using a really outdated version of MC + my sources are 1.12.2, I do not know the code of the DataWatcher class of your version, but the value that you are trying to update or get is never added to the entity on its init.