Jump to content

Making a personalized "spawn egg" problem [SOLVED!]


Vitro Static

Recommended Posts

Okay, so  am in the works of recreating a very old mod that I worked on back in Beta (long time I know)

 

I haven't made any work on coding mods since 1.2.5 and back then I used Modloader which is DRASTICALLY different, I am having some trouble figuring out this whole forge thing.

 

So I have the item I want to use to spawn the creature and everything works from here, I am having trouble getting any entity to spawn from it tho. Right now for testing purposes I am trying to spawn in a cow and it is not working. I looked online for some help to learn all f the "in and outs" of forge, everything that I am finding though is super old and doesn't work for what I am building on (1.10.2 and 1.1.2 I am making multiple mods)

 

here is the coding I am using in 1.10.2 to try and spawn in the cow...

 

 

 

public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player)

{

world.spawnEntityInWorld(new EntityCow(world));

return itemStack;

}

 

 

 

 

found that code on one of the other topics here asking the same thing I believe it was around 1.3-1.5.

 

 

Also side note: if anybody knows any good custom model makers that are free for me to make and texture my models with that would be really cool if you could tell me about it.

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.

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.