Jump to content

[1.7.2] [Solved]How to associate item with custom entity


PlatonCraft

Recommended Posts

So when I shoot  with my item, I spawn entity

code in Item's class to spawn entity

            if (!par2World.isRemote)
            {
                par2World.spawnEntityInWorld(entitybullet);
            }

 

if entitybullet is equal to EntityArrow, Arrow spawns succesfully.

if entitybullet  is equal to my custom EnitityBullet I shoot with nothing! I have by bullet Item with working texture. How can I associate my Entity with my Item to shoot with Bullet.

 

I am sure that in Entity's class not described how it looks like.

 

Solved. Just need to register and render Entity http://www.minecraftforum.net/topic/1892995-rendering-your-custom-item-texture/

[spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler]LOL,Its nothing interesting here

[spoiler=Spoiler]And here too

[spoiler=Spoiler]But that image is pretty good

 

 

 

 

 

 

 

 

 

 

 

 

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.