Jump to content

Recommended Posts

Posted

Hey Guys,

I am new here and I will begin my rampage of posts to follow this one with a question:

 

  Reveal hidden contents

 

 

My Problem:

 

  Reveal hidden contents

 

 

[glow=red,2,300]- wyler0/369951369951[/glow]

PS: I am just learning and I am not to bad (in-between moderate and advanced) and am still learning Mob AI to, in the future, create a robot making mod!

 

Posted
  Quote

After further testing I have noticed that my script works... but only for Players.

Then remove the player references in your code.

 

As for AI, there is no place to learn that.

You can read the AI classes from Minecraft, but an AI is mostly your own code anyway.

You don't have to follow the vanilla AI system either.

Posted
  On 9/11/2013 at 11:21 PM, Briggybros said:

What is your code? where are you declaring your AI class?

Here is my code:

 

  Reveal hidden contents

 

Posted

Looks okay, but where do you add this custom AI to mobs?

 

Entity AI 'tasks' and 'targetTasks' are both public fields, so you can add new AI through the use of Events such as EntityConstructingEvent or EntityJoinWorldEvent.

 

If you don't know how to use Forge Events, check out my tutorial: http://www.minecraftforum.net/topic/1952901-eventhandler-and-iextendedentityproperties/

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.