Jump to content

[1.7.10] Explosion by placing a block


AforgeUser

Recommended Posts

Hello!

I'm trying to make a block that explodes when you place it.

I've found no way to do this yet and this is my first mod, so help would be really appreciated.

Remember this is 1.7.10!!

 

This is the code of the block:

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;

public class BlockAntimatter extends Block{

    public BlockAntimatter(Material material) {
        super(material);
        
        setBlockTextureName("IndustrialTech:AntiMatterblock");
        setCreativeTab(CreativeTabs.tabBlock);
        setBlockName("BlockAntimatter");
        

            
                
    }

}

 

 

*If you find any grammarmystakes... just forget them, I'm german, I'm sry :)
 

Link to comment
Share on other sites

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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