Jump to content

[1.10.2] [Solved] Need some help with some slabs


Erfurt

Recommended Posts

Hey guys, this is just a rather small question, and I'm going to look like a noob. But whatever :)

 

So I have been following an older guide (from 1.8.9) to make some custom slabs for my mod. But the guide used GameRegistry.registerBlock(block, itemClass, string), which I know is outdated. So my rather dumb question is, how do I register my slabs? Do I use some variant of GameRegistry.register(), or something completely different?

 

Maybe there's a new way to add custom slabs, without using an itemclass in 1.10.2, that I don't know of?

Link to comment
Share on other sites

Instead of using the

registerBlock

method that takes an

ItemBlock

class, you simply construct the

ItemBlock

yourself, set it's registry name to the same as the block's and register it like normal using

GameRegistry.register

.

 

As I mentioned, it was a very dumb question :)

 

Thank for your help, it did the trick

Link to comment
Share on other sites

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.