Jump to content

Recommended Posts

Posted

I feel bad for making my first post a "help me I can't forge!" topic, but it is unfortunately what I have to do.

 

So for those who may not know me, I run the digimobs mod and I have been having some trouble converting my mod from modloader to Forge. It may be because I am simply an idiot, but I see to be having trouble either registering my entities, or spawning them. They just don't appear period.

 

Since my mod is so entity heavy, I have cut out a large portion so you all don't have to scroll through basically the same thing over and over.

 

My code is in the spoilers, since it makes the page really wide with the code.

 

  Reveal hidden contents

 

Thanks to anyone who may be able to point out my mistakes!

Posted

If I were you I would use:

EntityRegistry.registerGlobalEntityID(EntityDigimob.class, "EntityDigimob", EntityRegistry.findGlobalUniqueEntityId(), 1, 2); //Last 2 digits are spawn egg colours, remove them if you don't want spawn eggs.
EntityRegistry.addSpawn(EntityDigimob.class, 25, 1, 1, EnumCreatureType.creature, WorldType.base12Biomes);

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...

×   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.

Announcements



×
×
  • Create New...

Important Information

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