Mekelaina Posted June 3, 2020 Share Posted June 3, 2020 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. Quote Link to comment Share on other sites More sharing options...
Ugdhar Posted June 3, 2020 Share Posted June 3, 2020 (edited) 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 June 3, 2020 by Ugdhar Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.