Posted April 5, 201510 yr Hi, I have created a bunch of Item variants based on NBT Tags, i have also created an "ItemSoup" item, which generates particles from the item texture on being eaten, this far so good, but the real problem is that on the way the texture is requested, the ItemStack where the NBT Tags are stored, is reseted. Basically what minecraft does to get the texture of an item to later generate particles is, oversimplified, the following: "ItemSoup" is used --{ onUpdate() }--> ItemStack w/ NBT Tag --{ getIdFromItem(ItemStack.getItem()), getItemDamage() }--> ID, Damage --{ getItemFromId() }--> Item, Damage --{ new ItemStack(Item, 0, Damage) }--> ItemStack w/o NBT So it erases all the possible information stored on the NBT Tags, what from my point of view is no sense. Finally my question is: Is there any workaround to get what I'm looking for? or must I create a pull request? Thank in advance for helping
April 6, 201510 yr wow but i m intriged why you use nbt tags and not metaitems how many sub items are you pretending to make ?
April 6, 201510 yr Author wow but i m intriged why you use nbt tags and not metaitems how many sub items are you pretending to make ? I'm creating wood based item variations (only wooden items), for example: Stick --> Oak Stick, Spruce Stick, ... , Acacia Stick; and I also have thought about adding support for other mods by the way that if we only consider Vanilla, Extrabiomes XL and Biomes o' Plenty with their respective wood we'd have about 30 different wood types, which implies 30 sticks, 30 bowls, etc. But the greatness comes with the tools, because on them what variates is the head and the handle, so only with the Swords we already have 30*30=900 variations!! now apply it to the rest of tools ;D
April 6, 201510 yr Author The problem is that the way particles work there is no way to tell them "hey, spawn the particle for this ItemStack". They only take numbers. If you want this to work you will have to spawn the particles manually somehow. Ok, I have decide to return a texture of the soup but without the bowl so it can work with all the soup variants
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.