title: How to register an ItemBlock in Minecraft Forge?
body: <p>So I'm trying to make a custom block in my mod. I tried to register it, but found out that the API has changed and I had no idea how to register my block. After some research, I found out that you need to register the Block AND the ItemBlock. So I tried making an ItemBlock out of my Block using this code:</p>
  
  <pre><code>public ItemBlock itemBlock = new ItemBlock(this);
  </code></pre>
  
  <p>This code is inside my Block class. Then I tried registering the block:</p>
  
  <pre><code>event.getRegistry().register(new myBlockInMyMod());
  event.getRegistry().register(new myBlockInMyMod().itemBlock);
  </code></pre>
  
  <p>I get this error code on IntelliJ:</p>
  
  <pre><code>register (net.minecraft.block.Block) in IForgeRegistry cannot be applied to net.minecraft.item.ItemBlock
  </code></pre>
  
  <p>Am I doing anything wrong here? Because the register method doesn't seem to accept ItemBlocks :/</p>