Jump to content

AforgeUser

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by AforgeUser

  1. I searched the internet for onBlockPlaced. I found an forum post about it and I thought there is no difference to between 1.7 and 1.8. So I did it like the guy who posted this : Would it work in 1.7.10? And how... And I would prefer to use 1.7.10 because I'm trying to make a mod for an modpack that is still in 1.7.10. Because 1.7.10 is not supported anymore I have to recreate the modpack in 1.8...
  2. I just completely lost... After trying for hours I've found no way to bring that to work. This is what I've got, and I know this doesn't work because my game crashes any time when i place the block @Override public int onBlockPlaced(World world, final int x, final int y, final int z, final int p_149660_5_, final float hitX, final float hitY, final float hitZ, final int metadata) { return world.createExplosion(null, 9D, 9D, 9D, 9F); } } I just don't know what I have to fill in into this auto comleteted thing that comes up... Thanks... By the way: If you find mystakes like grammarmystakes or spellingmystakes... I'm german, my english is not the best!
  3. Because 1.7.10 isn't supported by forge anymore, I'm trying to make my block in 1.8 . So, what ever the big difference is, I still havent found a way to do this right. I just want to make a block that explodes instantly when you place it. Help would be very appreciated because this is my first mod and I just know the basics about forge. thanks!
  4. 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
×
×
  • Create New...

Important Information

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