O'Reilly logo

Minecraft™ Mod Development in 24 Hours, Sams Teach Yourself by Jimmy Koene

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Custom TNT

TNT is a combination of a block and an entity. Listing A.8 shows the TNT block.

LISTING A.8 An Example of a Custom TNT Block

package com.wuppy.samsmod.blocks;import net.minecraft.block.BlockTNT;import net.minecraft.client.renderer.texture.IIconRegister;import net.minecraft.creativetab.CreativeTabs;import net.minecraft.entity.EntityLiving;import net.minecraft.util.IIcon;import net.minecraft.world.Explosion;import net.minecraft.world.World;import com.wuppy.samsmod.SamsMod;import com.wuppy.samsmod.entity.EntityExampleTNTPrimed;import cpw.mods.fml.relauncher.Side;import cpw.mods.fml.relauncher.SideOnly;public class BlockTNTExample extends BlockTNT{       public BlockTNTExample()       {              super ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required