Jump to content

Recommended Posts

Posted

So, I was trying to figure this out, but I'm not sure what steps I need to add to the register of my blocks, I know I'm missing something, but not sure what and where.

 

I'm trying to register colored buttons, I do get the buttons to show on inventory (Not render yet I haven't got to that point)

 

I know I'm missing something as all the buttons show with the same name and not an specific meta like the clay blocks do.

 

This is how I'm registering them.

 

 

  Reveal hidden contents

 

 

And this is the Block Class:

 

 

  Reveal hidden contents

 

 

Can I have some help on the missing steps?

 

I will for sure need some help with the jsons, but that's later, first I want to know what I'm missing here as I'm not sure why the don't show a meta for each when I look at them in inventory.

Posted
  On 1/9/2017 at 3:19 PM, American2050 said:

  Quote

Because there is no meta for your ItemBlock.

So I should create a class for my ItemBlocks and set there the meta for each color?

Yes assuming when you say color you mean it is going to have different Item models. Because you can always you IBlockColor.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

As for now I'm testing with GameRegistry.register(new ItemColored(block, true).setRegistryName(block.getRegistryName()));

 

They each get a meta now.

 

Yes each of them with have a model that will be parent to the vanilla colored clay blocks.

 

I'm gonna start doing some of the jsons so I can tell what else I'm missing so far.

 

What I notice is that even each having its own meta, they all default to "White" when placed, but I'm gonna figure that out later :P

 

Thanks a lot for the help, will let you know how it goes.

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.