package net.qbar.common.init;

import net.minecraft.block.Block;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.qbar.QBar;
import net.qbar.common.block.BlockPunchingMachine;

/**
 * @author Ourten 21 déc. 2016
 */
public class QBarBlocks
{
    private static final Block punchingMachine = new BlockPunchingMachine();

    public static final void registerBlocks()
    {
        QBarBlocks.registerBlock(QBarBlocks.punchingMachine, "BlockPunchingMachine");
    }

    public static final void registerBlock(final Block block, final String name)
    {
        block.setRegistryName(QBar.MODID, name);
        GameRegistry.register(block);
    }
}
@@ -58,16 +58,53 @@
 .Block;%0A
+import net.minecraft.item.ItemBlock;%0A
 import n
@@ -486,30 +486,30 @@
 chine, %22
-B
+b
 lock
-P
+p
 unching
-M
+m
 achine%22)
@@ -612,16 +612,38 @@
         
+GameRegistry.register(
 block.se
@@ -673,16 +673,17 @@
 D, name)
+)
 ;%0A      
@@ -706,21 +706,61 @@
 egister(
-block
+new ItemBlock(block), block.getRegistryName()
 );%0A    %7D

Fix block declaration