Posted June 19, 20223 yr Hi, I'm attempting to practice mob creation with a Zombie-like mob. I'm able to get into the game, but my spawn egg doesn't work and attempting to summon my mob through commands returns an unexpected error. Here's the code for my main mob class: https://gist.github.com/QuantumBlink1337/efa71f465cd4868ab94ca06401ef67b4 Here's my renderer, and renderer factory: https://gist.github.com/QuantumBlink1337/34135f755bbb58144bebd3d0e9a2f0ec https://gist.github.com/QuantumBlink1337/0b81ba4f4698f60cdb5b83f6f151dd35 I'm registering my mob through RegistryEntries, which I'm not sure if this could be the culprit as I know DeferredRegistries is the recommended method at this point: https://gist.github.com/QuantumBlink1337/6f8a4e5e1a4aa4d6d3a517e8be2cde84 I'd appreciate any possible help with this, and apologies if anything is out of whack completely. Thank you!
June 19, 20223 yr you can not create registry entries in static initializer, you need to use DeferredRegister (recommended), and please show your EntityUtils class please do not share code like that, if you had a git account why did you not use a git repo? Edited June 19, 20223 yr by Luis_ST
June 19, 20223 yr Author @Luis_STIt was my understanding that gist.github was an acceptable way to share code. I'm not creating a new repo to show some example code.
June 20, 20223 yr 7 hours ago, QuantumBlink said: It was my understanding that gist.github was an acceptable way to share code. it's okay, better than other paste sides but a git repo is recommended
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.