Jump to content

Recommended Posts

Posted

I have a custom model of a coffin but I can't collide with it. It shows the boundaries when i hover over the block i place, but  can just walk straight through it. I'm poo garbage at java, help is required. So can anybody help?

 

Pictures:

 

50949020150827180707.png

28825320150827180659.png

 

BlockCoffin

 

 

  Reveal hidden contents

 

Posted

First off, you made your block bigger than a block.  That isn't the best of ideas.  Anything in vanilla for that, it is two blocks that form the overall bigger structure.  Look at chests, beds, ect.

 

 

Long time Bukkit & Forge Programmer

Happy to try and help

Posted

Your code looks fairly clean for the 'java poo garbage' comment you made above.

 

When you set your block, it should look at the blocks around it to see if there is space to set a 2nd block (like the bed).  If so, it sets the 2nd block. ect ect

 

 

Actually, it is pretty complex if you are just starting out.  Make your block 1x1x1 and save the fancy stuff for later.

 

Long time Bukkit & Forge Programmer

Happy to try and help

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.