Jump to content

Recommended Posts

Posted

Is there any kind souls out there that could show me how to extend the Stair Block class.

 

I have tried to follow minecraft modding stairs tutorial [1.8] Stairs by localtoast9001 but it will not work for me.

I have even looked at his complete source to try and work it out but due to the complexity of his mod I getting lost.

It's pretty awesome of him to put is hole mod source up there as its help me in other parts of my mod.

 

I don't need to now how to do the Json file and block state just how to get the class to extend and add the Material, HarvestToolEnum etc.

 

 

Edit

This is where i am up to

 

Code public class CustomStairs extends BlockStairs

 

I am not sure about "private static Block block;" but eclipse wanted to add it as " super(block.getStateFromMeta(0));" Block was alway in error.

 

 

  Reveal hidden contents

 

 

 

Code 'public class CommonProxy'

 

  Reveal hidden contents

 

 

Crash Report

 

 

  Reveal hidden contents

 

 

 

 

I Would appreciate any help.

Thanks

Zen

  • 2 weeks later...
Posted

I worked it out in the end, so the code for my class is,

 

 

  Reveal hidden contents

 

 

I have been following Kevin M on YouTube awesome tutorials  https://www.youtube.com/channel/UCCLUr3vEPjmjn818HMyJEwg

 

Zen

 

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.