Posted October 24, 201312 yr I've tried about 50 methods to try and create my tile entity, NONE of them have worked, and every tutorial I saw/read absolutely sucked. I need some help with this, i have a techne model and this class. package antflga.antinium.src.tileentities; import net.minecraft.block.Block; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.EntityLiving; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.MathHelper; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; import antflga.antinium.src.AntiniumMain; import antflga.antinium.src.Strings; import antflga.antinium.src.blocks.BlockIds; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class AntiniumConduitBlock extends BlockContainer{ public static Block AntiniumConduit; public static void Init(){ AntiniumConduit = new AntiniumConduitBlock(BlockIds.AntiniumConduit); LanguageRegistry.addName(AntiniumConduit, "Antinium Conduit"); GameRegistry.registerBlock(AntiniumConduit, AntiniumMain.modid + Strings.AntiniumConduitName); } public AntiniumConduitBlock(int id) { super(id, Material.rock); this.setCreativeTab(AntiniumMain.antinium); setUnlocalizedName("AntiniumConduit"); setHardness(2.0F); setResistance(2.0F); MinecraftForge.setBlockHarvestLevel(AntiniumConduit, "pickaxe", 2); } @SideOnly(Side.CLIENT) public void registerIcons(IconRegister par1IconRegister) { this.blockIcon = par1IconRegister.registerIcon(AntiniumMain.modid + ":" + (this.getUnlocalizedName().substring(5))); } public int getRenderType() { return -2; } public boolean isOpaqueCube() { return false; } public boolean renderAsNormalBlock() { return false; } public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving) { int rotation = MathHelper.floor_double((double)((entityliving.rotationYaw * 4F) / 360F) + 2.5D) & 3; world.setBlock(i, j, k, rotation - 1); } public TileEntity createNewTileEntity(World par1World) { return new AntiniumConduitTileEntity(); } }
October 24, 201312 yr https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/block/BlockSpikes.java You're probably creating the entity, but not getting the model to render, which is not a "TE is not working" it's a "you didn't register your renderers." https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/client/ClientProxy.java Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
October 24, 201312 yr Author I don't understand could you be a little more clear with what i have to do, and that chunk there is all of the source I have just so you know.
October 25, 201312 yr Wait, seriously, that one class is all you have? Dude, you need a main mod file, a block class, a tile entity class, the render class (which implies a common and client proxy), and the techne model class. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
October 25, 201312 yr Author What i meant is its the only class i have relating to the tile entity/rendering/block for the conduit thingy.
October 25, 201312 yr Are you calling Init()? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
October 25, 201312 yr Show your base mod class and your tile entity class "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
October 27, 201312 yr Author Here is all that code. Base class package antflga.antinium.src; import net.minecraft.creativetab.CreativeTabs; import antflga.antinium.src.blocks.AntiniumBlock; import antflga.antinium.src.blocks.BlockAntiniumOre; import antflga.antinium.src.items.AntiniumIngot; import antflga.antinium.src.proxies.ClientProxy; import antflga.antinium.src.tileentities.AntiniumConduitBlock; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = AntiniumMain.modid, name = "The Antinium Mod", version = "0.0.1") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class AntiniumMain{ @SidedProxy(clientSide="antflga.antinium.src.proxies.ClientProxy", serverSide="antflga.antinium.src.proxies.CommonProxy") public static ClientProxy proxy = new ClientProxy(); public static CreativeTabs AntiniumCreativeTab = new AntiniumCreativeTab(CreativeTabs.getNextID(), "Antinium mod items"); @Instance("Antinium") public static AntiniumMain instance; @EventHandler public static void Init(FMLInitializationEvent event){ LanguageRegistry.instance().addStringLocalization("itemGroup.", "Antinium", "en_US"); BlockAntiniumOre.Init(); AntiniumConduitBlock.Init(); AntiniumBlock.Init(); AntiniumIngot.Init(); Recipies.Init(); GameRegistry.registerWorldGenerator(new WorldGenerator()); proxy.registerRenderers(); } public static final String modid = "antflga_antinium"; } Here is the tile entity class, nothing is in it. package antflga.antinium.src.tileentities; import net.minecraft.tileentity.TileEntity; public class EntityConduit extends TileEntity{ }
October 29, 201312 yr You need to register your tile entity in the mod class. Look at the tile entity tutorial it has the right method. I made the same mistake with my 1st tile entity "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.