Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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!

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 by Luis_ST

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.