Jump to content

[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?


Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

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