Firestarme Posted February 11, 2013 Share Posted February 11, 2013 ive been trying to create a custom block by following a tutorial written for modloader ( http://www.minecraftforum.net/topic/1483366-universal-subarakis-one-stop-custom-block-tutorial-make-it-with-techne/ ) but i think there is something i am missing. The problem i am having is converting the normal block to the one rendered by the tile entity. my code: Block:https://github.com/Firestarme/Fires_Cars/blob/Development/common/firestarme/fires_cars/common/BlockMachine.java Render:https://github.com/Firestarme/Fires_Cars/blob/Development/common/firestarme/fires_cars/common/RenderMachine.java ItemBlock:https://github.com/Firestarme/Fires_Cars/blob/Development/common/firestarme/fires_cars/common/ItemBlockMachine.java TileEntity:https://github.com/Firestarme/Fires_Cars/blob/Development/common/firestarme/fires_cars/common/TileEntityMachine.java Main :https://github.com/Firestarme/Fires_Cars/blob/Development/common/firestarme/fires_cars/common/fires_carsMain.java Model :https://github.com/Firestarme/Fires_Cars/blob/Development/common/firestarme/fires_cars/common/ModelDerrik.java Quote http://www.mcportcentral.co.za/add_images/mcportcentral-banner.jpg[/img] Link to comment Share on other sites More sharing options...
mnn Posted February 11, 2013 Share Posted February 11, 2013 and what is does or doesn't? from a quick look at the block class I would say the TE is not being created. maybe: @Override public boolean hasTileEntity(int metadata) { return true; } or even: @Override public void onBlockAdded(World par1World, int par2, int par3, int par4) { super.onBlockAdded(par1World, par2, par3, par4); par1World.setBlockTileEntity(par2, par3, par4, createTileEntity(par1World, par1World.getBlockMetadata(par2, par3, par4))); } Quote mnn.getNativeLang() != English If I helped you please click on the "thank you" button. Link to comment Share on other sites More sharing options...
Recommended Posts
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.