Jump to content

Recommended Posts

Posted

Umm... so I just began minecraft modding and I am learning TileEntities. Which tend to be VERY confusing. So I looked at minecraft code, and tutorials and made a mumbo jumbo of unorganized code that lead to this atrocious crash log.

 

http://pastebin.com/cxn1UaF0

 

Okay... so here is all of my code. I honestly don't care if you copy it, because if you can understand it, you deserve it...

 

WulfeniteBlocks.class

http://pastebin.com/7H31S3bm

 

BlockGrinder.class

http://pastebin.com/beth3Y6G

 

TileEntityGrinder.class

http://pastebin.com/Z8skuLVZ

 

ContainerGrinder.class

http://pastebin.com/bjwYrXHY

 

GrinderGui.class

http://pastebin.com/4i3sbLd5

 

The block appears in the world see through so I can see caves. When right-clicked the crafting table gui pops up for a second, then the game crashes.

 

I know you guys won't do it for me, but I have basic Java knowledge (and if I don't know it, I have a java textbook), so let me know of any changes I should make and kinda help guide me in creating a block with 3 slots. One that is input, one that is output, and one that is fuel. All it should do is take coal, take an ore, and grind it into a dust item I create.

 

Thanks in advance and I apologize about my horrendous coding :/

I may or may not know a bit about Java. But if I do, it's probably because of my AP Computer Science textbook...

Posted

It crashes, because that's not how you open a gui.

https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/block/BlockPedestal.java#L140

 

Also, you have a huge crapton of stuff you absolutely should not need in your ContainerGrinder class.

 

You can see caves through the block because you didn't override renderAsNormalBlock and isOpaqueCube to return false: the neighboring blocks are seeing your block as a full, solid, cube, so they're not bothering to render faces that can't be seen.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

I appreciate it! I've got more to learn definitely, but I'm on the right track :)

I may or may not know a bit about Java. But if I do, it's probably because of my AP Computer Science textbook...

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.