Jump to content

Help with Creating entities


Asherslab

Recommended Posts

Hi, kinda new to making mods, i'm trying to do two things

1. Make a skeleton like mob that DOESN't burn in the sun, but i still want it to shoot and have the rest of the AI of an EntitySkeleton (I.e. its "extending EntitySkeleton")

 

2. Make a different mob spawn with a sword in their hand. 

 

i've got them spawning and rendered and everything, i just can't figure out these two things listed above. if you need the code i'd be more than willing to post it. 

 

Thanks!

 - Asherslab

Link to comment
Share on other sites

13 hours ago, Asherslab said:

DOESN't burn in the sun, but i still want it to shoot and have the rest of the AI of an EntitySkeleton

That's not quite true. If your mob doesn't burn, then its AI does not need to seek shade / water. Dump that task from the inherited AI.

 

Idea: Always put the equivalent of a magic helmet on your "skeleton" to trigger the get-out-of-jail-free exception to burning  :)

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

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.