Jump to content

java.lang.NullPointerException: Unexpected error, Game Crash Creating Double slab by stacking single slabs


Recommended Posts

Posted (edited)

Hi,

 

I have been trying to create a custom Slab and have been able to get to the point where my slabs can be placed as half blocks (on both the top and bottom of a block) but the Game crashes when ever i stack them.

 

Any help figuring this out would be appreciated (I am a beginner to modding/Java but i do understand most of the basics) the Original code has come from HarryTechRevs (i was following his youtube tutorials and could find a slab one so i just modified the code he posted on github) https://github.com/HarryTechRevs/Minecraft-Modding-1.12

 

Error from Crash Report

  Reveal hidden contents

 

My Basic SlabBlock Class

  Reveal hidden contents

 

MY HalfSlab Class

  Reveal hidden contents

My double slab class

  Reveal hidden contents

my blockinit class

  Reveal hidden contents

 

please let me know if more info is required

 

Many thanks

Edited by oRaiderzo

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.