Jump to content

Recommended Posts

Posted

PROBLEM SOLVED

The solution was changing it to setLocationAndPosition when spawning instead of posX = , posY = , etc. Thanks!

 

Hey everyone!

I'm having issues with an entity I'm trying to create. I made it's model with thechne: http://pastebin.com/M88tdb2D .

The entity is just falling through blocks into the void as soon as it spawns.

I'm not sure why or how it happens. I also asked for help in the minecraft forums (Not sure if I'm allowed to link the post). I got alot of help, but still nothing could solve it.

I tried looking at other people's code, deleting and changing my code, looking at the vanilla source code but nothing could help me.

 

Hopefully any of you can solve my problem :)

 

Thanks!

Posted

You have to call setSize() in your Entity's class, in game press f3+b to debug it. e.g after the super(world); setSize(x, z), where x is the width and z is the height of your mob

Posted

Thanks for the reply :)

I already tried it earlier and tried it again now. It's still falling through blocks, but it shows a white box around all mob, including mine. Didn't know about that shortcut, thanks :)

 

Any more ideas?

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.