Posted February 22, 201510 yr So I'm trying to make an item, once you right click it, it opens a GUI & container etc... but I don't think I can use a tile entity to store data for this (cause an item isn't a tile). Is there like an alternate tile entity for items or something? Or a way to store nbt data for the container and add slots? Thnx
February 22, 201510 yr ItemStacks can hold NBT themselves. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
February 22, 201510 yr Author ItemStacks can hold NBT themselves. What I mean is, I want to have like a tile entity but for an item. So when I right click the item i can put stuff in different slots. (Like a backpack sort of). Something similar to the way the villager GUI screen works... (Cause the villager screen doesn't have a tile entity)
February 22, 201510 yr This is probaby what you are searching for: http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571597-forge-1-6-4-1-8-custom-inventories-in-items-and The TileEntitys are Going to kill us all and take over the entire (Minecraft) world!
February 22, 201510 yr Just to clarify. You do NOT need a tile entity for an inventory you just need a class that implements IInventory. The tutorial linked by BinaryCPG explains how to create and use an IInventory class for items. I am the author of Draconic Evolution
February 23, 201510 yr Just in case you have some interest, I made some system called "ItemEntity" which is TileEntity for Items. You don't need it in this case, but if you want some Position-Based Item functionality, You would really need something like my "ItemEntity", as ItemStack does not contain any position information. So.. if you have any interest, PM me. I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
February 23, 201510 yr Author Just in case you have some interest, I made some system called "ItemEntity" which is TileEntity for Items. You don't need it in this case, but if you want some Position-Based Item functionality, You would really need something like my "ItemEntity", as ItemStack does not contain any position information. So.. if you have any interest, PM me. Thanks for the side info. If I ever need to use a position based item, i know your the guy to talk to
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.