Jump to content

looking for 1.7 tutorial for mobs

Ewe Loon

Recommended Posts

I have a tutorial on custom entities that might help. It uses animal entities as main examples, but a lot of the information should help for hostile mobs as well.  http://jabelarminecraft.blogspot.com/p/creating-custom-entities.html


Also, specifically for animation I have: http://jabelarminecraft.blogspot.com/p/complex-entity-models-including.html


And for AI I have: http://jabelarminecraft.blogspot.com/p/complex-entity-models-including.html


Anyway, maybe useful to you.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

as you will see by the edit time of my first post, i found your tutorial while you where typing the reply,

firstly let me say thankyou, its a good tutorial, but, the details about accessing the texture is a bit hard to understand (at least i couldnt figure it out)



the package for my main class is

package me.el.mcFarms;


the name of my main class is "McFarms"


it is registered as

@Mod(modid = "McFarms", name="McFarms", version="1.7.2-v1" )


in /Minecraft/src/main/resources/ i have a package "assets.textures.entity.bork"

in that package i have "bork.png"


in package "me.el.mcFarms.entities.bork" my render class is

public class RenderBork extends RenderLiving{


this dosnt work

texture = new ResourceLocation("textures/entity/bork/bork.png");

i get  [06:58:35] [Client thread/WARN]: Failed to load texture: minecraft:textures/entity/bork/bork.png

i tried

texture = new ResourceLocation("McFarms:textures/entity/bork/bork.png");

but get [07:02:24] [Client thread/WARN]: Failed to load texture: mcfarms:textures/entity/bork/bork.png

what should the path be ???




Link to comment
Share on other sites

Firstly, the package should be assets.modid.textures.entity.bork, make sure everything is lowercase or it won't work.

Secondly use either ResourceLocation("modid:textures/entity/bork/bork.png") or ResourceLocation("modid", "textures/entity/bork/bork.png")


Thirdly, it is better practice to define your modid as a "static final String" in you mod's base class in case you want to use it again (you will!), if you do so, replace the (modid = "McFarms") to (modid = McFarms.modid (or whatever you named your variable)) in the @Mod annotation


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.

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.


  • Create New...

Important Information

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