TheTrollingTrollguy Posted October 10, 2013 Posted October 10, 2013 Hey guys, it's me again with another crazy question. How can I make a block with more than 16 metadatas(maybe around 100 metadatas). I know that a regular block can only have 16 metadatas and that I need a tile entity to make more of them. So can somebody help me with that? Quote
TheGreyGhost Posted October 10, 2013 Posted October 10, 2013 Hi These are pretty helpful http://www.minecraftforge.net/wiki/Tile_Entities Cheers TGG Quote
TheTrollingTrollguy Posted October 10, 2013 Author Posted October 10, 2013 Well it did help a little bit, but what I really wanna do is to make a block with around 100 subtypes. I only want to change textures, that's all. So maybe some code will be helpfull. Quote
fhntv24 Posted October 10, 2013 Posted October 10, 2013 100+ subtypes = TileEntity.You have link for what TileEntity is.Sooooo, just click on it. Quote
TheTrollingTrollguy Posted October 10, 2013 Author Posted October 10, 2013 I did but can someone help me? Quote
Mazetar Posted October 10, 2013 Posted October 10, 2013 I did but can someone help me? Heres some info on blocks which also mentions TE's and Metadata. http://greyminecraftcoder.blogspot.com.au/2013/07/blocks.html Btw that blog is one of the most awesome resources written on the inner workings of minecraft! Now that being said, you would have to store whatever you want to store inside the TileEntity ang get it from the TE when it's time to do so. For me it sounds like you will need a custom renderer for your TE, either a TESR or an ISBRH. Tutorials for Both can be found on the forge wiki. I recommend the TESR(Tile Entity Special Renderer), there you grab the TileEntity and get the texture from it. You should be able to find the tutorial on get your block to render normaly using an TESR, then adjust it to get the texture from a field inside the TileEntity. If you are unable to do so, then I would suggest that you look into how TileEntities work by looking into exisitng TileEntities and articles about them. Also reading more up on OOP may be of use. Quote If you guys dont get it.. then well ya.. try harder...
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.