Jump to content

Saegusa

Members
  • Posts

    2
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Saegusa's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I already have it overriden in my Block class: @SideOnly(Side.CLIENT) @Override public void getSubBlocks(Item item, CreativeTabs creativeTab, List<ItemStack> itemStacks) { for (Ores ore : Ores.VARIANTS) { itemStacks.add(new ItemStack(BlockUtils.getItemBlockFor(this), 1, ore.getMeta())); } } and this is the getItemBlockFor() function: public static ItemBlock getItemBlockFor(Block block) { return block instanceof BlockEthMeta ? new ItemBlockMeta(block) : new ItemBlock(block); } ItemBlockMeta is just an extension of ItemBlock that I do my custom unlocalized namings and setHasSubtypes(true) Edit: NVM I solved it thanks for helping, it turns out BlockEthMeta didn't have the getSubBlocks method to be overriden from BlockEthMetaOre. Thanks I'll leave the code up for reference if anyone needs but you can lock the thread.
  2. Hello, I've been struggling with this for a while. Basically all the blocks I make with metadata variants register into the game, I can acquire them all with the /give command. But only the defaultState (metadata = 0) appears in the creative tab they're registered to. And I did set the creative tab in the block's constructor. Have anyone else encountered something like this? I know doing this is possible because vanilla has it with wool and wood blocks. Thanks
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.