Cadiboo / Example-Mod

An example mod created to try and get new modders to use good code practices
GNU Lesser General Public License v3.0
196 stars 41 forks source link

Blocks do not appear in Creative Tab #14

Closed willihay closed 4 years ago

willihay commented 5 years ago

Love this example mod. Nice design. I've just refactored my mod to incorporate some of your ideas. However, using your registration code in my mod, I noticed that none of the blocks I'm registering appear in my mod's custom creative tab. I finally figured out why. You're setting the creative tab on the block's ItemBlock (when you register the ItemBlock) when really I think you need to be setting it for the Block - inside the Block's constructor, for example. This is corroborated by the fact that if you call getCreativeTab for any ItemBlock, it goes and gets it from the Block.

AqourSoro commented 5 years ago

Agreed, nice design, however, same problem when registering blocks.

Cadiboo commented 4 years ago

Closed as 1.12.2 is old and no-longer supported by Forge.