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.

[1.14-1.15] Is it better to create a custum item to act as an entity spawnegg or to use the vanilla spawnegg item?

Featured Replies

Posted

Sorry if this is a dumb question, but i was following mcjty's tutorial for 1.14-1.15 and he went the route of creating a custom item that would act as a spawnegg, as opposed to using the vanilla item. claiming that in order to use the vanilla system, you'd have to register the entities before items because the EntityType<?> variable in the SpawnEggItem class is final. At least that's how I understood it, I could be wrong. It just seems weird to me to circumvent the vanilla system in this case. like since its something basically every modder is gonna use (if they add entities) you'd think there would either be a forge spawn item or you'd just use the vanilla. I just wanted to get some opinions on what way would be better/nicer. Is it bad practice to register entities before items? or is there another reason that I'm just not familiar with? I'm basically a novice here.

I believe you can create (NOT register) the entitytype in your item regster event, to use in your spawn egg setup, then register that entitytype you created during the entitytype register event.

Edited by Ugdhar

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.